by liaqatfayyaz (1 Submission)
Category: Windows API Call/Explanation
Compatability: VB 6.0
Difficulty: Unknown Difficulty
Originally Published: Sun 8th July 2001
Date Added: Mon 8th February 2021
Rating: (1 Votes)
Shut down the computer
API Declarations
Private Declare Function ExitWindowsEx Lib "user32" (ByVal dwOptions As Long, ByVal dwReserved As Long) As Long
lngResult = ExitWindowsEx(EWX_SHUTDOWN, 0&)