Handle device info.
This commit is contained in:
parent
5e87949e31
commit
866ba2a7b9
@ -97,8 +97,16 @@ void guac_rdpdr_fs_process_query_size_info(guac_rdpdr_device* device, wStream* i
|
|||||||
void guac_rdpdr_fs_process_query_device_info(guac_rdpdr_device* device, wStream* input_stream,
|
void guac_rdpdr_fs_process_query_device_info(guac_rdpdr_device* device, wStream* input_stream,
|
||||||
int file_id, int completion_id) {
|
int file_id, int completion_id) {
|
||||||
|
|
||||||
/* STUB */
|
wStream* output_stream = guac_rdpdr_new_io_completion(device,
|
||||||
GUAC_RDP_DEBUG(2, "[file_id=%i] STUB", file_id);
|
completion_id, STATUS_SUCCESS, 12);
|
||||||
|
|
||||||
|
GUAC_RDP_DEBUG(2, "[file_id=%i]", file_id);
|
||||||
|
|
||||||
|
Stream_Write_UINT32(output_stream, 8);
|
||||||
|
Stream_Write_UINT32(output_stream, FILE_DEVICE_DISK); /* DeviceType */
|
||||||
|
Stream_Write_UINT32(output_stream, 0); /* Characteristics */
|
||||||
|
|
||||||
|
svc_plugin_send((rdpSvcPlugin*) device->rdpdr, output_stream);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -174,6 +174,12 @@
|
|||||||
#define FILE_DIRECTORY_FILE 0x00000001
|
#define FILE_DIRECTORY_FILE 0x00000001
|
||||||
#define FILE_NON_DIRECTORY_FILE 0x00000040
|
#define FILE_NON_DIRECTORY_FILE 0x00000040
|
||||||
|
|
||||||
|
/*
|
||||||
|
* File device types.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#define FILE_DEVICE_DISK 0x00000007
|
||||||
|
|
||||||
#define SEC_TO_UNIX_EPOCH 11644473600
|
#define SEC_TO_UNIX_EPOCH 11644473600
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user