本方法只得用于正当的系统,若用于搞破坏,请自觉承担法律责任,具体的使用方法:
public Form1()
{
InitializeComponent();
}
[DllImport(@"native.dll", EntryPoint = "FuckSysKey")]
private extern static bool FuckSysKey(bool enAble);
private void button1_Click(object sender, EventArgs e)
{
FuckSysKey(false);
}
private void button2_Click(object sender, EventArgs e)
{
FuckSysKey(true);
}
- 1
- 2
- 3
- 4
前往页