Advertisement
4_2005-2006 Windows API Call/ Explanation #155469

Absolute Windows Shut Down

When you use the ExitWindowsEx API to reboot the system under Windows NT and Windows 2000, the machine does not reboot. 'CAUSE In order to programmatically reboot a Windows NT or Windows 2000 system, the process requires the SE_SHUTDOWN_NAME privilege. By default, Visual Basic applications do not have this privilege and therefore will not reboot the machine. In order to get ExitWindowsEx API to reboot the system under Windows NT or Windows 2000, the SE_SHUTDOWN_NAME privilege must be set. This Code Shows you the best way to reboot force restart or shut down a PC

AI

AI Summary: This codebase represents a historical implementation of the logic described in the metadata. Our preservation engine analyzes the structure to provide context for modern developers.

Source Code
original-source
Upload
Original Comments (3)
Recovered from Wayback Machine