2.2.2.4.1.2 SESSIONENUM_LEVEL2

The SESSIONENUM_LEVEL2 structure contains information about sessions running on a computer that is more detailed than the information contained in SESSIONENUM_LEVEL1.

 typedef struct _SESSIONENUM_LEVEL2 {
   LONG SessionId;
   LONG State;
   WCHAR Name[33];
   ULONG Source;
   BOOL bFullDesktop;
   GUID SessionType;
 } SESSIONENUM_LEVEL2,
  *PSESSIONENUM_LEVEL2;

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 followed by the terminating NULL character.

Source: The parameter is always set to zero.

bFullDesktop: The parameter is always set to TRUE.

SessionType: Describes the type of the session.<46>