This documentation was styled with a demo skin from the Premium Pack 4 add-on for Help & Manual. The contents of the skin are encrypted and not configurable. You can only publish HM projects with this skin. You cannot edit it or change it.
This version is copyright and may only be used for local testing purposes. It may not be distributed.
Please purchase the full version of the Premium Pack to get the configurable skins and remove this notice. The package will also include the Toolbox configuration utility for Premium Pack skins.
Description
The PC_RestartDialog() function Displays a dialog box that prompts the user to restart the system.
Syntax
PC_RestartDialog(sMsg AS STRING, nFlags AS NUMBER) AS NUMBER
Returns
Return a number
Returns the identifier of the button that was pressed to close the dialog box.
Parameters
sMsg AS STRING
The message to show.
nFlags AS NUMBER
Flags that specifies the type of shutdown.
This parameter must include one of the following values.
%PC_RD_LOGOFF
%PC_RD_POWEROFF
%PC_RD_REBOOT
%PC_RD_SHUTDOWN
This parameter can optionally include the following values.
%PC_RD_FORCE
%PC_RD_FORCEIFHUNG
Remarks
Restrictions
See also
PC Module, PC_PreventShutDown, PC_ShutDown
Examples
PC_RestartDialog("Logout ...", %PC_RD_LOGOFF)