using System.Runtime.InteropServices;
 
[DllImport("User32.DLL")]
public static extern void LockWorkStation();   

private void button1_Click(object sender, EventArgs e)

      LockWorkStation();
}
posted on 2009-10-11 09:53  lxcsmallcity  阅读(467)  评论(0编辑  收藏  举报