For some reason, using:
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?
&TH of undefined behavior
Have you tried;
EWX_POWEROFF as the first parameter?
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.