2.2.2.4.1.1 SESSIONENUM_LEVEL1
The SESSIONENUM_LEVEL1 structure contains basic information about sessions running on a computer.
-
typedef struct _SESSIONENUM_LEVEL1 { LONG SessionId; LONG State; WCHAR Name[33]; } SESSIONENUM_LEVEL1, *PSESSIONENUM_LEVEL1;
SessionId: An identifier assigned by the operating system to the session contained in this structure.
State: The state of the session, as specified in section 3.3.4.1.8.
Name: A string that contains the name of the session assigned by Terminal Services followed by the terminating NULL character.