2 * FreeRDP: A Remote Desktop Protocol Implementation
5 * Copyright 2009-2011 Jay Sorg
6 * Copyright 2010-2012 Marc-Andre Moreau <marcandre.moreau@gmail.com>
8 * Licensed under the Apache License, Version 2.0 (the "License");
9 * you may not use this file except in compliance with the License.
10 * You may obtain a copy of the License at
12 * http://www.apache.org/licenses/LICENSE-2.0
14 * Unless required by applicable law or agreed to in writing, software
15 * distributed under the License is distributed on an "AS IS" BASIS,
16 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 * See the License for the specific language governing permissions and
18 * limitations under the License.
21 #ifndef FREERDP_SETTINGS_H
22 #define FREERDP_SETTINGS_H
24 #include <freerdp/api.h>
25 #include <freerdp/types.h>
27 /* Performance Flags */
28 #define PERF_FLAG_NONE 0x00000000
29 #define PERF_DISABLE_WALLPAPER 0x00000001
30 #define PERF_DISABLE_FULLWINDOWDRAG 0x00000002
31 #define PERF_DISABLE_MENUANIMATIONS 0x00000004
32 #define PERF_DISABLE_THEMING 0x00000008
33 #define PERF_DISABLE_CURSOR_SHADOW 0x00000020
34 #define PERF_DISABLE_CURSORSETTINGS 0x00000040
35 #define PERF_ENABLE_FONT_SMOOTHING 0x00000080
36 #define PERF_ENABLE_DESKTOP_COMPOSITION 0x00000100
38 /* Connection Types */
39 #define CONNECTION_TYPE_MODEM 0x01
40 #define CONNECTION_TYPE_BROADBAND_LOW 0x02
41 #define CONNECTION_TYPE_SATELLITE 0x03
42 #define CONNECTION_TYPE_BROADBAND_HIGH 0x04
43 #define CONNECTION_TYPE_WAN 0x05
44 #define CONNECTION_TYPE_LAN 0x06
45 #define CONNECTION_TYPE_AUTODETECT 0x07
47 /* Client to Server (CS) data blocks */
48 #define CS_CORE 0xC001
49 #define CS_SECURITY 0xC002
51 #define CS_CLUSTER 0xC004
52 #define CS_MONITOR 0xC005
53 #define CS_MCS_MSGCHANNEL 0xC006
54 #define CS_MONITOR_EX 0xC008
55 #define CS_MULTITRANSPORT 0xC00A
57 /* Server to Client (SC) data blocks */
58 #define SC_CORE 0x0C01
59 #define SC_SECURITY 0x0C02
61 #define SC_MCS_MSGCHANNEL 0x0C04
62 #define SC_MULTITRANSPORT 0x0C08
65 #define RDP_VERSION_4 0x00080001
66 #define RDP_VERSION_5_PLUS 0x00080004
69 #define RNS_UD_COLOR_4BPP 0xCA00
70 #define RNS_UD_COLOR_8BPP 0xCA01
71 #define RNS_UD_COLOR_16BPP_555 0xCA02
72 #define RNS_UD_COLOR_16BPP_565 0xCA03
73 #define RNS_UD_COLOR_24BPP 0xCA04
75 /* Secure Access Sequence */
76 #define RNS_UD_SAS_DEL 0xAA03
78 /* Supported Color Depths */
79 #define RNS_UD_24BPP_SUPPORT 0x0001
80 #define RNS_UD_16BPP_SUPPORT 0x0002
81 #define RNS_UD_15BPP_SUPPORT 0x0004
82 #define RNS_UD_32BPP_SUPPORT 0x0008
85 #define AUDIO_MODE_REDIRECT 0 /* Bring to this computer */
86 #define AUDIO_MODE_PLAY_ON_SERVER 1 /* Leave at remote computer */
87 #define AUDIO_MODE_NONE 2 /* Do not play */
89 /* Early Capability Flags (Client to Server) */
90 #define RNS_UD_CS_SUPPORT_ERRINFO_PDU 0x0001
91 #define RNS_UD_CS_WANT_32BPP_SESSION 0x0002
92 #define RNS_UD_CS_SUPPORT_STATUSINFO_PDU 0x0004
93 #define RNS_UD_CS_STRONG_ASYMMETRIC_KEYS 0x0008
94 #define RNS_UD_CS_VALID_CONNECTION_TYPE 0x0020
95 #define RNS_UD_CS_SUPPORT_MONITOR_LAYOUT_PDU 0x0040
96 #define RNS_UD_CS_SUPPORT_NETWORK_AUTODETECT 0x0080
97 #define RNS_UD_CS_SUPPORT_DYNVC_GFX_PROTOCOL 0x0100
98 #define RNS_UD_CS_SUPPORT_DYNAMIC_TIME_ZONE 0x0200
99 #define RNS_UD_CS_SUPPORT_HEARTBEAT_PDU 0x0400
101 /* Early Capability Flags (Server to Client) */
102 #define RNS_UD_SC_EDGE_ACTIONS_SUPPORTED 0x00000001
103 #define RNS_UD_SC_DYNAMIC_DST_SUPPORTED 0x00000002
105 /* Cluster Information Flags */
106 #define REDIRECTION_SUPPORTED 0x00000001
107 #define REDIRECTED_SESSIONID_FIELD_VALID 0x00000002
108 #define REDIRECTED_SMARTCARD 0x00000040
110 #define REDIRECTION_VERSION1 0x00
111 #define REDIRECTION_VERSION2 0x01
112 #define REDIRECTION_VERSION3 0x02
113 #define REDIRECTION_VERSION4 0x03
114 #define REDIRECTION_VERSION5 0x04
115 #define REDIRECTION_VERSION6 0x05
117 #define MONITOR_PRIMARY 0x00000001
119 /* Encryption Methods */
120 #define ENCRYPTION_METHOD_NONE 0x00000000
121 #define ENCRYPTION_METHOD_40BIT 0x00000001
122 #define ENCRYPTION_METHOD_128BIT 0x00000002
123 #define ENCRYPTION_METHOD_56BIT 0x00000008
124 #define ENCRYPTION_METHOD_FIPS 0x00000010
126 /* Encryption Levels */
127 #define ENCRYPTION_LEVEL_NONE 0x00000000
128 #define ENCRYPTION_LEVEL_LOW 0x00000001
129 #define ENCRYPTION_LEVEL_CLIENT_COMPATIBLE 0x00000002
130 #define ENCRYPTION_LEVEL_HIGH 0x00000003
131 #define ENCRYPTION_LEVEL_FIPS 0x00000004
133 /* Multitransport Types */
134 #define TRANSPORT_TYPE_UDP_FECR 0x00000001
135 #define TRANSPORT_TYPE_UDP_FECL 0x00000004
136 #define TRANSPORT_TYPE_UDP_PREFERRED 0x00000100
138 /* Static Virtual Channel Options */
139 #define CHANNEL_OPTION_INITIALIZED 0x80000000
140 #define CHANNEL_OPTION_ENCRYPT_RDP 0x40000000
141 #define CHANNEL_OPTION_ENCRYPT_SC 0x20000000
142 #define CHANNEL_OPTION_ENCRYPT_CS 0x10000000
143 #define CHANNEL_OPTION_PRI_HIGH 0x08000000
144 #define CHANNEL_OPTION_PRI_MED 0x04000000
145 #define CHANNEL_OPTION_PRI_LOW 0x02000000
146 #define CHANNEL_OPTION_COMPRESS_RDP 0x00800000
147 #define CHANNEL_OPTION_COMPRESS 0x00400000
148 #define CHANNEL_OPTION_SHOW_PROTOCOL 0x00200000
149 #define CHANNEL_REMOTE_CONTROL_PERSISTENT 0x00100000
151 /* Auto Reconnect Version */
152 #define AUTO_RECONNECT_VERSION_1 0x00000001
155 #define MSTSC_COOKIE_MAX_LENGTH 9
156 #define DEFAULT_COOKIE_MAX_LENGTH 0xFF
159 #define NEG_DSTBLT_INDEX 0x00
160 #define NEG_PATBLT_INDEX 0x01
161 #define NEG_SCRBLT_INDEX 0x02
162 #define NEG_MEMBLT_INDEX 0x03
163 #define NEG_MEM3BLT_INDEX 0x04
164 #define NEG_ATEXTOUT_INDEX 0x05
165 #define NEG_AEXTTEXTOUT_INDEX 0x06
166 #define NEG_DRAWNINEGRID_INDEX 0x07
167 #define NEG_LINETO_INDEX 0x08
168 #define NEG_MULTI_DRAWNINEGRID_INDEX 0x09
169 #define NEG_OPAQUE_RECT_INDEX 0x0A
170 #define NEG_SAVEBITMAP_INDEX 0x0B
171 #define NEG_WTEXTOUT_INDEX 0x0C
172 #define NEG_MEMBLT_V2_INDEX 0x0D
173 #define NEG_MEM3BLT_V2_INDEX 0x0E
174 #define NEG_MULTIDSTBLT_INDEX 0x0F
175 #define NEG_MULTIPATBLT_INDEX 0x10
176 #define NEG_MULTISCRBLT_INDEX 0x11
177 #define NEG_MULTIOPAQUERECT_INDEX 0x12
178 #define NEG_FAST_INDEX_INDEX 0x13
179 #define NEG_POLYGON_SC_INDEX 0x14
180 #define NEG_POLYGON_CB_INDEX 0x15
181 #define NEG_POLYLINE_INDEX 0x16
182 #define NEG_UNUSED23_INDEX 0x17
183 #define NEG_FAST_GLYPH_INDEX 0x18
184 #define NEG_ELLIPSE_SC_INDEX 0x19
185 #define NEG_ELLIPSE_CB_INDEX 0x1A
186 #define NEG_GLYPH_INDEX_INDEX 0x1B
187 #define NEG_GLYPH_WEXTTEXTOUT_INDEX 0x1C
188 #define NEG_GLYPH_WLONGTEXTOUT_INDEX 0x1D
189 #define NEG_GLYPH_WLONGEXTTEXTOUT_INDEX 0x1E
190 #define NEG_UNUSED31_INDEX 0x1F
192 /* Glyph Support Level */
193 #define GLYPH_SUPPORT_NONE 0x0000
194 #define GLYPH_SUPPORT_PARTIAL 0x0001
195 #define GLYPH_SUPPORT_FULL 0x0002
196 #define GLYPH_SUPPORT_ENCODE 0x0003
198 /* Gateway Usage Method */
199 #define TSC_PROXY_MODE_NONE_DIRECT 0x0
200 #define TSC_PROXY_MODE_DIRECT 0x1
201 #define TSC_PROXY_MODE_DETECT 0x2
202 #define TSC_PROXY_MODE_DEFAULT 0x3
203 #define TSC_PROXY_MODE_NONE_DETECT 0x4
205 /* Gateway Credentials Source */
206 #define TSC_PROXY_CREDS_MODE_USERPASS 0x0
207 #define TSC_PROXY_CREDS_MODE_SMARTCARD 0x1
208 #define TSC_PROXY_CREDS_MODE_ANY 0x2
210 /* Redirection Flags */
211 #define LB_TARGET_NET_ADDRESS 0x00000001
212 #define LB_LOAD_BALANCE_INFO 0x00000002
213 #define LB_USERNAME 0x00000004
214 #define LB_DOMAIN 0x00000008
215 #define LB_PASSWORD 0x00000010
216 #define LB_DONTSTOREUSERNAME 0x00000020
217 #define LB_SMARTCARD_LOGON 0x00000040
218 #define LB_NOREDIRECT 0x00000080
219 #define LB_TARGET_FQDN 0x00000100
220 #define LB_TARGET_NETBIOS_NAME 0x00000200
221 #define LB_TARGET_NET_ADDRESSES 0x00000800
222 #define LB_CLIENT_TSV_URL 0x00001000
223 #define LB_SERVER_TSV_CAPABLE 0x00002000
225 struct _TARGET_NET_ADDRESS
230 typedef struct _TARGET_NET_ADDRESS TARGET_NET_ADDRESS;
232 /* Logon Error Info */
234 #define LOGON_MSG_NO_PERMISSION 0xFFFFFFFA
235 #define LOGON_MSG_BUMP_OPTIONS 0xFFFFFFFB
236 #define LOGON_MSG_SESSION_RECONNECT 0xFFFFFFFC
237 #define LOGON_MSG_SESSION_TERMINATE 0xFFFFFFFD
238 #define LOGON_MSG_SESSION_CONTINUE 0xFFFFFFFE
240 #define LOGON_FAILED_BAD_PASSWORD 0x00000000
241 #define LOGON_FAILED_UPDATE_PASSWORD 0x00000001
242 #define LOGON_FAILED_OTHER 0x00000002
243 #define LOGON_WARNING 0x00000003
245 /* Server Status Info */
246 #define STATUS_FINDING_DESTINATION 0x00000401
247 #define STATUS_LOADING_DESTINATION 0x00000402
248 #define STATUS_BRINGING_SESSION_ONLINE 0x00000403
249 #define STATUS_REDIRECTING_TO_DESTINATION 0x00000404
250 #define STATUS_VM_LOADING 0x00000501
251 #define STATUS_VM_WAKING 0x00000502
252 #define STATUS_VM_BOOTING 0x00000503
254 /* Compression Flags */
255 #define PACKET_COMPR_TYPE_8K 0x00
256 #define PACKET_COMPR_TYPE_64K 0x01
257 #define PACKET_COMPR_TYPE_RDP6 0x02
258 #define PACKET_COMPR_TYPE_RDP61 0x03
259 #define PACKET_COMPR_TYPE_RDP8 0x04
271 UINT16 wMilliseconds;
274 /* TIME_ZONE_INFORMATION */
275 struct _TIME_ZONE_INFO
278 char standardName[32];
279 SYSTEM_TIME standardDate;
281 char daylightName[32];
282 SYSTEM_TIME daylightDate;
285 typedef struct _TIME_ZONE_INFO TIME_ZONE_INFO;
287 /* ARC_CS_PRIVATE_PACKET */
293 BYTE securityVerifier[16];
294 } ARC_CS_PRIVATE_PACKET;
296 /* ARC_SC_PRIVATE_PACKET */
302 BYTE arcRandomBits[16];
303 } ARC_SC_PRIVATE_PACKET;
312 typedef struct rdp_CertBlob rdpCertBlob;
314 struct rdp_X509CertChain
319 typedef struct rdp_X509CertChain rdpX509CertChain;
327 typedef struct rdp_CertInfo rdpCertInfo;
329 struct rdp_certificate
331 rdpCertInfo cert_info;
332 rdpX509CertChain* x509_cert_chain;
334 typedef struct rdp_certificate rdpCertificate;
340 BYTE* PrivateExponent;
341 DWORD PrivateExponentLength;
344 typedef struct rdp_rsa_key rdpRsaKey;
353 typedef struct _ADDIN_ARGV ADDIN_ARGV;
359 char name[256]; /* plugin name or path */
360 void* data; /* plugin data */
365 struct _BITMAP_CACHE_CELL_INFO
370 typedef struct _BITMAP_CACHE_CELL_INFO BITMAP_CACHE_CELL_INFO;
372 struct _BITMAP_CACHE_V2_CELL_INFO
377 typedef struct _BITMAP_CACHE_V2_CELL_INFO BITMAP_CACHE_V2_CELL_INFO;
381 struct _GLYPH_CACHE_DEFINITION
384 UINT16 cacheMaximumCellSize;
386 typedef struct _GLYPH_CACHE_DEFINITION GLYPH_CACHE_DEFINITION;
398 typedef struct rdp_monitor rdpMonitor;
408 typedef struct _MONITOR_DEF MONITOR_DEF;
410 struct _MONITOR_ATTRIBUTES
412 UINT32 physicalWidth;
413 UINT32 physicalHeight;
415 UINT32 desktopScaleFactor;
416 UINT32 deviceScaleFactor;
418 typedef struct _MONITOR_ATTRIBUTES MONITOR_ATTRIBUTES;
420 /* Device Redirection */
422 #define RDPDR_DTYP_SERIAL 0x00000001
423 #define RDPDR_DTYP_PARALLEL 0x00000002
424 #define RDPDR_DTYP_PRINT 0x00000004
425 #define RDPDR_DTYP_FILESYSTEM 0x00000008
426 #define RDPDR_DTYP_SMARTCARD 0x00000020
434 typedef struct _RDPDR_DEVICE RDPDR_DEVICE;
443 typedef struct _RDPDR_DRIVE RDPDR_DRIVE;
445 struct _RDPDR_PRINTER
452 typedef struct _RDPDR_PRINTER RDPDR_PRINTER;
454 struct _RDPDR_SMARTCARD
461 typedef struct _RDPDR_SMARTCARD RDPDR_SMARTCARD;
470 typedef struct _RDPDR_SERIAL RDPDR_SERIAL;
472 struct _RDPDR_PARALLEL
479 typedef struct _RDPDR_PARALLEL RDPDR_PARALLEL;
484 #define ALIGN64 __attribute__((aligned(8)))
487 #define ALIGN64 __declspec(align(8))
494 * FreeRDP Settings Ids
495 * This is generated with a script parsing the rdpSettings data structure
498 #define FreeRDP_instance 0
499 #define FreeRDP_ServerMode 16
500 #define FreeRDP_ShareId 17
501 #define FreeRDP_PduSource 18
502 #define FreeRDP_ServerPort 19
503 #define FreeRDP_ServerHostname 20
504 #define FreeRDP_Username 21
505 #define FreeRDP_Password 22
506 #define FreeRDP_Domain 23
507 #define FreeRDP_PasswordHash 24
508 #define FreeRDP_RdpVersion 128
509 #define FreeRDP_DesktopWidth 129
510 #define FreeRDP_DesktopHeight 130
511 #define FreeRDP_ColorDepth 131
512 #define FreeRDP_ConnectionType 132
513 #define FreeRDP_ClientBuild 133
514 #define FreeRDP_ClientHostname 134
515 #define FreeRDP_ClientProductId 135
516 #define FreeRDP_EarlyCapabilityFlags 136
517 #define FreeRDP_NetworkAutoDetect 137
518 #define FreeRDP_SupportAsymetricKeys 138
519 #define FreeRDP_SupportErrorInfoPdu 139
520 #define FreeRDP_SupportStatusInfoPdu 140
521 #define FreeRDP_SupportMonitorLayoutPdu 141
522 #define FreeRDP_SupportGraphicsPipeline 142
523 #define FreeRDP_SupportDynamicTimeZone 143
524 #define FreeRDP_SupportHeartbeatPdu 144
525 #define FreeRDP_DisableEncryption 192
526 #define FreeRDP_EncryptionMethods 193
527 #define FreeRDP_ExtEncryptionMethods 194
528 #define FreeRDP_EncryptionLevel 195
529 #define FreeRDP_ServerRandom 196
530 #define FreeRDP_ServerRandomLength 197
531 #define FreeRDP_ServerCertificate 198
532 #define FreeRDP_ServerCertificateLength 199
533 #define FreeRDP_ChannelCount 256
534 #define FreeRDP_ChannelDefArraySize 257
535 #define FreeRDP_ChannelDefArray 258
536 #define FreeRDP_ClusterInfoFlags 320
537 #define FreeRDP_RedirectedSessionId 321
538 #define FreeRDP_ConsoleSession 322
539 #define FreeRDP_MonitorCount 384
540 #define FreeRDP_MonitorDefArraySize 385
541 #define FreeRDP_MonitorDefArray 386
542 #define FreeRDP_SpanMonitors 387
543 #define FreeRDP_UseMultimon 388
544 #define FreeRDP_ForceMultimon 389
545 #define FreeRDP_DesktopPosX 390
546 #define FreeRDP_DesktopPosY 391
547 #define FreeRDP_MultitransportFlags 512
548 #define FreeRDP_SupportMultitransport 513
549 #define FreeRDP_AlternateShell 640
550 #define FreeRDP_ShellWorkingDirectory 641
551 #define FreeRDP_AutoLogonEnabled 704
552 #define FreeRDP_CompressionEnabled 705
553 #define FreeRDP_DisableCtrlAltDel 706
554 #define FreeRDP_EnableWindowsKey 707
555 #define FreeRDP_MaximizeShell 708
556 #define FreeRDP_LogonNotify 709
557 #define FreeRDP_LogonErrors 710
558 #define FreeRDP_MouseAttached 711
559 #define FreeRDP_MouseHasWheel 712
560 #define FreeRDP_RemoteConsoleAudio 713
561 #define FreeRDP_AudioPlayback 714
562 #define FreeRDP_AudioCapture 715
563 #define FreeRDP_VideoDisable 716
564 #define FreeRDP_PasswordIsSmartcardPin 717
565 #define FreeRDP_UsingSavedCredentials 718
566 #define FreeRDP_ForceEncryptedCsPdu 719
567 #define FreeRDP_HiDefRemoteApp 720
568 #define FreeRDP_CompressionLevel 721
569 #define FreeRDP_IPv6Enabled 768
570 #define FreeRDP_ClientAddress 769
571 #define FreeRDP_ClientDir 770
572 #define FreeRDP_AutoReconnectionEnabled 832
573 #define FreeRDP_AutoReconnectMaxRetries 833
574 #define FreeRDP_ClientAutoReconnectCookie 834
575 #define FreeRDP_ServerAutoReconnectCookie 835
576 #define FreeRDP_ClientTimeZone 896
577 #define FreeRDP_DynamicDSTTimeZoneKeyName 897
578 #define FreeRDP_DynamicDaylightTimeDisabled 898
579 #define FreeRDP_PerformanceFlags 960
580 #define FreeRDP_AllowFontSmoothing 961
581 #define FreeRDP_DisableWallpaper 962
582 #define FreeRDP_DisableFullWindowDrag 963
583 #define FreeRDP_DisableMenuAnims 964
584 #define FreeRDP_DisableThemes 965
585 #define FreeRDP_DisableCursorShadow 966
586 #define FreeRDP_DisableCursorBlinking 967
587 #define FreeRDP_AllowDesktopComposition 968
588 #define FreeRDP_RemoteAssistanceMode 1024
589 #define FreeRDP_RemoteAssistanceSessionId 1025
590 #define FreeRDP_TlsSecurity 1088
591 #define FreeRDP_NlaSecurity 1089
592 #define FreeRDP_RdpSecurity 1090
593 #define FreeRDP_ExtSecurity 1091
594 #define FreeRDP_Authentication 1092
595 #define FreeRDP_RequestedProtocols 1093
596 #define FreeRDP_SelectedProtocol 1094
597 #define FreeRDP_NegotiationFlags 1095
598 #define FreeRDP_NegotiateSecurityLayer 1096
599 #define FreeRDP_RestrictedAdminModeRequired 1097
600 #define FreeRDP_AuthenticationServiceClass 1098
601 #define FreeRDP_DisableCredentialsDelegation 1099
602 #define FreeRDP_AuthenticationLevel 1100
603 #define FreeRDP_MstscCookieMode 1152
604 #define FreeRDP_CookieMaxLength 1153
605 #define FreeRDP_PreconnectionId 1154
606 #define FreeRDP_PreconnectionBlob 1155
607 #define FreeRDP_SendPreconnectionPdu 1156
608 #define FreeRDP_RedirectionFlags 1216
609 #define FreeRDP_TargetNetAddress 1217
610 #define FreeRDP_LoadBalanceInfo 1218
611 #define FreeRDP_LoadBalanceInfoLength 1219
612 #define FreeRDP_RedirectionUsername 1220
613 #define FreeRDP_RedirectionDomain 1221
614 #define FreeRDP_RedirectionPassword 1222
615 #define FreeRDP_RedirectionPasswordLength 1223
616 #define FreeRDP_RedirectionTargetFQDN 1224
617 #define FreeRDP_RedirectionTargetNetBiosName 1225
618 #define FreeRDP_RedirectionTsvUrl 1226
619 #define FreeRDP_RedirectionTsvUrlLength 1227
620 #define FreeRDP_TargetNetAddressCount 1228
621 #define FreeRDP_TargetNetAddresses 1229
622 #define FreeRDP_Password51 1280
623 #define FreeRDP_Password51Length 1281
624 #define FreeRDP_KerberosKdc 1344
625 #define FreeRDP_KerberosRealm 1345
626 #define FreeRDP_IgnoreCertificate 1408
627 #define FreeRDP_CertificateName 1409
628 #define FreeRDP_CertificateFile 1410
629 #define FreeRDP_PrivateKeyFile 1411
630 #define FreeRDP_RdpKeyFile 1412
631 #define FreeRDP_RdpServerRsaKey 1413
632 #define FreeRDP_RdpServerCertificate 1414
633 #define FreeRDP_ExternalCertificateManagement 1415
634 #define FreeRDP_Workarea 1536
635 #define FreeRDP_Fullscreen 1537
636 #define FreeRDP_PercentScreen 1538
637 #define FreeRDP_GrabKeyboard 1539
638 #define FreeRDP_Decorations 1540
639 #define FreeRDP_MouseMotion 1541
640 #define FreeRDP_WindowTitle 1542
641 #define FreeRDP_ParentWindowId 1543
642 #define FreeRDP_AsyncInput 1544
643 #define FreeRDP_AsyncUpdate 1545
644 #define FreeRDP_AsyncChannels 1546
645 #define FreeRDP_AsyncTransport 1547
646 #define FreeRDP_ToggleFullscreen 1548
647 #define FreeRDP_WmClass 1549
648 #define FreeRDP_EmbeddedWindow 1550
649 #define FreeRDP_SmartSizing 1551
650 #define FreeRDP_XPan 1552
651 #define FreeRDP_YPan 1553
652 #define FreeRDP_ScalingFactor 1554
653 #define FreeRDP_SoftwareGdi 1601
654 #define FreeRDP_LocalConnection 1602
655 #define FreeRDP_AuthenticationOnly 1603
656 #define FreeRDP_CredentialsFromStdin 1604
657 #define FreeRDP_ComputerName 1664
658 #define FreeRDP_ConnectionFile 1728
659 #define FreeRDP_AssistanceFile 1729
660 #define FreeRDP_HomePath 1792
661 #define FreeRDP_ConfigPath 1793
662 #define FreeRDP_CurrentPath 1794
663 #define FreeRDP_DumpRemoteFx 1856
664 #define FreeRDP_PlayRemoteFx 1857
665 #define FreeRDP_DumpRemoteFxFile 1858
666 #define FreeRDP_PlayRemoteFxFile 1859
667 #define FreeRDP_GatewayUsageMethod 1984
668 #define FreeRDP_GatewayPort 1985
669 #define FreeRDP_GatewayHostname 1986
670 #define FreeRDP_GatewayUsername 1987
671 #define FreeRDP_GatewayPassword 1988
672 #define FreeRDP_GatewayDomain 1989
673 #define FreeRDP_GatewayCredentialsSource 1990
674 #define FreeRDP_GatewayUseSameCredentials 1991
675 #define FreeRDP_GatewayEnabled 1992
676 #define FreeRDP_GatewayBypassLocal 1993
677 #define FreeRDP_RemoteApplicationMode 2112
678 #define FreeRDP_RemoteApplicationName 2113
679 #define FreeRDP_RemoteApplicationIcon 2114
680 #define FreeRDP_RemoteApplicationProgram 2115
681 #define FreeRDP_RemoteApplicationFile 2116
682 #define FreeRDP_RemoteApplicationGuid 2117
683 #define FreeRDP_RemoteApplicationCmdLine 2118
684 #define FreeRDP_RemoteApplicationExpandCmdLine 2119
685 #define FreeRDP_RemoteApplicationExpandWorkingDir 2120
686 #define FreeRDP_DisableRemoteAppCapsCheck 2121
687 #define FreeRDP_RemoteAppNumIconCaches 2122
688 #define FreeRDP_RemoteAppNumIconCacheEntries 2123
689 #define FreeRDP_RemoteAppLanguageBarSupported 2124
690 #define FreeRDP_ReceivedCapabilities 2240
691 #define FreeRDP_ReceivedCapabilitiesSize 2241
692 #define FreeRDP_OsMajorType 2304
693 #define FreeRDP_OsMinorType 2305
694 #define FreeRDP_RefreshRect 2306
695 #define FreeRDP_SuppressOutput 2307
696 #define FreeRDP_FastPathOutput 2308
697 #define FreeRDP_SaltedChecksum 2309
698 #define FreeRDP_LongCredentialsSupported 2310
699 #define FreeRDP_NoBitmapCompressionHeader 2311
700 #define FreeRDP_BitmapCompressionDisabled 2312
701 #define FreeRDP_DesktopResize 2368
702 #define FreeRDP_DrawAllowDynamicColorFidelity 2369
703 #define FreeRDP_DrawAllowColorSubsampling 2370
704 #define FreeRDP_DrawAllowSkipAlpha 2371
705 #define FreeRDP_OrderSupport 2432
706 #define FreeRDP_BitmapCacheV3Enabled 2433
707 #define FreeRDP_AltSecFrameMarkerSupport 2434
708 #define FreeRDP_BitmapCacheEnabled 2497
709 #define FreeRDP_BitmapCacheVersion 2498
710 #define FreeRDP_AllowCacheWaitingList 2499
711 #define FreeRDP_BitmapCachePersistEnabled 2500
712 #define FreeRDP_BitmapCacheV2NumCells 2501
713 #define FreeRDP_BitmapCacheV2CellInfo 2502
714 #define FreeRDP_ColorPointerFlag 2560
715 #define FreeRDP_PointerCacheSize 2561
716 #define FreeRDP_KeyboardLayout 2624
717 #define FreeRDP_KeyboardType 2625
718 #define FreeRDP_KeyboardSubType 2626
719 #define FreeRDP_KeyboardFunctionKey 2627
720 #define FreeRDP_ImeFileName 2628
721 #define FreeRDP_UnicodeInput 2629
722 #define FreeRDP_FastPathInput 2630
723 #define FreeRDP_MultiTouchInput 2631
724 #define FreeRDP_MultiTouchGestures 2632
725 #define FreeRDP_BrushSupportLevel 2688
726 #define FreeRDP_GlyphSupportLevel 2752
727 #define FreeRDP_GlyphCache 2753
728 #define FreeRDP_FragCache 2754
729 #define FreeRDP_OffscreenSupportLevel 2816
730 #define FreeRDP_OffscreenCacheSize 2817
731 #define FreeRDP_OffscreenCacheEntries 2818
732 #define FreeRDP_VirtualChannelCompressionFlags 2880
733 #define FreeRDP_VirtualChannelChunkSize 2881
734 #define FreeRDP_SoundBeepsEnabled 2944
735 #define FreeRDP_MultifragMaxRequestSize 3328
736 #define FreeRDP_LargePointerFlag 3392
737 #define FreeRDP_CompDeskSupportLevel 3456
738 #define FreeRDP_SurfaceCommandsEnabled 3520
739 #define FreeRDP_FrameMarkerCommandEnabled 3521
740 #define FreeRDP_SurfaceFrameMarkerEnabled 3522
741 #define FreeRDP_RemoteFxOnly 3648
742 #define FreeRDP_RemoteFxCodec 3649
743 #define FreeRDP_RemoteFxCodecId 3650
744 #define FreeRDP_RemoteFxCodecMode 3651
745 #define FreeRDP_RemoteFxImageCodec 3652
746 #define FreeRDP_RemoteFxCaptureFlags 3653
747 #define FreeRDP_NSCodec 3712
748 #define FreeRDP_NSCodecId 3713
749 #define FreeRDP_FrameAcknowledge 3714
750 #define FreeRDP_JpegCodec 3776
751 #define FreeRDP_JpegCodecId 3777
752 #define FreeRDP_JpegQuality 3778
753 #define FreeRDP_BitmapCacheV3CodecId 3904
754 #define FreeRDP_DrawNineGridEnabled 3968
755 #define FreeRDP_DrawNineGridCacheSize 3969
756 #define FreeRDP_DrawNineGridCacheEntries 3970
757 #define FreeRDP_DrawGdiPlusEnabled 4032
758 #define FreeRDP_DrawGdiPlusCacheEnabled 4033
759 #define FreeRDP_DeviceRedirection 4160
760 #define FreeRDP_DeviceCount 4161
761 #define FreeRDP_DeviceArraySize 4162
762 #define FreeRDP_DeviceArray 4163
763 #define FreeRDP_RedirectDrives 4288
764 #define FreeRDP_RedirectHomeDrive 4289
765 #define FreeRDP_DrivesToRedirect 4290
766 #define FreeRDP_RedirectSmartCards 4416
767 #define FreeRDP_RedirectPrinters 4544
768 #define FreeRDP_RedirectSerialPorts 4672
769 #define FreeRDP_RedirectParallelPorts 4673
770 #define FreeRDP_RedirectClipboard 4800
771 #define FreeRDP_StaticChannelCount 4928
772 #define FreeRDP_StaticChannelArraySize 4929
773 #define FreeRDP_StaticChannelArray 4930
774 #define FreeRDP_DynamicChannelCount 5056
775 #define FreeRDP_DynamicChannelArraySize 5057
776 #define FreeRDP_DynamicChannelArray 5058
779 * FreeRDP Settings Data Structure
785 * WARNING: this data structure is carefully padded for ABI stability!
786 * Keeping this area clean is particularly challenging, so unless you are
787 * a trusted developer you should NOT take the liberty of adding your own
788 * options straight into the ABI stable zone. Instead, append them to the
789 * very end of this data structure, in the zone marked as ABI unstable.
792 ALIGN64 void* instance; /* 0 */
793 UINT64 padding001[16 - 1]; /* 1 */
795 /* Core Parameters */
796 ALIGN64 BOOL ServerMode; /* 16 */
797 ALIGN64 UINT32 ShareId; /* 17 */
798 ALIGN64 UINT32 PduSource; /* 18 */
799 ALIGN64 UINT32 ServerPort; /* 19 */
800 ALIGN64 char* ServerHostname; /* 20 */
801 ALIGN64 char* Username; /* 21 */
802 ALIGN64 char* Password; /* 22 */
803 ALIGN64 char* Domain; /* 23 */
804 ALIGN64 char* PasswordHash; /* 24 */
805 ALIGN64 BOOL WaitForOutputBufferFlush; /* 25 */
806 UINT64 padding0064[64 - 26]; /* 26 */
807 UINT64 padding0128[128 - 64]; /* 64 */
810 * GCC User Data Blocks
813 /* Client/Server Core Data */
814 ALIGN64 UINT32 RdpVersion; /* 128 */
815 ALIGN64 UINT32 DesktopWidth; /* 129 */
816 ALIGN64 UINT32 DesktopHeight; /* 130 */
817 ALIGN64 UINT32 ColorDepth; /* 131 */
818 ALIGN64 UINT32 ConnectionType; /* 132 */
819 ALIGN64 UINT32 ClientBuild; /* 133 */
820 ALIGN64 char* ClientHostname; /* 134 */
821 ALIGN64 char* ClientProductId; /* 135 */
822 ALIGN64 UINT32 EarlyCapabilityFlags; /* 136 */
823 ALIGN64 BOOL NetworkAutoDetect; /* 137 */
824 ALIGN64 BOOL SupportAsymetricKeys; /* 138 */
825 ALIGN64 BOOL SupportErrorInfoPdu; /* 139 */
826 ALIGN64 BOOL SupportStatusInfoPdu; /* 140 */
827 ALIGN64 BOOL SupportMonitorLayoutPdu; /* 141 */
828 ALIGN64 BOOL SupportGraphicsPipeline; /* 142 */
829 ALIGN64 BOOL SupportDynamicTimeZone; /* 143 */
830 ALIGN64 BOOL SupportHeartbeatPdu; /* 144 */
831 UINT64 padding0192[192 - 145]; /* 145 */
833 /* Client/Server Security Data */
834 ALIGN64 BOOL DisableEncryption; /* 192 */
835 ALIGN64 UINT32 EncryptionMethods; /* 193 */
836 ALIGN64 UINT32 ExtEncryptionMethods; /* 194 */
837 ALIGN64 UINT32 EncryptionLevel; /* 195 */
838 ALIGN64 BYTE* ServerRandom; /* 196 */
839 ALIGN64 DWORD ServerRandomLength; /* 197 */
840 ALIGN64 BYTE* ServerCertificate; /* 198 */
841 ALIGN64 DWORD ServerCertificateLength; /* 199 */
842 ALIGN64 BYTE* ClientRandom; /* 200 */
843 UINT64 padding0256[256 - 201]; /* 201 */
845 /* Client Network Data */
846 ALIGN64 UINT32 ChannelCount; /* 256 */
847 ALIGN64 UINT32 ChannelDefArraySize; /* 257 */
848 ALIGN64 CHANNEL_DEF* ChannelDefArray; /* 258 */
849 UINT64 padding0320[320 - 259]; /* 259 */
851 /* Client Cluster Data */
852 ALIGN64 UINT32 ClusterInfoFlags; /* 320 */
853 ALIGN64 UINT32 RedirectedSessionId; /* 321 */
854 ALIGN64 BOOL ConsoleSession; /* 322 */
855 UINT64 padding0384[384 - 323]; /* 323 */
857 /* Client Monitor Data */
858 ALIGN64 int MonitorCount; /* 384 */
859 ALIGN64 UINT32 MonitorDefArraySize; /* 385 */
860 ALIGN64 rdpMonitor* MonitorDefArray; /* 386 */
861 ALIGN64 BOOL SpanMonitors; /* 387 */
862 ALIGN64 BOOL UseMultimon; /* 388 */
863 ALIGN64 BOOL ForceMultimon; /* 389 */
864 ALIGN64 UINT32 DesktopPosX; /* 390 */
865 ALIGN64 UINT32 DesktopPosY; /* 391 */
866 ALIGN64 BOOL ListMonitors; /* 392 */
867 ALIGN64 UINT32* MonitorIds; /* 393 */
868 ALIGN64 UINT32 NumMonitorIds; /* 394 */
869 UINT64 padding0448[448 - 395]; /* 395 */
871 /* Client Message Channel Data */
872 UINT64 padding0512[512 - 448]; /* 448 */
874 /* Client Multitransport Channel Data */
875 ALIGN64 UINT32 MultitransportFlags; /* 512 */
876 ALIGN64 BOOL SupportMultitransport; /* 513 */
877 UINT64 padding0576[576 - 514]; /* 514 */
878 UINT64 padding0640[640 - 576]; /* 576 */
884 /* Client Info (Shell) */
885 ALIGN64 char* AlternateShell; /* 640 */
886 ALIGN64 char* ShellWorkingDirectory; /* 641 */
887 UINT64 padding0704[704 - 642]; /* 642 */
889 /* Client Info Flags */
890 ALIGN64 BOOL AutoLogonEnabled; /* 704 */
891 ALIGN64 BOOL CompressionEnabled; /* 705 */
892 ALIGN64 BOOL DisableCtrlAltDel; /* 706 */
893 ALIGN64 BOOL EnableWindowsKey; /* 707 */
894 ALIGN64 BOOL MaximizeShell; /* 708 */
895 ALIGN64 BOOL LogonNotify; /* 709 */
896 ALIGN64 BOOL LogonErrors; /* 710 */
897 ALIGN64 BOOL MouseAttached; /* 711 */
898 ALIGN64 BOOL MouseHasWheel; /* 712 */
899 ALIGN64 BOOL RemoteConsoleAudio; /* 713 */
900 ALIGN64 BOOL AudioPlayback; /* 714 */
901 ALIGN64 BOOL AudioCapture; /* 715 */
902 ALIGN64 BOOL VideoDisable; /* 716 */
903 ALIGN64 BOOL PasswordIsSmartcardPin; /* 717 */
904 ALIGN64 BOOL UsingSavedCredentials; /* 718 */
905 ALIGN64 BOOL ForceEncryptedCsPdu; /* 719 */
906 ALIGN64 BOOL HiDefRemoteApp; /* 720 */
907 ALIGN64 UINT32 CompressionLevel; /* 721 */
908 UINT64 padding0768[768 - 722]; /* 722 */
910 /* Client Info (Extra) */
911 ALIGN64 BOOL IPv6Enabled; /* 768 */
912 ALIGN64 char* ClientAddress; /* 769 */
913 ALIGN64 char* ClientDir; /* 770 */
914 UINT64 padding0832[832 - 771]; /* 771 */
916 /* Client Info (Auto Reconnection) */
917 ALIGN64 BOOL AutoReconnectionEnabled; /* 832 */
918 ALIGN64 UINT32 AutoReconnectMaxRetries; /* 833 */
919 ALIGN64 ARC_CS_PRIVATE_PACKET* ClientAutoReconnectCookie; /* 834 */
920 ALIGN64 ARC_SC_PRIVATE_PACKET* ServerAutoReconnectCookie; /* 835 */
921 ALIGN64 BOOL PrintReconnectCookie; /* 836 */
922 UINT64 padding0896[896 - 837]; /* 837 */
924 /* Client Info (Time Zone) */
925 ALIGN64 TIME_ZONE_INFO* ClientTimeZone; /* 896 */
926 ALIGN64 char* DynamicDSTTimeZoneKeyName; /* 897 */
927 ALIGN64 BOOL DynamicDaylightTimeDisabled; /* 898 */
928 UINT64 padding0960[960 - 899]; /* 899 */
930 /* Client Info (Performance Flags) */
931 ALIGN64 UINT32 PerformanceFlags; /* 960 */
932 ALIGN64 BOOL AllowFontSmoothing; /* 961 */
933 ALIGN64 BOOL DisableWallpaper; /* 962 */
934 ALIGN64 BOOL DisableFullWindowDrag; /* 963 */
935 ALIGN64 BOOL DisableMenuAnims; /* 964 */
936 ALIGN64 BOOL DisableThemes; /* 965 */
937 ALIGN64 BOOL DisableCursorShadow; /* 966 */
938 ALIGN64 BOOL DisableCursorBlinking; /* 967 */
939 ALIGN64 BOOL AllowDesktopComposition; /* 968 */
940 UINT64 padding1024[1024 - 969]; /* 969 */
942 /* Remote Assistance */
943 ALIGN64 BOOL RemoteAssistanceMode; /* 1024 */
944 ALIGN64 char* RemoteAssistanceSessionId; /* 1025 */
945 UINT64 padding1088[1088 - 1026]; /* 1026 */
948 * X.224 Connection Request/Confirm
951 /* Protocol Security */
952 ALIGN64 BOOL TlsSecurity; /* 1088 */
953 ALIGN64 BOOL NlaSecurity; /* 1089 */
954 ALIGN64 BOOL RdpSecurity; /* 1090 */
955 ALIGN64 BOOL ExtSecurity; /* 1091 */
956 ALIGN64 BOOL Authentication; /* 1092 */
957 ALIGN64 UINT32 RequestedProtocols; /* 1093 */
958 ALIGN64 UINT32 SelectedProtocol; /* 1094 */
959 ALIGN64 UINT32 NegotiationFlags; /* 1095 */
960 ALIGN64 BOOL NegotiateSecurityLayer; /* 1096 */
961 ALIGN64 BOOL RestrictedAdminModeRequired; /* 1097 */
962 ALIGN64 char* AuthenticationServiceClass; /* 1098 */
963 ALIGN64 BOOL DisableCredentialsDelegation; /* 1099 */
964 ALIGN64 BOOL AuthenticationLevel; /* 1100 */
965 UINT64 padding1152[1152 - 1101]; /* 1101 */
967 /* Connection Cookie */
968 ALIGN64 BOOL MstscCookieMode; /* 1152 */
969 ALIGN64 UINT32 CookieMaxLength; /* 1153 */
970 ALIGN64 UINT32 PreconnectionId; /* 1154 */
971 ALIGN64 char* PreconnectionBlob; /* 1155 */
972 ALIGN64 BOOL SendPreconnectionPdu; /* 1156 */
973 UINT64 padding1216[1216 - 1157]; /* 1157 */
975 /* Server Redirection */
976 ALIGN64 UINT32 RedirectionFlags; /* 1216 */
977 ALIGN64 char* TargetNetAddress; /* 1217 */
978 ALIGN64 BYTE* LoadBalanceInfo; /* 1218 */
979 ALIGN64 UINT32 LoadBalanceInfoLength; /* 1219 */
980 ALIGN64 char* RedirectionUsername; /* 1220 */
981 ALIGN64 char* RedirectionDomain; /* 1221 */
982 ALIGN64 BYTE* RedirectionPassword; /* 1222 */
983 ALIGN64 UINT32 RedirectionPasswordLength; /* 1223 */
984 ALIGN64 char* RedirectionTargetFQDN; /* 1224 */
985 ALIGN64 char* RedirectionTargetNetBiosName; /* 1225 */
986 ALIGN64 BYTE* RedirectionTsvUrl; /* 1226 */
987 ALIGN64 UINT32 RedirectionTsvUrlLength; /* 1227 */
988 ALIGN64 UINT32 TargetNetAddressCount; /* 1228 */
989 ALIGN64 char** TargetNetAddresses; /* 1229 */
990 UINT64 padding1280[1280 - 1230]; /* 1230 */
996 /* Credentials Cache */
997 ALIGN64 BYTE* Password51; /* 1280 */
998 ALIGN64 DWORD Password51Length; /* 1281 */
999 UINT64 padding1344[1344 - 1282]; /* 1282 */
1001 /* Kerberos Authentication */
1002 ALIGN64 char* KerberosKdc; /* 1344 */
1003 ALIGN64 char* KerberosRealm; /* 1345 */
1004 UINT64 padding1408[1408 - 1346]; /* 1346 */
1006 /* Server Certificate */
1007 ALIGN64 BOOL IgnoreCertificate; /* 1408 */
1008 ALIGN64 char* CertificateName; /* 1409 */
1009 ALIGN64 char* CertificateFile; /* 1410 */
1010 ALIGN64 char* PrivateKeyFile; /* 1411 */
1011 ALIGN64 char* RdpKeyFile; /* 1412 */
1012 ALIGN64 rdpRsaKey* RdpServerRsaKey; /* 1413 */
1013 ALIGN64 rdpCertificate* RdpServerCertificate; /* 1414 */
1014 ALIGN64 BOOL ExternalCertificateManagement; /* 1415 */
1015 UINT64 padding1472[1472 - 1416]; /* 1416 */
1016 UINT64 padding1536[1536 - 1472]; /* 1472 */
1022 /* Window Settings */
1023 ALIGN64 BOOL Workarea; /* 1536 */
1024 ALIGN64 BOOL Fullscreen; /* 1537 */
1025 ALIGN64 UINT32 PercentScreen; /* 1538 */
1026 ALIGN64 BOOL GrabKeyboard; /* 1539 */
1027 ALIGN64 BOOL Decorations; /* 1540 */
1028 ALIGN64 BOOL MouseMotion; /* 1541 */
1029 ALIGN64 char* WindowTitle; /* 1542 */
1030 ALIGN64 UINT64 ParentWindowId; /* 1543 */
1031 ALIGN64 BOOL AsyncInput; /* 1544 */
1032 ALIGN64 BOOL AsyncUpdate; /* 1545 */
1033 ALIGN64 BOOL AsyncChannels; /* 1546 */
1034 ALIGN64 BOOL AsyncTransport; /* 1547 */
1035 ALIGN64 BOOL ToggleFullscreen; /* 1548 */
1036 ALIGN64 char* WmClass; /* 1549 */
1037 ALIGN64 BOOL EmbeddedWindow; /* 1550 */
1038 ALIGN64 BOOL SmartSizing; /* 1551 */
1039 ALIGN64 int XPan; /* 1552 */
1040 ALIGN64 int YPan; /* 1553 */
1041 ALIGN64 double ScalingFactor; /* 1554 */
1042 UINT64 padding1601[1601 - 1555]; /* 1555 */
1045 ALIGN64 BOOL SoftwareGdi; /* 1601 */
1046 ALIGN64 BOOL LocalConnection; /* 1602 */
1047 ALIGN64 BOOL AuthenticationOnly; /* 1603 */
1048 ALIGN64 BOOL CredentialsFromStdin; /* 1604 */
1049 UINT64 padding1664[1664 - 1605]; /* 1605 */
1052 ALIGN64 char* ComputerName; /* 1664 */
1053 UINT64 padding1728[1728 - 1665]; /* 1665 */
1056 ALIGN64 char* ConnectionFile; /* 1728 */
1057 ALIGN64 char* AssistanceFile; /* 1729 */
1058 UINT64 padding1792[1792 - 1730]; /* 1730 */
1061 ALIGN64 char* HomePath; /* 1792 */
1062 ALIGN64 char* ConfigPath; /* 1793 */
1063 ALIGN64 char* CurrentPath; /* 1794 */
1064 UINT64 padding1856[1856 - 1795]; /* 1795 */
1067 ALIGN64 BOOL DumpRemoteFx; /* 1856 */
1068 ALIGN64 BOOL PlayRemoteFx; /* 1857 */
1069 ALIGN64 char* DumpRemoteFxFile; /* 1858 */
1070 ALIGN64 char* PlayRemoteFxFile; /* 1859 */
1071 UINT64 padding1920[1920 - 1860]; /* 1860 */
1072 UINT64 padding1984[1984 - 1920]; /* 1920 */
1079 ALIGN64 UINT32 GatewayUsageMethod; /* 1984 */
1080 ALIGN64 UINT32 GatewayPort; /* 1985 */
1081 ALIGN64 char* GatewayHostname; /* 1986 */
1082 ALIGN64 char* GatewayUsername; /* 1987 */
1083 ALIGN64 char* GatewayPassword; /* 1988 */
1084 ALIGN64 char* GatewayDomain; /* 1989 */
1085 ALIGN64 UINT32 GatewayCredentialsSource; /* 1990 */
1086 ALIGN64 BOOL GatewayUseSameCredentials; /* 1991 */
1087 ALIGN64 BOOL GatewayEnabled; /* 1992 */
1088 ALIGN64 BOOL GatewayBypassLocal; /* 1993 */
1089 UINT64 padding2048[2048 - 1994]; /* 1994 */
1090 UINT64 padding2112[2112 - 2048]; /* 2048 */
1097 ALIGN64 BOOL RemoteApplicationMode; /* 2112 */
1098 ALIGN64 char* RemoteApplicationName; /* 2113 */
1099 ALIGN64 char* RemoteApplicationIcon; /* 2114 */
1100 ALIGN64 char* RemoteApplicationProgram; /* 2115 */
1101 ALIGN64 char* RemoteApplicationFile; /* 2116 */
1102 ALIGN64 char* RemoteApplicationGuid; /* 2117 */
1103 ALIGN64 char* RemoteApplicationCmdLine; /* 2118 */
1104 ALIGN64 DWORD RemoteApplicationExpandCmdLine; /* 2119 */
1105 ALIGN64 DWORD RemoteApplicationExpandWorkingDir; /* 2120 */
1106 ALIGN64 BOOL DisableRemoteAppCapsCheck; /* 2121 */
1107 ALIGN64 UINT32 RemoteAppNumIconCaches; /* 2122 */
1108 ALIGN64 UINT32 RemoteAppNumIconCacheEntries; /* 2123 */
1109 ALIGN64 BOOL RemoteAppLanguageBarSupported; /* 2124 */
1110 UINT64 padding2176[2176 - 2125]; /* 2125 */
1111 UINT64 padding2240[2240 - 2176]; /* 2176 */
1114 * Mandatory Capabilities
1118 ALIGN64 BYTE* ReceivedCapabilities; /* 2240 */
1119 ALIGN64 UINT32 ReceivedCapabilitiesSize; /* 2241 */
1120 UINT64 padding2304[2304 - 2242]; /* 2242 */
1122 /* General Capabilities */
1123 ALIGN64 UINT32 OsMajorType; /* 2304 */
1124 ALIGN64 UINT32 OsMinorType; /* 2305 */
1125 ALIGN64 BOOL RefreshRect; /* 2306 */
1126 ALIGN64 BOOL SuppressOutput; /* 2307 */
1127 ALIGN64 BOOL FastPathOutput; /* 2308 */
1128 ALIGN64 BOOL SaltedChecksum; /* 2309 */
1129 ALIGN64 BOOL LongCredentialsSupported; /* 2310 */
1130 ALIGN64 BOOL NoBitmapCompressionHeader; /* 2311 */
1131 ALIGN64 BOOL BitmapCompressionDisabled; /* 2312 */
1132 UINT64 padding2368[2368 - 2313]; /* 2313 */
1134 /* Bitmap Capabilities */
1135 ALIGN64 BOOL DesktopResize; /* 2368 */
1136 ALIGN64 BOOL DrawAllowDynamicColorFidelity; /* 2369 */
1137 ALIGN64 BOOL DrawAllowColorSubsampling; /* 2370 */
1138 ALIGN64 BOOL DrawAllowSkipAlpha; /* 2371 */
1139 UINT64 padding2432[2432 - 2372]; /* 2372 */
1141 /* Order Capabilities */
1142 ALIGN64 BYTE* OrderSupport; /* 2432 */
1143 ALIGN64 BOOL BitmapCacheV3Enabled; /* 2433 */
1144 ALIGN64 BOOL AltSecFrameMarkerSupport; /* 2434 */
1145 UINT64 padding2497[2497 - 2435]; /* 2435 */
1147 /* Bitmap Cache Capabilities */
1148 ALIGN64 BOOL BitmapCacheEnabled; /* 2497 */
1149 ALIGN64 UINT32 BitmapCacheVersion; /* 2498 */
1150 ALIGN64 BOOL AllowCacheWaitingList; /* 2499 */
1151 ALIGN64 BOOL BitmapCachePersistEnabled; /* 2500 */
1152 ALIGN64 UINT32 BitmapCacheV2NumCells; /* 2501 */
1153 ALIGN64 BITMAP_CACHE_V2_CELL_INFO* BitmapCacheV2CellInfo; /* 2502 */
1154 UINT64 padding2560[2560 - 2503]; /* 2503 */
1156 /* Pointer Capabilities */
1157 ALIGN64 BOOL ColorPointerFlag; /* 2560 */
1158 ALIGN64 UINT32 PointerCacheSize; /* 2561 */
1159 UINT64 padding2624[2624 - 2562]; /* 2562 */
1161 /* Input Capabilities */
1162 ALIGN64 UINT32 KeyboardLayout; /* 2624 */
1163 ALIGN64 UINT32 KeyboardType; /* 2625 */
1164 ALIGN64 UINT32 KeyboardSubType; /* 2626 */
1165 ALIGN64 UINT32 KeyboardFunctionKey; /* 2627 */
1166 ALIGN64 char* ImeFileName; /* 2628 */
1167 ALIGN64 BOOL UnicodeInput; /* 2629 */
1168 ALIGN64 BOOL FastPathInput; /* 2630 */
1169 ALIGN64 BOOL MultiTouchInput; /* 2631 */
1170 ALIGN64 BOOL MultiTouchGestures; /* 2632 */
1171 UINT64 padding2688[2688 - 2633]; /* 2633 */
1173 /* Brush Capabilities */
1174 ALIGN64 UINT32 BrushSupportLevel; /* 2688 */
1175 UINT64 padding2752[2752 - 2689]; /* 2689 */
1177 /* Glyph Cache Capabilities */
1178 ALIGN64 UINT32 GlyphSupportLevel; /* 2752 */
1179 ALIGN64 GLYPH_CACHE_DEFINITION* GlyphCache; /* 2753 */
1180 ALIGN64 GLYPH_CACHE_DEFINITION* FragCache; /* 2754 */
1181 UINT64 padding2816[2816 - 2755]; /* 2755 */
1183 /* Offscreen Bitmap Cache */
1184 ALIGN64 UINT32 OffscreenSupportLevel; /* 2816 */
1185 ALIGN64 UINT32 OffscreenCacheSize; /* 2817 */
1186 ALIGN64 UINT32 OffscreenCacheEntries; /* 2818 */
1187 UINT64 padding2880[2880 - 2819]; /* 2819 */
1189 /* Virtual Channel Capabilities */
1190 ALIGN64 UINT32 VirtualChannelCompressionFlags; /* 2880 */
1191 ALIGN64 UINT32 VirtualChannelChunkSize; /* 2881 */
1192 UINT64 padding2944[2944 - 2882]; /* 2882 */
1194 /* Sound Capabilities */
1195 ALIGN64 BOOL SoundBeepsEnabled; /* 2944 */
1196 UINT64 padding3008[3008 - 2945]; /* 2945 */
1197 UINT64 padding3072[3072 - 3008]; /* 3008 */
1200 * Optional Capabilities
1203 /* Bitmap Cache Host Capabilities */
1204 UINT64 padding3136[3136 - 3072]; /* 3072 */
1206 /* Control Capabilities */
1207 UINT64 padding3200[3200 - 3136]; /* 3136 */
1209 /* Window Activation Capabilities */
1210 UINT64 padding3264[3264 - 3200]; /* 3200 */
1212 /* Font Capabilities */
1213 UINT64 padding3328[3328 - 3264]; /* 3264 */
1215 /* Multifragment Update Capabilities */
1216 ALIGN64 UINT32 MultifragMaxRequestSize; /* 3328 */
1217 UINT64 padding3392[3392 - 3329]; /* 3329 */
1219 /* Large Pointer Update Capabilities */
1220 ALIGN64 UINT32 LargePointerFlag; /* 3392 */
1221 UINT64 padding3456[3456 - 3393]; /* 3393 */
1223 /* Desktop Composition Capabilities */
1224 ALIGN64 UINT32 CompDeskSupportLevel; /* 3456 */
1225 UINT64 padding3520[3520 - 3457]; /* 3457 */
1227 /* Surface Commands Capabilities */
1228 ALIGN64 BOOL SurfaceCommandsEnabled; /* 3520 */
1229 ALIGN64 BOOL FrameMarkerCommandEnabled; /* 3521 */
1230 ALIGN64 BOOL SurfaceFrameMarkerEnabled; /* 3522 */
1231 UINT64 padding3584[3584 - 3523]; /* 3523 */
1232 UINT64 padding3648[3648 - 3584]; /* 3584 */
1235 * Bitmap Codecs Capabilities
1239 ALIGN64 BOOL RemoteFxOnly; /* 3648 */
1240 ALIGN64 BOOL RemoteFxCodec; /* 3649 */
1241 ALIGN64 UINT32 RemoteFxCodecId; /* 3650 */
1242 ALIGN64 UINT32 RemoteFxCodecMode; /* 3651 */
1243 ALIGN64 BOOL RemoteFxImageCodec; /* 3652 */
1244 ALIGN64 UINT32 RemoteFxCaptureFlags; /* 3653 */
1245 UINT64 padding3712[3712 - 3654]; /* 3654 */
1248 ALIGN64 BOOL NSCodec; /* 3712 */
1249 ALIGN64 UINT32 NSCodecId; /* 3713 */
1250 ALIGN64 UINT32 FrameAcknowledge; /* 3714 */
1251 UINT64 padding3776[3776 - 3715]; /* 3715 */
1254 ALIGN64 BOOL JpegCodec; /* 3776 */
1255 ALIGN64 UINT32 JpegCodecId; /* 3777 */
1256 ALIGN64 UINT32 JpegQuality; /* 3778 */
1257 UINT64 padding3840[3840 - 3779]; /* 3779 */
1258 UINT64 padding3904[3904 - 3840]; /* 3840 */
1264 /* Bitmap Cache V3 */
1265 ALIGN64 UINT32 BitmapCacheV3CodecId; /* 3904 */
1266 UINT64 padding3968[3968 - 3905]; /* 3905 */
1268 /* Draw Nine Grid */
1269 ALIGN64 BOOL DrawNineGridEnabled; /* 3968 */
1270 ALIGN64 UINT32 DrawNineGridCacheSize; /* 3969 */
1271 ALIGN64 UINT32 DrawNineGridCacheEntries; /* 3970 */
1272 UINT64 padding4032[4032 - 3971]; /* 3971 */
1275 ALIGN64 BOOL DrawGdiPlusEnabled; /* 4032 */
1276 ALIGN64 BOOL DrawGdiPlusCacheEnabled; /* 4033 */
1277 UINT64 padding4096[4096 - 4034]; /* 4034 */
1278 UINT64 padding4160[4160 - 4096]; /* 4096 */
1281 * Device Redirection
1284 /* Device Redirection */
1285 ALIGN64 BOOL DeviceRedirection; /* 4160 */
1286 ALIGN64 UINT32 DeviceCount; /* 4161 */
1287 ALIGN64 UINT32 DeviceArraySize; /* 4162 */
1288 ALIGN64 RDPDR_DEVICE** DeviceArray; /* 4163 */
1289 UINT64 padding4288[4288 - 4164]; /* 4164 */
1291 /* Drive Redirection */
1292 ALIGN64 BOOL RedirectDrives; /* 4288 */
1293 ALIGN64 BOOL RedirectHomeDrive; /* 4289 */
1294 ALIGN64 char* DrivesToRedirect; /* 4290 */
1295 UINT64 padding4416[4416 - 4291]; /* 4291 */
1297 /* Smartcard Redirection */
1298 ALIGN64 BOOL RedirectSmartCards; /* 4416 */
1299 UINT64 padding4544[4544 - 4417]; /* 4417 */
1301 /* Printer Redirection */
1302 ALIGN64 BOOL RedirectPrinters; /* 4544 */
1303 UINT64 padding4672[4672 - 4545]; /* 4545 */
1305 /* Serial and Parallel Port Redirection */
1306 ALIGN64 BOOL RedirectSerialPorts; /* 4672 */
1307 ALIGN64 BOOL RedirectParallelPorts; /* 4673 */
1308 UINT64 padding4800[4800 - 4674]; /* 4674 */
1314 ALIGN64 BOOL RedirectClipboard; /* 4800 */
1315 UINT64 padding4928[4928 - 4801]; /* 4801 */
1318 * Static Virtual Channels
1321 ALIGN64 UINT32 StaticChannelCount; /* 4928 */
1322 ALIGN64 UINT32 StaticChannelArraySize; /* 4929 */
1323 ALIGN64 ADDIN_ARGV** StaticChannelArray; /* 4930 */
1324 UINT64 padding5056[5056 - 4931]; /* 4931 */
1327 * Dynamic Virtual Channels
1330 ALIGN64 UINT32 DynamicChannelCount; /* 5056 */
1331 ALIGN64 UINT32 DynamicChannelArraySize; /* 5057 */
1332 ALIGN64 ADDIN_ARGV** DynamicChannelArray; /* 5058 */
1333 UINT64 padding5184[5184 - 5059]; /* 5059 */
1336 * WARNING: End of ABI stable zone!
1338 * The zone below this point is ABI unstable, and
1339 * is therefore potentially subject to ABI breakage.
1347 ALIGN64 int num_extensions; /* */
1348 ALIGN64 struct rdp_ext_set extensions[16]; /* */
1350 ALIGN64 BYTE* SettingsModified; /* byte array marking fields that have been modified from their default value */
1352 typedef struct rdp_settings rdpSettings;
1359 * rdpSettings creation flags
1361 #define FREERDP_SETTINGS_SERVER_MODE 0x00000001
1363 FREERDP_API rdpSettings* freerdp_settings_new(DWORD flags);
1364 FREERDP_API rdpSettings* freerdp_settings_clone(rdpSettings* settings);
1365 FREERDP_API void freerdp_settings_free(rdpSettings* settings);
1367 FREERDP_API int freerdp_addin_set_argument(ADDIN_ARGV* args, char* argument);
1368 FREERDP_API int freerdp_addin_replace_argument(ADDIN_ARGV* args, char* previous, char* argument);
1369 FREERDP_API int freerdp_addin_set_argument_value(ADDIN_ARGV* args, char* option, char* value);
1370 FREERDP_API int freerdp_addin_replace_argument_value(ADDIN_ARGV* args, char* previous, char* option, char* value);
1372 FREERDP_API void freerdp_device_collection_add(rdpSettings* settings, RDPDR_DEVICE* device);
1373 FREERDP_API RDPDR_DEVICE* freerdp_device_collection_find(rdpSettings* settings, const char* name);
1374 FREERDP_API RDPDR_DEVICE* freerdp_device_clone(RDPDR_DEVICE* device);
1375 FREERDP_API void freerdp_device_collection_free(rdpSettings* settings);
1377 FREERDP_API void freerdp_static_channel_collection_add(rdpSettings* settings, ADDIN_ARGV* channel);
1378 FREERDP_API ADDIN_ARGV* freerdp_static_channel_collection_find(rdpSettings* settings, const char* name);
1379 FREERDP_API ADDIN_ARGV* freerdp_static_channel_clone(ADDIN_ARGV* channel);
1380 FREERDP_API void freerdp_static_channel_collection_free(rdpSettings* settings);
1382 FREERDP_API void freerdp_dynamic_channel_collection_add(rdpSettings* settings, ADDIN_ARGV* channel);
1383 FREERDP_API ADDIN_ARGV* freerdp_dynamic_channel_collection_find(rdpSettings* settings, const char* name);
1384 FREERDP_API ADDIN_ARGV* freerdp_dynamic_channel_clone(ADDIN_ARGV* channel);
1385 FREERDP_API void freerdp_dynamic_channel_collection_free(rdpSettings* settings);
1387 FREERDP_API void freerdp_target_net_addresses_free(rdpSettings* settings);
1389 FREERDP_API void freerdp_performance_flags_make(rdpSettings* settings);
1390 FREERDP_API void freerdp_performance_flags_split(rdpSettings* settings);
1392 FREERDP_API void freerdp_set_gateway_usage_method(rdpSettings* settings, UINT32 GatewayUsageMethod);
1393 FREERDP_API void freerdp_update_gateway_usage_method(rdpSettings* settings, UINT32 GatewayEnabled, UINT32 GatewayBypassLocal);
1395 FREERDP_API BOOL freerdp_get_param_bool(rdpSettings* settings, int id);
1396 FREERDP_API int freerdp_set_param_bool(rdpSettings* settings, int id, BOOL param);
1398 FREERDP_API int freerdp_get_param_int(rdpSettings* settings, int id);
1399 FREERDP_API int freerdp_set_param_int(rdpSettings* settings, int id, int param);
1401 FREERDP_API UINT32 freerdp_get_param_uint32(rdpSettings* settings, int id);
1402 FREERDP_API int freerdp_set_param_uint32(rdpSettings* settings, int id, UINT32 param);
1404 FREERDP_API UINT64 freerdp_get_param_uint64(rdpSettings* settings, int id);
1405 FREERDP_API int freerdp_set_param_uint64(rdpSettings* settings, int id, UINT64 param);
1407 FREERDP_API char* freerdp_get_param_string(rdpSettings* settings, int id);
1408 FREERDP_API int freerdp_set_param_string(rdpSettings* settings, int id, const char* param);
1410 FREERDP_API double freerdp_get_param_double(rdpSettings* settings, int id);
1411 FREERDP_API int freerdp_set_param_double(rdpSettings* settings, int id, double param);
1417 #endif /* FREERDP_SETTINGS_H */