20 #ifndef FREERDP_CHANNEL_CLIPRDR_H
21 #define FREERDP_CHANNEL_CLIPRDR_H
23 #include <freerdp/api.h>
24 #include <freerdp/types.h>
25 #include <freerdp/utils/cliprdr_utils.h>
27 #include <winpr/shell.h>
33 #define CLIPRDR_CHANNEL_NAME "cliprdr"
34 #define CLIPRDR_SVC_CHANNEL_NAME "cliprdr"
39 CB_MONITOR_READY = 0x0001,
40 CB_FORMAT_LIST = 0x0002,
41 CB_FORMAT_LIST_RESPONSE = 0x0003,
42 CB_FORMAT_DATA_REQUEST = 0x0004,
43 CB_FORMAT_DATA_RESPONSE = 0x0005,
44 CB_TEMP_DIRECTORY = 0x0006,
45 CB_CLIP_CAPS = 0x0007,
46 CB_FILECONTENTS_REQUEST = 0x0008,
47 CB_FILECONTENTS_RESPONSE = 0x0009,
48 CB_LOCK_CLIPDATA = 0x000A,
49 CB_UNLOCK_CLIPDATA = 0x000B
53 #define CB_RESPONSE_OK 0x0001
54 #define CB_RESPONSE_FAIL 0x0002
55 #define CB_ASCII_NAMES 0x0004
58 #define CB_CAPSTYPE_GENERAL 0x0001
61 #define CB_CAPSTYPE_GENERAL_LEN 12
64 #define CB_CAPS_VERSION_1 0x00000001
65 #define CB_CAPS_VERSION_2 0x00000002
68 #define CB_USE_LONG_FORMAT_NAMES 0x00000002
69 #define CB_STREAM_FILECLIP_ENABLED 0x00000004
70 #define CB_FILECLIP_NO_FILE_PATHS 0x00000008
71 #define CB_CAN_LOCK_CLIPDATA 0x00000010
72 #define CB_HUGE_FILE_SUPPORT_ENABLED 0x00000020
75 #define FILECONTENTS_SIZE 0x00000001
76 #define FILECONTENTS_RANGE 0x00000002
105 UINT16 capabilitySetType;
106 UINT16 capabilitySetLength;
111 UINT16 capabilitySetType;
112 UINT16 capabilitySetLength;
122 UINT32 cCapabilitiesSets;
175 UINT32 requestedFormatId;
182 const BYTE* requestedFormatData;
193 UINT32 nPositionHigh;
205 const BYTE* requestedData;