[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Ben Gidley

10/2/2002 12:26:00 PM

Does anyone know of any way to Lock the workstation from
inside a C# app.

Failing that does anyone know how to call the
LockWorkstation windows API to lock the workstation.

Thanks

Ben Gidley
1 Answer

Mattias Sjögren

10/2/2002 10:03:00 PM

0

Ben,

>Failing that does anyone know how to call the
>LockWorkstation windows API to lock the workstation.

[System.Runtime.InteropServices.DllImport("user32.dll")]
static extern bool LockWorkStation();
...
LockWorkStation();



Mattias

===
Mattias Sjögren [MVP] mattias @ mvps.org
http://www.msjogren.n...
Please reply only to the newsgroup.