Location: Symbol Reference > Classes > TJwTerminalServer Class > TJwTerminalServer Methods > TJwTerminalServer.Shutdown Method
JWSCL Documentation
ContentsIndexHome
PreviousUpNext
TJwTerminalServer.Shutdown Method
Pascal
procedure Shutdown(AShutdownFlag: DWORD);
Parameters 
Description 
AShutdownFlag: DWORD 
A value defined in the Remarks section. 

Shutdown shuts down (and optionally restarts) the specified terminal server.

The following values can be used with the aShutdownFlag parameter.

Value 
Meaning 
WTS_WSD_LOGOFF 
Forces all client sessions to log off (except the session calling WTSShutdownSystem) and disables any subsequent remote logons. This can be used as a preliminary step before shutting down. Logons will be re-enabled when the terminal services service is restarted. Use this value only on the Terminal Services console. 
WTS_WSD_POWEROFF 
Shuts down the system on the terminal server and, on computers that support software control of AC power, turns off the power. This is equivalent to calling ExitWindowsEx with EWX_SHUTDOWN and EWX_POWEROFF. The calling process must have the SE_SHUTDOWN_NAME privilege enabled. 
WTS_WSD_REBOOT 
Shuts down and then restarts the system on the terminal server. This is equivalent to calling ExitWindowsEx with EWX_REBOOT. The calling process must have the SE_SHUTDOWN_NAME privilege enabled. 
WTS_WSD_SHUTDOWN 
Shuts down the system on the terminal server. This is equivalent to calling the ExitWindowsEx function with EWX_SHUTDOWN. The calling process must have the SE_SHUTDOWN_NAME privilege enabled. 
WTS_WSD_FASTREBOOT 
This value is not supported currently. 
Exceptions 
Description 
will be raised if the call fails. 
Copyright (c) 2010. All rights reserved.
This help was created by Doc-O-Matic sponsored by toolsfactory software inc.
What do you think about this topic? Send feedback!