3.6.4.1.3.3 WMS_SESSION_INFO_WS
The WMS_SESSION_INFO_WS complex type is XML containing data about a Windows session.
-
<xsd:complexType name="WMS_SESSION_INFO_WS"> <xsd:sequence> <xsd:element minOccurs="1" maxOccurs="1" name="id" type="xsd:unsignedLong"/> <xsd:element minOccurs="1" maxOccurs="1" name="state" type="xsd:unsignedInt"/> <xsd:element minOccurs="1" maxOccurs="1" name="wsUserName" type="xsd:string"/> <xsd:element minOccurs="1" maxOccurs="1" name="wsDomain" type="xsd:string"/> <xsd:element minOccurs="1" maxOccurs="1" name="wsWinStation" type="xsd:string"/> <xsd:element minOccurs="1" maxOccurs="1" name="fIsRail" type="xsd:boolean"/> </xsd:sequence> </xsd:complexType>
id: Contains the remote desktop session ID.
state: The possible values of the states are as follows:
-
Value
State Name
Meaning
0
WTSActive
A user is logged on to the Windows Station (WinStation). For more information on Windows Station see [MSDN-WinStation].
1
WTSConnected
The WinStation is connected to the client.
2
WTSConnectQuery
The WinStation is in the process of connecting to the client.
3
WTSShadow
The WinStation is shadowing another WinStation.
4
WTSDisconnected
The WinStation is active but the client is disconnected.
5
WTSIdle
The WinStation is waiting for a client to connect.
6
WTSListen
The WinStation is listening for a connection. A listener session waits for requests for new client connections. No user is logged on a listener session. A listener session cannot be reset, shadowed, or changed to a regular client session.
7
WTSReset
The WinStation is being reset.
8
WTSDown
The WinStation is down due to an error.
9
WTSInit
The WinStation is initializing.
wsUserName: Contains the user name of the user logged in to the session.
wsDomain: Contains the domain name of the session.