<div class="content" name="SESSIONENUM_LEVEL1" uuid="0c4fde3b-4fdb-4524-8cae-792d0320247a"><p>The SESSIONENUM_LEVEL1 structure contains basic information
about sessions running on a computer.</p><dl>
<dd>
<div><pre> typedef struct _SESSIONENUM_LEVEL1 {
   LONG SessionId;
   LONG State;
   WCHAR Name[33];
 } SESSIONENUM_LEVEL1,
  *PSESSIONENUM_LEVEL1;
</pre></div>
</dd></dl><p><b>SessionId:</b>  An identifier assigned
by the operating system to the session contained in this structure.</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>Name:</b>  A string that contains the
name of the session assigned by <span><a href="c41d3367-04c9-4c93-babf-9b5de834eb29#gt_ffff3f01-8c21-44d3-bbda-0062a1fbda4b" data-linktype="relative-path">Terminal Services</a></span>
followed by the terminating NULL character.</p></div>