exitwindowsex(ewx_shutdown,0);<br>exitwindowsex(ewx_reboot,0);<br>上面的语句需要检测系统还在运行的其他进程!<br><br>应该 : exitwindowsex(ewx_force,0);<br><br>Forces processes to terminate. When this flag is set, Windows does not send <br>the messages WM_QUERYENDSESSION and WM_ENDSESSION to the applications <br>currently running in the system. This can cause the applications to lose data. <br>Therefore, you should only use this flag in an emergency.