VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Lock a Windows NT Workstation in One Line of Code

Doctor Evil  (5 Submissions)   Windows API Call/Explanation   Visual Basic 3.0   Beginner   Wed 3rd February 2021

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)

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

Rate Lock a Windows NT Workstation in One Line of Code (7(7 Vote))
Lock a Windows NT Workstation in One Line of Code.bas

Lock a Windows NT Workstation in One Line of Code Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters