by Anonymous (267 Submissions)
Category: Windows API Call/Explanation
Compatability: Visual Basic 4.0 (32-bit)
Difficulty: Unknown Difficulty
Originally Published: Tue 24th November 1998
Date Added: Mon 8th February 2021
Rating: (1 Votes)
Reboot the computer
API Declarations
Private Declare Function ExitWindowsEx Lib "user32" (ByVal dwOptions As Long, ByVal dwReserved As Long) As Long
lngResult = ExitWindowsEx(EWX_REBOOT, 0&)