Send drive capability.

This commit is contained in:
Michael Jumper 2013-07-25 13:23:56 -07:00
parent f07cd58707
commit 5efda4d328
2 changed files with 12 additions and 1 deletions

View File

@ -104,7 +104,7 @@ static void guac_rdpdr_send_client_capability(guac_rdpdrPlugin* rdpdr) {
Stream_Write_UINT16(output_stream, PAKID_CORE_CLIENT_CAPABILITY); Stream_Write_UINT16(output_stream, PAKID_CORE_CLIENT_CAPABILITY);
/* Capability count + padding */ /* Capability count + padding */
Stream_Write_UINT16(output_stream, 2); Stream_Write_UINT16(output_stream, 3);
Stream_Write_UINT16(output_stream, 0); /* Padding */ Stream_Write_UINT16(output_stream, 0); /* Padding */
/* General capability header */ /* General capability header */
@ -132,6 +132,11 @@ static void guac_rdpdr_send_client_capability(guac_rdpdrPlugin* rdpdr) {
Stream_Write_UINT16(output_stream, 8); Stream_Write_UINT16(output_stream, 8);
Stream_Write_UINT32(output_stream, PRINT_CAPABILITY_VERSION_01); Stream_Write_UINT32(output_stream, PRINT_CAPABILITY_VERSION_01);
/* Drive support header */
Stream_Write_UINT16(output_stream, CAP_DRIVE_TYPE);
Stream_Write_UINT16(output_stream, 8);
Stream_Write_UINT32(output_stream, DRIVE_CAPABILITY_VERSION_02);
svc_plugin_send((rdpSvcPlugin*) rdpdr, output_stream); svc_plugin_send((rdpSvcPlugin*) rdpdr, output_stream);
guac_client_log_info(rdpdr->client, "Capabilities sent."); guac_client_log_info(rdpdr->client, "Capabilities sent.");

View File

@ -124,6 +124,12 @@
#define PRINT_CAPABILITY_VERSION_01 1 #define PRINT_CAPABILITY_VERSION_01 1
/*
* Drive capability header versions.
*/
#define DRIVE_CAPABILITY_VERSION_01 1
#define DRIVE_CAPABILITY_VERSION_02 2
/* /*
* Legal client major version numbers. * Legal client major version numbers.
*/ */