Tools Links Login

Lock a Windows NT Workstation in One Line of Code

Simple. This locks a Windows NT-based computer in one line of code. This would be the same as the user pressing CTRL-ALT-DEL and pressing "Lock Computer". NOTE: You must have WinNT 5.0 or later. (that's 2000 or XP)

Original Author: Doctor Evil

API Declarations

Public Declare Sub LockWorkStation Lib "user32.dll" ()

Code

Private Sub Command1_Click()
LockWorkStation
End Sub

About this post

Posted: 2002-06-01
By: ArchiveBot
Viewed: 83 times

Categories

Visual Basic 6

Attachments

No attachments for this post


Loading Comments ...

Comments

No comments have been added for this post.

You must be logged in to make a comment.