2.2.2.7.1.1 EXECENVDATAEX_LEVEL1

The EXECENVDATAEX_LEVEL1 structure contains information about sessions running on a computer.

 typedef struct _EXECENVDATAEX_LEVEL1 {
   LONG ExecEnvId;
   LONG State;
   LONG AbsSessionId;
   [string, max_is (256)] LPWSTR pszSessionName;
   [string, max_is (256)] LPWSTR pszHostName;
   [string, max_is (256)] LPWSTR pszUserName;
   [string, max_is (256)] LPWSTR pszDomainName;
   [string, max_is (256)] LPWSTR pszFarmName;
 } EXECENVDATAEX_LEVEL1,
  *PEXECENVDATAEX_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.

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

AbsSessionId: An identifier assigned by the operating system running in the virtual machine to the session contained in this structure. If the session contained in this structure is not running under the virtual machine, the value of AbsSessionId is the same as the value of the ExecEnvId member.

pszSessionName: A string that contains the name of the session followed by the terminating NULL character.

pszHostName: A string that contains the name of the machine that hosts the session contained in this structure, followed by the terminating NULL character.

pszUserName: A string that contains the name of the user logged onto the session followed by the terminating NULL character.

pszDomainName: A string that contains the domain of the user logged onto the session followed by the terminating NULL character.

pszFarmName: A string that contains the farm name associated with the session followed by the terminating NULL character.