厉害啊!~太厉害了 这里有代码吗?
我有源码,
给大家看看
using System.Diagnostics;
[DllImport("user32.dll")] //加载动态连接库
public static extern long ClipCursor(out System.Drawing.Rectangle ss); //调用API
private void timer1_Tick(object sender, EventArgs e)
{
Rectangle rect = new Rectangle(this.Left, this.Top, this.Width + this.Left, this.Height + this.Top);
ClipCursor(out rect);
Process[] remoteAll = Process.GetProcessesByName("taskmgr");
foreach (Process s in remoteAll)
{
s.Kill();
}
}