Advertisement
6_2008-2009 Windows API Call/ Explanation #200505

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

ИИ-обзор: 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.

Исходный код
original-source
Upload
Оригинальные комментарии (3)
Восстановлено из Wayback Machine