a53c14d3210558594393e57d33d270945cc2dbef
[platform/upstream/freerdp.git] / include / freerdp / settings.h
1 /**
2  * FreeRDP: A Remote Desktop Protocol Implementation
3  * RDP Settings
4  *
5  * Copyright 2009-2011 Jay Sorg
6  * Copyright 2010-2012 Marc-Andre Moreau <marcandre.moreau@gmail.com>
7  *
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
11  *
12  *     http://www.apache.org/licenses/LICENSE-2.0
13  *
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.
19  */
20
21 #ifndef FREERDP_SETTINGS_H
22 #define FREERDP_SETTINGS_H
23
24 #include <freerdp/api.h>
25 #include <freerdp/types.h>
26
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
37
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
46
47 /* Client to Server (CS) data blocks */
48 #define CS_CORE                 0xC001
49 #define CS_SECURITY             0xC002
50 #define CS_NET                  0xC003
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
56
57 /* Server to Client (SC) data blocks */
58 #define SC_CORE                 0x0C01
59 #define SC_SECURITY             0x0C02
60 #define SC_NET                  0x0C03
61 #define SC_MCS_MSGCHANNEL       0x0C04
62 #define SC_MULTITRANSPORT       0x0C08
63
64 /* RDP version */
65 #define RDP_VERSION_4           0x00080001
66 #define RDP_VERSION_5_PLUS      0x00080004
67
68 /* Color depth */
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
74
75 /* Secure Access Sequence */
76 #define RNS_UD_SAS_DEL          0xAA03
77
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
83
84 /* Audio Mode */
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 */
88
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
100
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
104
105 /* Cluster Information Flags */
106 #define REDIRECTION_SUPPORTED                   0x00000001
107 #define REDIRECTED_SESSIONID_FIELD_VALID        0x00000002
108 #define REDIRECTED_SMARTCARD                    0x00000040
109
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
116
117 #define MONITOR_PRIMARY                         0x00000001
118
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
125
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
132
133 /* Multitransport Types */
134 #define TRANSPORT_TYPE_UDP_FECR                 0x00000001
135 #define TRANSPORT_TYPE_UDP_FECL                 0x00000004
136 #define TRANSPORT_TYPE_UDP_PREFERRED            0x00000100
137
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
150
151 /* Auto Reconnect Version */
152 #define AUTO_RECONNECT_VERSION_1                0x00000001
153
154 /* Cookie Lengths */
155 #define MSTSC_COOKIE_MAX_LENGTH                 9
156 #define DEFAULT_COOKIE_MAX_LENGTH               0xFF
157
158 /* Order Support */
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
191
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
197
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
204
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
209
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
224
225 /* Keyboard Hook */
226 #define KEYBOARD_HOOK_LOCAL                     0
227 #define KEYBOARD_HOOK_REMOTE                    1
228 #define KEYBOARD_HOOK_FULLSCREEN_ONLY           2
229
230 struct _TARGET_NET_ADDRESS
231 {
232         UINT32 Length;
233         LPWSTR Address;
234 };
235 typedef struct _TARGET_NET_ADDRESS TARGET_NET_ADDRESS;
236
237 /* Logon Error Info */
238
239 #define LOGON_MSG_NO_PERMISSION                 0xFFFFFFFA
240 #define LOGON_MSG_BUMP_OPTIONS                  0xFFFFFFFB
241 #define LOGON_MSG_SESSION_RECONNECT             0xFFFFFFFC
242 #define LOGON_MSG_SESSION_TERMINATE             0xFFFFFFFD
243 #define LOGON_MSG_SESSION_CONTINUE              0xFFFFFFFE
244
245 #define LOGON_FAILED_BAD_PASSWORD               0x00000000
246 #define LOGON_FAILED_UPDATE_PASSWORD            0x00000001
247 #define LOGON_FAILED_OTHER                      0x00000002
248 #define LOGON_WARNING                           0x00000003
249
250 /* Server Status Info */
251 #define STATUS_FINDING_DESTINATION              0x00000401
252 #define STATUS_LOADING_DESTINATION              0x00000402
253 #define STATUS_BRINGING_SESSION_ONLINE          0x00000403
254 #define STATUS_REDIRECTING_TO_DESTINATION       0x00000404
255 #define STATUS_VM_LOADING                       0x00000501
256 #define STATUS_VM_WAKING                        0x00000502
257 #define STATUS_VM_BOOTING                       0x00000503
258
259 /* Compression Flags */
260 #define PACKET_COMPR_TYPE_8K                    0x00
261 #define PACKET_COMPR_TYPE_64K                   0x01
262 #define PACKET_COMPR_TYPE_RDP6                  0x02
263 #define PACKET_COMPR_TYPE_RDP61                 0x03
264 #define PACKET_COMPR_TYPE_RDP8                  0x04
265
266 /* SYSTEM_TIME */
267 typedef struct
268 {
269         UINT16 wYear;
270         UINT16 wMonth;
271         UINT16 wDayOfWeek;
272         UINT16 wDay;
273         UINT16 wHour;
274         UINT16 wMinute;
275         UINT16 wSecond;
276         UINT16 wMilliseconds;
277 } SYSTEM_TIME;
278
279 /* TIME_ZONE_INFORMATION */
280 struct _TIME_ZONE_INFO
281 {
282         UINT32 bias;
283         char standardName[32];
284         SYSTEM_TIME standardDate;
285         UINT32 standardBias;
286         char daylightName[32];
287         SYSTEM_TIME daylightDate;
288         UINT32 daylightBias;
289 };
290 typedef struct _TIME_ZONE_INFO TIME_ZONE_INFO;
291
292 /* ARC_CS_PRIVATE_PACKET */
293 typedef struct
294 {
295         UINT32 cbLen;
296         UINT32 version;
297         UINT32 logonId;
298         BYTE securityVerifier[16];
299 } ARC_CS_PRIVATE_PACKET;
300
301 /* ARC_SC_PRIVATE_PACKET */
302 typedef struct
303 {
304         UINT32 cbLen;
305         UINT32 version;
306         UINT32 logonId;
307         BYTE arcRandomBits[16];
308 } ARC_SC_PRIVATE_PACKET;
309
310 /* Certificates */
311
312 struct rdp_CertBlob
313 {
314         UINT32 length;
315         BYTE* data;
316 };
317 typedef struct rdp_CertBlob rdpCertBlob;
318
319 struct rdp_X509CertChain
320 {
321         UINT32 count;
322         rdpCertBlob* array;
323 };
324 typedef struct rdp_X509CertChain rdpX509CertChain;
325
326 struct rdp_CertInfo
327 {
328         BYTE* Modulus;
329         DWORD ModulusLength;
330         BYTE exponent[4];
331 };
332 typedef struct rdp_CertInfo rdpCertInfo;
333
334 struct rdp_certificate
335 {
336         rdpCertInfo cert_info;
337         rdpX509CertChain* x509_cert_chain;
338 };
339 typedef struct rdp_certificate rdpCertificate;
340
341 struct rdp_rsa_key
342 {
343         BYTE* Modulus;
344         DWORD ModulusLength;
345         BYTE* PrivateExponent;
346         DWORD PrivateExponentLength;
347         BYTE exponent[4];
348 };
349 typedef struct rdp_rsa_key rdpRsaKey;
350
351 /* Channels */
352
353 struct _ADDIN_ARGV
354 {
355         int argc;
356         char** argv;
357 };
358 typedef struct _ADDIN_ARGV ADDIN_ARGV;
359
360 /* Extensions */
361
362 struct rdp_ext_set
363 {
364         char name[256]; /* plugin name or path */
365         void* data; /* plugin data */
366 };
367
368 /* Bitmap Cache */
369
370 struct _BITMAP_CACHE_CELL_INFO
371 {
372         UINT16 numEntries;
373         UINT16 maxSize;
374 };
375 typedef struct _BITMAP_CACHE_CELL_INFO BITMAP_CACHE_CELL_INFO;
376
377 struct _BITMAP_CACHE_V2_CELL_INFO
378 {
379         UINT32 numEntries;
380         BOOL persistent;
381 };
382 typedef struct _BITMAP_CACHE_V2_CELL_INFO BITMAP_CACHE_V2_CELL_INFO;
383
384 /* Glyph Cache */
385
386 struct _GLYPH_CACHE_DEFINITION
387 {
388         UINT16 cacheEntries;
389         UINT16 cacheMaximumCellSize;
390 };
391 typedef struct _GLYPH_CACHE_DEFINITION GLYPH_CACHE_DEFINITION;
392
393 /* Monitors */
394
395 struct rdp_monitor
396 {
397         INT32 x;
398         INT32 y;
399         INT32 width;
400         INT32 height;
401         UINT32 is_primary;
402 };
403 typedef struct rdp_monitor rdpMonitor;
404
405 struct _MONITOR_DEF
406 {
407         INT32 left;
408         INT32 top;
409         INT32 right;
410         INT32 bottom;
411         UINT32 flags;
412 };
413 typedef struct _MONITOR_DEF MONITOR_DEF;
414
415 struct _MONITOR_ATTRIBUTES
416 {
417         UINT32 physicalWidth;
418         UINT32 physicalHeight;
419         UINT32 orientation;
420         UINT32 desktopScaleFactor;
421         UINT32 deviceScaleFactor;
422 };
423 typedef struct _MONITOR_ATTRIBUTES MONITOR_ATTRIBUTES;
424
425 /* Device Redirection */
426
427 #define RDPDR_DTYP_SERIAL               0x00000001
428 #define RDPDR_DTYP_PARALLEL             0x00000002
429 #define RDPDR_DTYP_PRINT                0x00000004
430 #define RDPDR_DTYP_FILESYSTEM           0x00000008
431 #define RDPDR_DTYP_SMARTCARD            0x00000020
432
433 struct _RDPDR_DEVICE
434 {
435         UINT32 Id;
436         UINT32 Type;
437         char* Name;
438 };
439 typedef struct _RDPDR_DEVICE RDPDR_DEVICE;
440
441 struct _RDPDR_DRIVE
442 {
443         UINT32 Id;
444         UINT32 Type;
445         char* Name;
446         char* Path;
447 };
448 typedef struct _RDPDR_DRIVE RDPDR_DRIVE;
449
450 struct _RDPDR_PRINTER
451 {
452         UINT32 Id;
453         UINT32 Type;
454         char* Name;
455         char* DriverName;
456 };
457 typedef struct _RDPDR_PRINTER RDPDR_PRINTER;
458
459 struct _RDPDR_SMARTCARD
460 {
461         UINT32 Id;
462         UINT32 Type;
463         char* Name;
464         char* Path;
465 };
466 typedef struct _RDPDR_SMARTCARD RDPDR_SMARTCARD;
467
468 struct _RDPDR_SERIAL
469 {
470         UINT32 Id;
471         UINT32 Type;
472         char* Name;
473         char* Path;
474         char* Driver;
475         char* Permissive;
476 };
477 typedef struct _RDPDR_SERIAL RDPDR_SERIAL;
478
479 struct _RDPDR_PARALLEL
480 {
481         UINT32 Id;
482         UINT32 Type;
483         char* Name;
484         char* Path;
485 };
486 typedef struct _RDPDR_PARALLEL RDPDR_PARALLEL;
487
488 /* Settings */
489
490 #ifdef __GNUC__
491 #define ALIGN64 __attribute__((aligned(8)))
492 #else
493 #ifdef _WIN32
494 #define ALIGN64 __declspec(align(8))
495 #else
496 #define ALIGN64
497 #endif
498 #endif
499
500 /**
501  * FreeRDP Settings Ids
502  * This is generated with a script parsing the rdpSettings data structure
503  */
504
505 #define FreeRDP_instance                                        0
506 #define FreeRDP_ServerMode                                      16
507 #define FreeRDP_ShareId                                         17
508 #define FreeRDP_PduSource                                       18
509 #define FreeRDP_ServerPort                                      19
510 #define FreeRDP_ServerHostname                                  20
511 #define FreeRDP_Username                                        21
512 #define FreeRDP_Password                                        22
513 #define FreeRDP_Domain                                          23
514 #define FreeRDP_PasswordHash                                    24
515 #define FreeRDP_RdpVersion                                      128
516 #define FreeRDP_DesktopWidth                                    129
517 #define FreeRDP_DesktopHeight                                   130
518 #define FreeRDP_ColorDepth                                      131
519 #define FreeRDP_ConnectionType                                  132
520 #define FreeRDP_ClientBuild                                     133
521 #define FreeRDP_ClientHostname                                  134
522 #define FreeRDP_ClientProductId                                 135
523 #define FreeRDP_EarlyCapabilityFlags                            136
524 #define FreeRDP_NetworkAutoDetect                               137
525 #define FreeRDP_SupportAsymetricKeys                            138
526 #define FreeRDP_SupportErrorInfoPdu                             139
527 #define FreeRDP_SupportStatusInfoPdu                            140
528 #define FreeRDP_SupportMonitorLayoutPdu                         141
529 #define FreeRDP_SupportGraphicsPipeline                         142
530 #define FreeRDP_SupportDynamicTimeZone                          143
531 #define FreeRDP_SupportHeartbeatPdu                             144
532 #define FreeRDP_DisableEncryption                               192
533 #define FreeRDP_EncryptionMethods                               193
534 #define FreeRDP_ExtEncryptionMethods                            194
535 #define FreeRDP_EncryptionLevel                                 195
536 #define FreeRDP_ServerRandom                                    196
537 #define FreeRDP_ServerRandomLength                              197
538 #define FreeRDP_ServerCertificate                               198
539 #define FreeRDP_ServerCertificateLength                         199
540 #define FreeRDP_ClientRandom                                    200
541 #define FreeRDP_ClientRandomLength                              201
542 #define FreeRDP_ChannelCount                                    256
543 #define FreeRDP_ChannelDefArraySize                             257
544 #define FreeRDP_ChannelDefArray                                 258
545 #define FreeRDP_ClusterInfoFlags                                320
546 #define FreeRDP_RedirectedSessionId                             321
547 #define FreeRDP_ConsoleSession                                  322
548 #define FreeRDP_MonitorCount                                    384
549 #define FreeRDP_MonitorDefArraySize                             385
550 #define FreeRDP_MonitorDefArray                                 386
551 #define FreeRDP_SpanMonitors                                    387
552 #define FreeRDP_UseMultimon                                     388
553 #define FreeRDP_ForceMultimon                                   389
554 #define FreeRDP_DesktopPosX                                     390
555 #define FreeRDP_DesktopPosY                                     391
556 #define FreeRDP_MultitransportFlags                             512
557 #define FreeRDP_SupportMultitransport                           513
558 #define FreeRDP_AlternateShell                                  640
559 #define FreeRDP_ShellWorkingDirectory                           641
560 #define FreeRDP_AutoLogonEnabled                                704
561 #define FreeRDP_CompressionEnabled                              705
562 #define FreeRDP_DisableCtrlAltDel                               706
563 #define FreeRDP_EnableWindowsKey                                707
564 #define FreeRDP_MaximizeShell                                   708
565 #define FreeRDP_LogonNotify                                     709
566 #define FreeRDP_LogonErrors                                     710
567 #define FreeRDP_MouseAttached                                   711
568 #define FreeRDP_MouseHasWheel                                   712
569 #define FreeRDP_RemoteConsoleAudio                              713
570 #define FreeRDP_AudioPlayback                                   714
571 #define FreeRDP_AudioCapture                                    715
572 #define FreeRDP_VideoDisable                                    716
573 #define FreeRDP_PasswordIsSmartcardPin                          717
574 #define FreeRDP_UsingSavedCredentials                           718
575 #define FreeRDP_ForceEncryptedCsPdu                             719
576 #define FreeRDP_HiDefRemoteApp                                  720
577 #define FreeRDP_CompressionLevel                                721
578 #define FreeRDP_IPv6Enabled                                     768
579 #define FreeRDP_ClientAddress                                   769
580 #define FreeRDP_ClientDir                                       770
581 #define FreeRDP_AutoReconnectionEnabled                         832
582 #define FreeRDP_AutoReconnectMaxRetries                         833
583 #define FreeRDP_ClientAutoReconnectCookie                       834
584 #define FreeRDP_ServerAutoReconnectCookie                       835
585 #define FreeRDP_ClientTimeZone                                  896
586 #define FreeRDP_DynamicDSTTimeZoneKeyName                       897
587 #define FreeRDP_DynamicDaylightTimeDisabled                     898
588 #define FreeRDP_PerformanceFlags                                960
589 #define FreeRDP_AllowFontSmoothing                              961
590 #define FreeRDP_DisableWallpaper                                962
591 #define FreeRDP_DisableFullWindowDrag                           963
592 #define FreeRDP_DisableMenuAnims                                964
593 #define FreeRDP_DisableThemes                                   965
594 #define FreeRDP_DisableCursorShadow                             966
595 #define FreeRDP_DisableCursorBlinking                           967
596 #define FreeRDP_AllowDesktopComposition                         968
597 #define FreeRDP_RemoteAssistanceMode                            1024
598 #define FreeRDP_RemoteAssistanceSessionId                       1025
599 #define FreeRDP_RemoteAssistancePassStub                        1026
600 #define FreeRDP_RemoteAssistancePassword                        1027
601 #define FreeRDP_RemoteAssistanceRCTicket                        1028
602 #define FreeRDP_TlsSecurity                                     1088
603 #define FreeRDP_NlaSecurity                                     1089
604 #define FreeRDP_RdpSecurity                                     1090
605 #define FreeRDP_ExtSecurity                                     1091
606 #define FreeRDP_Authentication                                  1092
607 #define FreeRDP_RequestedProtocols                              1093
608 #define FreeRDP_SelectedProtocol                                1094
609 #define FreeRDP_NegotiationFlags                                1095
610 #define FreeRDP_NegotiateSecurityLayer                          1096
611 #define FreeRDP_RestrictedAdminModeRequired                     1097
612 #define FreeRDP_AuthenticationServiceClass                      1098
613 #define FreeRDP_DisableCredentialsDelegation                    1099
614 #define FreeRDP_AuthenticationLevel                             1100
615 #define FreeRDP_MstscCookieMode                                 1152
616 #define FreeRDP_CookieMaxLength                                 1153
617 #define FreeRDP_PreconnectionId                                 1154
618 #define FreeRDP_PreconnectionBlob                               1155
619 #define FreeRDP_SendPreconnectionPdu                            1156
620 #define FreeRDP_RedirectionFlags                                1216
621 #define FreeRDP_TargetNetAddress                                1217
622 #define FreeRDP_LoadBalanceInfo                                 1218
623 #define FreeRDP_LoadBalanceInfoLength                           1219
624 #define FreeRDP_RedirectionUsername                             1220
625 #define FreeRDP_RedirectionDomain                               1221
626 #define FreeRDP_RedirectionPassword                             1222
627 #define FreeRDP_RedirectionPasswordLength                       1223
628 #define FreeRDP_RedirectionTargetFQDN                           1224
629 #define FreeRDP_RedirectionTargetNetBiosName                    1225
630 #define FreeRDP_RedirectionTsvUrl                               1226
631 #define FreeRDP_RedirectionTsvUrlLength                         1227
632 #define FreeRDP_TargetNetAddressCount                           1228
633 #define FreeRDP_TargetNetAddresses                              1229
634 #define FreeRDP_Password51                                      1280
635 #define FreeRDP_Password51Length                                1281
636 #define FreeRDP_KerberosKdc                                     1344
637 #define FreeRDP_KerberosRealm                                   1345
638 #define FreeRDP_IgnoreCertificate                               1408
639 #define FreeRDP_CertificateName                                 1409
640 #define FreeRDP_CertificateFile                                 1410
641 #define FreeRDP_PrivateKeyFile                                  1411
642 #define FreeRDP_RdpKeyFile                                      1412
643 #define FreeRDP_RdpServerRsaKey                                 1413
644 #define FreeRDP_RdpServerCertificate                            1414
645 #define FreeRDP_ExternalCertificateManagement                   1415
646 #define FreeRDP_Workarea                                        1536
647 #define FreeRDP_Fullscreen                                      1537
648 #define FreeRDP_PercentScreen                                   1538
649 #define FreeRDP_GrabKeyboard                                    1539
650 #define FreeRDP_Decorations                                     1540
651 #define FreeRDP_MouseMotion                                     1541
652 #define FreeRDP_WindowTitle                                     1542
653 #define FreeRDP_ParentWindowId                                  1543
654 #define FreeRDP_AsyncInput                                      1544
655 #define FreeRDP_AsyncUpdate                                     1545
656 #define FreeRDP_AsyncChannels                                   1546
657 #define FreeRDP_AsyncTransport                                  1547
658 #define FreeRDP_ToggleFullscreen                                1548
659 #define FreeRDP_WmClass                                         1549
660 #define FreeRDP_EmbeddedWindow                                  1550
661 #define FreeRDP_SmartSizing                                     1551
662 #define FreeRDP_XPan                                            1552
663 #define FreeRDP_YPan                                            1553
664 #define FreeRDP_ScalingFactor                                   1554
665 #define FreeRDP_SoftwareGdi                                     1601
666 #define FreeRDP_LocalConnection                                 1602
667 #define FreeRDP_AuthenticationOnly                              1603
668 #define FreeRDP_CredentialsFromStdin                            1604
669 #define FreeRDP_ComputerName                                    1664
670 #define FreeRDP_ConnectionFile                                  1728
671 #define FreeRDP_AssistanceFile                                  1729
672 #define FreeRDP_HomePath                                        1792
673 #define FreeRDP_ConfigPath                                      1793
674 #define FreeRDP_CurrentPath                                     1794
675 #define FreeRDP_DumpRemoteFx                                    1856
676 #define FreeRDP_PlayRemoteFx                                    1857
677 #define FreeRDP_DumpRemoteFxFile                                1858
678 #define FreeRDP_PlayRemoteFxFile                                1859
679 #define FreeRDP_GatewayUsageMethod                              1984
680 #define FreeRDP_GatewayPort                                     1985
681 #define FreeRDP_GatewayHostname                                 1986
682 #define FreeRDP_GatewayUsername                                 1987
683 #define FreeRDP_GatewayPassword                                 1988
684 #define FreeRDP_GatewayDomain                                   1989
685 #define FreeRDP_GatewayCredentialsSource                        1990
686 #define FreeRDP_GatewayUseSameCredentials                       1991
687 #define FreeRDP_GatewayEnabled                                  1992
688 #define FreeRDP_GatewayBypassLocal                              1993
689 #define FreeRDP_RemoteApplicationMode                           2112
690 #define FreeRDP_RemoteApplicationName                           2113
691 #define FreeRDP_RemoteApplicationIcon                           2114
692 #define FreeRDP_RemoteApplicationProgram                        2115
693 #define FreeRDP_RemoteApplicationFile                           2116
694 #define FreeRDP_RemoteApplicationGuid                           2117
695 #define FreeRDP_RemoteApplicationCmdLine                        2118
696 #define FreeRDP_RemoteApplicationExpandCmdLine                  2119
697 #define FreeRDP_RemoteApplicationExpandWorkingDir               2120
698 #define FreeRDP_DisableRemoteAppCapsCheck                       2121
699 #define FreeRDP_RemoteAppNumIconCaches                          2122
700 #define FreeRDP_RemoteAppNumIconCacheEntries                    2123
701 #define FreeRDP_RemoteAppLanguageBarSupported                   2124
702 #define FreeRDP_ReceivedCapabilities                            2240
703 #define FreeRDP_ReceivedCapabilitiesSize                        2241
704 #define FreeRDP_OsMajorType                                     2304
705 #define FreeRDP_OsMinorType                                     2305
706 #define FreeRDP_RefreshRect                                     2306
707 #define FreeRDP_SuppressOutput                                  2307
708 #define FreeRDP_FastPathOutput                                  2308
709 #define FreeRDP_SaltedChecksum                                  2309
710 #define FreeRDP_LongCredentialsSupported                        2310
711 #define FreeRDP_NoBitmapCompressionHeader                       2311
712 #define FreeRDP_BitmapCompressionDisabled                       2312
713 #define FreeRDP_DesktopResize                                   2368
714 #define FreeRDP_DrawAllowDynamicColorFidelity                   2369
715 #define FreeRDP_DrawAllowColorSubsampling                       2370
716 #define FreeRDP_DrawAllowSkipAlpha                              2371
717 #define FreeRDP_OrderSupport                                    2432
718 #define FreeRDP_BitmapCacheV3Enabled                            2433
719 #define FreeRDP_AltSecFrameMarkerSupport                        2434
720 #define FreeRDP_BitmapCacheEnabled                              2497
721 #define FreeRDP_BitmapCacheVersion                              2498
722 #define FreeRDP_AllowCacheWaitingList                           2499
723 #define FreeRDP_BitmapCachePersistEnabled                       2500
724 #define FreeRDP_BitmapCacheV2NumCells                           2501
725 #define FreeRDP_BitmapCacheV2CellInfo                           2502
726 #define FreeRDP_ColorPointerFlag                                2560
727 #define FreeRDP_PointerCacheSize                                2561
728 #define FreeRDP_KeyboardLayout                                  2624
729 #define FreeRDP_KeyboardType                                    2625
730 #define FreeRDP_KeyboardSubType                                 2626
731 #define FreeRDP_KeyboardFunctionKey                             2627
732 #define FreeRDP_ImeFileName                                     2628
733 #define FreeRDP_UnicodeInput                                    2629
734 #define FreeRDP_FastPathInput                                   2630
735 #define FreeRDP_MultiTouchInput                                 2631
736 #define FreeRDP_MultiTouchGestures                              2632
737 #define FreeRDP_KeyboardHook                                    2633
738 #define FreeRDP_BrushSupportLevel                               2688
739 #define FreeRDP_GlyphSupportLevel                               2752
740 #define FreeRDP_GlyphCache                                      2753
741 #define FreeRDP_FragCache                                       2754
742 #define FreeRDP_OffscreenSupportLevel                           2816
743 #define FreeRDP_OffscreenCacheSize                              2817
744 #define FreeRDP_OffscreenCacheEntries                           2818
745 #define FreeRDP_VirtualChannelCompressionFlags                  2880
746 #define FreeRDP_VirtualChannelChunkSize                         2881
747 #define FreeRDP_SoundBeepsEnabled                               2944
748 #define FreeRDP_MultifragMaxRequestSize                         3328
749 #define FreeRDP_LargePointerFlag                                3392
750 #define FreeRDP_CompDeskSupportLevel                            3456
751 #define FreeRDP_SurfaceCommandsEnabled                          3520
752 #define FreeRDP_FrameMarkerCommandEnabled                       3521
753 #define FreeRDP_SurfaceFrameMarkerEnabled                       3522
754 #define FreeRDP_RemoteFxOnly                                    3648
755 #define FreeRDP_RemoteFxCodec                                   3649
756 #define FreeRDP_RemoteFxCodecId                                 3650
757 #define FreeRDP_RemoteFxCodecMode                               3651
758 #define FreeRDP_RemoteFxImageCodec                              3652
759 #define FreeRDP_RemoteFxCaptureFlags                            3653
760 #define FreeRDP_NSCodec                                         3712
761 #define FreeRDP_NSCodecId                                       3713
762 #define FreeRDP_FrameAcknowledge                                3714
763 #define FreeRDP_NSCodecColorLossLevel                           3715
764 #define FreeRDP_NSCodecAllowSubsampling                         3716
765 #define FreeRDP_NSCodecAllowDynamicColorFidelity                3717
766 #define FreeRDP_JpegCodec                                       3776
767 #define FreeRDP_JpegCodecId                                     3777
768 #define FreeRDP_JpegQuality                                     3778
769 #define FreeRDP_GfxThinClient                                   3840
770 #define FreeRDP_GfxSmallCache                                   3841
771 #define FreeRDP_GfxProgressive                                  3842
772 #define FreeRDP_GfxProgressiveV2                                3843
773 #define FreeRDP_GfxH264                                         3844
774 #define FreeRDP_BitmapCacheV3CodecId                            3904
775 #define FreeRDP_DrawNineGridEnabled                             3968
776 #define FreeRDP_DrawNineGridCacheSize                           3969
777 #define FreeRDP_DrawNineGridCacheEntries                        3970
778 #define FreeRDP_DrawGdiPlusEnabled                              4032
779 #define FreeRDP_DrawGdiPlusCacheEnabled                         4033
780 #define FreeRDP_DeviceRedirection                               4160
781 #define FreeRDP_DeviceCount                                     4161
782 #define FreeRDP_DeviceArraySize                                 4162
783 #define FreeRDP_DeviceArray                                     4163
784 #define FreeRDP_RedirectDrives                                  4288
785 #define FreeRDP_RedirectHomeDrive                               4289
786 #define FreeRDP_DrivesToRedirect                                4290
787 #define FreeRDP_RedirectSmartCards                              4416
788 #define FreeRDP_RedirectPrinters                                4544
789 #define FreeRDP_RedirectSerialPorts                             4672
790 #define FreeRDP_RedirectParallelPorts                           4673
791 #define FreeRDP_RedirectClipboard                               4800
792 #define FreeRDP_StaticChannelCount                              4928
793 #define FreeRDP_StaticChannelArraySize                          4929
794 #define FreeRDP_StaticChannelArray                              4930
795 #define FreeRDP_DynamicChannelCount                             5056
796 #define FreeRDP_DynamicChannelArraySize                         5057
797 #define FreeRDP_DynamicChannelArray                             5058
798 #define FreeRDP_SupportDynamicChannels                          5059
799 #define FreeRDP_SupportEchoChannel                              5184
800 #define FreeRDP_SupportDisplayControl                           5185
801 #define FreeRDP_SupportGeometryTracking                         5186
802
803 /**
804  * FreeRDP Settings Data Structure
805  */
806
807 struct rdp_settings
808 {
809         /**
810          * WARNING: this data structure is carefully padded for ABI stability!
811          * Keeping this area clean is particularly challenging, so unless you are
812          * a trusted developer you should NOT take the liberty of adding your own
813          * options straight into the ABI stable zone. Instead, append them to the
814          * very end of this data structure, in the zone marked as ABI unstable.
815          */
816
817         ALIGN64 void* instance; /* 0 */
818         UINT64 padding001[16 - 1]; /* 1 */
819
820         /* Core Parameters */
821         ALIGN64 BOOL ServerMode; /* 16 */
822         ALIGN64 UINT32 ShareId; /* 17 */
823         ALIGN64 UINT32 PduSource; /* 18 */
824         ALIGN64 UINT32 ServerPort; /* 19 */
825         ALIGN64 char* ServerHostname; /* 20 */
826         ALIGN64 char* Username; /* 21 */
827         ALIGN64 char* Password; /* 22 */
828         ALIGN64 char* Domain; /* 23 */
829         ALIGN64 char* PasswordHash; /* 24 */
830         ALIGN64 BOOL WaitForOutputBufferFlush; /* 25 */
831         UINT64 padding0064[64 - 26]; /* 26 */
832         UINT64 padding0128[128 - 64]; /* 64 */
833
834         /**
835          * GCC User Data Blocks
836          */
837
838         /* Client/Server Core Data */
839         ALIGN64 UINT32 RdpVersion; /* 128 */
840         ALIGN64 UINT32 DesktopWidth; /* 129 */
841         ALIGN64 UINT32 DesktopHeight; /* 130 */
842         ALIGN64 UINT32 ColorDepth; /* 131 */
843         ALIGN64 UINT32 ConnectionType; /* 132 */
844         ALIGN64 UINT32 ClientBuild; /* 133 */
845         ALIGN64 char* ClientHostname; /* 134 */
846         ALIGN64 char* ClientProductId; /* 135 */
847         ALIGN64 UINT32 EarlyCapabilityFlags; /* 136 */
848         ALIGN64 BOOL NetworkAutoDetect; /* 137 */
849         ALIGN64 BOOL SupportAsymetricKeys; /* 138 */
850         ALIGN64 BOOL SupportErrorInfoPdu; /* 139 */
851         ALIGN64 BOOL SupportStatusInfoPdu; /* 140 */
852         ALIGN64 BOOL SupportMonitorLayoutPdu; /* 141 */
853         ALIGN64 BOOL SupportGraphicsPipeline; /* 142 */
854         ALIGN64 BOOL SupportDynamicTimeZone; /* 143 */
855         ALIGN64 BOOL SupportHeartbeatPdu; /* 144 */
856         UINT64 padding0192[192 - 145]; /* 145 */
857
858         /* Client/Server Security Data */
859         ALIGN64 BOOL DisableEncryption; /* 192 */
860         ALIGN64 UINT32 EncryptionMethods; /* 193 */
861         ALIGN64 UINT32 ExtEncryptionMethods; /* 194 */
862         ALIGN64 UINT32 EncryptionLevel; /* 195 */
863         ALIGN64 BYTE* ServerRandom; /* 196 */
864         ALIGN64 UINT32 ServerRandomLength; /* 197 */
865         ALIGN64 BYTE* ServerCertificate; /* 198 */
866         ALIGN64 UINT32 ServerCertificateLength; /* 199 */
867         ALIGN64 BYTE* ClientRandom; /* 200 */
868         ALIGN64 UINT32 ClientRandomLength; /* 201 */
869         UINT64 padding0256[256 - 202]; /* 202 */
870
871         /* Client Network Data */
872         ALIGN64 UINT32 ChannelCount; /* 256 */
873         ALIGN64 UINT32 ChannelDefArraySize; /* 257 */
874         ALIGN64 CHANNEL_DEF* ChannelDefArray; /* 258 */
875         UINT64 padding0320[320 - 259]; /* 259 */
876
877         /* Client Cluster Data */
878         ALIGN64 UINT32 ClusterInfoFlags; /* 320 */
879         ALIGN64 UINT32 RedirectedSessionId; /* 321 */
880         ALIGN64 BOOL ConsoleSession; /* 322 */
881         UINT64 padding0384[384 - 323]; /* 323 */
882
883         /* Client Monitor Data */
884         ALIGN64 int MonitorCount; /* 384 */
885         ALIGN64 UINT32 MonitorDefArraySize; /* 385 */
886         ALIGN64 rdpMonitor* MonitorDefArray; /* 386 */
887         ALIGN64 BOOL SpanMonitors; /* 387 */
888         ALIGN64 BOOL UseMultimon; /* 388 */
889         ALIGN64 BOOL ForceMultimon; /* 389 */
890         ALIGN64 UINT32 DesktopPosX; /* 390 */
891         ALIGN64 UINT32 DesktopPosY; /* 391 */
892         ALIGN64 BOOL ListMonitors; /* 392 */
893         ALIGN64 UINT32* MonitorIds; /* 393 */
894         ALIGN64 UINT32 NumMonitorIds; /* 394 */
895         UINT64 padding0448[448 - 395]; /* 395 */
896
897         /* Client Message Channel Data */
898         UINT64 padding0512[512 - 448]; /* 448 */
899
900         /* Client Multitransport Channel Data */
901         ALIGN64 UINT32 MultitransportFlags; /* 512 */
902         ALIGN64 BOOL SupportMultitransport; /* 513 */
903         UINT64 padding0576[576 - 514]; /* 514 */
904         UINT64 padding0640[640 - 576]; /* 576 */
905
906         /*
907          * Client Info
908          */
909
910         /* Client Info (Shell) */
911         ALIGN64 char* AlternateShell; /* 640 */
912         ALIGN64 char* ShellWorkingDirectory; /* 641 */
913         UINT64 padding0704[704 - 642]; /* 642 */
914
915         /* Client Info Flags */
916         ALIGN64 BOOL AutoLogonEnabled; /* 704 */
917         ALIGN64 BOOL CompressionEnabled; /* 705 */
918         ALIGN64 BOOL DisableCtrlAltDel; /* 706 */
919         ALIGN64 BOOL EnableWindowsKey; /* 707 */
920         ALIGN64 BOOL MaximizeShell; /* 708 */
921         ALIGN64 BOOL LogonNotify; /* 709 */
922         ALIGN64 BOOL LogonErrors; /* 710 */
923         ALIGN64 BOOL MouseAttached; /* 711 */
924         ALIGN64 BOOL MouseHasWheel; /* 712 */
925         ALIGN64 BOOL RemoteConsoleAudio; /* 713 */
926         ALIGN64 BOOL AudioPlayback; /* 714 */
927         ALIGN64 BOOL AudioCapture; /* 715 */
928         ALIGN64 BOOL VideoDisable; /* 716 */
929         ALIGN64 BOOL PasswordIsSmartcardPin; /* 717 */
930         ALIGN64 BOOL UsingSavedCredentials; /* 718 */
931         ALIGN64 BOOL ForceEncryptedCsPdu; /* 719 */
932         ALIGN64 BOOL HiDefRemoteApp; /* 720 */
933         ALIGN64 UINT32 CompressionLevel; /* 721 */
934         UINT64 padding0768[768 - 722]; /* 722 */
935
936         /* Client Info (Extra) */
937         ALIGN64 BOOL IPv6Enabled; /* 768 */
938         ALIGN64 char* ClientAddress; /* 769 */
939         ALIGN64 char* ClientDir; /* 770 */
940         UINT64 padding0832[832 - 771]; /* 771 */
941
942         /* Client Info (Auto Reconnection) */
943         ALIGN64 BOOL AutoReconnectionEnabled; /* 832 */
944         ALIGN64 UINT32 AutoReconnectMaxRetries; /* 833 */
945         ALIGN64 ARC_CS_PRIVATE_PACKET* ClientAutoReconnectCookie; /* 834 */
946         ALIGN64 ARC_SC_PRIVATE_PACKET* ServerAutoReconnectCookie; /* 835 */
947         ALIGN64 BOOL PrintReconnectCookie; /* 836 */
948         UINT64 padding0896[896 - 837]; /* 837 */
949
950         /* Client Info (Time Zone) */
951         ALIGN64 TIME_ZONE_INFO* ClientTimeZone; /* 896 */
952         ALIGN64 char* DynamicDSTTimeZoneKeyName; /* 897 */
953         ALIGN64 BOOL DynamicDaylightTimeDisabled; /* 898 */
954         UINT64 padding0960[960 - 899]; /* 899 */
955
956         /* Client Info (Performance Flags) */
957         ALIGN64 UINT32 PerformanceFlags; /* 960 */
958         ALIGN64 BOOL AllowFontSmoothing; /* 961 */
959         ALIGN64 BOOL DisableWallpaper; /* 962 */
960         ALIGN64 BOOL DisableFullWindowDrag; /* 963 */
961         ALIGN64 BOOL DisableMenuAnims; /* 964 */
962         ALIGN64 BOOL DisableThemes; /* 965 */
963         ALIGN64 BOOL DisableCursorShadow; /* 966 */
964         ALIGN64 BOOL DisableCursorBlinking; /* 967 */
965         ALIGN64 BOOL AllowDesktopComposition; /* 968 */
966         UINT64 padding1024[1024 - 969]; /* 969 */
967
968         /* Remote Assistance */
969         ALIGN64 BOOL RemoteAssistanceMode; /* 1024 */
970         ALIGN64 char* RemoteAssistanceSessionId; /* 1025 */
971         ALIGN64 char* RemoteAssistancePassStub; /* 1026 */
972         ALIGN64 char* RemoteAssistancePassword; /* 1027 */
973         ALIGN64 char* RemoteAssistanceRCTicket; /* 1028 */
974         UINT64 padding1088[1088 - 1029]; /* 1029 */
975
976         /**
977          * X.224 Connection Request/Confirm
978          */
979
980         /* Protocol Security */
981         ALIGN64 BOOL TlsSecurity; /* 1088 */
982         ALIGN64 BOOL NlaSecurity; /* 1089 */
983         ALIGN64 BOOL RdpSecurity; /* 1090 */
984         ALIGN64 BOOL ExtSecurity; /* 1091 */
985         ALIGN64 BOOL Authentication; /* 1092 */
986         ALIGN64 UINT32 RequestedProtocols; /* 1093 */
987         ALIGN64 UINT32 SelectedProtocol; /* 1094 */
988         ALIGN64 UINT32 NegotiationFlags; /* 1095 */
989         ALIGN64 BOOL NegotiateSecurityLayer; /* 1096 */
990         ALIGN64 BOOL RestrictedAdminModeRequired; /* 1097 */
991         ALIGN64 char* AuthenticationServiceClass; /* 1098 */
992         ALIGN64 BOOL DisableCredentialsDelegation; /* 1099 */
993         ALIGN64 BOOL AuthenticationLevel; /* 1100 */
994         ALIGN64 char* PermittedTLSCiphers; /* 1101 */
995         UINT64 padding1152[1152 - 1102]; /* 1102 */
996
997         /* Connection Cookie */
998         ALIGN64 BOOL MstscCookieMode; /* 1152 */
999         ALIGN64 UINT32 CookieMaxLength; /* 1153 */
1000         ALIGN64 UINT32 PreconnectionId; /* 1154 */
1001         ALIGN64 char* PreconnectionBlob; /* 1155 */
1002         ALIGN64 BOOL SendPreconnectionPdu; /* 1156 */
1003         UINT64 padding1216[1216 - 1157]; /* 1157 */
1004
1005         /* Server Redirection */
1006         ALIGN64 UINT32 RedirectionFlags; /* 1216 */
1007         ALIGN64 char* TargetNetAddress; /* 1217 */
1008         ALIGN64 BYTE* LoadBalanceInfo; /* 1218 */
1009         ALIGN64 UINT32 LoadBalanceInfoLength; /* 1219 */
1010         ALIGN64 char* RedirectionUsername; /* 1220 */
1011         ALIGN64 char* RedirectionDomain; /* 1221 */
1012         ALIGN64 BYTE* RedirectionPassword; /* 1222 */
1013         ALIGN64 UINT32 RedirectionPasswordLength; /* 1223 */
1014         ALIGN64 char* RedirectionTargetFQDN; /* 1224 */
1015         ALIGN64 char* RedirectionTargetNetBiosName; /* 1225 */
1016         ALIGN64 BYTE* RedirectionTsvUrl; /* 1226 */
1017         ALIGN64 UINT32 RedirectionTsvUrlLength; /* 1227 */
1018         ALIGN64 UINT32 TargetNetAddressCount; /* 1228 */
1019         ALIGN64 char** TargetNetAddresses; /* 1229 */
1020         UINT64 padding1280[1280 - 1230]; /* 1230 */
1021
1022         /**
1023          * Security
1024          */
1025
1026         /* Credentials Cache */
1027         ALIGN64 BYTE* Password51; /* 1280 */
1028         ALIGN64 UINT32 Password51Length; /* 1281 */
1029         UINT64 padding1344[1344 - 1282]; /* 1282 */
1030
1031         /* Kerberos Authentication */
1032         ALIGN64 char* KerberosKdc; /* 1344 */
1033         ALIGN64 char* KerberosRealm; /* 1345 */
1034         UINT64 padding1408[1408 - 1346]; /* 1346 */
1035
1036         /* Server Certificate */
1037         ALIGN64 BOOL IgnoreCertificate; /* 1408 */
1038         ALIGN64 char* CertificateName; /* 1409 */
1039         ALIGN64 char* CertificateFile; /* 1410 */
1040         ALIGN64 char* PrivateKeyFile; /* 1411 */
1041         ALIGN64 char* RdpKeyFile; /* 1412 */
1042         ALIGN64 rdpRsaKey* RdpServerRsaKey; /* 1413 */
1043         ALIGN64 rdpCertificate* RdpServerCertificate; /* 1414 */
1044         ALIGN64 BOOL ExternalCertificateManagement; /* 1415 */
1045         UINT64 padding1472[1472 - 1416]; /* 1416 */
1046         UINT64 padding1536[1536 - 1472]; /* 1472 */
1047
1048         /**
1049          * User Interface
1050          */
1051
1052         /* Window Settings */
1053         ALIGN64 BOOL Workarea; /* 1536 */
1054         ALIGN64 BOOL Fullscreen; /* 1537 */
1055         ALIGN64 UINT32 PercentScreen; /* 1538 */
1056         ALIGN64 BOOL GrabKeyboard; /* 1539 */
1057         ALIGN64 BOOL Decorations; /* 1540 */
1058         ALIGN64 BOOL MouseMotion; /* 1541 */
1059         ALIGN64 char* WindowTitle; /* 1542 */
1060         ALIGN64 UINT64 ParentWindowId; /* 1543 */
1061         ALIGN64 BOOL AsyncInput; /* 1544 */
1062         ALIGN64 BOOL AsyncUpdate; /* 1545 */
1063         ALIGN64 BOOL AsyncChannels; /* 1546 */
1064         ALIGN64 BOOL AsyncTransport; /* 1547 */
1065         ALIGN64 BOOL ToggleFullscreen; /* 1548 */
1066         ALIGN64 char* WmClass; /* 1549 */
1067         ALIGN64 BOOL EmbeddedWindow; /* 1550 */
1068         ALIGN64 BOOL SmartSizing; /* 1551 */
1069         ALIGN64 int XPan; /* 1552 */
1070         ALIGN64 int YPan; /* 1553 */
1071         ALIGN64 double ScalingFactor; /* 1554 */
1072         UINT64 padding1601[1601 - 1555]; /* 1555 */
1073
1074         /* Miscellaneous */
1075         ALIGN64 BOOL SoftwareGdi; /* 1601 */
1076         ALIGN64 BOOL LocalConnection; /* 1602 */
1077         ALIGN64 BOOL AuthenticationOnly; /* 1603 */
1078         ALIGN64 BOOL CredentialsFromStdin; /* 1604 */
1079         UINT64 padding1664[1664 - 1605]; /* 1605 */
1080
1081         /* Names */
1082         ALIGN64 char* ComputerName; /* 1664 */
1083         UINT64 padding1728[1728 - 1665]; /* 1665 */
1084
1085         /* Files */
1086         ALIGN64 char* ConnectionFile; /* 1728 */
1087         ALIGN64 char* AssistanceFile; /* 1729 */
1088         UINT64 padding1792[1792 - 1730]; /* 1730 */
1089
1090         /* Paths */
1091         ALIGN64 char* HomePath; /* 1792 */
1092         ALIGN64 char* ConfigPath; /* 1793 */
1093         ALIGN64 char* CurrentPath; /* 1794 */
1094         UINT64 padding1856[1856 - 1795]; /* 1795 */
1095
1096         /* Recording */
1097         ALIGN64 BOOL DumpRemoteFx; /* 1856 */
1098         ALIGN64 BOOL PlayRemoteFx; /* 1857 */
1099         ALIGN64 char* DumpRemoteFxFile; /* 1858 */
1100         ALIGN64 char* PlayRemoteFxFile; /* 1859 */
1101         UINT64 padding1920[1920 - 1860]; /* 1860 */
1102         UINT64 padding1984[1984 - 1920]; /* 1920 */
1103
1104         /**
1105          * Gateway
1106          */
1107
1108         /* Gateway */
1109         ALIGN64 UINT32 GatewayUsageMethod; /* 1984 */
1110         ALIGN64 UINT32 GatewayPort; /* 1985 */
1111         ALIGN64 char* GatewayHostname; /* 1986 */
1112         ALIGN64 char* GatewayUsername; /* 1987 */
1113         ALIGN64 char* GatewayPassword; /* 1988 */
1114         ALIGN64 char* GatewayDomain; /* 1989 */
1115         ALIGN64 UINT32 GatewayCredentialsSource; /* 1990 */
1116         ALIGN64 BOOL GatewayUseSameCredentials; /* 1991 */
1117         ALIGN64 BOOL GatewayEnabled; /* 1992 */
1118         ALIGN64 BOOL GatewayBypassLocal; /* 1993 */
1119         UINT64 padding2048[2048 - 1994]; /* 1994 */
1120         UINT64 padding2112[2112 - 2048]; /* 2048 */
1121
1122         /**
1123          * RemoteApp
1124          */
1125
1126         /* RemoteApp */
1127         ALIGN64 BOOL RemoteApplicationMode; /* 2112 */
1128         ALIGN64 char* RemoteApplicationName; /* 2113 */
1129         ALIGN64 char* RemoteApplicationIcon; /* 2114 */
1130         ALIGN64 char* RemoteApplicationProgram; /* 2115 */
1131         ALIGN64 char* RemoteApplicationFile; /* 2116 */
1132         ALIGN64 char* RemoteApplicationGuid; /* 2117 */
1133         ALIGN64 char* RemoteApplicationCmdLine; /* 2118 */
1134         ALIGN64 UINT32 RemoteApplicationExpandCmdLine; /* 2119 */
1135         ALIGN64 UINT32 RemoteApplicationExpandWorkingDir; /* 2120 */
1136         ALIGN64 BOOL DisableRemoteAppCapsCheck; /* 2121 */
1137         ALIGN64 UINT32 RemoteAppNumIconCaches; /* 2122 */
1138         ALIGN64 UINT32 RemoteAppNumIconCacheEntries; /* 2123 */
1139         ALIGN64 BOOL RemoteAppLanguageBarSupported; /* 2124 */
1140         UINT64 padding2176[2176 - 2125]; /* 2125 */
1141         UINT64 padding2240[2240 - 2176]; /* 2176 */
1142
1143         /**
1144          * Mandatory Capabilities
1145          */
1146
1147         /* Capabilities */
1148         ALIGN64 BYTE* ReceivedCapabilities; /* 2240 */
1149         ALIGN64 UINT32 ReceivedCapabilitiesSize; /* 2241 */
1150         UINT64 padding2304[2304 - 2242]; /* 2242 */
1151
1152         /* General Capabilities */
1153         ALIGN64 UINT32 OsMajorType; /* 2304 */
1154         ALIGN64 UINT32 OsMinorType; /* 2305 */
1155         ALIGN64 BOOL RefreshRect; /* 2306 */
1156         ALIGN64 BOOL SuppressOutput; /* 2307 */
1157         ALIGN64 BOOL FastPathOutput; /* 2308 */
1158         ALIGN64 BOOL SaltedChecksum; /* 2309 */
1159         ALIGN64 BOOL LongCredentialsSupported; /* 2310 */
1160         ALIGN64 BOOL NoBitmapCompressionHeader; /* 2311 */
1161         ALIGN64 BOOL BitmapCompressionDisabled; /* 2312 */
1162         UINT64 padding2368[2368 - 2313]; /* 2313 */
1163
1164         /* Bitmap Capabilities */
1165         ALIGN64 BOOL DesktopResize; /* 2368 */
1166         ALIGN64 BOOL DrawAllowDynamicColorFidelity; /* 2369 */
1167         ALIGN64 BOOL DrawAllowColorSubsampling; /* 2370 */
1168         ALIGN64 BOOL DrawAllowSkipAlpha; /* 2371 */
1169         UINT64 padding2432[2432 - 2372]; /* 2372 */
1170
1171         /* Order Capabilities */
1172         ALIGN64 BYTE* OrderSupport; /* 2432 */
1173         ALIGN64 BOOL BitmapCacheV3Enabled; /* 2433 */
1174         ALIGN64 BOOL AltSecFrameMarkerSupport; /* 2434 */
1175         UINT64 padding2497[2497 - 2435]; /* 2435 */
1176
1177         /* Bitmap Cache Capabilities */
1178         ALIGN64 BOOL BitmapCacheEnabled; /* 2497 */
1179         ALIGN64 UINT32 BitmapCacheVersion; /* 2498 */
1180         ALIGN64 BOOL AllowCacheWaitingList; /* 2499 */
1181         ALIGN64 BOOL BitmapCachePersistEnabled; /* 2500 */
1182         ALIGN64 UINT32 BitmapCacheV2NumCells; /* 2501 */
1183         ALIGN64 BITMAP_CACHE_V2_CELL_INFO* BitmapCacheV2CellInfo; /* 2502 */
1184         UINT64 padding2560[2560 - 2503]; /* 2503 */
1185
1186         /* Pointer Capabilities */
1187         ALIGN64 BOOL ColorPointerFlag; /* 2560 */
1188         ALIGN64 UINT32 PointerCacheSize; /* 2561 */
1189         UINT64 padding2624[2624 - 2562]; /* 2562 */
1190
1191         /* Input Capabilities */
1192         ALIGN64 UINT32 KeyboardLayout; /* 2624 */
1193         ALIGN64 UINT32 KeyboardType; /* 2625 */
1194         ALIGN64 UINT32 KeyboardSubType; /* 2626 */
1195         ALIGN64 UINT32 KeyboardFunctionKey; /* 2627 */
1196         ALIGN64 char* ImeFileName; /* 2628 */
1197         ALIGN64 BOOL UnicodeInput; /* 2629 */
1198         ALIGN64 BOOL FastPathInput; /* 2630 */
1199         ALIGN64 BOOL MultiTouchInput; /* 2631 */
1200         ALIGN64 BOOL MultiTouchGestures; /* 2632 */
1201         ALIGN64 UINT32 KeyboardHook; /* 2633 */
1202         UINT64 padding2688[2688 - 2634]; /* 2634 */
1203
1204         /* Brush Capabilities */
1205         ALIGN64 UINT32 BrushSupportLevel; /* 2688 */
1206         UINT64 padding2752[2752 - 2689]; /* 2689 */
1207
1208         /* Glyph Cache Capabilities */
1209         ALIGN64 UINT32 GlyphSupportLevel; /* 2752 */
1210         ALIGN64 GLYPH_CACHE_DEFINITION* GlyphCache; /* 2753 */
1211         ALIGN64 GLYPH_CACHE_DEFINITION* FragCache; /* 2754 */
1212         UINT64 padding2816[2816 - 2755]; /* 2755 */
1213
1214         /* Offscreen Bitmap Cache */
1215         ALIGN64 UINT32 OffscreenSupportLevel; /* 2816 */
1216         ALIGN64 UINT32 OffscreenCacheSize; /* 2817 */
1217         ALIGN64 UINT32 OffscreenCacheEntries; /* 2818 */
1218         UINT64 padding2880[2880 - 2819]; /* 2819 */
1219
1220         /* Virtual Channel Capabilities */
1221         ALIGN64 UINT32 VirtualChannelCompressionFlags; /* 2880 */
1222         ALIGN64 UINT32 VirtualChannelChunkSize; /* 2881 */
1223         UINT64 padding2944[2944 - 2882]; /* 2882 */
1224
1225         /* Sound Capabilities */
1226         ALIGN64 BOOL SoundBeepsEnabled; /* 2944 */
1227         UINT64 padding3008[3008 - 2945]; /* 2945 */
1228         UINT64 padding3072[3072 - 3008]; /* 3008 */
1229
1230         /**
1231          * Optional Capabilities
1232          */
1233
1234         /* Bitmap Cache Host Capabilities */
1235         UINT64 padding3136[3136 - 3072]; /* 3072 */
1236
1237         /* Control Capabilities */
1238         UINT64 padding3200[3200 - 3136]; /* 3136 */
1239
1240         /* Window Activation Capabilities */
1241         UINT64 padding3264[3264 - 3200]; /* 3200 */
1242
1243         /* Font Capabilities */
1244         UINT64 padding3328[3328 - 3264]; /* 3264 */
1245
1246         /* Multifragment Update Capabilities */
1247         ALIGN64 UINT32 MultifragMaxRequestSize; /* 3328 */
1248         UINT64 padding3392[3392 - 3329]; /* 3329 */
1249
1250         /* Large Pointer Update Capabilities */
1251         ALIGN64 UINT32 LargePointerFlag; /* 3392 */
1252         UINT64 padding3456[3456 - 3393]; /* 3393 */
1253
1254         /* Desktop Composition Capabilities */
1255         ALIGN64 UINT32 CompDeskSupportLevel; /* 3456 */
1256         UINT64 padding3520[3520 - 3457]; /* 3457 */
1257
1258         /* Surface Commands Capabilities */
1259         ALIGN64 BOOL SurfaceCommandsEnabled; /* 3520 */
1260         ALIGN64 BOOL FrameMarkerCommandEnabled; /* 3521 */
1261         ALIGN64 BOOL SurfaceFrameMarkerEnabled; /* 3522 */
1262         UINT64 padding3584[3584 - 3523]; /* 3523 */
1263         UINT64 padding3648[3648 - 3584]; /* 3584 */
1264
1265         /*
1266          * Bitmap Codecs Capabilities
1267          */
1268
1269         /* RemoteFX */
1270         ALIGN64 BOOL RemoteFxOnly; /* 3648 */
1271         ALIGN64 BOOL RemoteFxCodec; /* 3649 */
1272         ALIGN64 UINT32 RemoteFxCodecId; /* 3650 */
1273         ALIGN64 UINT32 RemoteFxCodecMode; /* 3651 */
1274         ALIGN64 BOOL RemoteFxImageCodec; /* 3652 */
1275         ALIGN64 UINT32 RemoteFxCaptureFlags; /* 3653 */
1276         UINT64 padding3712[3712 - 3654]; /* 3654 */
1277
1278         /* NSCodec */
1279         ALIGN64 BOOL NSCodec; /* 3712 */
1280         ALIGN64 UINT32 NSCodecId; /* 3713 */
1281         ALIGN64 UINT32 FrameAcknowledge; /* 3714 */
1282         ALIGN64 UINT32 NSCodecColorLossLevel; /* 3715 */
1283         ALIGN64 BOOL NSCodecAllowSubsampling; /* 3716 */
1284         ALIGN64 BOOL NSCodecAllowDynamicColorFidelity; /* 3717 */
1285         UINT64 padding3776[3776 - 3718]; /* 3718 */
1286
1287         /* JPEG */
1288         ALIGN64 BOOL JpegCodec; /* 3776 */
1289         ALIGN64 UINT32 JpegCodecId; /* 3777 */
1290         ALIGN64 UINT32 JpegQuality; /* 3778 */
1291         UINT64 padding3840[3840 - 3779]; /* 3779 */
1292
1293         ALIGN64 BOOL GfxThinClient; /* 3840 */
1294         ALIGN64 BOOL GfxSmallCache; /* 3841 */
1295         ALIGN64 BOOL GfxProgressive; /* 3842 */
1296         ALIGN64 BOOL GfxProgressiveV2; /* 3843 */
1297         ALIGN64 BOOL GfxH264; /* 3844 */
1298         UINT64 padding3904[3904 - 3845]; /* 3845 */
1299
1300         /**
1301          * Caches
1302          */
1303
1304         /* Bitmap Cache V3 */
1305         ALIGN64 UINT32 BitmapCacheV3CodecId; /* 3904 */
1306         UINT64 padding3968[3968 - 3905]; /* 3905 */
1307
1308         /* Draw Nine Grid */
1309         ALIGN64 BOOL DrawNineGridEnabled; /* 3968 */
1310         ALIGN64 UINT32 DrawNineGridCacheSize; /* 3969 */
1311         ALIGN64 UINT32 DrawNineGridCacheEntries; /* 3970 */
1312         UINT64 padding4032[4032 - 3971]; /* 3971 */
1313
1314         /* Draw GDI+ */
1315         ALIGN64 BOOL DrawGdiPlusEnabled; /* 4032 */
1316         ALIGN64 BOOL DrawGdiPlusCacheEnabled; /* 4033 */
1317         UINT64 padding4096[4096 - 4034]; /* 4034 */
1318         UINT64 padding4160[4160 - 4096]; /* 4096 */
1319
1320         /**
1321          * Device Redirection
1322          */
1323
1324         /* Device Redirection */
1325         ALIGN64 BOOL DeviceRedirection; /* 4160 */
1326         ALIGN64 UINT32 DeviceCount; /* 4161 */
1327         ALIGN64 UINT32 DeviceArraySize; /* 4162 */
1328         ALIGN64 RDPDR_DEVICE** DeviceArray; /* 4163 */
1329         UINT64 padding4288[4288 - 4164]; /* 4164 */
1330
1331         /* Drive Redirection */
1332         ALIGN64 BOOL RedirectDrives; /* 4288 */
1333         ALIGN64 BOOL RedirectHomeDrive; /* 4289 */
1334         ALIGN64 char* DrivesToRedirect; /* 4290 */
1335         UINT64 padding4416[4416 - 4291]; /* 4291 */
1336
1337         /* Smartcard Redirection */
1338         ALIGN64 BOOL RedirectSmartCards; /* 4416 */
1339         UINT64 padding4544[4544 - 4417]; /* 4417 */
1340
1341         /* Printer Redirection */
1342         ALIGN64 BOOL RedirectPrinters; /* 4544 */
1343         UINT64 padding4672[4672 - 4545]; /* 4545 */
1344
1345         /* Serial and Parallel Port Redirection */
1346         ALIGN64 BOOL RedirectSerialPorts; /* 4672 */
1347         ALIGN64 BOOL RedirectParallelPorts; /* 4673 */
1348         UINT64 padding4800[4800 - 4674]; /* 4674 */
1349
1350         /**
1351          * Other Redirection
1352          */
1353
1354         ALIGN64 BOOL RedirectClipboard; /* 4800 */
1355         UINT64 padding4928[4928 - 4801]; /* 4801 */
1356
1357         /**
1358          * Static Virtual Channels
1359          */
1360
1361         ALIGN64 UINT32 StaticChannelCount; /* 4928 */
1362         ALIGN64 UINT32 StaticChannelArraySize; /* 4929 */
1363         ALIGN64 ADDIN_ARGV** StaticChannelArray; /* 4930 */
1364         UINT64 padding5056[5056 - 4931]; /* 4931 */
1365
1366         /**
1367          * Dynamic Virtual Channels
1368          */
1369
1370         ALIGN64 UINT32 DynamicChannelCount; /* 5056 */
1371         ALIGN64 UINT32 DynamicChannelArraySize; /* 5057 */
1372         ALIGN64 ADDIN_ARGV** DynamicChannelArray; /* 5058 */
1373         ALIGN64 BOOL SupportDynamicChannels; /* 5059 */
1374         UINT64 padding5184[5184 - 5060]; /* 5060 */
1375
1376         ALIGN64 BOOL SupportEchoChannel; /* 5184 */
1377         ALIGN64 BOOL SupportDisplayControl; /* 5185 */
1378         ALIGN64 BOOL SupportGeometryTracking; /* 5186 */
1379         UINT64 padding5312[5312 - 5187]; /* 5187 */
1380
1381         /**
1382          * WARNING: End of ABI stable zone!
1383          *
1384          * The zone below this point is ABI unstable, and
1385          * is therefore potentially subject to ABI breakage.
1386          */
1387
1388         /*
1389          * Extensions
1390          */
1391
1392         /* Extensions */
1393         ALIGN64 int num_extensions; /*  */
1394         ALIGN64 struct rdp_ext_set extensions[16]; /*  */
1395
1396         ALIGN64 BYTE* SettingsModified; /* byte array marking fields that have been modified from their default value */
1397 };
1398 typedef struct rdp_settings rdpSettings;
1399
1400 #ifdef __cplusplus
1401 extern "C" {
1402 #endif
1403
1404 /**
1405   * rdpSettings creation flags
1406   */
1407 #define FREERDP_SETTINGS_SERVER_MODE    0x00000001
1408
1409 FREERDP_API rdpSettings* freerdp_settings_new(DWORD flags);
1410 FREERDP_API rdpSettings* freerdp_settings_clone(rdpSettings* settings);
1411 FREERDP_API void freerdp_settings_free(rdpSettings* settings);
1412
1413 FREERDP_API int freerdp_addin_set_argument(ADDIN_ARGV* args, char* argument);
1414 FREERDP_API int freerdp_addin_replace_argument(ADDIN_ARGV* args, char* previous, char* argument);
1415 FREERDP_API int freerdp_addin_set_argument_value(ADDIN_ARGV* args, char* option, char* value);
1416 FREERDP_API int freerdp_addin_replace_argument_value(ADDIN_ARGV* args, char* previous, char* option, char* value);
1417
1418 FREERDP_API void freerdp_device_collection_add(rdpSettings* settings, RDPDR_DEVICE* device);
1419 FREERDP_API RDPDR_DEVICE* freerdp_device_collection_find(rdpSettings* settings, const char* name);
1420 FREERDP_API RDPDR_DEVICE* freerdp_device_clone(RDPDR_DEVICE* device);
1421 FREERDP_API void freerdp_device_collection_free(rdpSettings* settings);
1422
1423 FREERDP_API void freerdp_static_channel_collection_add(rdpSettings* settings, ADDIN_ARGV* channel);
1424 FREERDP_API ADDIN_ARGV* freerdp_static_channel_collection_find(rdpSettings* settings, const char* name);
1425 FREERDP_API ADDIN_ARGV* freerdp_static_channel_clone(ADDIN_ARGV* channel);
1426 FREERDP_API void freerdp_static_channel_collection_free(rdpSettings* settings);
1427
1428 FREERDP_API void freerdp_dynamic_channel_collection_add(rdpSettings* settings, ADDIN_ARGV* channel);
1429 FREERDP_API ADDIN_ARGV* freerdp_dynamic_channel_collection_find(rdpSettings* settings, const char* name);
1430 FREERDP_API ADDIN_ARGV* freerdp_dynamic_channel_clone(ADDIN_ARGV* channel);
1431 FREERDP_API void freerdp_dynamic_channel_collection_free(rdpSettings* settings);
1432
1433 FREERDP_API void freerdp_target_net_addresses_free(rdpSettings* settings);
1434
1435 FREERDP_API void freerdp_performance_flags_make(rdpSettings* settings);
1436 FREERDP_API void freerdp_performance_flags_split(rdpSettings* settings);
1437
1438 FREERDP_API void freerdp_set_gateway_usage_method(rdpSettings* settings, UINT32 GatewayUsageMethod);
1439 FREERDP_API void freerdp_update_gateway_usage_method(rdpSettings* settings, UINT32 GatewayEnabled, UINT32 GatewayBypassLocal);
1440
1441 FREERDP_API BOOL freerdp_get_param_bool(rdpSettings* settings, int id);
1442 FREERDP_API int freerdp_set_param_bool(rdpSettings* settings, int id, BOOL param);
1443
1444 FREERDP_API int freerdp_get_param_int(rdpSettings* settings, int id);
1445 FREERDP_API int freerdp_set_param_int(rdpSettings* settings, int id, int param);
1446
1447 FREERDP_API UINT32 freerdp_get_param_uint32(rdpSettings* settings, int id);
1448 FREERDP_API int freerdp_set_param_uint32(rdpSettings* settings, int id, UINT32 param);
1449
1450 FREERDP_API UINT64 freerdp_get_param_uint64(rdpSettings* settings, int id);
1451 FREERDP_API int freerdp_set_param_uint64(rdpSettings* settings, int id, UINT64 param);
1452
1453 FREERDP_API char* freerdp_get_param_string(rdpSettings* settings, int id);
1454 FREERDP_API int freerdp_set_param_string(rdpSettings* settings, int id, const char* param);
1455
1456 FREERDP_API double freerdp_get_param_double(rdpSettings* settings, int id);
1457 FREERDP_API int freerdp_set_param_double(rdpSettings* settings, int id, double param);
1458
1459 #ifdef __cplusplus
1460 }
1461 #endif
1462
1463 #endif /* FREERDP_SETTINGS_H */