21 |
/* TCP port for Remote Desktop Protocol */ |
/* TCP port for Remote Desktop Protocol */ |
22 |
#define TCP_PORT_RDP 3389 |
#define TCP_PORT_RDP 3389 |
23 |
|
|
24 |
|
#define DEFAULT_CODEPAGE "UTF-8" |
25 |
|
#define WINDOWS_CODEPAGE "UTF-16LE" |
26 |
|
|
27 |
/* ISO PDU codes */ |
/* ISO PDU codes */ |
28 |
enum ISO_PDU_CODE |
enum ISO_PDU_CODE |
29 |
{ |
{ |
69 |
#define SEC_ENCRYPT 0x0008 |
#define SEC_ENCRYPT 0x0008 |
70 |
#define SEC_LOGON_INFO 0x0040 |
#define SEC_LOGON_INFO 0x0040 |
71 |
#define SEC_LICENCE_NEG 0x0080 |
#define SEC_LICENCE_NEG 0x0080 |
72 |
|
#define SEC_REDIRECT_ENCRYPT 0x0C00 |
73 |
|
|
74 |
#define SEC_TAG_SRV_INFO 0x0c01 |
#define SEC_TAG_SRV_INFO 0x0c01 |
75 |
#define SEC_TAG_SRV_CRYPT 0x0c02 |
#define SEC_TAG_SRV_CRYPT 0x0c02 |
107 |
{ |
{ |
108 |
RDP_PDU_DEMAND_ACTIVE = 1, |
RDP_PDU_DEMAND_ACTIVE = 1, |
109 |
RDP_PDU_CONFIRM_ACTIVE = 3, |
RDP_PDU_CONFIRM_ACTIVE = 3, |
110 |
|
RDP_PDU_REDIRECT = 4, /* MS Server 2003 Session Redirect */ |
111 |
RDP_PDU_DEACTIVATE = 6, |
RDP_PDU_DEACTIVATE = 6, |
112 |
RDP_PDU_DATA = 7 |
RDP_PDU_DATA = 7 |
113 |
}; |
}; |
120 |
RDP_DATA_PDU_INPUT = 28, |
RDP_DATA_PDU_INPUT = 28, |
121 |
RDP_DATA_PDU_SYNCHRONISE = 31, |
RDP_DATA_PDU_SYNCHRONISE = 31, |
122 |
RDP_DATA_PDU_BELL = 34, |
RDP_DATA_PDU_BELL = 34, |
123 |
|
RDP_DATA_PDU_CLIENT_WINDOW_STATUS = 35, |
124 |
RDP_DATA_PDU_LOGON = 38, |
RDP_DATA_PDU_LOGON = 38, |
125 |
RDP_DATA_PDU_FONT2 = 39, |
RDP_DATA_PDU_FONT2 = 39, |
126 |
RDP_DATA_PDU_KEYBOARD_INDICATORS = 41, |
RDP_DATA_PDU_KEYBOARD_INDICATORS = 41, |
206 |
#define TEXT2_VERTICAL 0x04 |
#define TEXT2_VERTICAL 0x04 |
207 |
#define TEXT2_IMPLICIT_X 0x20 |
#define TEXT2_IMPLICIT_X 0x20 |
208 |
|
|
209 |
|
#define ALTERNATE 1 |
210 |
|
#define WINDING 2 |
211 |
|
|
212 |
/* RDP bitmap cache (version 2) constants */ |
/* RDP bitmap cache (version 2) constants */ |
213 |
#define BMPCACHE2_C0_CELLS 0x78 |
#define BMPCACHE2_C0_CELLS 0x78 |
214 |
#define BMPCACHE2_C1_CELLS 0x78 |
#define BMPCACHE2_C1_CELLS 0x78 |
259 |
/* Logon flags */ |
/* Logon flags */ |
260 |
#define RDP_LOGON_AUTO 0x0008 |
#define RDP_LOGON_AUTO 0x0008 |
261 |
#define RDP_LOGON_NORMAL 0x0033 |
#define RDP_LOGON_NORMAL 0x0033 |
262 |
#define RDP_COMPRESSION 0x0080 |
#define RDP_LOGON_COMPRESSION 0x0080 /* mppc compression with 8kB histroy buffer */ |
263 |
#define RDP_LOGON_BLOB 0x0100 |
#define RDP_LOGON_BLOB 0x0100 |
264 |
|
#define RDP_LOGON_COMPRESSION2 0x0200 /* rdp5 mppc compression with 64kB history buffer */ |
265 |
#define RDP_LOGON_LEAVE_AUDIO 0x2000 |
#define RDP_LOGON_LEAVE_AUDIO 0x2000 |
266 |
|
|
267 |
#define RDP5_DISABLE_NOTHING 0x00 |
#define RDP5_DISABLE_NOTHING 0x00 |
273 |
#define RDP5_NO_CURSORSETTINGS 0x40 /* disables cursor blinking */ |
#define RDP5_NO_CURSORSETTINGS 0x40 /* disables cursor blinking */ |
274 |
|
|
275 |
/* compression types */ |
/* compression types */ |
276 |
|
#define RDP_MPPC_BIG 0x01 |
277 |
#define RDP_MPPC_COMPRESSED 0x20 |
#define RDP_MPPC_COMPRESSED 0x20 |
278 |
#define RDP_MPPC_RESET 0x40 |
#define RDP_MPPC_RESET 0x40 |
279 |
#define RDP_MPPC_FLUSH 0x80 |
#define RDP_MPPC_FLUSH 0x80 |
280 |
#define RDP_MPPC_DICT_SIZE 8192 |
#define RDP_MPPC_DICT_SIZE 65536 |
281 |
|
|
282 |
|
#define RDP5_COMPRESSED 0x80 |
283 |
|
|
284 |
/* Keymap flags */ |
/* Keymap flags */ |
285 |
#define MapRightShiftMask (1<<0) |
#define MapRightShiftMask (1<<0) |