by Sudhakar Bhatt (1 Submission)
Category: Windows API Call/Explanation
Compatability: VB 6.0
Difficulty: Unknown Difficulty
Originally Published: Wed 23rd February 2005
Date Added: Mon 8th February 2021
Rating:
(1 Votes)
Computer Reboot
API Declarations
Private Declare Function ExitWindowsEx Lib "user32" (ByVal dwOptions As Long, ByVal dwReserved As Long) As Long
'reboot the computer
lngResult = ExitWindowsEx(EWX_REBOOT, 0&)