<div class="content"><p> </p><p>The SESSION_INFO_502 structure contains information about
the session, including the name of the computer; the name of the user; open
files, pipes, and devices that are on the computer; the <span><a href="1709f6a7-efb8-4ded-b7ae-5cee9ee36320#gt_60e0e1fa-66fe-41e1-b5e3-ceab97e53506" data-linktype="relative-path">client</a></span>
type; session active and idle times; how the user established the session; and
the name of the transport that the client is using.</p><dl>
<dd>
<div><pre> typedef struct _SESSION_INFO_502 {
   [string] wchar_t* sesi502_cname;
   [string] wchar_t* sesi502_username;
   DWORD sesi502_num_opens;
   DWORD sesi502_time;
   DWORD sesi502_idle_time;
   DWORD sesi502_user_flags;
   [string] wchar_t* sesi502_cltype_name;
   [string] wchar_t* sesi502_transport;
 } SESSION_INFO_502,
  *PSESSION_INFO_502,
  *LPSESSION_INFO_502;
</pre></div>
</dd></dl><p><b>sesi502_cname:</b>  A pointer to a
null-terminated Unicode UTF-16 <span><a href="1709f6a7-efb8-4ded-b7ae-5cee9ee36320#gt_4d5d5403-372f-4f9f-8d7a-65c310c807d9" data-linktype="relative-path">Internet host name</a></span>
or <span><a href="1709f6a7-efb8-4ded-b7ae-5cee9ee36320#gt_150cc108-7e58-4fdb-957d-2a3734ba15f5" data-linktype="relative-path">NetBIOS
host name</a></span> of the computer that established the session.</p><p><b>sesi502_username:</b>  A pointer to a
null-terminated Unicode UTF-16 string that specifies the name of the user who
established the session.</p><p><b>sesi502_num_opens:</b>  Specifies the
number of files, devices, and pipes that were opened during the session.</p><p><b>sesi502_time:</b>  Specifies the number
of seconds the session has been active.</p><p><b>sesi502_idle_time:</b>  Specifies the
number of seconds the session has been idle.</p><p><b>sesi502_user_flags:</b>  Specifies a
value that describes how the user established the session. This member MUST be
a combination of one or more of the values that are listed in section <span><a href="d5369e4e-cdcd-4d77-aab6-d35b90e676ed" data-linktype="relative-path">2.2.2.3</a></span>.</p><p><b>sesi502_cltype_name:</b>  A pointer to a
null-terminated Unicode UTF-16 string that specifies the type of client that
established the session. The <span><a href="1709f6a7-efb8-4ded-b7ae-5cee9ee36320#gt_434b0234-e970-4e8c-bdfa-e16a30d96703" data-linktype="relative-path">server</a></span> simply stores
this string, as specified in section <span><a href="e14094cc-247e-4704-bbf2-b9aca7904513" data-linktype="relative-path">2.2.2.1</a></span>, and its
value does not modify the behavior of the protocol.<a id="Appendix_A_Target_10"></a><a aria-label="Product behavior note 10" href="ebb74ff2-abb1-4e1b-a76a-563a5cbbea9a#Appendix_A_10" data-linktype="relative-path">&lt;10&gt;</a></p><p><b>sesi502_transport:</b>  Specifies the
name of the transport that the client is using to communicate with the server.</p></div>