ReactOS 0.4.15-dev-8102-g108db8f
constants.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define TCP_PORT_RDP   3389
 
#define DEFAULT_CODEPAGE   "UTF-8"
 
#define WINDOWS_CODEPAGE   "UTF-16LE"
 
#define MCS_CONNECT_INITIAL   0x7f65
 
#define MCS_CONNECT_RESPONSE   0x7f66
 
#define BER_TAG_BOOLEAN   1
 
#define BER_TAG_INTEGER   2
 
#define BER_TAG_OCTET_STRING   4
 
#define BER_TAG_RESULT   10
 
#define MCS_TAG_DOMAIN_PARAMS   0x30
 
#define MCS_GLOBAL_CHANNEL   1003
 
#define MCS_USERCHANNEL_BASE   1001
 
#define SEC_RANDOM_SIZE   32
 
#define SEC_MODULUS_SIZE   64
 
#define SEC_MAX_MODULUS_SIZE   256
 
#define SEC_PADDING_SIZE   8
 
#define SEC_EXPONENT_SIZE   4
 
#define SEC_CLIENT_RANDOM   0x0001
 
#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
 
#define SEC_TAG_SRV_CHANNELS   0x0c03
 
#define SEC_TAG_CLI_INFO   0xc001
 
#define SEC_TAG_CLI_CRYPT   0xc002
 
#define SEC_TAG_CLI_CHANNELS   0xc003
 
#define SEC_TAG_CLI_4   0xc004
 
#define SEC_TAG_PUBKEY   0x0006
 
#define SEC_TAG_KEYSIG   0x0008
 
#define SEC_RSA_MAGIC   0x31415352 /* RSA1 */
 
#define LICENCE_TOKEN_SIZE   10
 
#define LICENCE_HWID_SIZE   20
 
#define LICENCE_SIGNATURE_SIZE   16
 
#define LICENCE_TAG_DEMAND   0x01
 
#define LICENCE_TAG_AUTHREQ   0x02
 
#define LICENCE_TAG_ISSUE   0x03
 
#define LICENCE_TAG_REISSUE   0x04
 
#define LICENCE_TAG_PRESENT   0x12
 
#define LICENCE_TAG_REQUEST   0x13
 
#define LICENCE_TAG_AUTHRESP   0x15
 
#define LICENCE_TAG_RESULT   0xff
 
#define LICENCE_TAG_USER   0x000f
 
#define LICENCE_TAG_HOST   0x0010
 
#define KBD_FLAG_RIGHT   0x0001
 
#define KBD_FLAG_EXT   0x0100
 
#define KBD_FLAG_QUIET   0x1000
 
#define KBD_FLAG_DOWN   0x4000
 
#define KBD_FLAG_UP   0x8000
 
#define KBD_FLAG_SCROLL   0x0001
 
#define KBD_FLAG_NUMLOCK   0x0002
 
#define KBD_FLAG_CAPITAL   0x0004
 
#define RDP_KEYPRESS   0
 
#define RDP_KEYRELEASE   (KBD_FLAG_DOWN | KBD_FLAG_UP)
 
#define MOUSE_FLAG_MOVE   0x0800
 
#define MOUSE_FLAG_BUTTON1   0x1000
 
#define MOUSE_FLAG_BUTTON2   0x2000
 
#define MOUSE_FLAG_BUTTON3   0x4000
 
#define MOUSE_FLAG_BUTTON4   0x0280
 
#define MOUSE_FLAG_BUTTON5   0x0380
 
#define MOUSE_FLAG_DOWN   0x8000
 
#define ROP2_S(rop3)   (rop3 & 0xf)
 
#define ROP2_P(rop3)   ((rop3 & 0x3) | ((rop3 & 0x30) >> 2))
 
#define ROP2_COPY   0xc
 
#define ROP2_XOR   0x6
 
#define ROP2_AND   0x8
 
#define ROP2_NXOR   0x9
 
#define ROP2_OR   0xe
 
#define MIX_TRANSPARENT   0
 
#define MIX_OPAQUE   1
 
#define TEXT2_VERTICAL   0x04
 
#define TEXT2_IMPLICIT_X   0x20
 
#define ALTERNATE   1
 
#define WINDING   2
 
#define BMPCACHE2_C0_CELLS   0x78
 
#define BMPCACHE2_C1_CELLS   0x78
 
#define BMPCACHE2_C2_CELLS   0x150
 
#define BMPCACHE2_NUM_PSTCELLS   0x9f6
 
#define PDU_FLAG_FIRST   0x01
 
#define PDU_FLAG_LAST   0x02
 
#define RDP_CAPSET_GENERAL   1 /* Maps to generalCapabilitySet in T.128 page 138 */
 
#define RDP_CAPLEN_GENERAL   0x18
 
#define OS_MAJOR_TYPE_UNIX   4
 
#define OS_MINOR_TYPE_XSERVER   7
 
#define RDP_CAPSET_BITMAP   2
 
#define RDP_CAPLEN_BITMAP   0x1C
 
#define RDP_CAPSET_ORDER   3
 
#define RDP_CAPLEN_ORDER   0x58
 
#define ORDER_CAP_NEGOTIATE   2
 
#define ORDER_CAP_NOSUPPORT   4
 
#define RDP_CAPSET_BMPCACHE   4
 
#define RDP_CAPLEN_BMPCACHE   0x28
 
#define RDP_CAPSET_CONTROL   5
 
