The WM_QUERYENDSESSION message is sent when the user chooses to end <br>the Windows session or when an application calls the ExitWindows <br>function. If any application returns zero, the Windows session is <br>not ended. Windows stops sending WM_QUERYENDSESSION messages as soon<br> as one application returns zero.<br>看帮助{Program Files}/Borland/Borland Shared/MSHelp/tapi.hlp <br>查WM_ENDSESSION WM_QUERYENDSESSION