摘要:
MSDN:TheWM_QUERYENDSESSIONmessage is sent when the user chooses to end the session or when an application calls one of the system shutdown functions. If any application returns zero, the session is not ended. The system stops sendingWM_QUERYENDSESSIONmessages as soon as one application returns zero. 阅读全文