ExitWindowsEx(EWX_REBOOT,2) //重新啟動計算機
else if RadioButton4.Checked=true then
ExitWindowsEx(EWX_FORCE,4) //強行關機
else if RadioButton5.Checked=true then
ExitWindowsEx(EWX_POWEROFF,8); //關閉系統并關閉電源
end;
end.
延伸閱讀
文章來源于領測軟件測試網 http://www.kjueaiud.com/