Export (0) Print
Expand All

WTS_SESSION_INFO structure

Contains information about a client session on a Remote Desktop Session Host (RD Session Host) server.

Syntax


typedef struct _WTS_SESSION_INFO {
  DWORD                  SessionId;
  LPTSTR                 pWinStationName;
  WTS_CONNECTSTATE_CLASS State;
} WTS_SESSION_INFO, *PWTS_SESSION_INFO;

Members

SessionId

Session identifier of the session.

pWinStationName

Pointer to a null-terminated string that contains the WinStation name of this session. The WinStation name is a name that Windows associates with the session, for example, "services", "console", or "RDP-Tcp#0".

State

A value from the WTS_CONNECTSTATE_CLASS enumeration type that indicates the session's current connection state.

Requirements

Minimum supported client

Windows XP

Minimum supported server

Windows Server 2003

Header

Wtsapi32.h

Unicode and ANSI names

WTS_SESSION_INFOW (Unicode) and WTS_SESSION_INFOA (ANSI)

See also

WTSEnumerateSessions
WTS_CONNECTSTATE_CLASS

 

 

Show:
© 2014 Microsoft