--- sourceforge.net/trunk/rdesktop/constants.h 2004/11/03 13:56:52 795 +++ sourceforge.net/branches/seamlessrdp-branch/rdesktop/constants.h 2006/03/07 08:17:41 1058 @@ -1,7 +1,7 @@ /* rdesktop: A Remote Desktop Protocol client. Miscellaneous protocol constants - Copyright (C) Matthew Chapman 1999-2002 + Copyright (C) Matthew Chapman 1999-2005 This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -21,6 +21,9 @@ /* TCP port for Remote Desktop Protocol */ #define TCP_PORT_RDP 3389 +#define DEFAULT_CODEPAGE "UTF-8" +#define WINDOWS_CODEPAGE "UTF-16LE" + /* ISO PDU codes */ enum ISO_PDU_CODE { @@ -66,6 +69,7 @@ #define SEC_ENCRYPT 0x0008 #define SEC_LOGON_INFO 0x0040 #define SEC_LICENCE_NEG 0x0080 +#define SEC_REDIRECT_ENCRYPT 0x0C00 #define SEC_TAG_SRV_INFO 0x0c01 #define SEC_TAG_SRV_CRYPT 0x0c02 @@ -103,6 +107,7 @@ { RDP_PDU_DEMAND_ACTIVE = 1, RDP_PDU_CONFIRM_ACTIVE = 3, + RDP_PDU_REDIRECT = 4, /* MS Server 2003 Session Redirect */ RDP_PDU_DEACTIVATE = 6, RDP_PDU_DATA = 7 }; @@ -115,8 +120,10 @@ RDP_DATA_PDU_INPUT = 28, RDP_DATA_PDU_SYNCHRONISE = 31, RDP_DATA_PDU_BELL = 34, + RDP_DATA_PDU_CLIENT_WINDOW_STATUS = 35, RDP_DATA_PDU_LOGON = 38, RDP_DATA_PDU_FONT2 = 39, + RDP_DATA_PDU_KEYBOARD_INDICATORS = 41, RDP_DATA_PDU_DISCONNECT = 47 }; @@ -199,6 +206,9 @@ #define TEXT2_VERTICAL 0x04 #define TEXT2_IMPLICIT_X 0x20 +#define ALTERNATE 1 +#define WINDING 2 + /* RDP bitmap cache (version 2) constants */ #define BMPCACHE2_C0_CELLS 0x78 #define BMPCACHE2_C1_CELLS 0x78 @@ -249,8 +259,9 @@ /* Logon flags */ #define RDP_LOGON_AUTO 0x0008 #define RDP_LOGON_NORMAL 0x0033 -#define RDP_COMPRESSION 0x0080 +#define RDP_LOGON_COMPRESSION 0x0080 /* mppc compression with 8kB histroy buffer */ #define RDP_LOGON_BLOB 0x0100 +#define RDP_LOGON_COMPRESSION2 0x0200 /* rdp5 mppc compression with 64kB history buffer */ #define RDP_LOGON_LEAVE_AUDIO 0x2000 #define RDP5_DISABLE_NOTHING 0x00 @@ -262,10 +273,13 @@ #define RDP5_NO_CURSORSETTINGS 0x40 /* disables cursor blinking */ /* compression types */ +#define RDP_MPPC_BIG 0x01 #define RDP_MPPC_COMPRESSED 0x20 #define RDP_MPPC_RESET 0x40 #define RDP_MPPC_FLUSH 0x80 -#define RDP_MPPC_DICT_SIZE 8192 +#define RDP_MPPC_DICT_SIZE 65536 + +#define RDP5_COMPRESSED 0x80 /* Keymap flags */ #define MapRightShiftMask (1<<0)