|
JWSCL Documentation
|
property ConnectState: TWtsConnectStateClass;
ConnectState returns the connection state of the session. Which can be one of the following values:
|
Session State |
Description |
|
WTSActive |
The session is connected, and a user is logged on to the server. |
|
WTSConnected |
The session is connected, but there is no user logged on to the server. |
|
WTSConnectQuery |
The session is in the process of connecting. If this state continues, it indicates a problem with the connection. |
|
WTSShadow |
The session is in the process of remotely controlling another session. |
|
WTSDisconnected |
The user is disconnected from the session, but the session is still attached to the server and can be reconnected at any time. |
|
WTSIdle |
The session is initialized and ready to accept a connection. To optimize the performance of a server, two default (idle) sessions are initialized before any client connections are made. |
|
WTSReset |
The session failed to initialize correctly or could not be terminated, and is not available. If this state continues, it indicates a problem with the connection of the session. |
|
WTSInit |
The session is in the process of initializing. |
On Windows XP, however, the state for session 0 can be misleading because it will be WTSDisconnected even if there is no user logged on. To accurately determine if a user has logged on to session 0, you can use the Username property
http://support.microsoft.com/kb/307642/en-us
|
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!
|