PC_PreventShutDown
<< Click to Display Table of Contents >> Navigation: ThinBASIC Modules > PC > PC Control functions > PC_PreventShutDown |
Description
The PC_PreventShutDown() function could be used to interrupt an active shutdown process.
Syntax
PC_PreventShutDown(sComputer AS STRING) AS NUMBER
Returns
Return a number
If the function fails, the return value is zero.
If the function succeeds, the return value is nonzero.
Parameters
sComputer AS STRING
The computer name to prevent the shutdown.
Remarks
In order to prevent the shutdown on the local PC you can use the $PC_SD_MY_PC constant.
Restrictions
See also
PC Module, PC_RestartDialog, PC_ShutDown
Examples
PC_PreventShutDown($PC_SD_MY_PC)