#define RDP_CAPLEN_CONTROL   0x0C
 
#define RDP_CAPSET_ACTIVATE   7
 
#define RDP_CAPLEN_ACTIVATE   0x0C
 
#define RDP_CAPSET_POINTER   8
 
#define RDP_CAPLEN_POINTER   0x08
 
#define RDP_CAPSET_SHARE   9
 
#define RDP_CAPLEN_SHARE   0x08
 
#define RDP_CAPSET_COLCACHE   10
 
#define RDP_CAPLEN_COLCACHE   0x08
 
#define RDP_CAPSET_BMPCACHE2   19
 
#define RDP_CAPLEN_BMPCACHE2   0x28
 
#define BMPCACHE2_FLAG_PERSIST   ((uint32)1<<31)
 
#define RDP_SOURCE   "MSTSC"
 
#define RDP_LOGON_AUTO   0x0008
 
#define RDP_LOGON_NORMAL   0x0033
 
#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
 
#define RDP5_NO_WALLPAPER   0x01
 
#define RDP5_NO_FULLWINDOWDRAG   0x02
 
#define RDP5_NO_MENUANIMATIONS   0x04
 
#define RDP5_NO_THEMING   0x08
 
#define RDP5_NO_CURSOR_SHADOW   0x20
 
#define RDP5_NO_CURSORSETTINGS   0x40 /* disables cursor blinking */
 
#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   65536
 
#define RDP5_COMPRESSED   0x80
 
#define MapRightShiftMask   (1<<0)
 
#define MapLeftShiftMask   (1<<1)
 
#define MapShiftMask   (MapRightShiftMask | MapLeftShiftMask)
 
#define MapRightAltMask   (1<<2)
 
#define MapLeftAltMask   (1<<3)
 
#define MapAltGrMask   MapRightAltMask
 
#define MapRightCtrlMask   (1<<4)
 
#define MapLeftCtrlMask   (1<<5)
 
#define MapCtrlMask   (MapRightCtrlMask | MapLeftCtrlMask)
 
#define MapRightWinMask   (1<<6)
 
#define MapLeftWinMask   (1<<7)
 
#define MapWinMask   (MapRightWinMask | MapLeftWinMask)
 
#define MapNumLockMask   (1<<8)
 
#define MapCapsLockMask   (1<<9)
 
#define MapLocalStateMask   (1<<10)
 
#define MapInhibitMask   (1<<11)
 
#define MASK_ADD_BITS(var, mask)   (var |= mask)
 
#define MASK_REMOVE_BITS(var, mask)   (var &= ~mask)
 
#define MASK_HAS_BITS(var, mask)   ((var & mask)>0)
 
#define MASK_CHANGE_BIT(var, mask, active)   (var = ((var & ~mask) | (active ? mask : 0)))
 

Enumerations

enum  ISO_PDU_CODE {
  ISO_PDU_CR = 0xE0 , ISO_PDU_CC = 0xD0 , ISO_PDU_DR = 0x80 , ISO_PDU_DT = 0xF0 ,
  ISO_PDU_ER = 0x70 , ISO_PDU_CR = 0xE0 , ISO_PDU_CC = 0xD0 , ISO_PDU_DR = 0x80 ,
  ISO_PDU_DT = 0xF0 , ISO_PDU_ER = 0x70
}
 
enum  MCS_PDU_TYPE {
  MCS_EDRQ = 1 , MCS_DPUM = 8 , MCS_AURQ = 10 , MCS_AUCF = 11 ,
  MCS_CJRQ = 14 , MCS_CJCF = 15 , MCS_SDRQ = 25 , MCS_SDIN = 26 ,
  MCS_EDRQ = 1 , MCS_DPUM = 8 , MCS_AURQ = 10 , MCS_AUCF = 11 ,
  MCS_CJRQ = 14 , MCS_CJCF = 15 , MCS_SDRQ = 25 , MCS_SDIN = 26
}
 
enum  RDP_PDU_TYPE {
  RDP_PDU_DEMAND_ACTIVE = 1 , RDP_PDU_CONFIRM_ACTIVE = 3 , RDP_PDU_REDIRECT = 4 , RDP_PDU_DEACTIVATE = 6 ,
  RDP_PDU_DATA = 7 , RDP_PDU_ENHANCED_REDIRECT = 10 , RDP_PDU_DEMAND_ACTIVE = 1 , RDP_PDU_CONFIRM_ACTIVE = 3 ,
  RDP_PDU_REDIRECT = 4 , RDP_PDU_DEACTIVATE = 6 , RDP_PDU_DATA = 7
}
 
enum  RDP_DATA_PDU_TYPE {
  RDP_DATA_PDU_UPDATE = 2 , RDP_DATA_PDU_CONTROL = 20 , RDP_DATA_PDU_POINTER = 27 , 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 , RDP_DATA_PDU_AUTORECONNECT_STATUS = 50 ,
  RDP_DATA_PDU_UPDATE = 2 , RDP_DATA_PDU_CONTROL = 20 , RDP_DATA_PDU_POINTER = 27 , 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
}
 
enum  RDP_CONTROL_PDU_TYPE {
  RDP_CTL_REQUEST_CONTROL = 1 , RDP_CTL_GRANT_CONTROL = 2 , RDP_CTL_DETACH = 3 , RDP_CTL_COOPERATE = 4 ,
  RDP_CTL_REQUEST_CONTROL = 1 , RDP_CTL_GRANT_CONTROL = 2 , RDP_CTL_DETACH = 3 , RDP_CTL_COOPERATE = 4
}
 
