
Code to lock Windows NT workstation
I think you're looking for ExitWindowsEx:
http://msdn.microsoft.com/library/sdkdoc/sysmgmt/shutdown_3ago.htm
Quote:
> Is there an API function or VB code to lock an NT workstation, as if
the
> user had hit CTRL-ALT-DEL and then selected Lock Computer?
> Thanks,
> Josh