Mihir Solanki

mihirsolanki.com

<November 2008>
SuMoTuWeThFrSa
2627282930311
2345678
9101112131415
16171819202122
23242526272829
30123456


Navigation

Links

Subscriptions

Post Categories



Lock your workstation

There are many ways to lock your work station.. Here is the most common way is:

Press Ctl+ Alt+ Delete and click "Lock Computer".

There are 2 other alternatives:

1. Windows Key + L
2. Create an shortcut rundll32.exe user32.dll,LockWorkStation

and programmatically

using System;

using System.Runtime.InteropServices;

[DllImport("user32.dll")]

public static extern void LockWorkStation();

private void button_Click(object sender, System.EventArgs e) {

LockWorkStation();

}


-- Mihir Solanki

PS : Leave your feedbacks/comments here

posted on Wednesday, March 23, 2005 9:58 AM by mihirsolanki





Powered by Dot Net Junkies, by Telligent Systems