enum  RDP_UPDATE_PDU_TYPE {
  RDP_UPDATE_ORDERS = 0 , RDP_UPDATE_BITMAP = 1 , RDP_UPDATE_PALETTE = 2 , RDP_UPDATE_SYNCHRONIZE = 3 ,
  RDP_UPDATE_ORDERS = 0 , RDP_UPDATE_BITMAP = 1 , RDP_UPDATE_PALETTE = 2 , RDP_UPDATE_SYNCHRONIZE = 3
}
 
enum  RDP_POINTER_PDU_TYPE {
  RDP_POINTER_SYSTEM = 1 , RDP_POINTER_MOVE = 3 , RDP_POINTER_COLOR = 6 , RDP_POINTER_CACHED = 7 ,
  RDP_POINTER_NEW = 8 , RDP_POINTER_SYSTEM = 1 , RDP_POINTER_MOVE = 3 , RDP_POINTER_COLOR = 6 ,
  RDP_POINTER_CACHED = 7
}
 
enum  RDP_SYSTEM_POINTER_TYPE { RDP_NULL_POINTER = 0 , RDP_DEFAULT_POINTER = 0x7F00 , RDP_NULL_POINTER = 0 , RDP_DEFAULT_POINTER = 0x7F00 }
 
enum  RDP_INPUT_DEVICE {
  RDP_INPUT_SYNCHRONIZE = 0 , RDP_INPUT_CODEPOINT = 1 , RDP_INPUT_VIRTKEY = 2 , RDP_INPUT_SCANCODE = 4 ,
  RDP_INPUT_MOUSE = 0x8001 , RDP_INPUT_SYNCHRONIZE = 0 , RDP_INPUT_CODEPOINT = 1 , RDP_INPUT_VIRTKEY = 2 ,
  RDP_INPUT_SCANCODE = 4 , RDP_INPUT_MOUSE = 0x8001
}
 

Macro Definition Documentation

◆ ALTERNATE

#define ALTERNATE   1

Definition at line 210 of file constants.h.

◆ BER_TAG_BOOLEAN

#define BER_TAG_BOOLEAN   1

Definition at line 53 of file constants.h.

◆ BER_TAG_INTEGER

#define BER_TAG_INTEGER   2

Definition at line 54 of file constants.h.

◆ BER_TAG_OCTET_STRING

#define BER_TAG_OCTET_STRING   4

Definition at line 55 of file constants.h.

◆ BER_TAG_RESULT

#define BER_TAG_RESULT   10

Definition at line 56 of file constants.h.

◆ BMPCACHE2_C0_CELLS

#define BMPCACHE2_C0_CELLS   0x78

Definition at line 214 of file constants.h.

◆ BMPCACHE2_C1_CELLS

#define BMPCACHE2_C1_CELLS   0x78

Definition at line 215 of file constants.h.

◆ BMPCACHE2_C2_CELLS

#define BMPCACHE2_C2_CELLS   0x150

Definition at line 216 of file constants.h.

◆ BMPCACHE2_FLAG_PERSIST

#define BMPCACHE2_FLAG_PERSIST   ((uint32)1<<31)

Definition at line 256 of file constants.h.

◆ BMPCACHE2_NUM_PSTCELLS

#define BMPCACHE2_NUM_PSTCELLS   0x9f6

Definition at line 217 of file constants.h.

◆ DEFAULT_CODEPAGE

#define DEFAULT_CODEPAGE   "UTF-8"

Definition at line 24 of file constants.h.

◆ KBD_FLAG_CAPITAL

#define KBD_FLAG_CAPITAL   0x0004

Definition at line 180 of file constants.h.

◆ KBD_FLAG_DOWN

#define KBD_FLAG_DOWN   0x4000

Definition at line 174 of file constants.h.

◆ KBD_FLAG_EXT

#define KBD_FLAG_EXT   0x0100

Definition at line 172 of file constants.h.

◆ KBD_FLAG_NUMLOCK

#define KBD_FLAG_NUMLOCK   0x0002

Definition at line 179 of file constants.h.

◆ KBD_FLAG_QUIET

#define KBD_FLAG_QUIET   0x1000

Definition at line 173 of file constants.h.

◆ KBD_FLAG_RIGHT

#define KBD_FLAG_RIGHT   0x0001

Definition at line 171 of file constants.h.

◆ KBD_FLAG_SCROLL

#define KBD_FLAG_SCROLL   0x0001

Definition at line 178 of file constants.h.

◆ KBD_FLAG_UP

#define KBD_FLAG_UP   0x8000

Definition at line 175 of file constants.h.

◆ LICENCE_HWID_SIZE

#define LICENCE_HWID_SIZE   20

Definition at line 91 of file constants.h.

◆ LICENCE_SIGNATURE_SIZE

#define LICENCE_SIGNATURE_SIZE   16

Definition at line 92 of file constants.h.

◆ LICENCE_TAG_AUTHREQ

#define LICENCE_TAG_AUTHREQ   0x02

Definition at line 95 of file constants.h.

◆ LICENCE_TAG_AUTHRESP

#define LICENCE_TAG_AUTHRESP   0x15

Definition at line 100 of file constants.h.

◆ LICENCE_TAG_DEMAND

#define LICENCE_TAG_DEMAND   0x01

Definition at line 94 of file constants.h.

◆ LICENCE_TAG_HOST

