2.2.4.21 SESSION_ENUM_STRUCT

The SESSION_ENUM_STRUCT structure specifies the information level that the client requests in the NetrSessionEnum method and encapsulates the SESSION_ENUM_UNION union that receives the entries that are enumerated by the server.

 typedef struct _SESSION_ENUM_STRUCT {
   DWORD Level;
   [switch_is(Level)] SESSION_ENUM_UNION SessionInfo;
 } SESSION_ENUM_STRUCT,
  *PSESSION_ENUM_STRUCT,
  *LPSESSION_ENUM_STRUCT;

Level: Specifies the information level of the data. This parameter MUST have one of the following values.

Value

Meaning

0

SESSION_INFO_0_CONTAINER

1

SESSION_INFO_1_CONTAINER

2

SESSION_INFO_2_CONTAINER

10

SESSION_INFO_10_CONTAINER

502

SESSION_INFO_502_CONTAINER

SessionInfo: Contains a session info container whose type is specified by the Level parameter, as shown in the preceding table. The enumerated session entries are returned in this member.