Search notes:

user32.dll: LockWorkStation

The WinAPI function LockWorkStation() locks a workstation's display. The display can then only be opened again by entering a user's password. Thus, a locked display protects the system from unauthorized use.
Ways to lock the workstation:
LockWorkStation is defined in WinUser.h:
#if(_WIN32_WINNT >= 0x0500)
WINUSERAPI
BOOL
WINAPI
LockWorkStation(
    VOID);
#endif /* _WIN32_WINNT >= 0x0500 */

Index