#define LICENCE_TAG_HOST   0x0010

Definition at line 104 of file constants.h.

◆ LICENCE_TAG_ISSUE

#define LICENCE_TAG_ISSUE   0x03

Definition at line 96 of file constants.h.

◆ LICENCE_TAG_PRESENT

#define LICENCE_TAG_PRESENT   0x12

Definition at line 98 of file constants.h.

◆ LICENCE_TAG_REISSUE

#define LICENCE_TAG_REISSUE   0x04

Definition at line 97 of file constants.h.

◆ LICENCE_TAG_REQUEST

#define LICENCE_TAG_REQUEST   0x13

Definition at line 99 of file constants.h.

◆ LICENCE_TAG_RESULT

#define LICENCE_TAG_RESULT   0xff

Definition at line 101 of file constants.h.

◆ LICENCE_TAG_USER

#define LICENCE_TAG_USER   0x000f

Definition at line 103 of file constants.h.

◆ LICENCE_TOKEN_SIZE

#define LICENCE_TOKEN_SIZE   10

Definition at line 90 of file constants.h.

◆ MapAltGrMask

#define MapAltGrMask   MapRightAltMask

Definition at line 292 of file constants.h.

◆ MapCapsLockMask

#define MapCapsLockMask   (1<<9)

Definition at line 303 of file constants.h.

◆ MapCtrlMask

#define MapCtrlMask   (MapRightCtrlMask | MapLeftCtrlMask)

Definition at line 296 of file constants.h.

◆ MapInhibitMask

#define MapInhibitMask   (1<<11)

Definition at line 307 of file constants.h.

◆ MapLeftAltMask

#define MapLeftAltMask   (1<<3)

Definition at line 291 of file constants.h.

◆ MapLeftCtrlMask

#define MapLeftCtrlMask   (1<<5)

Definition at line 295 of file constants.h.

◆ MapLeftShiftMask

#define MapLeftShiftMask   (1<<1)

Definition at line 287 of file constants.h.

◆ MapLeftWinMask

#define MapLeftWinMask   (1<<7)

Definition at line 299 of file constants.h.

◆ MapLocalStateMask

#define MapLocalStateMask   (1<<10)

Definition at line 305 of file constants.h.

◆ MapNumLockMask

#define MapNumLockMask   (1<<8)

Definition at line 302 of file constants.h.

◆ MapRightAltMask

#define MapRightAltMask   (1<<2)

Definition at line 290 of file constants.h.

◆ MapRightCtrlMask

#define MapRightCtrlMask   (1<<4)

Definition at line 294 of file constants.h.

◆ MapRightShiftMask

#define MapRightShiftMask   (1<<0)

Definition at line 286 of file constants.h.

◆ MapRightWinMask

#define MapRightWinMask   (1<<6)

Definition at line 298 of file constants.h.

◆ MapShiftMask

#define MapShiftMask   (MapRightShiftMask | MapLeftShiftMask)

Definition at line 288 of file constants.h.

◆ MapWinMask

#define MapWinMask   (MapRightWinMask | MapLeftWinMask)

Definition at line 300 of file constants.h.

◆ MASK_ADD_BITS

#define MASK_ADD_BITS (   var,
  mask 
)    (var |= mask)

Definition at line 309 of file constants.h.

◆ MASK_CHANGE_BIT

#define MASK_CHANGE_BIT (   var,
  mask,
  active 
)    (var = ((var & ~mask) | (active ? mask : 0)))

Definition at line 312 of file constants.h.

◆ MASK_HAS_BITS

#define MASK_HAS_BITS (   var,
  mask 
)    ((var & mask)>0)

Definition at line 311 of file constants.h.

◆ MASK_REMOVE_BITS

#define MASK_REMOVE_BITS (   var,
  mask 
)    (var &= ~mask)

Definition at line 310 of file constants.h.

◆ MCS_CONNECT_INITIAL

#define MCS_CONNECT_INITIAL   0x7f65

Definition at line 50 of file constants.h.

◆ MCS_CONNECT_RESPONSE

#define MCS_CONNECT_RESPONSE   0x7f66

Definition at line 51 of file constants.h.

◆ MCS_GLOBAL_CHANNEL

#define MCS_GLOBAL_CHANNEL   1003

Definition at line 59 of file constants.h.

◆ MCS_TAG_DOMAIN_PARAMS

#define MCS_TAG_DOMAIN_PARAMS   0x30

Definition at line 57 of file constants.h.

◆ MCS_USERCHANNEL_BASE

#define MCS_USERCHANNEL_BASE   1001

Definition at line 60 of file constants.h.

◆ MIX_OPAQUE

#define MIX_OPAQUE   1

Definition at line 205 of file constants.h.

◆ MIX_TRANSPARENT

#define MIX_TRANSPARENT   0

Definition at line 204 of file constants.h.

◆ MOUSE_FLAG_BUTTON1

#define MOUSE_FLAG_BUTTON1   0x1000

Definition at line 187 of file constants.h.

◆ MOUSE_FLAG_BUTTON2

#define MOUSE_FLAG_BUTTON2   0x2000

Definition at line 188 of file constants.h.

◆ MOUSE_FLAG_BUTTON3

#define MOUSE_FLAG_BUTTON3   0x4000

Definition at line 189 of file constants.h.

◆ MOUSE_FLAG_BUTTON4

#define MOUSE_FLAG_BUTTON4   0x0280

Definition at line 190 of file constants.h.

◆ MOUSE_FLAG_BUTTON5

