cool...butWhat is the point of returning a variable if your windows is shutting down? ;)
ret& = ExitWindowsEx(EWX_FORCE Or EWX_REBOOT, 0)
The shutdown request may fail.
BTW, as a user-mode process, shutting down is NEVER the last thing the process will do. In most cases, final clean-up should be performed after that, and before your process actually exits.
