<div class="content" name="EXECENVDATAEX_LEVEL1" uuid="b4295b0e-c641-40ab-bbdb-ea44323b0804"><p>The <b>EXECENVDATAEX_LEVEL1</b> structure contains
information about sessions running on a computer.</p><dl>
<dd>
<div><pre> 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;
</pre></div>
</dd></dl><p><b>ExecEnvId:</b>  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.</p><p><b>State:</b>  The state of the session, as
specified in section <span><a href="58b06e1d-bfe4-4a2f-90a1-9c9129923e99" data-linktype="relative-path">3.3.4.1.8</a></span>.</p><p><b>AbsSessionId:</b>  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 <b>AbsSessionId</b> is the same
as the value of the <b>ExecEnvId</b> member.</p><p><b>pszSessionName:</b>  A string that contains
the name of the session followed by the terminating NULL character.</p><p><b>pszHostName:</b>  A string that contains
the name of the machine that hosts the session contained in this structure,
followed by the terminating NULL character.</p><p><b>pszUserName:</b>  A string that contains
the name of the user logged onto the session followed by the terminating NULL
character.</p><p><b>pszDomainName:</b>  A string that
contains the <span><a href="c41d3367-04c9-4c93-babf-9b5de834eb29#gt_b0276eb2-4e65-4cf1-a718-e0920a614aca" data-linktype="relative-path">domain</a></span> of the user
logged onto the session followed by the terminating NULL character.</p><p><b>pszFarmName:</b>  A string that contains
the farm name associated with the session followed by the terminating NULL
character.</p></div>