#define MOUSE_FLAG_BUTTON5   0x0380

Definition at line 191 of file constants.h.

◆ MOUSE_FLAG_DOWN

#define MOUSE_FLAG_DOWN   0x8000

Definition at line 192 of file constants.h.

◆ MOUSE_FLAG_MOVE

#define MOUSE_FLAG_MOVE   0x0800

Definition at line 186 of file constants.h.

◆ ORDER_CAP_NEGOTIATE

#define ORDER_CAP_NEGOTIATE   2

Definition at line 233 of file constants.h.

◆ ORDER_CAP_NOSUPPORT

#define ORDER_CAP_NOSUPPORT   4

Definition at line 234 of file constants.h.

◆ OS_MAJOR_TYPE_UNIX

#define OS_MAJOR_TYPE_UNIX   4

Definition at line 225 of file constants.h.

◆ OS_MINOR_TYPE_XSERVER

#define OS_MINOR_TYPE_XSERVER   7

Definition at line 226 of file constants.h.

◆ PDU_FLAG_FIRST

#define PDU_FLAG_FIRST   0x01

Definition at line 219 of file constants.h.

◆ PDU_FLAG_LAST

#define PDU_FLAG_LAST   0x02

Definition at line 220 of file constants.h.

◆ RDP5_COMPRESSED

#define RDP5_COMPRESSED   0x80

Definition at line 283 of file constants.h.

◆ RDP5_DISABLE_NOTHING

#define RDP5_DISABLE_NOTHING   0x00

Definition at line 268 of file constants.h.

◆ RDP5_NO_CURSOR_SHADOW

#define RDP5_NO_CURSOR_SHADOW   0x20

Definition at line 273 of file constants.h.

◆ RDP5_NO_CURSORSETTINGS

#define RDP5_NO_CURSORSETTINGS   0x40 /* disables cursor blinking */

Definition at line 274 of file constants.h.

◆ RDP5_NO_FULLWINDOWDRAG

#define RDP5_NO_FULLWINDOWDRAG   0x02

Definition at line 270 of file constants.h.

◆ RDP5_NO_MENUANIMATIONS

#define RDP5_NO_MENUANIMATIONS   0x04

Definition at line 271 of file constants.h.

◆ RDP5_NO_THEMING

#define RDP5_NO_THEMING   0x08

Definition at line 272 of file constants.h.

◆ RDP5_NO_WALLPAPER

#define RDP5_NO_WALLPAPER   0x01

Definition at line 269 of file constants.h.

◆ RDP_CAPLEN_ACTIVATE

#define RDP_CAPLEN_ACTIVATE   0x0C

Definition at line 243 of file constants.h.

◆ RDP_CAPLEN_BITMAP

#define RDP_CAPLEN_BITMAP   0x1C

Definition at line 229 of file constants.h.

◆ RDP_CAPLEN_BMPCACHE

#define RDP_CAPLEN_BMPCACHE   0x28

Definition at line 237 of file constants.h.

◆ RDP_CAPLEN_BMPCACHE2

#define RDP_CAPLEN_BMPCACHE2   0x28

Definition at line 255 of file constants.h.

◆ RDP_CAPLEN_COLCACHE

#define RDP_CAPLEN_COLCACHE   0x08

Definition at line 252 of file constants.h.

◆ RDP_CAPLEN_CONTROL

#define RDP_CAPLEN_CONTROL   0x0C

Definition at line 240 of file constants.h.

◆ RDP_CAPLEN_GENERAL

#define RDP_CAPLEN_GENERAL   0x18

Definition at line 224 of file constants.h.

◆ RDP_CAPLEN_ORDER

#define RDP_CAPLEN_ORDER   0x58

Definition at line 232 of file constants.h.

◆ RDP_CAPLEN_POINTER

#define RDP_CAPLEN_POINTER   0x08

Definition at line 246 of file constants.h.

◆ RDP_CAPLEN_SHARE

#define RDP_CAPLEN_SHARE   0x08

Definition at line 249 of file constants.h.

◆ RDP_CAPSET_ACTIVATE

#define RDP_CAPSET_ACTIVATE   7

Definition at line 242 of file constants.h.

◆ RDP_CAPSET_BITMAP

#define RDP_CAPSET_BITMAP   2

Definition at line 228 of file constants.h.

◆ RDP_CAPSET_BMPCACHE

#define RDP_CAPSET_BMPCACHE   4

Definition at line 236 of file constants.h.

◆ RDP_CAPSET_BMPCACHE2

#define RDP_CAPSET_BMPCACHE2   19

Definition at line 254 of file constants.h.

◆ RDP_CAPSET_COLCACHE

#define RDP_CAPSET_COLCACHE   10

Definition at line 251 of file constants.h.

◆ RDP_CAPSET_CONTROL

#define RDP_CAPSET_CONTROL   5

Definition at line 239 of file constants.h.

◆ RDP_CAPSET_GENERAL

#define RDP_CAPSET_GENERAL   1 /* Maps to generalCapabilitySet in T.128 page 138 */

Definition at line 223 of file constants.h.

◆ RDP_CAPSET_ORDER

#define RDP_CAPSET_ORDER   3

Definition at line 231 of file constants.h.

◆ RDP_CAPSET_POINTER

#define RDP_CAPSET_POINTER   8

Definition at line 245 of file constants.h.

◆ RDP_CAPSET_SHARE

#define RDP_CAPSET_SHARE   9

