<div class="content" name="QUERY_SESSION_DATA_TYPE" uuid="8244f1b1-ce62-46f6-8b62-949abd789b0f"><p>The QUERY_SESSION_DATA_TYPE enumeration specifies the type
of session information that can be requested for a particular session running
on a <span><a href="c41d3367-04c9-4c93-babf-9b5de834eb29#gt_b416f72e-cf04-4d80-bf93-f5753f3b0998" data-linktype="relative-path">terminal
server</a></span>.</p><dl>
<dd>
<div><pre> typedef  enum 
 {
   QUERY_SESSION_DATA_MODULE = 0,
   QUERY_SESSION_DATA_WDCONFIG,
   QUERY_SESSION_DATA_VIRTUALDATA,
   QUERY_SESSION_DATA_LICENSE,
   QUERY_SESSION_DATA_DEVICEID,
   QUERY_SESSION_DATA_LICENSE_VALIDATION
 } QUERY_SESSION_DATA_TYPE;
</pre></div>
</dd></dl><p><b>QUERY_SESSION_DATA_MODULE:  </b>Retrieves data
about protocol-specific binaries loaded for the given <span><a href="c41d3367-04c9-4c93-babf-9b5de834eb29#gt_ffff3f01-8c21-44d3-bbda-0062a1fbda4b" data-linktype="relative-path">Terminal Services</a></span>
session. The type of the data is <span><a href="../ms-dtyp/d7edc080-e499-4219-a837-1bc40b64bb04" data-linktype="relative-path">PBYTE</a></span>.</p><p><b>QUERY_SESSION_DATA_WDCONFIG:  </b>Retrieves
protocol driver configuration data for the session. The data returned is of
type <span><a href="d1bf099b-eb54-4ed9-a723-0b1062dbc128" data-linktype="relative-path">WDCONFIG</a></span>.</p><p><b>QUERY_SESSION_DATA_VIRTUALDATA:  </b>Retrieves
data about virtual channels for the given Terminal Services session. The data returned
is of type PBYTE.</p><p><b>QUERY_SESSION_DATA_LICENSE:  </b>Retrieves data
about the licensing policies associated with a given Terminal Services session.<a id="Appendix_A_Target_43"></a><a aria-label="Product behavior note 43" href="7ce7f717-461b-4f18-9829-6690168c7707#Appendix_A_43" data-linktype="relative-path">&lt;43&gt;</a><a id="Appendix_A_Target_44"></a><a aria-label="Product behavior note 44" href="7ce7f717-461b-4f18-9829-6690168c7707#Appendix_A_44" data-linktype="relative-path">&lt;44&gt;</a></p><p><b>QUERY_SESSION_DATA_DEVICEID:  </b>Retrieves the
device ID of the client connected to a given Terminal Services session. The
data returned is of type PBYTE.<a id="Appendix_A_Target_45"></a><a aria-label="Product behavior note 45" href="7ce7f717-461b-4f18-9829-6690168c7707#Appendix_A_45" data-linktype="relative-path">&lt;45&gt;</a></p><p><b>QUERY_SESSION_DATA_LICENSE_VALIDATION:  </b>Retrieves
the data required to validate the license associated with a given Terminal
Services session. The data returned is of type <span><a href="5c439d8d-b58b-4b0d-a2e5-467aa05f993b" data-linktype="relative-path">WINSTATIONVALIDATIONINFORMATION</a></span>.<a id="Appendix_A_Target_46"></a><a aria-label="Product behavior note 46" href="7ce7f717-461b-4f18-9829-6690168c7707#Appendix_A_46" data-linktype="relative-path">&lt;46&gt;</a></p></div>