2.2.1.9 WINSTATIONSTATECLASS
The WINSTATIONSTATECLASS enumeration represents the current state of a session.
-
typedef enum _WINSTATIONSTATECLASS { State_Active = 0, State_Connected = 1, State_ConnectQuery = 2, State_Shadow = 3, State_Disconnected = 4, State_Idle = 5, State_Listen = 6, State_Reset = 7, State_Down = 8, State_Init = 9 } WINSTATIONSTATECLASS;
State_Active: A user is logged on to a session and the client is connected.
State_Connected: A client is connected to a session but the user has not yet logged on.
State_ConnectQuery: A session is in the process of connecting to a client.
State_Shadow: A session is shadowing another session.
State_Disconnected: A user is logged on to the session but the client is currently disconnected from the server.
State_Idle: A session is waiting for a client to connect to the server.
State_Listen: A listener is waiting for connections from the Terminal Services client.
State_Reset: A session is being reset. As a result, the user is logged off, the session is terminated, and the client is disconnected.<37>
State_Down: A session is currently tearing down or is in the down state, indicating an error.
State_Init: A session is in the process of being initialized.