Asp Forum
Home
|
Login
|
Register
|
Search
Forums
>
microsoft.public.dotnet.framework.sdk
Lockworkstation
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.
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
Lockworkstation
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password