Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Locking a Workstation

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Hi there does anyone know how I can lock a workstation and ulock it again from code.

By locking I mean preventing any input from the keyboard and stop the mouse working.
 
This one work on Win2k:
#define _WIN32_WINNT 0x0500
#include<windows.h>
int WINAPI WinMain(HINSTANCE,HINSTANCE,LPSTR,int)
{
LockWorkStation();
return 0;
} John Fill
1c.bmp


ivfmd@mail.md
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top