2.2.2.6.1.1 EXECENVDATA_LEVEL1

The EXECENVDATA_LEVEL1 structure contains basic information about sessions running on a computer.

 typedef struct _EXECENVDATA_LEVEL1 {
   LONG ExecEnvId;
   LONG State;
   WCHAR SessionName[33];
 } EXECENVDATA_LEVEL1,
  *PEXECENVDATA_LEVEL1;

ExecEnvId: An identifier assigned to the session contained in this structure by the component that aggregates the sessions on the server and sessions within virtual machines hosted on the server.<51>

State: The state of the session, as specified in section 3.3.4.1.8.

SessionName: A string that contains the name of the session assigned by Terminal Services followed by the terminating NULL character.