summaryrefslogtreecommitdiffstats
path: root/libxrdp
diff options
context:
space:
mode:
authorKoichiro IWAO <meta@vmeta.jp>2018-11-27 14:59:20 +0900
committerKoichiro IWAO <meta@vmeta.jp>2018-11-27 15:08:22 +0900
commit83d3349c5a9a8b6116f7a4c2dc8a0f7778972be7 (patch)
tree8e2552fcb1a6c9ae14a2d567766cd5dc9bab9e53 /libxrdp
parentd188519c0c5bd060be2c71927789359d7ef74c5c (diff)
downloadxrdp-proprietary-83d3349c5a9a8b6116f7a4c2dc8a0f7778972be7.tar.gz
xrdp-proprietary-83d3349c5a9a8b6116f7a4c2dc8a0f7778972be7.zip
add some more constants and use them
Diffstat (limited to 'libxrdp')
-rw-r--r--libxrdp/xrdp_caps.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/libxrdp/xrdp_caps.c b/libxrdp/xrdp_caps.c
index d951d19a..2dc701b5 100644
--- a/libxrdp/xrdp_caps.c
+++ b/libxrdp/xrdp_caps.c
@@ -966,16 +966,17 @@ xrdp_caps_send_demand_active(struct xrdp_rdp *self)
{
/* Remote Programs Capability Set */
caps_count++;
- out_uint16_le(s, 0x0017); /* CAPSETTYPE_RAIL */
- out_uint16_le(s, 8);
- out_uint32_le(s, 3); /* TS_RAIL_LEVEL_SUPPORTED
- TS_RAIL_LEVEL_DOCKED_LANGBAR_SUPPORTED */
+ out_uint16_le(s, CAPSTYPE_RAIL);
+ out_uint16_le(s, 8); /* LengthCapability: MS-RDPERP 2.2.1.1.1 */
+ out_uint32_le(s, 3); /* See: https://msdn.microsoft.com/en-us/library/cc242518.aspx
+ TS_RAIL_LEVEL_SUPPORTED
+ TS_RAIL_LEVEL_DOCKED_LANGBAR_SUPPORTED */
/* Window List Capability Set */
caps_count++;
- out_uint16_le(s, 0x0018); /* CAPSETTYPE_WINDOW */
- out_uint16_le(s, 11);
- out_uint32_le(s, 2); /* TS_WINDOW_LEVEL_SUPPORTED_EX */
+ out_uint16_le(s, CAPSTYPE_WINDOW);
+ out_uint16_le(s, 11); /* LengthCapability: MS-RDPERP 2.2.1.1.2 */
+ out_uint32_le(s, TS_WINDOW_LEVEL_SUPPORTED_EX);
out_uint8(s, 3); /* NumIconCaches */
out_uint16_le(s, 12); /* NumIconCacheEntries */
}