ShutDownWindows

Parent Previous Next

ShutDownWindows

Function to Shutdown or restart the Windows.


Syntax:

Void ShutDownWindows(bool shutdown, int timeToWait, bool force);
Shutdown or restart the Windows.


Params:

bool shutdown: A Boolean parameter that determines if the windows will shutdown or restart.

     -True: to shutdown the windows

     -False: to restart the windows

int timeToWait: An Integer parameter containing how long in seconds the system will wait to execute the shutdown/restart.

bool force: True to force the shutdown.


Example:


Force shutdown in 10 seconds:

  


SVApplications.ShutDownWindows(true, 10, true);