PC_RestartDialog
<< Click to Display Table of Contents >> Navigation: ThinBASIC Modules > PC > PC Control functions > PC_RestartDialog |
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)