如果 Pipi. 说得有道理的话,就是因为没有给类似杀毒软件这类替换了某些系统进程的<br>进程发送WM_QUERYENDSESSION消息的话,你就先广播一下WM_QUERYENDSESSION消息先,<br><br>SendMessage(HWND_BROADCAST,WM_QUERYENDSESSION, 0, 0);<br>或者直接<br>SendMessage(HWND_BROADCAST,WM_QUIT, 0, 0);<br><br>然后再<br>ExitWindowsEx(EWX_ShutDown or EWx_force,0)<br><br>我没有试,只是瞎掰<br>