ExitWindowsEx(EWX_POWEROFF,0) läuft nicht!
-
Hallo!
ExitWindowsEx(EWX_POWEROFF,0) soll das system herunterfahren.
Es geht aber irgendwie nicht.
Vielleicht liegt es an dem SP3? (Bei windows XP)
-
Windows NT: To shut down or restart the system, the calling process must use the AdjustTokenPrivileges function to enable the SE_SHUTDOWN_NAME privilege. For more information about security privileges, see Privileges.
(Hekpfile Win NT)
-
Du könntest Dir ja auch das Beispiel in der MSDN-Doku anschauen.... aber das wäre ja zu einfach...