by ojas (14 Submissions)
Category: Windows API Call/Explanation
Compatability: VB 6.0
Difficulty: Unknown Difficulty
Originally Published: Sat 1st October 2005
Date Added: Mon 8th February 2021
Rating: (1 Votes)
This will shutdown your window(Not for win. XP) one line code
API Declarations
Global Const EWX_SHUTDOWN = 1
Global Const EWX_REBOOT = 2
d = ExitWindowsEx(EWX_SHUTDOWN, 0&)
FOR RESTARTING WINDOWS USE FOLLOWING CODE.
d = ExitWindowsEx(EWX_REBOOT, 0&)