WIN2000下如何控制WINDOWS关机,重起,注销的操作啊?(50分)

  • 主题发起人 主题发起人 独孤客
  • 开始时间 开始时间

独孤客

Unregistered / Unconfirmed
GUEST, unregistred user!
WIN2000下如何控制WINDOWS关机,重起,注销的操作啊?
 
http://www.delphibbs.com/delphibbs/dispq.asp?lid=818372<br>看看吧,我正在試驗。
 
BOOL ExitWindowsEx(<br><br>&nbsp; &nbsp; UINT uFlags, // shutdown operation『 这个参数』<br>&nbsp; &nbsp; DWORD dwReserved // reserved<br>&nbsp; &nbsp;);
 
只有关机的啊, 其他的有没有?
 
完颜康,能不能再说的详细一点,最好给个例子
 
Value <br><br>EWX_POWEROFF Shuts down the system and turns off the power. The system must support the power-off feature.<br>EWX_REBOOT Shuts down the system and then restarts the system. <br>EWX_LOGOFF Shuts down all processes running in the security context of the process that called the ExitWindowsEx function. Then it logs the user off.<br><br>&nbsp; ExitWindowsEx(EWX_LOGOFF, 0);『 注销』<br>&nbsp; ExitWindowsEx(EWX_REBOOT, 0);重起<br>&nbsp; ExitWindowsEx(EWX_POWEROFF, 0);关机<br><br><br>
 
up<br>下回吧,这次没准备
 
EWX_FORCE &nbsp; //強制關機,不發信息給其它程序<br>EWX_LOGOFF &nbsp;//注銷<br>EWX_POWEROFF &nbsp;//關機并關電源<br>EWX_REBOOT &nbsp;//重新起動<br>EWX_SHUTDOWN &nbsp;//安全關機,會保存當前狀態 <br><br>例子: ExitWindowsEx( EWX_FORCE or EWX_SHUTDOWN, 0 );
 
多人接受答案了。
 
后退
顶部