-
Registered User
ExitWindowsEx(EWX_SHUTDOWN, 0);
For some reason, using:
ExitWindowsEx(EWX_SHUTDOWN, 0);
Only logs off of Windows; it doesn't shut it down like the API reference says. Can anyone help me shut down Windows further than logging off?
Thanks,
Chris
-
&TH of undefined behavior
Have you tried;
EWX_POWEROFF as the first parameter?
-
Registered User
D'oh!
Oops, about 1 minute after I posted I decided to try:
ExitWindowsEx(EWX_SHUTDOWN | EWX_POWEROFF, 0);
Works now. This means I made my first useful Windows utility.. it should be available on my website shortly.
Popular pages
Recent additions