]、。·ˉˇ¨〃々—~‖…’”〕〉》」』〗】∶!"'),.:;?]` function SHRestartSystemMB(h:hwnd;szPrompt:pchar;flag:dword):longint;stdcall;external 'shell32.dll' index 59;
其中
szPrompt:提示信息。
Flag:
Public Const EWX_LOGOFF = 0
Public Const EWX_SHUTDOWN = 1 ' NT: needs SE_SHUTDOWN_NAME privilege (no def prompt)
Public Const EWX_REBOOT = 2 ' NT: needs SE_SHUTDOWN_NAME privilege
Public Const EWX_FORCE = 4
Public Const EWX_POWEROFF = 8 ' NT: needs SE_SHUTDOWN_NAME privilege
Rtn vals: Yes = 6 (vbYes), No = 7 (vbNo)