Advertisement
5_2007-2008 Windows API Call/ Explanation #177637

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)

AI

AI Summary: This codebase represents a historical implementation of the logic described in the metadata. Our preservation engine analyzes the structure to provide context for modern developers.

Source Code
original-source
Private Sub Command1_Click()
LockWorkStation
End Sub
Original Comments (3)
Recovered from Wayback Machine