using System.Runtime.InteropServices;
[DllImport("User32.DLL")]
public static extern void LockWorkStation();
private void button1_Click(object sender, EventArgs e)
{
LockWorkStation();
}
[DllImport("User32.DLL")]
public static extern void LockWorkStation();
private void button1_Click(object sender, EventArgs e)
{
LockWorkStation();
}