I want to be able to execute code and LOCK an NT4 workstation like the LockWorkStation command for Win2k. Is there a function call to make this happen or do you have to fake key strokes to the system?
Not directly, no. LockWorkstation was (officially) added to the API in Windows 2000.
However, you can fake it (sort of) if you're willing to mandate some requirements on screen savers. The basic technique is available from Microsoft's site. To review it, go to
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.