Shutting down machine running Windows 2000
C / C++ / MFC
2
Posts
2
Posters
0
Views
1
Watching
-
When i want to shut down my machine (windows 2000) and i run the
ExitWindowsEx(EWX_SHUTDOWN | EWX_FORCE, 0);
function but nothing happens, what am i doing wrong?
MSDN snip follows :- "Windows NT/2000/XP: To shut down or restart the system, the calling process must use the AdjustTokenPrivileges function to enable the SE_SHUTDOWN_NAME privilege."
Author of the romantic comedy Summer Love and Some more Cricket [New Win] Review by Shog9 Click here for review[NW]