Applies to: desktop apps only
Contains information about a Remote Desktop Services session.
Syntax
typedef struct _WTSINFO {
WTS_CONNECTSTATE_CLASS State;
DWORD SessionId;
DWORD IncomingBytes;
DWORD OutgoingBytes;
DWORD IncomingCompressedBytes;
DWORD OutgoingCompressedBytes;
WCHAR WinStationName;
WCHAR Domain;
WCHAR UserName;
LARGE_INTEGER ConnectTime;
LARGE_INTEGER DisconnectTime;
LARGE_INTEGER LastInputTime;
LARGE_INTEGER LogonTime;
LARGE_INTEGER CurrentTime;
} WTSINFO, *PWTSINFO;
Members
- State
-
A value of the WTS_CONNECTSTATE_CLASS enumeration type that indicates the session's current connection state.
- SessionId
-
The session identifier.
- IncomingBytes
-
Uncompressed Remote Desktop Protocol (RDP) data from the client to the server.
- OutgoingBytes
-
Uncompressed RDP data from the server to the client.
- IncomingCompressedBytes
-
Compressed RDP data from the client to the server.
- OutgoingCompressedBytes
-
Compressed RDP data from the server to the client.
- WinStationName
-
A null-terminated string containing the name of the WinStation for the session.
- Domain
-
The domain that the user belongs to.
- UserName
-
Name of the user who owns the session.
- ConnectTime
-
The most recent client connection time.
- DisconnectTime
-
The last client disconnection time.
- LastInputTime
-
The time of the last user input in the session.
- LogonTime
-
The time that the user logged on to the session.
- CurrentTime
-
The time that the WTSINFO data structure was called.
Requirements
|
Minimum supported client | Windows Vista with SP1 |
|---|---|
|
Minimum supported server | Windows Server 2008 |
|
Header |
|
|
Unicode and ANSI names | WTSINFOW (Unicode) and WTSINFOA (ANSI) |
Send comments about this topic to Microsoft
Build date: 5/5/2012
