2.2.2.5 PSESSIONENUM_EX
The PSESSIONENUM_EX is a pointer to a structure containing information about the sessions running on the terminal server. It is returned by RpcGetEnumResultEx.
-
typedef struct _SESSIONENUM_EX { DWORD Level; [switch_is(Level)] SessionInfo_Ex Data; } SESSIONENUM_EX, *PSESSIONENUM_EX;
Level: The level of information contained in Data; the valid values are 1, 2, and 3.
-
Value
Meaning
1
The union SessionInfo_Ex has the SessionEnum_Level1 structure.
2
The union SessionInfo_Ex has the SessionEnum_Level2 structure.
3
The union SessionInfo_Ex has the SessionEnum_Level3 structure.
Data: Contains information at a specified level of detail about sessions running on a computer. This parameter is of type SessionInfo_Ex. If Level is set to 1, the union SessionInfo_Ex has the SessionEnum_Level1 structure. If Level is set to 2, the union SessionInfo_Ex has the SessionEnum_Level2 structure. If Level is set to 3, the union SessionInfo_Ex has the SessionEnum_Level3 structure.