首页  编辑  

重新启动计算机对话框

Tags: /超级猛料/VCL/Common.Dialog.通用对话框和控件/   Date Created:

]、。·ˉˇ¨〃々—~‖…’”〕〉》」』〗】∶!"'),.:;?]` 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)