Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Indicates the state of a session.
Syntax
typedef enum _TSSESSION_STATE {
STATE_INVALID = -1,
STATE_ACTIVE,
STATE_CONNECTED,
STATE_CONNECTQUERY,
STATE_SHADOW,
STATE_DISCONNECTED,
STATE_IDLE,
STATE_LISTEN,
STATE_RESET,
STATE_DOWN,
STATE_INIT,
STATE_MAX
} TSSESSION_STATE;
Constants
STATE_INVALIDValue: -1 The session state is not valid. |
STATE_ACTIVEThe user is logged on to WinStation. |
STATE_CONNECTEDWinStation is connected to the client (session reconnected). |
STATE_CONNECTQUERYIn the process of connecting to the client (session reconnect pending). |
STATE_SHADOWShadowing another WinStation. |
STATE_DISCONNECTEDWinStation is active but the client is disconnected. |
STATE_IDLEWaiting for the client to connect. |
STATE_LISTENWinStation is listening for a connection. |
STATE_RESETWinStation is being reset (session logged off). |
STATE_DOWNWinStation is down due to error. |
STATE_INITWinStation is initializing. |
STATE_MAX |
Requirements
| Requirement | Value |
|---|---|
| Minimum supported client | None supported |
| Minimum supported server | Windows Server 2008 R2 |
| Header | sessdirpublictypes.h |