Logs off the interactive user, shuts down the system, or shuts down and restarts the system. It sends the WM_QUERYENDSESSION message to all applications to determine if they can be terminated.
http://msdn.microsoft.com/en-us/library/aa376868.aspx
Logs off the interactive user, shuts down the system, or shuts down and restarts the system. It sends the WM_QUERYENDSESSION message to all applications to determine if they can be terminated.
http://msdn.microsoft.com/en-us/library/aa376868.aspx