Definition at line 248 of file constants.h.

◆ RDP_KEYPRESS

#define RDP_KEYPRESS   0

Definition at line 183 of file constants.h.

◆ RDP_KEYRELEASE

#define RDP_KEYRELEASE   (KBD_FLAG_DOWN | KBD_FLAG_UP)

Definition at line 184 of file constants.h.

◆ RDP_LOGON_AUTO

#define RDP_LOGON_AUTO   0x0008

Definition at line 261 of file constants.h.

◆ RDP_LOGON_BLOB

#define RDP_LOGON_BLOB   0x0100

Definition at line 264 of file constants.h.

◆ RDP_LOGON_COMPRESSION

#define RDP_LOGON_COMPRESSION   0x0080 /* mppc compression with 8kB histroy buffer */

Definition at line 263 of file constants.h.

◆ RDP_LOGON_COMPRESSION2

#define RDP_LOGON_COMPRESSION2   0x0200 /* rdp5 mppc compression with 64kB history buffer */

Definition at line 265 of file constants.h.

◆ RDP_LOGON_LEAVE_AUDIO

#define RDP_LOGON_LEAVE_AUDIO   0x2000

Definition at line 266 of file constants.h.

◆ RDP_LOGON_NORMAL

#define RDP_LOGON_NORMAL   0x0033

Definition at line 262 of file constants.h.

◆ RDP_MPPC_BIG

#define RDP_MPPC_BIG   0x01

Definition at line 277 of file constants.h.

◆ RDP_MPPC_COMPRESSED

#define RDP_MPPC_COMPRESSED   0x20

Definition at line 278 of file constants.h.

◆ RDP_MPPC_DICT_SIZE

#define RDP_MPPC_DICT_SIZE   65536

Definition at line 281 of file constants.h.

◆ RDP_MPPC_FLUSH

#define RDP_MPPC_FLUSH   0x80

Definition at line 280 of file constants.h.

◆ RDP_MPPC_RESET

#define RDP_MPPC_RESET   0x40

Definition at line 279 of file constants.h.

◆ RDP_SOURCE

#define RDP_SOURCE   "MSTSC"

Definition at line 258 of file constants.h.

◆ ROP2_AND

#define ROP2_AND   0x8

Definition at line 200 of file constants.h.

◆ ROP2_COPY

#define ROP2_COPY   0xc

Definition at line 198 of file constants.h.

◆ ROP2_NXOR

#define ROP2_NXOR   0x9

Definition at line 201 of file constants.h.

◆ ROP2_OR

#define ROP2_OR   0xe

Definition at line 202 of file constants.h.

◆ ROP2_P

#define ROP2_P (   rop3)    ((rop3 & 0x3) | ((rop3 & 0x30) >> 2))

Definition at line 196 of file constants.h.

◆ ROP2_S

#define ROP2_S (   rop3)    (rop3 & 0xf)

Definition at line 195 of file constants.h.

◆ ROP2_XOR

#define ROP2_XOR   0x6

Definition at line 199 of file constants.h.

◆ SEC_CLIENT_RANDOM

#define SEC_CLIENT_RANDOM   0x0001

Definition at line 69 of file constants.h.

◆ SEC_ENCRYPT

#define SEC_ENCRYPT   0x0008

Definition at line 70 of file constants.h.

◆ SEC_EXPONENT_SIZE

#define SEC_EXPONENT_SIZE   4

Definition at line 67 of file constants.h.

◆ SEC_LICENCE_NEG

#define SEC_LICENCE_NEG   0x0080

Definition at line 72 of file constants.h.

◆ SEC_LOGON_INFO

#define SEC_LOGON_INFO   0x0040

Definition at line 71 of file constants.h.

◆ SEC_MAX_MODULUS_SIZE

#define SEC_MAX_MODULUS_SIZE   256

Definition at line 65 of file constants.h.

◆ SEC_MODULUS_SIZE

#define SEC_MODULUS_SIZE   64

Definition at line 64 of file constants.h.

◆ SEC_PADDING_SIZE

#define SEC_PADDING_SIZE   8

Definition at line 66 of file constants.h.

◆ SEC_RANDOM_SIZE

#define SEC_RANDOM_SIZE   32

Definition at line 63 of file constants.h.

◆ SEC_REDIRECT_ENCRYPT

#define SEC_REDIRECT_ENCRYPT   0x0C00

Definition at line 73 of file constants.h.

◆ SEC_RSA_MAGIC

#define SEC_RSA_MAGIC   0x31415352 /* RSA1 */

Definition at line 87 of file constants.h.

◆ SEC_TAG_CLI_4

#define SEC_TAG_CLI_4   0xc004

Definition at line 82 of file constants.h.

◆ SEC_TAG_CLI_CHANNELS

#define SEC_TAG_CLI_CHANNELS   0xc003

Definition at line 81 of file constants.h.

◆ SEC_TAG_CLI_CRYPT

#define SEC_TAG_CLI_CRYPT   0xc002

Definition at line 80 of file constants.h.

◆ SEC_TAG_CLI_INFO

#define SEC_TAG_CLI_INFO   0xc001

Definition at line 79 of file constants.h.

◆ SEC_TAG_KEYSIG

#define SEC_TAG_KEYSIG   0x0008

Definition at line 85 of file constants.h.

◆ SEC_TAG_PUBKEY

#define SEC_TAG_PUBKEY   0x0006

Definition at line 84 of file constants.h.

◆ SEC_TAG_SRV_CHANNELS

