Group: System Shutdown - Library: user32
Closing Windows
How to enable the SE_SHUTDOWN_NAME privilege for the application
BOOL ExitWindowsEx(
UINT uFlags, // shutdown operation
DWORD dwReserved // reserved
);
DECLARE INTEGER ExitWindowsEx IN user32;
INTEGER uFlags,;
INTEGER dwReserved
uFlags Specifies the type of shutdown. See all constants listed in an example
dwReserved Reserved; this parameter is ignored
If the function succeeds, the return value is TRUE
Test under Windows Me was ok for EWX_LOGOFF and EWX_REBOOT modes