2.2.2.3 QUERY_SESSION_DATA_TYPE

The QUERY_SESSION_DATA_TYPE enumeration specifies the type of session information that can be requested for a particular session running on a terminal server.

 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;

QUERY_SESSION_DATA_MODULE:  Retrieves data about protocol-specific binaries loaded for the given Terminal Services session. The type of the data is PBYTE.

QUERY_SESSION_DATA_WDCONFIG:  Retrieves protocol driver configuration data for the session. The data returned is of type WDCONFIG.

QUERY_SESSION_DATA_VIRTUALDATA:  Retrieves data about virtual channels for the given Terminal Services session. The data returned is of type PBYTE.

QUERY_SESSION_DATA_LICENSE:  Retrieves data about the licensing policies associated with a given Terminal Services session.<42><43>

QUERY_SESSION_DATA_DEVICEID:  Retrieves the device ID of the client connected to a given Terminal Services session. The data returned is of type PBYTE.<44>

QUERY_SESSION_DATA_LICENSE_VALIDATION:  Retrieves the data required to validate the license associated with a given Terminal Services session. The data returned is of type WINSTATIONVALIDATIONINFORMATION.<45>