#define SEC_TAG_SRV_CHANNELS   0x0c03

Definition at line 77 of file constants.h.

◆ SEC_TAG_SRV_CRYPT

#define SEC_TAG_SRV_CRYPT   0x0c02

Definition at line 76 of file constants.h.

◆ SEC_TAG_SRV_INFO

#define SEC_TAG_SRV_INFO   0x0c01

Definition at line 75 of file constants.h.

◆ TCP_PORT_RDP

#define TCP_PORT_RDP   3389

Definition at line 22 of file constants.h.

◆ TEXT2_IMPLICIT_X

#define TEXT2_IMPLICIT_X   0x20

Definition at line 208 of file constants.h.

◆ TEXT2_VERTICAL

#define TEXT2_VERTICAL   0x04

Definition at line 207 of file constants.h.

◆ WINDING

#define WINDING   2

Definition at line 211 of file constants.h.

◆ WINDOWS_CODEPAGE

#define WINDOWS_CODEPAGE   "UTF-16LE"

Definition at line 25 of file constants.h.

Enumeration Type Documentation

◆ ISO_PDU_CODE

Enumerator
ISO_PDU_CR 
ISO_PDU_CC 
ISO_PDU_DR 
ISO_PDU_DT 
ISO_PDU_ER 
ISO_PDU_CR 
ISO_PDU_CC 
ISO_PDU_DR 
ISO_PDU_DT 
ISO_PDU_ER 

Definition at line 28 of file constants.h.

29{
30 ISO_PDU_CR = 0xE0, /* Connection Request */
31 ISO_PDU_CC = 0xD0, /* Connection Confirm */
32 ISO_PDU_DR = 0x80, /* Disconnect Request */
33 ISO_PDU_DT = 0xF0, /* Data */
34 ISO_PDU_ER = 0x70 /* Error */
35};
@ ISO_PDU_CC
Definition: constants.h:30
@ ISO_PDU_ER
Definition: constants.h:33
@ ISO_PDU_CR
Definition: constants.h:29
@ ISO_PDU_DT
Definition: constants.h:32
@ ISO_PDU_DR
Definition: constants.h:31

◆ MCS_PDU_TYPE

Enumerator
MCS_EDRQ 
MCS_DPUM 
MCS_AURQ 
MCS_AUCF 
MCS_CJRQ 
MCS_CJCF 
MCS_SDRQ 
MCS_SDIN 
MCS_EDRQ 
MCS_DPUM 
MCS_AURQ 
MCS_AUCF 
MCS_CJRQ 
MCS_CJCF 
MCS_SDRQ 
MCS_SDIN 

Definition at line 38 of file constants.h.

39{
40 MCS_EDRQ = 1, /* Erect Domain Request */
41 MCS_DPUM = 8, /* Disconnect Provider Ultimatum */
42 MCS_AURQ = 10, /* Attach User Request */
43 MCS_AUCF = 11, /* Attach User Confirm */
44 MCS_CJRQ = 14, /* Channel Join Request */
45 MCS_CJCF = 15, /* Channel Join Confirm */
46 MCS_SDRQ = 25, /* Send Data Request */
47 MCS_SDIN = 26 /* Send Data Indication */
48};
@ MCS_SDIN
Definition: constants.h:71
@ MCS_CJCF
Definition: constants.h:69
@ MCS_AURQ
Definition: constants.h:66
@ MCS_CJRQ
Definition: constants.h:68
@ MCS_EDRQ
Definition: constants.h:64
@ MCS_AUCF
Definition: constants.h:67
@ MCS_DPUM
Definition: constants.h:65
@ MCS_SDRQ
Definition: constants.h:70

◆ RDP_CONTROL_PDU_TYPE

Enumerator
RDP_CTL_REQUEST_CONTROL 
RDP_CTL_GRANT_CONTROL 
RDP_CTL_DETACH 
RDP_CTL_COOPERATE 
RDP_CTL_REQUEST_CONTROL 
RDP_CTL_GRANT_CONTROL 
RDP_CTL_DETACH 
RDP_CTL_COOPERATE 

Definition at line 131 of file constants.h.

132{
135 RDP_CTL_DETACH = 3,
137};
@ RDP_CTL_GRANT_CONTROL
Definition: constants.h:201
@ RDP_CTL_COOPERATE
Definition: constants.h:203
@ RDP_CTL_REQUEST_CONTROL
Definition: constants.h:200
@ RDP_CTL_DETACH
Definition: constants.h:202

◆ RDP_DATA_PDU_TYPE

Enumerator
RDP_DATA_PDU_UPDATE 
RDP_DATA_PDU_CONTROL 
RDP_DATA_PDU_POINTER 
RDP_DATA_PDU_INPUT 
RDP_DATA_PDU_SYNCHRONISE 
RDP_DATA_PDU_BELL 
RDP_DATA_PDU_CLIENT_WINDOW_STATUS 
RDP_DATA_PDU_LOGON 
RDP_DATA_PDU_FONT2 
RDP_DATA_PDU_KEYBOARD_INDICATORS 
RDP_DATA_PDU_DISCONNECT 
RDP_DATA_PDU_AUTORECONNECT_STATUS 
RDP_DATA_PDU_UPDATE 
RDP_DATA_PDU_CONTROL 
RDP_DATA_PDU_POINTER 
RDP_DATA_PDU_INPUT 
RDP_DATA_PDU_SYNCHRONISE 
RDP_DATA_PDU_BELL 
RDP_DATA_PDU_CLIENT_WINDOW_STATUS 
RDP_DATA_PDU_LOGON 
RDP_DATA_PDU_FONT2 
RDP_DATA_PDU_KEYBOARD_INDICATORS 
RDP_DATA_PDU_DISCONNECT 

