2.2.2.4.1.3 SESSIONENUM_LEVEL3

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

 typedef struct _SESSIONENUM_LEVEL3 {
   LONG SessionId;
   LONG State;
   WCHAR Name[33];
   ULONG Source;
   BOOL bFullDesktop;
   GUID SessionType;
   ULONG ProtoDataSize;
   [size_is(ProtoDataSize)] UCHAR* pProtocolData;
 } SESSIONENUM_LEVEL3,
  *PSESSIONENUM_LEVEL3;

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: The parameter is always set to zero.

ProtoDataSize: Size of data, in bytes, contained in the pProtocolData member.

pProtocolData: Data about the protocol status between the terminal server client and server. This data will be of type PROTOCOLSTATUSEX.