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_MY_PC constant.
Restrictions
See also
PC Module, PC_RestartDialog, PC_ShutDown
Examples
PC_PreventShutDown($PC_MY_PC)
© 2004-2008 thinBasic. All rights reserved. | Version 1.7.0.0 | Web Site: http://www.thinbasic.com |