Lock a Windows NT/2000 workstation

Category:
System/API
Type:
Snippets
Difficulty:
Beginning
Author:
CHRIS HODGE

Version Compatibility: Visual Basic 6

More information:
Used to lock a Windows NT based workstation. If you compile it into an application, you can add a short cut to your desktop and lock you workstation with one click; (see the commented code). Quicker than ctrl-alt-delete.

Instructions: Copy the declarations and code below and paste directly into your VB project.

Declarations:

Code: