using System;
using System.Collections;
using System.Data;
using System.Runtime.InteropServices;
public class MainClass {
[ DllImport( "user32.dll" ) ]
private static extern bool LockWorkStation();
[STAThread]
static void Main()
{
LockWorkStation();
}
}