Definition at line 116 of file constants.h.

117{
129};
@ RDP_DATA_PDU_CLIENT_WINDOW_STATUS
Definition: constants.h:176
@ RDP_DATA_PDU_FONT2
Definition: constants.h:178
@ RDP_DATA_PDU_POINTER
Definition: constants.h:172
@ RDP_DATA_PDU_INPUT
Definition: constants.h:173
@ RDP_DATA_PDU_BELL
Definition: constants.h:175
@ RDP_DATA_PDU_CONTROL
Definition: constants.h:171
@ RDP_DATA_PDU_KEYBOARD_INDICATORS
Definition: constants.h:179
@ RDP_DATA_PDU_SYNCHRONISE
Definition: constants.h:174
@ RDP_DATA_PDU_LOGON
Definition: constants.h:177
@ RDP_DATA_PDU_DISCONNECT
Definition: constants.h:180
@ RDP_DATA_PDU_UPDATE
Definition: constants.h:170

◆ RDP_INPUT_DEVICE

Enumerator
RDP_INPUT_SYNCHRONIZE 
RDP_INPUT_CODEPOINT 
RDP_INPUT_VIRTKEY 
RDP_INPUT_SCANCODE 
RDP_INPUT_MOUSE 
RDP_INPUT_SYNCHRONIZE 
RDP_INPUT_CODEPOINT 
RDP_INPUT_VIRTKEY 
RDP_INPUT_SCANCODE 
RDP_INPUT_MOUSE 

Definition at line 161 of file constants.h.

162{
167 RDP_INPUT_MOUSE = 0x8001
168};
@ RDP_INPUT_VIRTKEY
Definition: constants.h:233
@ RDP_INPUT_CODEPOINT
Definition: constants.h:232
@ RDP_INPUT_SYNCHRONIZE
Definition: constants.h:231
@ RDP_INPUT_SCANCODE
Definition: constants.h:234
@ RDP_INPUT_MOUSE
Definition: constants.h:235

◆ RDP_PDU_TYPE

Enumerator
RDP_PDU_DEMAND_ACTIVE 
RDP_PDU_CONFIRM_ACTIVE 
RDP_PDU_REDIRECT 
RDP_PDU_DEACTIVATE 
RDP_PDU_DATA 
RDP_PDU_ENHANCED_REDIRECT 
RDP_PDU_DEMAND_ACTIVE 
RDP_PDU_CONFIRM_ACTIVE 
RDP_PDU_REDIRECT 
RDP_PDU_DEACTIVATE 
RDP_PDU_DATA 

Definition at line 107 of file constants.h.

108{
111 RDP_PDU_REDIRECT = 4, /* MS Server 2003 Session Redirect */
113 RDP_PDU_DATA = 7
114};
@ RDP_PDU_DEMAND_ACTIVE
Definition: constants.h:160
@ RDP_PDU_DEACTIVATE
Definition: constants.h:163
@ RDP_PDU_CONFIRM_ACTIVE
Definition: constants.h:161
@ RDP_PDU_REDIRECT
Definition: constants.h:162
@ RDP_PDU_DATA
Definition: constants.h:164

◆ RDP_POINTER_PDU_TYPE

Enumerator
RDP_POINTER_SYSTEM 
RDP_POINTER_MOVE 
RDP_POINTER_COLOR 
RDP_POINTER_CACHED 
RDP_POINTER_NEW 
RDP_POINTER_SYSTEM 
RDP_POINTER_MOVE 
RDP_POINTER_COLOR 
RDP_POINTER_CACHED 

Definition at line 147 of file constants.h.

148{
153};
@ RDP_POINTER_MOVE
Definition: constants.h:217
@ RDP_POINTER_CACHED
Definition: constants.h:219
@ RDP_POINTER_COLOR
Definition: constants.h:218
@ RDP_POINTER_SYSTEM
Definition: constants.h:216

◆ RDP_SYSTEM_POINTER_TYPE

Enumerator
RDP_NULL_POINTER 
RDP_DEFAULT_POINTER 
RDP_NULL_POINTER 
RDP_DEFAULT_POINTER 

Definition at line 155 of file constants.h.

156{
158 RDP_DEFAULT_POINTER = 0x7F00
159};
@ RDP_NULL_POINTER
Definition: constants.h:225
@ RDP_DEFAULT_POINTER
Definition: constants.h:226

◆ RDP_UPDATE_PDU_TYPE

Enumerator
RDP_UPDATE_ORDERS 
RDP_UPDATE_BITMAP 
RDP_UPDATE_PALETTE 
RDP_UPDATE_SYNCHRONIZE 
RDP_UPDATE_ORDERS 
RDP_UPDATE_BITMAP 
RDP_UPDATE_PALETTE 
RDP_UPDATE_SYNCHRONIZE 

Definition at line 139 of file constants.h.

140{
145};
@ RDP_UPDATE_PALETTE
Definition: constants.h:210
@ RDP_UPDATE_BITMAP
Definition: constants.h:209
@ RDP_UPDATE_SYNCHRONIZE
Definition: constants.h:211
@ RDP_UPDATE_ORDERS
Definition: constants.h:208