summaryrefslogtreecommitdiffstats
path: root/remoting/host/win/com_imported_mstscax.tlh
blob: a65d8ecdc1072f82a26abde5e18777249ca6ba97 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
//
// C++ source equivalent of Win32 type library MsTscAx.MsTscAx.
// This file has to be checked-in due to a bug in the VS2013 64-32 cross
// compiler which results in invalid interfaces (crbug.com/318952).
//
// This file was generated using the following pragma directive:
// #import "PROGID:MsTscAx.MsTscAx" \
//     exclude("wireHWND", "_RemotableHandle", "__MIDL_IWinTypes_0009"), \
//     rename_namespace("mstsc") raw_interfaces_only no_implementation
//
// Created by Microsoft (R) C/C++ Compiler Version 10.00.40219.01 (c995c7e6).
// compiler-generated file created 01/16/14 at 11:56:07 - DO NOT EDIT!

#pragma once
#pragma pack(push, 8)

#include <comdef.h>

namespace mstsc {

//
// Forward references and typedefs
//

struct __declspec(uuid("8c11efa1-92c3-11d1-bc1e-00c04fa31489"))
/* LIBID */ __MSTSCLib;
struct __declspec(uuid("336d5562-efa8-482e-8cb3-c5c0fc7a7db6"))
/* dispinterface */ IMsTscAxEvents;
enum __MIDL___MIDL_itf_mstsax_0000_0036_0001;
enum __MIDL___MIDL_itf_mstsax_0000_0046_0001;
enum __MIDL___MIDL_itf_mstsax_0000_0046_0002;
struct /* coclass */ MsTscAxNotSafeForScripting;
struct __declspec(uuid("92b4a539-7115-4b7c-a5a9-e5d9efc2780a"))
/* dual interface */ IMsRdpClient;
struct __declspec(uuid("8c11efae-92c3-11d1-bc1e-00c04fa31489"))
/* dual interface */ IMsTscAx;
struct __declspec(uuid("327bb5cd-834e-4400-aef2-b30e15e5d682"))
/* dual interface */ IMsTscAx_Redist;
struct __declspec(uuid("c9d65442-a0f9-45b2-8f73-d61d2db8cbb6"))
/* dual interface */ IMsTscSecuredSettings;
struct __declspec(uuid("809945cc-4b3b-4a92-a6b0-dbf9b5f2ef2d"))
/* dual interface */ IMsTscAdvancedSettings;
struct __declspec(uuid("209d0eb9-6254-47b1-9033-a98dae55bb27"))
/* dual interface */ IMsTscDebug;
struct __declspec(uuid("3c65b4ab-12b3-465b-acd4-b8dad3bff9e2"))
/* dual interface */ IMsRdpClientAdvancedSettings;
struct __declspec(uuid("605befcf-39c1-45cc-a811-068fb7be346d"))
/* dual interface */ IMsRdpClientSecuredSettings;
enum __MIDL___MIDL_itf_mstsax_0000_0000_0001;
enum __MIDL_IMsRdpClient_0001;
struct __declspec(uuid("c1e6743a-41c1-4a74-832a-0dd06c1c7a0e"))
/* interface */ IMsTscNonScriptable;
struct __declspec(uuid("2f079c4c-87b2-4afd-97ab-20cdb43038ae"))
/* interface */ IMsRdpClientNonScriptable;
struct /* coclass */ MsTscAx;
struct /* coclass */ MsRdpClientNotSafeForScripting;
struct /* coclass */ MsRdpClient;
struct /* coclass */ MsRdpClient2NotSafeForScripting;
struct __declspec(uuid("e7e17dc4-3b71-4ba7-a8e6-281ffadca28f"))
/* dual interface */ IMsRdpClient2;
struct __declspec(uuid("9ac42117-2b76-4320-aa44-0e616ab8437b"))
/* dual interface */ IMsRdpClientAdvancedSettings2;
struct /* coclass */ MsRdpClient2;
struct /* coclass */ MsRdpClient2a;
struct /* coclass */ MsRdpClient3NotSafeForScripting;
struct __declspec(uuid("91b7cbc5-a72e-4fa0-9300-d647d7e897ff"))
/* dual interface */ IMsRdpClient3;
struct __declspec(uuid("19cd856b-c542-4c53-acee-f127e3be1a59"))
/* dual interface */ IMsRdpClientAdvancedSettings3;
struct /* coclass */ MsRdpClient3;
struct /* coclass */ MsRdpClient3a;
struct /* coclass */ MsRdpClient4NotSafeForScripting;
struct __declspec(uuid("095e0738-d97d-488b-b9f6-dd0e8d66c0de"))
/* dual interface */ IMsRdpClient4;
struct __declspec(uuid("fba7f64e-7345-4405-ae50-fa4a763dc0de"))
/* dual interface */ IMsRdpClientAdvancedSettings4;
struct __declspec(uuid("17a5e535-4072-4fa4-af32-c8d0d47345e9"))
/* interface */ IMsRdpClientNonScriptable2;
struct /* coclass */ MsRdpClient4;
struct /* coclass */ MsRdpClient4a;
struct /* coclass */ MsRdpClient5NotSafeForScripting;
struct __declspec(uuid("4eb5335b-6429-477d-b922-e06a28ecd8bf"))
/* dual interface */ IMsRdpClient5;
struct __declspec(uuid("720298c0-a099-46f5-9f82-96921bae4701"))
/* dual interface */ IMsRdpClientTransportSettings;
struct __declspec(uuid("fba7f64e-6783-4405-da45-fa4a763dabd0"))
/* dual interface */ IMsRdpClientAdvancedSettings5;
struct __declspec(uuid("fdd029f9-467a-4c49-8529-64b521dbd1b4"))
/* dual interface */ ITSRemoteProgram;
struct __declspec(uuid("d012ae6d-c19a-4bfe-b367-201f8911f134"))
/* dual interface */ IMsRdpClientShell;
struct __declspec(uuid("b3378d90-0728-45c7-8ed7-b6159fb92219"))
/* interface */ IMsRdpClientNonScriptable3;
struct __declspec(uuid("56540617-d281-488c-8738-6a8fdf64a118"))
/* interface */ IMsRdpDeviceCollection;
struct __declspec(uuid("60c3b9c8-9e92-4f5e-a3e7-604a912093ea"))
/* interface */ IMsRdpDevice;
struct __declspec(uuid("7ff17599-da2c-4677-ad35-f60c04fe1585"))
/* interface */ IMsRdpDriveCollection;
struct __declspec(uuid("d28b5458-f694-47a8-8e61-40356a767e46"))
/* interface */ IMsRdpDrive;
struct /* coclass */ MsRdpClient5;
struct /* coclass */ MsRdpClient6NotSafeForScripting;
struct __declspec(uuid("d43b7d80-8517-4b6d-9eac-96ad6800d7f2"))
/* dual interface */ IMsRdpClient6;
struct __declspec(uuid("222c4b5d-45d9-4df0-a7c6-60cf9089d285"))
/* dual interface */ IMsRdpClientAdvancedSettings6;
struct __declspec(uuid("67341688-d606-4c73-a5d2-2e0489009319"))
/* dual interface */ IMsRdpClientTransportSettings2;
struct __declspec(uuid("f50fa8aa-1c7d-4f59-b15c-a90cacae1fcb"))
/* interface */ IMsRdpClientNonScriptable4;
enum __MIDL_IMsRdpClientNonScriptable4_0001;
struct /* coclass */ MsRdpClient6;
struct /* coclass */ MsRdpClient7NotSafeForScripting;
struct __declspec(uuid("b2a5b5ce-3461-444a-91d4-add26d070638"))
/* dual interface */ IMsRdpClient7;
struct __declspec(uuid("26036036-4010-4578-8091-0db9a1edf9c3"))
/* dual interface */ IMsRdpClientAdvancedSettings7;
struct __declspec(uuid("3d5b21ac-748d-41de-8f30-e15169586bd4"))
/* dual interface */ IMsRdpClientTransportSettings3;
struct __declspec(uuid("25f2ce20-8b1d-4971-a7cd-549dae201fc0"))
/* dual interface */ IMsRdpClientSecuredSettings2;
struct __declspec(uuid("92c38a7d-241a-418c-9936-099872c9af20"))
/* dual interface */ ITSRemoteProgram2;
struct __declspec(uuid("4f6996d5-d7b1-412c-b0ff-063718566907"))
/* interface */ IMsRdpClientNonScriptable5;
struct __declspec(uuid("fdd029f9-9574-4def-8529-64b521cccaa4"))
/* interface */ IMsRdpPreferredRedirectionInfo;
struct __declspec(uuid("302d8188-0052-4807-806a-362b628f9ac5"))
/* interface */ IMsRdpExtendedSettings;
struct /* coclass */ MsRdpClient7;
struct /* coclass */ MsRdpClient8NotSafeForScripting;
struct __declspec(uuid("4247e044-9271-43a9-bc49-e2ad9e855d62"))
/* dual interface */ IMsRdpClient8;
enum __MIDL___MIDL_itf_mstsax_0000_0000_0004;
struct __declspec(uuid("89acb528-2557-4d16-8625-226a30e97e9a"))
/* dual interface */ IMsRdpClientAdvancedSettings8;
enum __MIDL___MIDL_itf_mstsax_0000_0000_0003;
enum __MIDL_IMsRdpClient8_0001;
struct /* coclass */ MsRdpClient8;
struct __declspec(uuid("079863b7-6d47-4105-8bfe-0cdcb360e67d"))
/* dispinterface */ IRemoteDesktopClientEvents;
struct /* coclass */ RemoteDesktopClient;
struct __declspec(uuid("57d25668-625a-4905-be4e-304caa13f89c"))
/* dual interface */ IRemoteDesktopClient;
struct __declspec(uuid("48a0f2a7-2713-431f-bbac-6f4558e7d64d"))
/* dual interface */ IRemoteDesktopClientSettings;
struct __declspec(uuid("7d54bc4e-1028-45d4-8b0a-b9b6bffba176"))
/* dual interface */ IRemoteDesktopClientActions;
enum __MIDL_IRemoteDesktopClientActions_0001;
enum __MIDL_IRemoteDesktopClientActions_0002;
enum __MIDL_IRemoteDesktopClientActions_0003;
struct __declspec(uuid("260ec22d-8cbc-44b5-9e88-2a37f6c93ae9"))
/* dual interface */ IRemoteDesktopClientTouchPointer;
typedef enum __MIDL___MIDL_itf_mstsax_0000_0036_0001 AutoReconnectContinueState;
typedef enum __MIDL___MIDL_itf_mstsax_0000_0046_0001 RemoteProgramResult;
typedef enum __MIDL___MIDL_itf_mstsax_0000_0046_0002 RemoteWindowDisplayedAttribute;
typedef enum __MIDL___MIDL_itf_mstsax_0000_0000_0001 ExtendedDisconnectReasonCode;
typedef enum __MIDL_IMsRdpClient_0001 ControlCloseStatus;
#if !defined(_WIN64)
typedef __w64 unsigned long UINT_PTR;
#else
typedef unsigned __int64 UINT_PTR;
#endif
#if !defined(_WIN64)
typedef __w64 long LONG_PTR;
#else
typedef __int64 LONG_PTR;
#endif
typedef enum __MIDL_IMsRdpClientNonScriptable4_0001 RedirectionWarningType;
typedef enum __MIDL___MIDL_itf_mstsax_0000_0000_0004 RemoteSessionActionType;
typedef enum __MIDL___MIDL_itf_mstsax_0000_0000_0003 ClientSpec;
typedef enum __MIDL_IMsRdpClient8_0001 ControlReconnectStatus;
typedef enum __MIDL_IRemoteDesktopClientActions_0001 RemoteActionType;
typedef enum __MIDL_IRemoteDesktopClientActions_0002 SnapshotEncodingType;
typedef enum __MIDL_IRemoteDesktopClientActions_0003 SnapshotFormatType;

//
// Smart pointer typedef declarations
//

_COM_SMARTPTR_TYPEDEF(IMsTscAxEvents, __uuidof(IMsTscAxEvents));
_COM_SMARTPTR_TYPEDEF(IMsTscAx_Redist, __uuidof(IMsTscAx_Redist));
_COM_SMARTPTR_TYPEDEF(IMsTscSecuredSettings, __uuidof(IMsTscSecuredSettings));
_COM_SMARTPTR_TYPEDEF(IMsTscAdvancedSettings, __uuidof(IMsTscAdvancedSettings));
_COM_SMARTPTR_TYPEDEF(IMsTscDebug, __uuidof(IMsTscDebug));
_COM_SMARTPTR_TYPEDEF(IMsTscAx, __uuidof(IMsTscAx));
_COM_SMARTPTR_TYPEDEF(IMsRdpClientAdvancedSettings, __uuidof(IMsRdpClientAdvancedSettings));
_COM_SMARTPTR_TYPEDEF(IMsRdpClientSecuredSettings, __uuidof(IMsRdpClientSecuredSettings));
_COM_SMARTPTR_TYPEDEF(IMsRdpClient, __uuidof(IMsRdpClient));
_COM_SMARTPTR_TYPEDEF(IMsTscNonScriptable, __uuidof(IMsTscNonScriptable));
_COM_SMARTPTR_TYPEDEF(IMsRdpClientNonScriptable, __uuidof(IMsRdpClientNonScriptable));
_COM_SMARTPTR_TYPEDEF(IMsRdpClientAdvancedSettings2, __uuidof(IMsRdpClientAdvancedSettings2));
_COM_SMARTPTR_TYPEDEF(IMsRdpClient2, __uuidof(IMsRdpClient2));
_COM_SMARTPTR_TYPEDEF(IMsRdpClientAdvancedSettings3, __uuidof(IMsRdpClientAdvancedSettings3));
_COM_SMARTPTR_TYPEDEF(IMsRdpClient3, __uuidof(IMsRdpClient3));
_COM_SMARTPTR_TYPEDEF(IMsRdpClientAdvancedSettings4, __uuidof(IMsRdpClientAdvancedSettings4));
_COM_SMARTPTR_TYPEDEF(IMsRdpClient4, __uuidof(IMsRdpClient4));
_COM_SMARTPTR_TYPEDEF(IMsRdpClientNonScriptable2, __uuidof(IMsRdpClientNonScriptable2));
_COM_SMARTPTR_TYPEDEF(IMsRdpClientTransportSettings, __uuidof(IMsRdpClientTransportSettings));
_COM_SMARTPTR_TYPEDEF(IMsRdpClientAdvancedSettings5, __uuidof(IMsRdpClientAdvancedSettings5));
_COM_SMARTPTR_TYPEDEF(ITSRemoteProgram, __uuidof(ITSRemoteProgram));
_COM_SMARTPTR_TYPEDEF(IMsRdpClientShell, __uuidof(IMsRdpClientShell));
_COM_SMARTPTR_TYPEDEF(IMsRdpClient5, __uuidof(IMsRdpClient5));
_COM_SMARTPTR_TYPEDEF(IMsRdpDevice, __uuidof(IMsRdpDevice));
_COM_SMARTPTR_TYPEDEF(IMsRdpDeviceCollection, __uuidof(IMsRdpDeviceCollection));
_COM_SMARTPTR_TYPEDEF(IMsRdpDrive, __uuidof(IMsRdpDrive));
_COM_SMARTPTR_TYPEDEF(IMsRdpDriveCollection, __uuidof(IMsRdpDriveCollection));
_COM_SMARTPTR_TYPEDEF(IMsRdpClientNonScriptable3, __uuidof(IMsRdpClientNonScriptable3));
_COM_SMARTPTR_TYPEDEF(IMsRdpClientAdvancedSettings6, __uuidof(IMsRdpClientAdvancedSettings6));
_COM_SMARTPTR_TYPEDEF(IMsRdpClientTransportSettings2, __uuidof(IMsRdpClientTransportSettings2));
_COM_SMARTPTR_TYPEDEF(IMsRdpClient6, __uuidof(IMsRdpClient6));
_COM_SMARTPTR_TYPEDEF(IMsRdpClientNonScriptable4, __uuidof(IMsRdpClientNonScriptable4));
_COM_SMARTPTR_TYPEDEF(IMsRdpClientAdvancedSettings7, __uuidof(IMsRdpClientAdvancedSettings7));
_COM_SMARTPTR_TYPEDEF(IMsRdpClientTransportSettings3, __uuidof(IMsRdpClientTransportSettings3));
_COM_SMARTPTR_TYPEDEF(IMsRdpClientSecuredSettings2, __uuidof(IMsRdpClientSecuredSettings2));
_COM_SMARTPTR_TYPEDEF(ITSRemoteProgram2, __uuidof(ITSRemoteProgram2));
_COM_SMARTPTR_TYPEDEF(IMsRdpClient7, __uuidof(IMsRdpClient7));
_COM_SMARTPTR_TYPEDEF(IMsRdpClientNonScriptable5, __uuidof(IMsRdpClientNonScriptable5));
_COM_SMARTPTR_TYPEDEF(IMsRdpPreferredRedirectionInfo, __uuidof(IMsRdpPreferredRedirectionInfo));
_COM_SMARTPTR_TYPEDEF(IMsRdpExtendedSettings, __uuidof(IMsRdpExtendedSettings));
_COM_SMARTPTR_TYPEDEF(IMsRdpClientAdvancedSettings8, __uuidof(IMsRdpClientAdvancedSettings8));
_COM_SMARTPTR_TYPEDEF(IMsRdpClient8, __uuidof(IMsRdpClient8));
_COM_SMARTPTR_TYPEDEF(IRemoteDesktopClientEvents, __uuidof(IRemoteDesktopClientEvents));
_COM_SMARTPTR_TYPEDEF(IRemoteDesktopClientSettings, __uuidof(IRemoteDesktopClientSettings));
_COM_SMARTPTR_TYPEDEF(IRemoteDesktopClientActions, __uuidof(IRemoteDesktopClientActions));
_COM_SMARTPTR_TYPEDEF(IRemoteDesktopClientTouchPointer, __uuidof(IRemoteDesktopClientTouchPointer));
_COM_SMARTPTR_TYPEDEF(IRemoteDesktopClient, __uuidof(IRemoteDesktopClient));

//
// Type library items
//

struct __declspec(uuid("336d5562-efa8-482e-8cb3-c5c0fc7a7db6"))
IMsTscAxEvents : IDispatch
{};

enum __MIDL___MIDL_itf_mstsax_0000_0036_0001
{
    autoReconnectContinueAutomatic = 0,
    autoReconnectContinueStop = 1,
    autoReconnectContinueManual = 2
};

enum __MIDL___MIDL_itf_mstsax_0000_0046_0001
{
    remoteAppResultOk = 0,
    remoteAppResultLocked = 1,
    remoteAppResultProtocolError = 2,
    remoteAppResultNotInWhitelist = 3,
    remoteAppResultNetworkPathDenied = 4,
    remoteAppResultFileNotFound = 5,
    remoteAppResultFailure = 6,
    remoteAppResultHookNotLoaded = 7
};

enum __MIDL___MIDL_itf_mstsax_0000_0046_0002
{
    remoteAppWindowNone = 0,
    remoteAppWindowDisplayed = 1,
    remoteAppShellIconDisplayed = 2
};

struct __declspec(uuid("a41a4187-5a86-4e26-b40a-856f9035d9cb"))
MsTscAxNotSafeForScripting;
    // interface IMsRdpClient
    // [ default ] interface IMsTscAx
    // interface IMsTscAx_Redist
    // [ default, source ] dispinterface IMsTscAxEvents
    // interface IMsTscNonScriptable
    // interface IMsRdpClientNonScriptable

struct __declspec(uuid("327bb5cd-834e-4400-aef2-b30e15e5d682"))
IMsTscAx_Redist : IDispatch
{};

struct __declspec(uuid("c9d65442-a0f9-45b2-8f73-d61d2db8cbb6"))
IMsTscSecuredSettings : IDispatch
{
    //
    // Raw methods provided by interface
    //

      virtual HRESULT __stdcall put_StartProgram (
        /*[in]*/ BSTR pStartProgram ) = 0;
      virtual HRESULT __stdcall get_StartProgram (
        /*[out,retval]*/ BSTR * pStartProgram ) = 0;
      virtual HRESULT __stdcall put_WorkDir (
        /*[in]*/ BSTR pWorkDir ) = 0;
      virtual HRESULT __stdcall get_WorkDir (
        /*[out,retval]*/ BSTR * pWorkDir ) = 0;
      virtual HRESULT __stdcall put_FullScreen (
        /*[in]*/ long pfFullScreen ) = 0;
      virtual HRESULT __stdcall get_FullScreen (
        /*[out,retval]*/ long * pfFullScreen ) = 0;
};

struct __declspec(uuid("809945cc-4b3b-4a92-a6b0-dbf9b5f2ef2d"))
IMsTscAdvancedSettings : IDispatch
{
    //
    // Raw methods provided by interface
    //

      virtual HRESULT __stdcall put_Compress (
        /*[in]*/ long pcompress ) = 0;
      virtual HRESULT __stdcall get_Compress (
        /*[out,retval]*/ long * pcompress ) = 0;
      virtual HRESULT __stdcall put_BitmapPeristence (
        /*[in]*/ long pbitmapPeristence ) = 0;
      virtual HRESULT __stdcall get_BitmapPeristence (
        /*[out,retval]*/ long * pbitmapPeristence ) = 0;
      virtual HRESULT __stdcall put_allowBackgroundInput (
        /*[in]*/ long pallowBackgroundInput ) = 0;
      virtual HRESULT __stdcall get_allowBackgroundInput (
        /*[out,retval]*/ long * pallowBackgroundInput ) = 0;
      virtual HRESULT __stdcall put_KeyBoardLayoutStr (
        /*[in]*/ BSTR _arg1 ) = 0;
      virtual HRESULT __stdcall put_PluginDlls (
        /*[in]*/ BSTR _arg1 ) = 0;
      virtual HRESULT __stdcall put_IconFile (
        /*[in]*/ BSTR _arg1 ) = 0;
      virtual HRESULT __stdcall put_IconIndex (
        /*[in]*/ long _arg1 ) = 0;
      virtual HRESULT __stdcall put_ContainerHandledFullScreen (
        /*[in]*/ long pContainerHandledFullScreen ) = 0;
      virtual HRESULT __stdcall get_ContainerHandledFullScreen (
        /*[out,retval]*/ long * pContainerHandledFullScreen ) = 0;
      virtual HRESULT __stdcall put_DisableRdpdr (
        /*[in]*/ long pDisableRdpdr ) = 0;
      virtual HRESULT __stdcall get_DisableRdpdr (
        /*[out,retval]*/ long * pDisableRdpdr ) = 0;
};

struct __declspec(uuid("209d0eb9-6254-47b1-9033-a98dae55bb27"))
IMsTscDebug : IDispatch
{
    //
    // Raw methods provided by interface
    //

      virtual HRESULT __stdcall put_HatchBitmapPDU (
        /*[in]*/ long phatchBitmapPDU ) = 0;
      virtual HRESULT __stdcall get_HatchBitmapPDU (
        /*[out,retval]*/ long * phatchBitmapPDU ) = 0;
      virtual HRESULT __stdcall put_HatchSSBOrder (
        /*[in]*/ long phatchSSBOrder ) = 0;
      virtual HRESULT __stdcall get_HatchSSBOrder (
        /*[out,retval]*/ long * phatchSSBOrder ) = 0;
      virtual HRESULT __stdcall put_HatchMembltOrder (
        /*[in]*/ long phatchMembltOrder ) = 0;
      virtual HRESULT __stdcall get_HatchMembltOrder (
        /*[out,retval]*/ long * phatchMembltOrder ) = 0;
      virtual HRESULT __stdcall put_HatchIndexPDU (
        /*[in]*/ long phatchIndexPDU ) = 0;
      virtual HRESULT __stdcall get_HatchIndexPDU (
        /*[out,retval]*/ long * phatchIndexPDU ) = 0;
      virtual HRESULT __stdcall put_LabelMemblt (
        /*[in]*/ long plabelMemblt ) = 0;
      virtual HRESULT __stdcall get_LabelMemblt (
        /*[out,retval]*/ long * plabelMemblt ) = 0;
      virtual HRESULT __stdcall put_BitmapCacheMonitor (
        /*[in]*/ long pbitmapCacheMonitor ) = 0;
      virtual HRESULT __stdcall get_BitmapCacheMonitor (
        /*[out,retval]*/ long * pbitmapCacheMonitor ) = 0;
      virtual HRESULT __stdcall put_MallocFailuresPercent (
        /*[in]*/ long pmallocFailuresPercent ) = 0;
      virtual HRESULT __stdcall get_MallocFailuresPercent (
        /*[out,retval]*/ long * pmallocFailuresPercent ) = 0;
      virtual HRESULT __stdcall put_MallocHugeFailuresPercent (
        /*[in]*/ long pmallocHugeFailuresPercent ) = 0;
      virtual HRESULT __stdcall get_MallocHugeFailuresPercent (
        /*[out,retval]*/ long * pmallocHugeFailuresPercent ) = 0;
      virtual HRESULT __stdcall put_NetThroughput (
        /*[in]*/ long NetThroughput ) = 0;
      virtual HRESULT __stdcall get_NetThroughput (
        /*[out,retval]*/ long * NetThroughput ) = 0;
      virtual HRESULT __stdcall put_CLXCmdLine (
        /*[in]*/ BSTR pCLXCmdLine ) = 0;
      virtual HRESULT __stdcall get_CLXCmdLine (
        /*[out,retval]*/ BSTR * pCLXCmdLine ) = 0;
      virtual HRESULT __stdcall put_CLXDll (
        /*[in]*/ BSTR pCLXDll ) = 0;
      virtual HRESULT __stdcall get_CLXDll (
        /*[out,retval]*/ BSTR * pCLXDll ) = 0;
      virtual HRESULT __stdcall put_RemoteProgramsHatchVisibleRegion (
        /*[in]*/ long pcbHatch ) = 0;
      virtual HRESULT __stdcall get_RemoteProgramsHatchVisibleRegion (
        /*[out,retval]*/ long * pcbHatch ) = 0;
      virtual HRESULT __stdcall put_RemoteProgramsHatchVisibleNoDataRegion (
        /*[in]*/ long pcbHatch ) = 0;
      virtual HRESULT __stdcall get_RemoteProgramsHatchVisibleNoDataRegion (
        /*[out,retval]*/ long * pcbHatch ) = 0;
      virtual HRESULT __stdcall put_RemoteProgramsHatchNonVisibleRegion (
        /*[in]*/ long pcbHatch ) = 0;
      virtual HRESULT __stdcall get_RemoteProgramsHatchNonVisibleRegion (
        /*[out,retval]*/ long * pcbHatch ) = 0;
      virtual HRESULT __stdcall put_RemoteProgramsHatchWindow (
        /*[in]*/ long pcbHatch ) = 0;
      virtual HRESULT __stdcall get_RemoteProgramsHatchWindow (
        /*[out,retval]*/ long * pcbHatch ) = 0;
      virtual HRESULT __stdcall put_RemoteProgramsStayConnectOnBadCaps (
        /*[in]*/ long pcbStayConnected ) = 0;
      virtual HRESULT __stdcall get_RemoteProgramsStayConnectOnBadCaps (
        /*[out,retval]*/ long * pcbStayConnected ) = 0;
      virtual HRESULT __stdcall get_ControlType (
        /*[out,retval]*/ unsigned int * pControlType ) = 0;
      virtual HRESULT __stdcall put_DecodeGfx (
        /*[in]*/ VARIANT_BOOL _arg1 ) = 0;
};

struct __declspec(uuid("8c11efae-92c3-11d1-bc1e-00c04fa31489"))
IMsTscAx : IMsTscAx_Redist
{
    //
    // Raw methods provided by interface
    //

      virtual HRESULT __stdcall put_Server (
        /*[in]*/ BSTR pServer ) = 0;
      virtual HRESULT __stdcall get_Server (
        /*[out,retval]*/ BSTR * pServer ) = 0;
      virtual HRESULT __stdcall put_Domain (
        /*[in]*/ BSTR pDomain ) = 0;
      virtual HRESULT __stdcall get_Domain (
        /*[out,retval]*/ BSTR * pDomain ) = 0;
      virtual HRESULT __stdcall put_UserName (
        /*[in]*/ BSTR pUserName ) = 0;
      virtual HRESULT __stdcall get_UserName (
        /*[out,retval]*/ BSTR * pUserName ) = 0;
      virtual HRESULT __stdcall put_DisconnectedText (
        /*[in]*/ BSTR pDisconnectedText ) = 0;
      virtual HRESULT __stdcall get_DisconnectedText (
        /*[out,retval]*/ BSTR * pDisconnectedText ) = 0;
      virtual HRESULT __stdcall put_ConnectingText (
        /*[in]*/ BSTR pConnectingText ) = 0;
      virtual HRESULT __stdcall get_ConnectingText (
        /*[out,retval]*/ BSTR * pConnectingText ) = 0;
      virtual HRESULT __stdcall get_Connected (
        /*[out,retval]*/ short * pIsConnected ) = 0;
      virtual HRESULT __stdcall put_DesktopWidth (
        /*[in]*/ long pVal ) = 0;
      virtual HRESULT __stdcall get_DesktopWidth (
        /*[out,retval]*/ long * pVal ) = 0;
      virtual HRESULT __stdcall put_DesktopHeight (
        /*[in]*/ long pVal ) = 0;
      virtual HRESULT __stdcall get_DesktopHeight (
        /*[out,retval]*/ long * pVal ) = 0;
      virtual HRESULT __stdcall put_StartConnected (
        /*[in]*/ long pfStartConnected ) = 0;
      virtual HRESULT __stdcall get_StartConnected (
        /*[out,retval]*/ long * pfStartConnected ) = 0;
      virtual HRESULT __stdcall get_HorizontalScrollBarVisible (
        /*[out,retval]*/ long * pfHScrollVisible ) = 0;
      virtual HRESULT __stdcall get_VerticalScrollBarVisible (
        /*[out,retval]*/ long * pfVScrollVisible ) = 0;
      virtual HRESULT __stdcall put_FullScreenTitle (
        /*[in]*/ BSTR _arg1 ) = 0;
      virtual HRESULT __stdcall get_CipherStrength (
        /*[out,retval]*/ long * pCipherStrength ) = 0;
      virtual HRESULT __stdcall get_Version (
        /*[out,retval]*/ BSTR * pVersion ) = 0;
      virtual HRESULT __stdcall get_SecuredSettingsEnabled (
        /*[out,retval]*/ long * pSecuredSettingsEnabled ) = 0;
      virtual HRESULT __stdcall get_SecuredSettings (
        /*[out,retval]*/ struct IMsTscSecuredSettings * * ppSecuredSettings ) = 0;
      virtual HRESULT __stdcall get_AdvancedSettings (
        /*[out,retval]*/ struct IMsTscAdvancedSettings * * ppAdvSettings ) = 0;
      virtual HRESULT __stdcall get_Debugger (
        /*[out,retval]*/ struct IMsTscDebug * * ppDebugger ) = 0;
      virtual HRESULT __stdcall Connect ( ) = 0;
      virtual HRESULT __stdcall Disconnect ( ) = 0;
      virtual HRESULT __stdcall CreateVirtualChannels (
        /*[in]*/ BSTR newVal ) = 0;
      virtual HRESULT __stdcall SendOnVirtualChannel (
        /*[in]*/ BSTR chanName,
        /*[in]*/ BSTR ChanData ) = 0;
};

struct __declspec(uuid("3c65b4ab-12b3-465b-acd4-b8dad3bff9e2"))
IMsRdpClientAdvancedSettings : IMsTscAdvancedSettings
{
    //
    // Raw methods provided by interface
    //

      virtual HRESULT __stdcall put_SmoothScroll (
        /*[in]*/ long psmoothScroll ) = 0;
      virtual HRESULT __stdcall get_SmoothScroll (
        /*[out,retval]*/ long * psmoothScroll ) = 0;
      virtual HRESULT __stdcall put_AcceleratorPassthrough (
        /*[in]*/ long pacceleratorPassthrough ) = 0;
      virtual HRESULT __stdcall get_AcceleratorPassthrough (
        /*[out,retval]*/ long * pacceleratorPassthrough ) = 0;
      virtual HRESULT __stdcall put_ShadowBitmap (
        /*[in]*/ long pshadowBitmap ) = 0;
      virtual HRESULT __stdcall get_ShadowBitmap (
        /*[out,retval]*/ long * pshadowBitmap ) = 0;
      virtual HRESULT __stdcall put_TransportType (
        /*[in]*/ long ptransportType ) = 0;
      virtual HRESULT __stdcall get_TransportType (
        /*[out,retval]*/ long * ptransportType ) = 0;
      virtual HRESULT __stdcall put_SasSequence (
        /*[in]*/ long psasSequence ) = 0;
      virtual HRESULT __stdcall get_SasSequence (
        /*[out,retval]*/ long * psasSequence ) = 0;
      virtual HRESULT __stdcall put_EncryptionEnabled (
        /*[in]*/ long pencryptionEnabled ) = 0;
      virtual HRESULT __stdcall get_EncryptionEnabled (
        /*[out,retval]*/ long * pencryptionEnabled ) = 0;
      virtual HRESULT __stdcall put_DedicatedTerminal (
        /*[in]*/ long pdedicatedTerminal ) = 0;
      virtual HRESULT __stdcall get_DedicatedTerminal (
        /*[out,retval]*/ long * pdedicatedTerminal ) = 0;
      virtual HRESULT __stdcall put_RDPPort (
        /*[in]*/ long prdpPort ) = 0;
      virtual HRESULT __stdcall get_RDPPort (
        /*[out,retval]*/ long * prdpPort ) = 0;
      virtual HRESULT __stdcall put_EnableMouse (
        /*[in]*/ long penableMouse ) = 0;
      virtual HRESULT __stdcall get_EnableMouse (
        /*[out,retval]*/ long * penableMouse ) = 0;
      virtual HRESULT __stdcall put_DisableCtrlAltDel (
        /*[in]*/ long pdisableCtrlAltDel ) = 0;
      virtual HRESULT __stdcall get_DisableCtrlAltDel (
        /*[out,retval]*/ long * pdisableCtrlAltDel ) = 0;
      virtual HRESULT __stdcall put_EnableWindowsKey (
        /*[in]*/ long penableWindowsKey ) = 0;
      virtual HRESULT __stdcall get_EnableWindowsKey (
        /*[out,retval]*/ long * penableWindowsKey ) = 0;
      virtual HRESULT __stdcall put_DoubleClickDetect (
        /*[in]*/ long pdoubleClickDetect ) = 0;
      virtual HRESULT __stdcall get_DoubleClickDetect (
        /*[out,retval]*/ long * pdoubleClickDetect ) = 0;
      virtual HRESULT __stdcall put_MaximizeShell (
        /*[in]*/ long pmaximizeShell ) = 0;
      virtual HRESULT __stdcall get_MaximizeShell (
        /*[out,retval]*/ long * pmaximizeShell ) = 0;
      virtual HRESULT __stdcall put_HotKeyFullScreen (
        /*[in]*/ long photKeyFullScreen ) = 0;
      virtual HRESULT __stdcall get_HotKeyFullScreen (
        /*[out,retval]*/ long * photKeyFullScreen ) = 0;
      virtual HRESULT __stdcall put_HotKeyCtrlEsc (
        /*[in]*/ long photKeyCtrlEsc ) = 0;
      virtual HRESULT __stdcall get_HotKeyCtrlEsc (
        /*[out,retval]*/ long * photKeyCtrlEsc ) = 0;
      virtual HRESULT __stdcall put_HotKeyAltEsc (
        /*[in]*/ long photKeyAltEsc ) = 0;
      virtual HRESULT __stdcall get_HotKeyAltEsc (
        /*[out,retval]*/ long * photKeyAltEsc ) = 0;
      virtual HRESULT __stdcall put_HotKeyAltTab (
        /*[in]*/ long photKeyAltTab ) = 0;
      virtual HRESULT __stdcall get_HotKeyAltTab (
        /*[out,retval]*/ long * photKeyAltTab ) = 0;
      virtual HRESULT __stdcall put_HotKeyAltShiftTab (
        /*[in]*/ long photKeyAltShiftTab ) = 0;
      virtual HRESULT __stdcall get_HotKeyAltShiftTab (
        /*[out,retval]*/ long * photKeyAltShiftTab ) = 0;
      virtual HRESULT __stdcall put_HotKeyAltSpace (
        /*[in]*/ long photKeyAltSpace ) = 0;
      virtual HRESULT __stdcall get_HotKeyAltSpace (
        /*[out,retval]*/ long * photKeyAltSpace ) = 0;
      virtual HRESULT __stdcall put_HotKeyCtrlAltDel (
        /*[in]*/ long photKeyCtrlAltDel ) = 0;
      virtual HRESULT __stdcall get_HotKeyCtrlAltDel (
        /*[out,retval]*/ long * photKeyCtrlAltDel ) = 0;
      virtual HRESULT __stdcall put_orderDrawThreshold (
        /*[in]*/ long porderDrawThreshold ) = 0;
      virtual HRESULT __stdcall get_orderDrawThreshold (
        /*[out,retval]*/ long * porderDrawThreshold ) = 0;
      virtual HRESULT __stdcall put_BitmapCacheSize (
        /*[in]*/ long pbitmapCacheSize ) = 0;
      virtual HRESULT __stdcall get_BitmapCacheSize (
        /*[out,retval]*/ long * pbitmapCacheSize ) = 0;
      virtual HRESULT __stdcall put_BitmapVirtualCacheSize (
        /*[in]*/ long pbitmapVirtualCacheSize ) = 0;
      virtual HRESULT __stdcall get_BitmapVirtualCacheSize (
        /*[out,retval]*/ long * pbitmapVirtualCacheSize ) = 0;
      virtual HRESULT __stdcall put_ScaleBitmapCachesByBPP (
        /*[in]*/ long pbScale ) = 0;
      virtual HRESULT __stdcall get_ScaleBitmapCachesByBPP (
        /*[out,retval]*/ long * pbScale ) = 0;
      virtual HRESULT __stdcall put_NumBitmapCaches (
        /*[in]*/ long pnumBitmapCaches ) = 0;
      virtual HRESULT __stdcall get_NumBitmapCaches (
        /*[out,retval]*/ long * pnumBitmapCaches ) = 0;
      virtual HRESULT __stdcall put_CachePersistenceActive (
        /*[in]*/ long pcachePersistenceActive ) = 0;
      virtual HRESULT __stdcall get_CachePersistenceActive (
        /*[out,retval]*/ long * pcachePersistenceActive ) = 0;
      virtual HRESULT __stdcall put_PersistCacheDirectory (
        /*[in]*/ BSTR _arg1 ) = 0;
      virtual HRESULT __stdcall put_brushSupportLevel (
        /*[in]*/ long pbrushSupportLevel ) = 0;
      virtual HRESULT __stdcall get_brushSupportLevel (
        /*[out,retval]*/ long * pbrushSupportLevel ) = 0;
      virtual HRESULT __stdcall put_minInputSendInterval (
        /*[in]*/ long pminInputSendInterval ) = 0;
      virtual HRESULT __stdcall get_minInputSendInterval (
        /*[out,retval]*/ long * pminInputSendInterval ) = 0;
      virtual HRESULT __stdcall put_InputEventsAtOnce (
        /*[in]*/ long pinputEventsAtOnce ) = 0;
      virtual HRESULT __stdcall get_InputEventsAtOnce (
        /*[out,retval]*/ long * pinputEventsAtOnce ) = 0;
      virtual HRESULT __stdcall put_maxEventCount (
        /*[in]*/ long pmaxEventCount ) = 0;
      virtual HRESULT __stdcall get_maxEventCount (
        /*[out,retval]*/ long * pmaxEventCount ) = 0;
      virtual HRESULT __stdcall put_keepAliveInterval (
        /*[in]*/ long pkeepAliveInterval ) = 0;
      virtual HRESULT __stdcall get_keepAliveInterval (
        /*[out,retval]*/ long * pkeepAliveInterval ) = 0;
      virtual HRESULT __stdcall put_shutdownTimeout (
        /*[in]*/ long pshutdownTimeout ) = 0;
      virtual HRESULT __stdcall get_shutdownTimeout (
        /*[out,retval]*/ long * pshutdownTimeout ) = 0;
      virtual HRESULT __stdcall put_overallConnectionTimeout (
        /*[in]*/ long poverallConnectionTimeout ) = 0;
      virtual HRESULT __stdcall get_overallConnectionTimeout (
        /*[out,retval]*/ long * poverallConnectionTimeout ) = 0;
      virtual HRESULT __stdcall put_singleConnectionTimeout (
        /*[in]*/ long psingleConnectionTimeout ) = 0;
      virtual HRESULT __stdcall get_singleConnectionTimeout (
        /*[out,retval]*/ long * psingleConnectionTimeout ) = 0;
      virtual HRESULT __stdcall put_KeyboardType (
        /*[in]*/ long pkeyboardType ) = 0;
      virtual HRESULT __stdcall get_KeyboardType (
        /*[out,retval]*/ long * pkeyboardType ) = 0;
      virtual HRESULT __stdcall put_KeyboardSubType (
        /*[in]*/ long pkeyboardSubType ) = 0;
      virtual HRESULT __stdcall get_KeyboardSubType (
        /*[out,retval]*/ long * pkeyboardSubType ) = 0;
      virtual HRESULT __stdcall put_KeyboardFunctionKey (
        /*[in]*/ long pkeyboardFunctionKey ) = 0;
      virtual HRESULT __stdcall get_KeyboardFunctionKey (
        /*[out,retval]*/ long * pkeyboardFunctionKey ) = 0;
      virtual HRESULT __stdcall put_WinceFixedPalette (
        /*[in]*/ long pwinceFixedPalette ) = 0;
      virtual HRESULT __stdcall get_WinceFixedPalette (
        /*[out,retval]*/ long * pwinceFixedPalette ) = 0;
      virtual HRESULT __stdcall put_ConnectToServerConsole (
        /*[in]*/ VARIANT_BOOL pConnectToConsole ) = 0;
      virtual HRESULT __stdcall get_ConnectToServerConsole (
        /*[out,retval]*/ VARIANT_BOOL * pConnectToConsole ) = 0;
      virtual HRESULT __stdcall put_BitmapPersistence (
        /*[in]*/ long pbitmapPersistence ) = 0;
      virtual HRESULT __stdcall get_BitmapPersistence (
        /*[out,retval]*/ long * pbitmapPersistence ) = 0;
      virtual HRESULT __stdcall put_MinutesToIdleTimeout (
        /*[in]*/ long pminutesToIdleTimeout ) = 0;
      virtual HRESULT __stdcall get_MinutesToIdleTimeout (
        /*[out,retval]*/ long * pminutesToIdleTimeout ) = 0;
      virtual HRESULT __stdcall put_SmartSizing (
        /*[in]*/ VARIANT_BOOL pfSmartSizing ) = 0;
      virtual HRESULT __stdcall get_SmartSizing (
        /*[out,retval]*/ VARIANT_BOOL * pfSmartSizing ) = 0;
      virtual HRESULT __stdcall put_RdpdrLocalPrintingDocName (
        /*[in]*/ BSTR pLocalPrintingDocName ) = 0;
      virtual HRESULT __stdcall get_RdpdrLocalPrintingDocName (
        /*[out,retval]*/ BSTR * pLocalPrintingDocName ) = 0;
      virtual HRESULT __stdcall put_RdpdrClipCleanTempDirString (
        /*[in]*/ BSTR clipCleanTempDirString ) = 0;
      virtual HRESULT __stdcall get_RdpdrClipCleanTempDirString (
        /*[out,retval]*/ BSTR * clipCleanTempDirString ) = 0;
      virtual HRESULT __stdcall put_RdpdrClipPasteInfoString (
        /*[in]*/ BSTR clipPasteInfoString ) = 0;
      virtual HRESULT __stdcall get_RdpdrClipPasteInfoString (
        /*[out,retval]*/ BSTR * clipPasteInfoString ) = 0;
      virtual HRESULT __stdcall put_ClearTextPassword (
        /*[in]*/ BSTR _arg1 ) = 0;
      virtual HRESULT __stdcall put_DisplayConnectionBar (
        /*[in]*/ VARIANT_BOOL pDisplayConnectionBar ) = 0;
      virtual HRESULT __stdcall get_DisplayConnectionBar (
        /*[out,retval]*/ VARIANT_BOOL * pDisplayConnectionBar ) = 0;
      virtual HRESULT __stdcall put_PinConnectionBar (
        /*[in]*/ VARIANT_BOOL pPinConnectionBar ) = 0;
      virtual HRESULT __stdcall get_PinConnectionBar (
        /*[out,retval]*/ VARIANT_BOOL * pPinConnectionBar ) = 0;
      virtual HRESULT __stdcall put_GrabFocusOnConnect (
        /*[in]*/ VARIANT_BOOL pfGrabFocusOnConnect ) = 0;
      virtual HRESULT __stdcall get_GrabFocusOnConnect (
        /*[out,retval]*/ VARIANT_BOOL * pfGrabFocusOnConnect ) = 0;
      virtual HRESULT __stdcall put_LoadBalanceInfo (
        /*[in]*/ BSTR pLBInfo ) = 0;
      virtual HRESULT __stdcall get_LoadBalanceInfo (
        /*[out,retval]*/ BSTR * pLBInfo ) = 0;
      virtual HRESULT __stdcall put_RedirectDrives (
        /*[in]*/ VARIANT_BOOL pRedirectDrives ) = 0;
      virtual HRESULT __stdcall get_RedirectDrives (
        /*[out,retval]*/ VARIANT_BOOL * pRedirectDrives ) = 0;
      virtual HRESULT __stdcall put_RedirectPrinters (
        /*[in]*/ VARIANT_BOOL pRedirectPrinters ) = 0;
      virtual HRESULT __stdcall get_RedirectPrinters (
        /*[out,retval]*/ VARIANT_BOOL * pRedirectPrinters ) = 0;
      virtual HRESULT __stdcall put_RedirectPorts (
        /*[in]*/ VARIANT_BOOL pRedirectPorts ) = 0;
      virtual HRESULT __stdcall get_RedirectPorts (
        /*[out,retval]*/ VARIANT_BOOL * pRedirectPorts ) = 0;
      virtual HRESULT __stdcall put_RedirectSmartCards (
        /*[in]*/ VARIANT_BOOL pRedirectSmartCards ) = 0;
      virtual HRESULT __stdcall get_RedirectSmartCards (
        /*[out,retval]*/ VARIANT_BOOL * pRedirectSmartCards ) = 0;
      virtual HRESULT __stdcall put_BitmapVirtualCache16BppSize (
        /*[in]*/ long pBitmapVirtualCache16BppSize ) = 0;
      virtual HRESULT __stdcall get_BitmapVirtualCache16BppSize (
        /*[out,retval]*/ long * pBitmapVirtualCache16BppSize ) = 0;
      virtual HRESULT __stdcall put_BitmapVirtualCache24BppSize (
        /*[in]*/ long pBitmapVirtualCache24BppSize ) = 0;
      virtual HRESULT __stdcall get_BitmapVirtualCache24BppSize (
        /*[out,retval]*/ long * pBitmapVirtualCache24BppSize ) = 0;
      virtual HRESULT __stdcall put_PerformanceFlags (
        /*[in]*/ long pDisableList ) = 0;
      virtual HRESULT __stdcall get_PerformanceFlags (
        /*[out,retval]*/ long * pDisableList ) = 0;
      virtual HRESULT __stdcall put_ConnectWithEndpoint (
        /*[in]*/ VARIANT * _arg1 ) = 0;
      virtual HRESULT __stdcall put_NotifyTSPublicKey (
        /*[in]*/ VARIANT_BOOL pfNotify ) = 0;
      virtual HRESULT __stdcall get_NotifyTSPublicKey (
        /*[out,retval]*/ VARIANT_BOOL * pfNotify ) = 0;
};

struct __declspec(uuid("605befcf-39c1-45cc-a811-068fb7be346d"))
IMsRdpClientSecuredSettings : IMsTscSecuredSettings
{
    //
    // Raw methods provided by interface
    //

      virtual HRESULT __stdcall put_KeyboardHookMode (
        /*[in]*/ long pkeyboardHookMode ) = 0;
      virtual HRESULT __stdcall get_KeyboardHookMode (
        /*[out,retval]*/ long * pkeyboardHookMode ) = 0;
      virtual HRESULT __stdcall put_AudioRedirectionMode (
        /*[in]*/ long pAudioRedirectionMode ) = 0;
      virtual HRESULT __stdcall get_AudioRedirectionMode (
        /*[out,retval]*/ long * pAudioRedirectionMode ) = 0;
};

enum __MIDL___MIDL_itf_mstsax_0000_0000_0001
{
    exDiscReasonNoInfo = 0,
    exDiscReasonAPIInitiatedDisconnect = 1,
    exDiscReasonAPIInitiatedLogoff = 2,
    exDiscReasonServerIdleTimeout = 3,
    exDiscReasonServerLogonTimeout = 4,
    exDiscReasonReplacedByOtherConnection = 5,
    exDiscReasonOutOfMemory = 6,
    exDiscReasonServerDeniedConnection = 7,
    exDiscReasonServerDeniedConnectionFips = 8,
    exDiscReasonServerInsufficientPrivileges = 9,
    exDiscReasonServerFreshCredsRequired = 10,
    exDiscReasonLicenseInternal = 256,
    exDiscReasonLicenseNoLicenseServer = 257,
    exDiscReasonLicenseNoLicense = 258,
    exDiscReasonLicenseErrClientMsg = 259,
    exDiscReasonLicenseHwidDoesntMatchLicense = 260,
    exDiscReasonLicenseErrClientLicense = 261,
    exDiscReasonLicenseCantFinishProtocol = 262,
    exDiscReasonLicenseClientEndedProtocol = 263,
    exDiscReasonLicenseErrClientEncryption = 264,
    exDiscReasonLicenseCantUpgradeLicense = 265,
    exDiscReasonLicenseNoRemoteConnections = 266,
    exDiscReasonLicenseCreatingLicStoreAccDenied = 267,
    exDiscReasonRdpEncInvalidCredentials = 768,
    exDiscReasonProtocolRangeStart = 4096,
    exDiscReasonProtocolRangeEnd = 32767
};

struct __declspec(uuid("92b4a539-7115-4b7c-a5a9-e5d9efc2780a"))
IMsRdpClient : IMsTscAx
{
    //
    // Raw methods provided by interface
    //

      virtual HRESULT __stdcall put_ColorDepth (
        /*[in]*/ long pcolorDepth ) = 0;
      virtual HRESULT __stdcall get_ColorDepth (
        /*[out,retval]*/ long * pcolorDepth ) = 0;
      virtual HRESULT __stdcall get_AdvancedSettings2 (
        /*[out,retval]*/ struct IMsRdpClientAdvancedSettings * * ppAdvSettings ) = 0;
      virtual HRESULT __stdcall get_SecuredSettings2 (
        /*[out,retval]*/ struct IMsRdpClientSecuredSettings * * ppSecuredSettings ) = 0;
      virtual HRESULT __stdcall get_ExtendedDisconnectReason (
        /*[out,retval]*/ ExtendedDisconnectReasonCode * pExtendedDisconnectReason ) = 0;
      virtual HRESULT __stdcall put_FullScreen (
        /*[in]*/ VARIANT_BOOL pfFullScreen ) = 0;
      virtual HRESULT __stdcall get_FullScreen (
        /*[out,retval]*/ VARIANT_BOOL * pfFullScreen ) = 0;
      virtual HRESULT __stdcall SetVirtualChannelOptions (
        /*[in]*/ BSTR chanName,
        /*[in]*/ long chanOptions ) = 0;
      virtual HRESULT __stdcall GetVirtualChannelOptions (
        /*[in]*/ BSTR chanName,
        /*[out,retval]*/ long * pChanOptions ) = 0;
      virtual HRESULT __stdcall RequestClose (
        /*[out,retval]*/ ControlCloseStatus * pCloseStatus ) = 0;
};

enum __MIDL_IMsRdpClient_0001
{
    controlCloseCanProceed = 0,
    controlCloseWaitForEvents = 1
};

struct __declspec(uuid("c1e6743a-41c1-4a74-832a-0dd06c1c7a0e"))
IMsTscNonScriptable : IUnknown
{
    //
    // Raw methods provided by interface
    //

      virtual HRESULT __stdcall put_ClearTextPassword (
        /*[in]*/ BSTR _arg1 ) = 0;
      virtual HRESULT __stdcall put_PortablePassword (
        /*[in]*/ BSTR pPortablePass ) = 0;
      virtual HRESULT __stdcall get_PortablePassword (
        /*[out,retval]*/ BSTR * pPortablePass ) = 0;
      virtual HRESULT __stdcall put_PortableSalt (
        /*[in]*/ BSTR pPortableSalt ) = 0;
      virtual HRESULT __stdcall get_PortableSalt (
        /*[out,retval]*/ BSTR * pPortableSalt ) = 0;
      virtual HRESULT __stdcall put_BinaryPassword (
        /*[in]*/ BSTR pBinaryPassword ) = 0;
      virtual HRESULT __stdcall get_BinaryPassword (
        /*[out,retval]*/ BSTR * pBinaryPassword ) = 0;
      virtual HRESULT __stdcall put_BinarySalt (
        /*[in]*/ BSTR pSalt ) = 0;
      virtual HRESULT __stdcall get_BinarySalt (
        /*[out,retval]*/ BSTR * pSalt ) = 0;
      virtual HRESULT __stdcall ResetPassword ( ) = 0;
};

struct __declspec(uuid("2f079c4c-87b2-4afd-97ab-20cdb43038ae"))
IMsRdpClientNonScriptable : IMsTscNonScriptable
{
    //
    // Raw methods provided by interface
    //

      virtual HRESULT __stdcall NotifyRedirectDeviceChange (
        /*[in]*/ UINT_PTR wParam,
        /*[in]*/ LONG_PTR lParam ) = 0;
      virtual HRESULT __stdcall SendKeys (
        /*[in]*/ long numKeys,
        /*[in]*/ VARIANT_BOOL * pbArrayKeyUp,
        /*[in]*/ long * plKeyData ) = 0;
};

struct __declspec(uuid("1fb464c8-09bb-4017-a2f5-eb742f04392f"))
MsTscAx;
    // interface IMsRdpClient
    // [ default ] interface IMsTscAx
    // interface IMsTscAx_Redist
    // [ default, source ] dispinterface IMsTscAxEvents
    // interface IMsTscNonScriptable
    // interface IMsRdpClientNonScriptable

struct __declspec(uuid("7cacbd7b-0d99-468f-ac33-22e495c0afe5"))
MsRdpClientNotSafeForScripting;
    // [ default ] interface IMsRdpClient
    // interface IMsTscAx
    // interface IMsTscAx_Redist
    // [ default, source ] dispinterface IMsTscAxEvents
    // interface IMsTscNonScriptable
    // interface IMsRdpClientNonScriptable

struct __declspec(uuid("791fa017-2de3-492e-acc5-53c67a2b94d0"))
MsRdpClient;
    // [ default ] interface IMsRdpClient
    // interface IMsTscAx
    // interface IMsTscAx_Redist
    // [ default, source ] dispinterface IMsTscAxEvents
    // interface IMsTscNonScriptable
    // interface IMsRdpClientNonScriptable

struct __declspec(uuid("3523c2fb-4031-44e4-9a3b-f1e94986ee7f"))
MsRdpClient2NotSafeForScripting;
    // [ default ] interface IMsRdpClient2
    // interface IMsRdpClient
    // interface IMsTscAx
    // interface IMsTscAx_Redist
    // [ default, source ] dispinterface IMsTscAxEvents
    // interface IMsTscNonScriptable
    // interface IMsRdpClientNonScriptable

struct __declspec(uuid("9ac42117-2b76-4320-aa44-0e616ab8437b"))
IMsRdpClientAdvancedSettings2 : IMsRdpClientAdvancedSettings
{
    //
    // Raw methods provided by interface
    //

      virtual HRESULT __stdcall get_CanAutoReconnect (
        /*[out,retval]*/ VARIANT_BOOL * pfCanAutoReconnect ) = 0;
      virtual HRESULT __stdcall put_EnableAutoReconnect (
        /*[in]*/ VARIANT_BOOL pfEnableAutoReconnect ) = 0;
      virtual HRESULT __stdcall get_EnableAutoReconnect (
        /*[out,retval]*/ VARIANT_BOOL * pfEnableAutoReconnect ) = 0;
      virtual HRESULT __stdcall put_MaxReconnectAttempts (
        /*[in]*/ long pMaxReconnectAttempts ) = 0;
      virtual HRESULT __stdcall get_MaxReconnectAttempts (
        /*[out,retval]*/ long * pMaxReconnectAttempts ) = 0;
};

struct __declspec(uuid("e7e17dc4-3b71-4ba7-a8e6-281ffadca28f"))
IMsRdpClient2 : IMsRdpClient
{
    //
    // Raw methods provided by interface
    //

      virtual HRESULT __stdcall get_AdvancedSettings3 (
        /*[out,retval]*/ struct IMsRdpClientAdvancedSettings2 * * ppAdvSettings ) = 0;
      virtual HRESULT __stdcall put_ConnectedStatusText (
        /*[in]*/ BSTR pConnectedStatusText ) = 0;
      virtual HRESULT __stdcall get_ConnectedStatusText (
        /*[out,retval]*/ BSTR * pConnectedStatusText ) = 0;
};

struct __declspec(uuid("9059f30f-4eb1-4bd2-9fdc-36f43a218f4a"))
MsRdpClient2;
    // [ default ] interface IMsRdpClient2
    // interface IMsRdpClient
    // interface IMsTscAx
    // interface IMsTscAx_Redist
    // [ default, source ] dispinterface IMsTscAxEvents
    // interface IMsTscNonScriptable
    // interface IMsRdpClientNonScriptable

struct __declspec(uuid("971127bb-259f-48c2-bd75-5f97a3331551"))
MsRdpClient2a;
    // [ default ] interface IMsRdpClient2
    // interface IMsRdpClient
    // interface IMsTscAx
    // interface IMsTscAx_Redist
    // [ default, source ] dispinterface IMsTscAxEvents
    // interface IMsTscNonScriptable
    // interface IMsRdpClientNonScriptable

struct __declspec(uuid("ace575fd-1fcf-4074-9401-ebab990fa9de"))
MsRdpClient3NotSafeForScripting;
    // [ default ] interface IMsRdpClient3
    // interface IMsRdpClient2
    // interface IMsRdpClient
    // interface IMsTscAx
    // interface IMsTscAx_Redist
    // [ default, source ] dispinterface IMsTscAxEvents
    // interface IMsTscNonScriptable
    // interface IMsRdpClientNonScriptable

struct __declspec(uuid("19cd856b-c542-4c53-acee-f127e3be1a59"))
IMsRdpClientAdvancedSettings3 : IMsRdpClientAdvancedSettings2
{
    //
    // Raw methods provided by interface
    //

      virtual HRESULT __stdcall put_ConnectionBarShowMinimizeButton (
        /*[in]*/ VARIANT_BOOL pfShowMinimize ) = 0;
      virtual HRESULT __stdcall get_ConnectionBarShowMinimizeButton (
        /*[out,retval]*/ VARIANT_BOOL * pfShowMinimize ) = 0;
      virtual HRESULT __stdcall put_ConnectionBarShowRestoreButton (
        /*[in]*/ VARIANT_BOOL pfShowRestore ) = 0;
      virtual HRESULT __stdcall get_ConnectionBarShowRestoreButton (
        /*[out,retval]*/ VARIANT_BOOL * pfShowRestore ) = 0;
};

struct __declspec(uuid("91b7cbc5-a72e-4fa0-9300-d647d7e897ff"))
IMsRdpClient3 : IMsRdpClient2
{
    //
    // Raw methods provided by interface
    //

      virtual HRESULT __stdcall get_AdvancedSettings4 (
        /*[out,retval]*/ struct IMsRdpClientAdvancedSettings3 * * ppAdvSettings ) = 0;
};

struct __declspec(uuid("7584c670-2274-4efb-b00b-d6aaba6d3850"))
MsRdpClient3;
    // [ default ] interface IMsRdpClient3
    // interface IMsRdpClient2
    // interface IMsRdpClient
    // interface IMsTscAx
    // interface IMsTscAx_Redist
    // [ default, source ] dispinterface IMsTscAxEvents
    // interface IMsTscNonScriptable
    // interface IMsRdpClientNonScriptable

struct __declspec(uuid("6a6f4b83-45c5-4ca9-bdd9-0d81c12295e4"))
MsRdpClient3a;
    // [ default ] interface IMsRdpClient3
    // interface IMsRdpClient2
    // interface IMsRdpClient
    // interface IMsTscAx
    // interface IMsTscAx_Redist
    // [ default, source ] dispinterface IMsTscAxEvents
    // interface IMsTscNonScriptable
    // interface IMsRdpClientNonScriptable

struct __declspec(uuid("6ae29350-321b-42be-bbe5-12fb5270c0de"))
MsRdpClient4NotSafeForScripting;
    // [ default ] interface IMsRdpClient4
    // interface IMsRdpClient3
    // interface IMsRdpClient2
    // interface IMsRdpClient
    // interface IMsTscAx
    // interface IMsTscAx_Redist
    // [ default, source ] dispinterface IMsTscAxEvents
    // interface IMsTscNonScriptable
    // interface IMsRdpClientNonScriptable
    // interface IMsRdpClientNonScriptable2

struct __declspec(uuid("fba7f64e-7345-4405-ae50-fa4a763dc0de"))
IMsRdpClientAdvancedSettings4 : IMsRdpClientAdvancedSettings3
{
    //
    // Raw methods provided by interface
    //

      virtual HRESULT __stdcall put_AuthenticationLevel (
        /*[in]*/ unsigned int puiAuthLevel ) = 0;
      virtual HRESULT __stdcall get_AuthenticationLevel (
        /*[out,retval]*/ unsigned int * puiAuthLevel ) = 0;
};

struct __declspec(uuid("095e0738-d97d-488b-b9f6-dd0e8d66c0de"))
IMsRdpClient4 : IMsRdpClient3
{
    //
    // Raw methods provided by interface
    //

      virtual HRESULT __stdcall get_AdvancedSettings5 (
        /*[out,retval]*/ struct IMsRdpClientAdvancedSettings4 * * ppAdvSettings ) = 0;
};

struct __declspec(uuid("17a5e535-4072-4fa4-af32-c8d0d47345e9"))
IMsRdpClientNonScriptable2 : IMsRdpClientNonScriptable
{
    //
    // Raw methods provided by interface
    //

      virtual HRESULT __stdcall put_UIParentWindowHandle (
        /*[in]*/ wireHWND phwndUIParentWindowHandle ) = 0;
      virtual HRESULT __stdcall get_UIParentWindowHandle (
        /*[out,retval]*/ wireHWND * phwndUIParentWindowHandle ) = 0;
};

struct __declspec(uuid("4edcb26c-d24c-4e72-af07-b576699ac0de"))
MsRdpClient4;
    // [ default ] interface IMsRdpClient4
    // interface IMsRdpClient3
    // interface IMsRdpClient2
    // interface IMsRdpClient
    // interface IMsTscAx
    // interface IMsTscAx_Redist
    // [ default, source ] dispinterface IMsTscAxEvents
    // interface IMsTscNonScriptable
    // interface IMsRdpClientNonScriptable
    // interface IMsRdpClientNonScriptable2

struct __declspec(uuid("54ce37e0-9834-41ae-9896-4dab69dc022b"))
MsRdpClient4a;
    // [ default ] interface IMsRdpClient4
    // interface IMsRdpClient3
    // interface IMsRdpClient2
    // interface IMsRdpClient
    // interface IMsTscAx
    // interface IMsTscAx_Redist
    // [ default, source ] dispinterface IMsTscAxEvents
    // interface IMsTscNonScriptable
    // interface IMsRdpClientNonScriptable
    // interface IMsRdpClientNonScriptable2

struct __declspec(uuid("4eb2f086-c818-447e-b32c-c51ce2b30d31"))
MsRdpClient5NotSafeForScripting;
    // [ default ] interface IMsRdpClient5
    // interface IMsRdpClient4
    // interface IMsRdpClient3
    // interface IMsRdpClient2
    // interface IMsRdpClient
    // interface IMsTscAx
    // interface IMsTscAx_Redist
    // [ default, source ] dispinterface IMsTscAxEvents
    // interface IMsTscNonScriptable
    // interface IMsRdpClientNonScriptable
    // interface IMsRdpClientNonScriptable2
    // interface IMsRdpClientNonScriptable3

struct __declspec(uuid("720298c0-a099-46f5-9f82-96921bae4701"))
IMsRdpClientTransportSettings : IDispatch
{
    //
    // Raw methods provided by interface
    //

      virtual HRESULT __stdcall put_GatewayHostname (
        /*[in]*/ BSTR pProxyHostname ) = 0;
      virtual HRESULT __stdcall get_GatewayHostname (
        /*[out,retval]*/ BSTR * pProxyHostname ) = 0;
      virtual HRESULT __stdcall put_GatewayUsageMethod (
        /*[in]*/ unsigned long pulProxyUsageMethod ) = 0;
      virtual HRESULT __stdcall get_GatewayUsageMethod (
        /*[out,retval]*/ unsigned long * pulProxyUsageMethod ) = 0;
      virtual HRESULT __stdcall put_GatewayProfileUsageMethod (
        /*[in]*/ unsigned long pulProxyProfileUsageMethod ) = 0;
      virtual HRESULT __stdcall get_GatewayProfileUsageMethod (
        /*[out,retval]*/ unsigned long * pulProxyProfileUsageMethod ) = 0;
      virtual HRESULT __stdcall put_GatewayCredsSource (
        /*[in]*/ unsigned long pulProxyCredsSource ) = 0;
      virtual HRESULT __stdcall get_GatewayCredsSource (
        /*[out,retval]*/ unsigned long * pulProxyCredsSource ) = 0;
      virtual HRESULT __stdcall put_GatewayUserSelectedCredsSource (
        /*[in]*/ unsigned long pulProxyCredsSource ) = 0;
      virtual HRESULT __stdcall get_GatewayUserSelectedCredsSource (
        /*[out,retval]*/ unsigned long * pulProxyCredsSource ) = 0;
      virtual HRESULT __stdcall get_GatewayIsSupported (
        /*[out,retval]*/ long * pfProxyIsSupported ) = 0;
      virtual HRESULT __stdcall get_GatewayDefaultUsageMethod (
        /*[out,retval]*/ unsigned long * pulProxyDefaultUsageMethod ) = 0;
};

struct __declspec(uuid("fba7f64e-6783-4405-da45-fa4a763dabd0"))
IMsRdpClientAdvancedSettings5 : IMsRdpClientAdvancedSettings4
{
    //
    // Raw methods provided by interface
    //

      virtual HRESULT __stdcall put_RedirectClipboard (
        /*[in]*/ VARIANT_BOOL pfRedirectClipboard ) = 0;
      virtual HRESULT __stdcall get_RedirectClipboard (
        /*[out,retval]*/ VARIANT_BOOL * pfRedirectClipboard ) = 0;
      virtual HRESULT __stdcall put_AudioRedirectionMode (
        /*[in]*/ unsigned int puiAudioRedirectionMode ) = 0;
      virtual HRESULT __stdcall get_AudioRedirectionMode (
        /*[out,retval]*/ unsigned int * puiAudioRedirectionMode ) = 0;
      virtual HRESULT __stdcall put_ConnectionBarShowPinButton (
        /*[in]*/ VARIANT_BOOL pfShowPin ) = 0;
      virtual HRESULT __stdcall get_ConnectionBarShowPinButton (
        /*[out,retval]*/ VARIANT_BOOL * pfShowPin ) = 0;
      virtual HRESULT __stdcall put_PublicMode (
        /*[in]*/ VARIANT_BOOL pfPublicMode ) = 0;
      virtual HRESULT __stdcall get_PublicMode (
        /*[out,retval]*/ VARIANT_BOOL * pfPublicMode ) = 0;
      virtual HRESULT __stdcall put_RedirectDevices (
        /*[in]*/ VARIANT_BOOL pfRedirectPnPDevices ) = 0;
      virtual HRESULT __stdcall get_RedirectDevices (
        /*[out,retval]*/ VARIANT_BOOL * pfRedirectPnPDevices ) = 0;
      virtual HRESULT __stdcall put_RedirectPOSDevices (
        /*[in]*/ VARIANT_BOOL pfRedirectPOSDevices ) = 0;
      virtual HRESULT __stdcall get_RedirectPOSDevices (
        /*[out,retval]*/ VARIANT_BOOL * pfRedirectPOSDevices ) = 0;
      virtual HRESULT __stdcall put_BitmapVirtualCache32BppSize (
        /*[in]*/ long pBitmapVirtualCache32BppSize ) = 0;
      virtual HRESULT __stdcall get_BitmapVirtualCache32BppSize (
        /*[out,retval]*/ long * pBitmapVirtualCache32BppSize ) = 0;
};

struct __declspec(uuid("fdd029f9-467a-4c49-8529-64b521dbd1b4"))
ITSRemoteProgram : IDispatch
{
    //
    // Raw methods provided by interface
    //

      virtual HRESULT __stdcall put_RemoteProgramMode (
        /*[in]*/ VARIANT_BOOL pvboolRemoteProgramMode ) = 0;
      virtual HRESULT __stdcall get_RemoteProgramMode (
        /*[out,retval]*/ VARIANT_BOOL * pvboolRemoteProgramMode ) = 0;
      virtual HRESULT __stdcall ServerStartProgram (
        /*[in]*/ BSTR bstrExecutablePath,
        /*[in]*/ BSTR bstrFilePath,
        /*[in]*/ BSTR bstrWorkingDirectory,
        /*[in]*/ VARIANT_BOOL vbExpandEnvVarInWorkingDirectoryOnServer,
        /*[in]*/ BSTR bstrArguments,
        /*[in]*/ VARIANT_BOOL vbExpandEnvVarInArgumentsOnServer ) = 0;
};

struct __declspec(uuid("d012ae6d-c19a-4bfe-b367-201f8911f134"))
IMsRdpClientShell : IDispatch
{
    //
    // Raw methods provided by interface
    //

      virtual HRESULT __stdcall Launch ( ) = 0;
      virtual HRESULT __stdcall put_RdpFileContents (
        /*[in]*/ BSTR pszRdpFile ) = 0;
      virtual HRESULT __stdcall get_RdpFileContents (
        /*[out,retval]*/ BSTR * pszRdpFile ) = 0;
      virtual HRESULT __stdcall SetRdpProperty (
        /*[in]*/ BSTR szProperty,
        /*[in]*/ VARIANT Value ) = 0;
      virtual HRESULT __stdcall GetRdpProperty (
        /*[in]*/ BSTR szProperty,
        /*[out,retval]*/ VARIANT * pValue ) = 0;
      virtual HRESULT __stdcall get_IsRemoteProgramClientInstalled (
        /*[out,retval]*/ VARIANT_BOOL * pbClientInstalled ) = 0;
      virtual HRESULT __stdcall put_PublicMode (
        /*[in]*/ VARIANT_BOOL pfPublicMode ) = 0;
      virtual HRESULT __stdcall get_PublicMode (
        /*[out,retval]*/ VARIANT_BOOL * pfPublicMode ) = 0;
      virtual HRESULT __stdcall ShowTrustedSitesManagementDialog ( ) = 0;
};

struct __declspec(uuid("4eb5335b-6429-477d-b922-e06a28ecd8bf"))
IMsRdpClient5 : IMsRdpClient4
{
    //
    // Raw methods provided by interface
    //

      virtual HRESULT __stdcall get_TransportSettings (
        /*[out,retval]*/ struct IMsRdpClientTransportSettings * * ppXportSet ) = 0;
      virtual HRESULT __stdcall get_AdvancedSettings6 (
        /*[out,retval]*/ struct IMsRdpClientAdvancedSettings5 * * ppAdvSettings ) = 0;
      virtual HRESULT __stdcall GetErrorDescription (
        /*[in]*/ unsigned int disconnectReason,
        /*[in]*/ unsigned int ExtendedDisconnectReason,
        /*[out,retval]*/ BSTR * pBstrErrorMsg ) = 0;
      virtual HRESULT __stdcall get_RemoteProgram (
        /*[out,retval]*/ struct ITSRemoteProgram * * ppRemoteProgram ) = 0;
      virtual HRESULT __stdcall get_MsRdpClientShell (
        /*[out,retval]*/ struct IMsRdpClientShell * * ppLauncher ) = 0;
};

struct __declspec(uuid("60c3b9c8-9e92-4f5e-a3e7-604a912093ea"))
IMsRdpDevice : IUnknown
{
    //
    // Raw methods provided by interface
    //

      virtual HRESULT __stdcall get_DeviceInstanceId (
        /*[out,retval]*/ BSTR * pDevInstanceId ) = 0;
      virtual HRESULT __stdcall get_FriendlyName (
        /*[out,retval]*/ BSTR * pFriendlyName ) = 0;
      virtual HRESULT __stdcall get_DeviceDescription (
        /*[out,retval]*/ BSTR * pDeviceDescription ) = 0;
      virtual HRESULT __stdcall put_RedirectionState (
        /*[in]*/ VARIANT_BOOL pvboolRedirState ) = 0;
      virtual HRESULT __stdcall get_RedirectionState (
        /*[out,retval]*/ VARIANT_BOOL * pvboolRedirState ) = 0;
};

struct __declspec(uuid("56540617-d281-488c-8738-6a8fdf64a118"))
IMsRdpDeviceCollection : IUnknown
{
    //
    // Raw methods provided by interface
    //

      virtual HRESULT __stdcall RescanDevices (
        /*[in]*/ VARIANT_BOOL vboolDynRedir ) = 0;
      virtual HRESULT __stdcall get_DeviceByIndex (
        /*[in]*/ unsigned long index,
        /*[out,retval]*/ struct IMsRdpDevice * * ppDevice ) = 0;
      virtual HRESULT __stdcall get_DeviceById (
        /*[in]*/ BSTR devInstanceId,
        /*[out,retval]*/ struct IMsRdpDevice * * ppDevice ) = 0;
      virtual HRESULT __stdcall get_DeviceCount (
        /*[out,retval]*/ unsigned long * pDeviceCount ) = 0;
};

struct __declspec(uuid("d28b5458-f694-47a8-8e61-40356a767e46"))
IMsRdpDrive : IUnknown
{
    //
    // Raw methods provided by interface
    //

      virtual HRESULT __stdcall get_Name (
        /*[out,retval]*/ BSTR * pName ) = 0;
      virtual HRESULT __stdcall put_RedirectionState (
        /*[in]*/ VARIANT_BOOL pvboolRedirState ) = 0;
      virtual HRESULT __stdcall get_RedirectionState (
        /*[out,retval]*/ VARIANT_BOOL * pvboolRedirState ) = 0;
};

struct __declspec(uuid("7ff17599-da2c-4677-ad35-f60c04fe1585"))
IMsRdpDriveCollection : IUnknown
{
    //
    // Raw methods provided by interface
    //

      virtual HRESULT __stdcall RescanDrives (
        VARIANT_BOOL vboolDynRedir ) = 0;
      virtual HRESULT __stdcall get_DriveByIndex (
        /*[in]*/ unsigned long index,
        /*[out,retval]*/ struct IMsRdpDrive * * ppDevice ) = 0;
      virtual HRESULT __stdcall get_DriveCount (
        /*[out,retval]*/ unsigned long * pDriveCount ) = 0;
};

struct __declspec(uuid("b3378d90-0728-45c7-8ed7-b6159fb92219"))
IMsRdpClientNonScriptable3 : IMsRdpClientNonScriptable2
{
    //
    // Raw methods provided by interface
    //

      virtual HRESULT __stdcall put_ShowRedirectionWarningDialog (
        /*[in]*/ VARIANT_BOOL pfShowRdrDlg ) = 0;
      virtual HRESULT __stdcall get_ShowRedirectionWarningDialog (
        /*[out,retval]*/ VARIANT_BOOL * pfShowRdrDlg ) = 0;
      virtual HRESULT __stdcall put_PromptForCredentials (
        /*[in]*/ VARIANT_BOOL pfPrompt ) = 0;
      virtual HRESULT __stdcall get_PromptForCredentials (
        /*[out,retval]*/ VARIANT_BOOL * pfPrompt ) = 0;
      virtual HRESULT __stdcall put_NegotiateSecurityLayer (
        /*[in]*/ VARIANT_BOOL pfNegotiate ) = 0;
      virtual HRESULT __stdcall get_NegotiateSecurityLayer (
        /*[out,retval]*/ VARIANT_BOOL * pfNegotiate ) = 0;
      virtual HRESULT __stdcall put_EnableCredSspSupport (
        /*[in]*/ VARIANT_BOOL pfEnableSupport ) = 0;
      virtual HRESULT __stdcall get_EnableCredSspSupport (
        /*[out,retval]*/ VARIANT_BOOL * pfEnableSupport ) = 0;
      virtual HRESULT __stdcall put_RedirectDynamicDrives (
        /*[in]*/ VARIANT_BOOL pfRedirectDynamicDrives ) = 0;
      virtual HRESULT __stdcall get_RedirectDynamicDrives (
        /*[out,retval]*/ VARIANT_BOOL * pfRedirectDynamicDrives ) = 0;
      virtual HRESULT __stdcall put_RedirectDynamicDevices (
        /*[in]*/ VARIANT_BOOL pfRedirectDynamicDevices ) = 0;
      virtual HRESULT __stdcall get_RedirectDynamicDevices (
        /*[out,retval]*/ VARIANT_BOOL * pfRedirectDynamicDevices ) = 0;
      virtual HRESULT __stdcall get_DeviceCollection (
        /*[out,retval]*/ struct IMsRdpDeviceCollection * * ppDeviceCollection ) = 0;
      virtual HRESULT __stdcall get_DriveCollection (
        /*[out,retval]*/ struct IMsRdpDriveCollection * * ppDeviceCollection ) = 0;
      virtual HRESULT __stdcall put_WarnAboutSendingCredentials (
        /*[in]*/ VARIANT_BOOL pfWarn ) = 0;
      virtual HRESULT __stdcall get_WarnAboutSendingCredentials (
        /*[out,retval]*/ VARIANT_BOOL * pfWarn ) = 0;
      virtual HRESULT __stdcall put_WarnAboutClipboardRedirection (
        /*[in]*/ VARIANT_BOOL pfWarn ) = 0;
      virtual HRESULT __stdcall get_WarnAboutClipboardRedirection (
        /*[out,retval]*/ VARIANT_BOOL * pfWarn ) = 0;
      virtual HRESULT __stdcall put_ConnectionBarText (
        /*[in]*/ BSTR pConnectionBarText ) = 0;
      virtual HRESULT __stdcall get_ConnectionBarText (
        /*[out,retval]*/ BSTR * pConnectionBarText ) = 0;
};

struct __declspec(uuid("4eb89ff4-7f78-4a0f-8b8d-2bf02e94e4b2"))
MsRdpClient5;
    // [ default ] interface IMsRdpClient5
    // interface IMsRdpClient4
    // interface IMsRdpClient3
    // interface IMsRdpClient2
    // interface IMsRdpClient
    // interface IMsTscAx
    // interface IMsTscAx_Redist
    // [ default, source ] dispinterface IMsTscAxEvents
    // interface IMsTscNonScriptable
    // interface IMsRdpClientNonScriptable
    // interface IMsRdpClientNonScriptable2
    // interface IMsRdpClientNonScriptable3

struct __declspec(uuid("d2ea46a7-c2bf-426b-af24-e19c44456399"))
MsRdpClient6NotSafeForScripting;
    // [ default ] interface IMsRdpClient6
    // interface IMsRdpClient5
    // interface IMsRdpClient4
    // interface IMsRdpClient3
    // interface IMsRdpClient2
    // interface IMsRdpClient
    // interface IMsTscAx
    // interface IMsTscAx_Redist
    // [ default, source ] dispinterface IMsTscAxEvents
    // interface IMsTscNonScriptable
    // interface IMsRdpClientNonScriptable
    // interface IMsRdpClientNonScriptable2
    // interface IMsRdpClientNonScriptable3
    // interface IMsRdpClientNonScriptable4

struct __declspec(uuid("222c4b5d-45d9-4df0-a7c6-60cf9089d285"))
IMsRdpClientAdvancedSettings6 : IMsRdpClientAdvancedSettings5
{
    //
    // Raw methods provided by interface
    //

      virtual HRESULT __stdcall put_RelativeMouseMode (
        /*[in]*/ VARIANT_BOOL pfRelativeMouseMode ) = 0;
      virtual HRESULT __stdcall get_RelativeMouseMode (
        /*[out,retval]*/ VARIANT_BOOL * pfRelativeMouseMode ) = 0;
      virtual HRESULT __stdcall get_AuthenticationServiceClass (
        /*[out,retval]*/ BSTR * pbstrAuthServiceClass ) = 0;
      virtual HRESULT __stdcall put_AuthenticationServiceClass (
        /*[in]*/ BSTR pbstrAuthServiceClass ) = 0;
      virtual HRESULT __stdcall get_PCB (
        /*[out,retval]*/ BSTR * bstrPCB ) = 0;
      virtual HRESULT __stdcall put_PCB (
        /*[in]*/ BSTR bstrPCB ) = 0;
      virtual HRESULT __stdcall put_HotKeyFocusReleaseLeft (
        /*[in]*/ long HotKeyFocusReleaseLeft ) = 0;
      virtual HRESULT __stdcall get_HotKeyFocusReleaseLeft (
        /*[out,retval]*/ long * HotKeyFocusReleaseLeft ) = 0;
      virtual HRESULT __stdcall put_HotKeyFocusReleaseRight (
        /*[in]*/ long HotKeyFocusReleaseRight ) = 0;
      virtual HRESULT __stdcall get_HotKeyFocusReleaseRight (
        /*[out,retval]*/ long * HotKeyFocusReleaseRight ) = 0;
      virtual HRESULT __stdcall put_EnableCredSspSupport (
        /*[in]*/ VARIANT_BOOL pfEnableSupport ) = 0;
      virtual HRESULT __stdcall get_EnableCredSspSupport (
        /*[out,retval]*/ VARIANT_BOOL * pfEnableSupport ) = 0;
      virtual HRESULT __stdcall get_AuthenticationType (
        /*[out,retval]*/ unsigned int * puiAuthType ) = 0;
      virtual HRESULT __stdcall put_ConnectToAdministerServer (
        /*[in]*/ VARIANT_BOOL pConnectToAdministerServer ) = 0;
      virtual HRESULT __stdcall get_ConnectToAdministerServer (
        /*[out,retval]*/ VARIANT_BOOL * pConnectToAdministerServer ) = 0;
};

struct __declspec(uuid("67341688-d606-4c73-a5d2-2e0489009319"))
IMsRdpClientTransportSettings2 : IMsRdpClientTransportSettings
{
    //
    // Raw methods provided by interface
    //

      virtual HRESULT __stdcall put_GatewayCredSharing (
        /*[in]*/ unsigned long pulProxyCredSharing ) = 0;
      virtual HRESULT __stdcall get_GatewayCredSharing (
        /*[out,retval]*/ unsigned long * pulProxyCredSharing ) = 0;
      virtual HRESULT __stdcall put_GatewayPreAuthRequirement (
        /*[in]*/ unsigned long pulProxyPreAuthRequirement ) = 0;
      virtual HRESULT __stdcall get_GatewayPreAuthRequirement (
        /*[out,retval]*/ unsigned long * pulProxyPreAuthRequirement ) = 0;
      virtual HRESULT __stdcall put_GatewayPreAuthServerAddr (
        /*[in]*/ BSTR pbstrProxyPreAuthServerAddr ) = 0;
      virtual HRESULT __stdcall get_GatewayPreAuthServerAddr (
        /*[out,retval]*/ BSTR * pbstrProxyPreAuthServerAddr ) = 0;
      virtual HRESULT __stdcall put_GatewaySupportUrl (
        /*[in]*/ BSTR pbstrProxySupportUrl ) = 0;
      virtual HRESULT __stdcall get_GatewaySupportUrl (
        /*[out,retval]*/ BSTR * pbstrProxySupportUrl ) = 0;
      virtual HRESULT __stdcall put_GatewayEncryptedOtpCookie (
        /*[in]*/ BSTR pbstrEncryptedOtpCookie ) = 0;
      virtual HRESULT __stdcall get_GatewayEncryptedOtpCookie (
        /*[out,retval]*/ BSTR * pbstrEncryptedOtpCookie ) = 0;
      virtual HRESULT __stdcall put_GatewayEncryptedOtpCookieSize (
        /*[in]*/ unsigned long pulEncryptedOtpCookieSize ) = 0;
      virtual HRESULT __stdcall get_GatewayEncryptedOtpCookieSize (
        /*[out,retval]*/ unsigned long * pulEncryptedOtpCookieSize ) = 0;
      virtual HRESULT __stdcall put_GatewayUsername (
        /*[in]*/ BSTR pProxyUsername ) = 0;
      virtual HRESULT __stdcall get_GatewayUsername (
        /*[out,retval]*/ BSTR * pProxyUsername ) = 0;
      virtual HRESULT __stdcall put_GatewayDomain (
        /*[in]*/ BSTR pProxyDomain ) = 0;
      virtual HRESULT __stdcall get_GatewayDomain (
        /*[out,retval]*/ BSTR * pProxyDomain ) = 0;
      virtual HRESULT __stdcall put_GatewayPassword (
        /*[in]*/ BSTR _arg1 ) = 0;
};

struct __declspec(uuid("d43b7d80-8517-4b6d-9eac-96ad6800d7f2"))
IMsRdpClient6 : IMsRdpClient5
{
    //
    // Raw methods provided by interface
    //

      virtual HRESULT __stdcall get_AdvancedSettings7 (
        /*[out,retval]*/ struct IMsRdpClientAdvancedSettings6 * * ppAdvSettings ) = 0;
      virtual HRESULT __stdcall get_TransportSettings2 (
        /*[out,retval]*/ struct IMsRdpClientTransportSettings2 * * ppXportSet2 ) = 0;
};

struct __declspec(uuid("f50fa8aa-1c7d-4f59-b15c-a90cacae1fcb"))
IMsRdpClientNonScriptable4 : IMsRdpClientNonScriptable3
{
    //
    // Raw methods provided by interface
    //

      virtual HRESULT __stdcall put_RedirectionWarningType (
        /*[in]*/ RedirectionWarningType pWrnType ) = 0;
      virtual HRESULT __stdcall get_RedirectionWarningType (
        /*[out,retval]*/ RedirectionWarningType * pWrnType ) = 0;
      virtual HRESULT __stdcall put_MarkRdpSettingsSecure (
        /*[in]*/ VARIANT_BOOL pfRdpSecure ) = 0;
      virtual HRESULT __stdcall get_MarkRdpSettingsSecure (
        /*[out,retval]*/ VARIANT_BOOL * pfRdpSecure ) = 0;
      virtual HRESULT __stdcall put_PublisherCertificateChain (
        /*[in]*/ VARIANT * pVarCert ) = 0;
      virtual HRESULT __stdcall get_PublisherCertificateChain (
        /*[out,retval]*/ VARIANT * pVarCert ) = 0;
      virtual HRESULT __stdcall put_WarnAboutPrinterRedirection (
        /*[in]*/ VARIANT_BOOL pfWarn ) = 0;
      virtual HRESULT __stdcall get_WarnAboutPrinterRedirection (
        /*[out,retval]*/ VARIANT_BOOL * pfWarn ) = 0;
      virtual HRESULT __stdcall put_AllowCredentialSaving (
        /*[in]*/ VARIANT_BOOL pfAllowSave ) = 0;
      virtual HRESULT __stdcall get_AllowCredentialSaving (
        /*[out,retval]*/ VARIANT_BOOL * pfAllowSave ) = 0;
      virtual HRESULT __stdcall put_PromptForCredsOnClient (
        /*[in]*/ VARIANT_BOOL pfPromptForCredsOnClient ) = 0;
      virtual HRESULT __stdcall get_PromptForCredsOnClient (
        /*[out,retval]*/ VARIANT_BOOL * pfPromptForCredsOnClient ) = 0;
      virtual HRESULT __stdcall put_LaunchedViaClientShellInterface (
        /*[in]*/ VARIANT_BOOL pfLaunchedViaClientShellInterface ) = 0;
      virtual HRESULT __stdcall get_LaunchedViaClientShellInterface (
        /*[out,retval]*/ VARIANT_BOOL * pfLaunchedViaClientShellInterface ) = 0;
      virtual HRESULT __stdcall put_TrustedZoneSite (
        /*[in]*/ VARIANT_BOOL pfIsTrustedZone ) = 0;
      virtual HRESULT __stdcall get_TrustedZoneSite (
        /*[out,retval]*/ VARIANT_BOOL * pfIsTrustedZone ) = 0;
};

enum __MIDL_IMsRdpClientNonScriptable4_0001
{
    RedirectionWarningTypeDefault = 0,
    RedirectionWarningTypeUnsigned = 1,
    RedirectionWarningTypeUnknown = 2,
    RedirectionWarningTypeUser = 3,
    RedirectionWarningTypeThirdPartySigned = 4,
    RedirectionWarningTypeTrusted = 5,
    RedirectionWarningTypeMax = 5
};

struct __declspec(uuid("7390f3d8-0439-4c05-91e3-cf5cb290c3d0"))
MsRdpClient6;
    // [ default ] interface IMsRdpClient6
    // interface IMsRdpClient5
    // interface IMsRdpClient4
    // interface IMsRdpClient3
    // interface IMsRdpClient2
    // interface IMsRdpClient
    // interface IMsTscAx
    // interface IMsTscAx_Redist
    // [ default, source ] dispinterface IMsTscAxEvents
    // interface IMsTscNonScriptable
    // interface IMsRdpClientNonScriptable
    // interface IMsRdpClientNonScriptable2
    // interface IMsRdpClientNonScriptable3
    // interface IMsRdpClientNonScriptable4

struct __declspec(uuid("54d38bf7-b1ef-4479-9674-1bd6ea465258"))
MsRdpClient7NotSafeForScripting;
    // [ default ] interface IMsRdpClient7
    // interface IMsRdpClient6
    // interface IMsRdpClient5
    // interface IMsRdpClient4
    // interface IMsRdpClient3
    // interface IMsRdpClient2
    // interface IMsRdpClient
    // interface IMsTscAx
    // interface IMsTscAx_Redist
    // [ default, source ] dispinterface IMsTscAxEvents
    // interface IMsTscNonScriptable
    // interface IMsRdpClientNonScriptable
    // interface IMsRdpClientNonScriptable2
    // interface IMsRdpClientNonScriptable3
    // interface IMsRdpClientNonScriptable4
    // interface IMsRdpClientNonScriptable5
    // interface IMsRdpPreferredRedirectionInfo
    // interface IMsRdpExtendedSettings

struct __declspec(uuid("26036036-4010-4578-8091-0db9a1edf9c3"))
IMsRdpClientAdvancedSettings7 : IMsRdpClientAdvancedSettings6
{
    //
    // Raw methods provided by interface
    //

      virtual HRESULT __stdcall put_AudioCaptureRedirectionMode (
        /*[in]*/ VARIANT_BOOL pfRedir ) = 0;
      virtual HRESULT __stdcall get_AudioCaptureRedirectionMode (
        /*[out,retval]*/ VARIANT_BOOL * pfRedir ) = 0;
      virtual HRESULT __stdcall put_VideoPlaybackMode (
        /*[in]*/ unsigned int pVideoPlaybackMode ) = 0;
      virtual HRESULT __stdcall get_VideoPlaybackMode (
        /*[out,retval]*/ unsigned int * pVideoPlaybackMode ) = 0;
      virtual HRESULT __stdcall put_EnableSuperPan (
        /*[in]*/ VARIANT_BOOL pfEnableSuperPan ) = 0;
      virtual HRESULT __stdcall get_EnableSuperPan (
        /*[out,retval]*/ VARIANT_BOOL * pfEnableSuperPan ) = 0;
      virtual HRESULT __stdcall put_SuperPanAccelerationFactor (
        /*[in]*/ unsigned long puAccelFactor ) = 0;
      virtual HRESULT __stdcall get_SuperPanAccelerationFactor (
        /*[out,retval]*/ unsigned long * puAccelFactor ) = 0;
      virtual HRESULT __stdcall put_NegotiateSecurityLayer (
        /*[in]*/ VARIANT_BOOL pfNegotiate ) = 0;
      virtual HRESULT __stdcall get_NegotiateSecurityLayer (
        /*[out,retval]*/ VARIANT_BOOL * pfNegotiate ) = 0;
      virtual HRESULT __stdcall put_AudioQualityMode (
        /*[in]*/ unsigned int pAudioQualityMode ) = 0;
      virtual HRESULT __stdcall get_AudioQualityMode (
        /*[out,retval]*/ unsigned int * pAudioQualityMode ) = 0;
      virtual HRESULT __stdcall put_RedirectDirectX (
        /*[in]*/ VARIANT_BOOL pfRedirectDirectX ) = 0;
      virtual HRESULT __stdcall get_RedirectDirectX (
        /*[out,retval]*/ VARIANT_BOOL * pfRedirectDirectX ) = 0;
      virtual HRESULT __stdcall put_NetworkConnectionType (
        /*[in]*/ unsigned int pConnectionType ) = 0;
      virtual HRESULT __stdcall get_NetworkConnectionType (
        /*[out,retval]*/ unsigned int * pConnectionType ) = 0;
};

struct __declspec(uuid("3d5b21ac-748d-41de-8f30-e15169586bd4"))
IMsRdpClientTransportSettings3 : IMsRdpClientTransportSettings2
{
    //
    // Raw methods provided by interface
    //

      virtual HRESULT __stdcall put_GatewayCredSourceCookie (
        /*[in]*/ unsigned long pulProxyCredSourceCookie ) = 0;
      virtual HRESULT __stdcall get_GatewayCredSourceCookie (
        /*[out,retval]*/ unsigned long * pulProxyCredSourceCookie ) = 0;
      virtual HRESULT __stdcall put_GatewayAuthCookieServerAddr (
        /*[in]*/ BSTR pbstrProxyAuthCookieServerAddr ) = 0;
      virtual HRESULT __stdcall get_GatewayAuthCookieServerAddr (
        /*[out,retval]*/ BSTR * pbstrProxyAuthCookieServerAddr ) = 0;
      virtual HRESULT __stdcall put_GatewayEncryptedAuthCookie (
        /*[in]*/ BSTR pbstrEncryptedAuthCookie ) = 0;
      virtual HRESULT __stdcall get_GatewayEncryptedAuthCookie (
        /*[out,retval]*/ BSTR * pbstrEncryptedAuthCookie ) = 0;
      virtual HRESULT __stdcall put_GatewayEncryptedAuthCookieSize (
        /*[in]*/ unsigned long pulEncryptedAuthCookieSize ) = 0;
      virtual HRESULT __stdcall get_GatewayEncryptedAuthCookieSize (
        /*[out,retval]*/ unsigned long * pulEncryptedAuthCookieSize ) = 0;
      virtual HRESULT __stdcall put_GatewayAuthLoginPage (
        /*[in]*/ BSTR pbstrProxyAuthLoginPage ) = 0;
      virtual HRESULT __stdcall get_GatewayAuthLoginPage (
        /*[out,retval]*/ BSTR * pbstrProxyAuthLoginPage ) = 0;
};

struct __declspec(uuid("25f2ce20-8b1d-4971-a7cd-549dae201fc0"))
IMsRdpClientSecuredSettings2 : IMsRdpClientSecuredSettings
{
    //
    // Raw methods provided by interface
    //

      virtual HRESULT __stdcall get_PCB (
        /*[out,retval]*/ BSTR * bstrPCB ) = 0;
      virtual HRESULT __stdcall put_PCB (
        /*[in]*/ BSTR bstrPCB ) = 0;
};

struct __declspec(uuid("92c38a7d-241a-418c-9936-099872c9af20"))
ITSRemoteProgram2 : ITSRemoteProgram
{
    //
    // Raw methods provided by interface
    //

      virtual HRESULT __stdcall put_RemoteApplicationName (
        /*[in]*/ BSTR _arg1 ) = 0;
      virtual HRESULT __stdcall put_RemoteApplicationProgram (
        /*[in]*/ BSTR _arg1 ) = 0;
      virtual HRESULT __stdcall put_RemoteApplicationArgs (
        /*[in]*/ BSTR _arg1 ) = 0;
};

struct __declspec(uuid("b2a5b5ce-3461-444a-91d4-add26d070638"))
IMsRdpClient7 : IMsRdpClient6
{
    //
    // Raw methods provided by interface
    //

      virtual HRESULT __stdcall get_AdvancedSettings8 (
        /*[out,retval]*/ struct IMsRdpClientAdvancedSettings7 * * ppAdvSettings ) = 0;
      virtual HRESULT __stdcall get_TransportSettings3 (
        /*[out,retval]*/ struct IMsRdpClientTransportSettings3 * * ppXportSet3 ) = 0;
      virtual HRESULT __stdcall GetStatusText (
        /*[in]*/ unsigned int statusCode,
        /*[out,retval]*/ BSTR * pBstrStatusText ) = 0;
      virtual HRESULT __stdcall get_SecuredSettings3 (
        /*[out,retval]*/ struct IMsRdpClientSecuredSettings2 * * ppSecuredSettings ) = 0;
      virtual HRESULT __stdcall get_RemoteProgram2 (
        /*[out,retval]*/ struct ITSRemoteProgram2 * * ppRemoteProgram ) = 0;
};

struct __declspec(uuid("4f6996d5-d7b1-412c-b0ff-063718566907"))
IMsRdpClientNonScriptable5 : IMsRdpClientNonScriptable4
{
    //
    // Raw methods provided by interface
    //

      virtual HRESULT __stdcall put_UseMultimon (
        /*[in]*/ VARIANT_BOOL pfUseMultimon ) = 0;
      virtual HRESULT __stdcall get_UseMultimon (
        /*[out,retval]*/ VARIANT_BOOL * pfUseMultimon ) = 0;
      virtual HRESULT __stdcall get_RemoteMonitorCount (
        /*[out,retval]*/ unsigned long * pcRemoteMonitors ) = 0;
      virtual HRESULT __stdcall GetRemoteMonitorsBoundingBox (
        /*[out]*/ long * pLeft,
        /*[out]*/ long * pTop,
        /*[out]*/ long * pRight,
        /*[out]*/ long * pBottom ) = 0;
      virtual HRESULT __stdcall get_RemoteMonitorLayoutMatchesLocal (
        /*[out,retval]*/ VARIANT_BOOL * pfRemoteMatchesLocal ) = 0;
      virtual HRESULT __stdcall put_DisableConnectionBar (
        /*[in]*/ VARIANT_BOOL _arg1 ) = 0;
      virtual HRESULT __stdcall put_DisableRemoteAppCapsCheck (
        /*[in]*/ VARIANT_BOOL pfDisableRemoteAppCapsCheck ) = 0;
      virtual HRESULT __stdcall get_DisableRemoteAppCapsCheck (
        /*[out,retval]*/ VARIANT_BOOL * pfDisableRemoteAppCapsCheck ) = 0;
      virtual HRESULT __stdcall put_WarnAboutDirectXRedirection (
        /*[in]*/ VARIANT_BOOL pfWarn ) = 0;
      virtual HRESULT __stdcall get_WarnAboutDirectXRedirection (
        /*[out,retval]*/ VARIANT_BOOL * pfWarn ) = 0;
      virtual HRESULT __stdcall put_AllowPromptingForCredentials (
        /*[in]*/ VARIANT_BOOL pfAllow ) = 0;
      virtual HRESULT __stdcall get_AllowPromptingForCredentials (
        /*[out,retval]*/ VARIANT_BOOL * pfAllow ) = 0;
};

struct __declspec(uuid("fdd029f9-9574-4def-8529-64b521cccaa4"))
IMsRdpPreferredRedirectionInfo : IUnknown
{
    //
    // Raw methods provided by interface
    //

      virtual HRESULT __stdcall put_UseRedirectionServerName (
        /*[in]*/ VARIANT_BOOL pVal ) = 0;
      virtual HRESULT __stdcall get_UseRedirectionServerName (
        /*[out,retval]*/ VARIANT_BOOL * pVal ) = 0;
};

struct __declspec(uuid("302d8188-0052-4807-806a-362b628f9ac5"))
IMsRdpExtendedSettings : IUnknown
{
    //
    // Raw methods provided by interface
    //

      virtual HRESULT __stdcall put_Property (
        /*[in]*/ BSTR bstrPropertyName,
        /*[in]*/ VARIANT * pValue ) = 0;
      virtual HRESULT __stdcall get_Property (
        /*[in]*/ BSTR bstrPropertyName,
        /*[out,retval]*/ VARIANT * pValue ) = 0;
};

struct __declspec(uuid("a9d7038d-b5ed-472e-9c47-94bea90a5910"))
MsRdpClient7;
    // [ default ] interface IMsRdpClient7
    // interface IMsRdpClient6
    // interface IMsRdpClient5
    // interface IMsRdpClient4
    // interface IMsRdpClient3
    // interface IMsRdpClient2
    // interface IMsRdpClient
    // interface IMsTscAx
    // interface IMsTscAx_Redist
    // [ default, source ] dispinterface IMsTscAxEvents
    // interface IMsTscNonScriptable
    // interface IMsRdpClientNonScriptable
    // interface IMsRdpClientNonScriptable2
    // interface IMsRdpClientNonScriptable3
    // interface IMsRdpClientNonScriptable4
    // interface IMsRdpClientNonScriptable5
    // interface IMsRdpPreferredRedirectionInfo

struct __declspec(uuid("a3bc03a0-041d-42e3-ad22-882b7865c9c5"))
MsRdpClient8NotSafeForScripting;
    // [ default ] interface IMsRdpClient8
    // interface IMsRdpClient7
    // interface IMsRdpClient6
    // interface IMsRdpClient5
    // interface IMsRdpClient4
    // interface IMsRdpClient3
    // interface IMsRdpClient2
    // interface IMsRdpClient
    // interface IMsTscAx
    // interface IMsTscAx_Redist
    // [ default, source ] dispinterface IMsTscAxEvents
    // interface IMsTscNonScriptable
    // interface IMsRdpClientNonScriptable
    // interface IMsRdpClientNonScriptable2
    // interface IMsRdpClientNonScriptable3
    // interface IMsRdpClientNonScriptable4
    // interface IMsRdpClientNonScriptable5
    // interface IMsRdpPreferredRedirectionInfo
    // interface IMsRdpExtendedSettings

enum __MIDL___MIDL_itf_mstsax_0000_0000_0004
{
    RemoteSessionActionCharms = 0,
    RemoteSessionActionAppbar = 1,
    RemoteSessionActionSnap = 2,
    RemoteSessionActionStartScreen = 3,
    RemoteSessionActionAppSwitch = 4
};

struct __declspec(uuid("89acb528-2557-4d16-8625-226a30e97e9a"))
IMsRdpClientAdvancedSettings8 : IMsRdpClientAdvancedSettings7
{
    //
    // Raw methods provided by interface
    //

      virtual HRESULT __stdcall put_BandwidthDetection (
        /*[in]*/ VARIANT_BOOL pfAutodetect ) = 0;
      virtual HRESULT __stdcall get_BandwidthDetection (
        /*[out,retval]*/ VARIANT_BOOL * pfAutodetect ) = 0;
      virtual HRESULT __stdcall put_ClientProtocolSpec (
        /*[in]*/ ClientSpec pClientMode ) = 0;
      virtual HRESULT __stdcall get_ClientProtocolSpec (
        /*[out,retval]*/ ClientSpec * pClientMode ) = 0;
};

enum __MIDL___MIDL_itf_mstsax_0000_0000_0003
{
    FullMode = 0,
    ThinClientMode = 1,
    SmallCacheMode = 2
};

struct __declspec(uuid("4247e044-9271-43a9-bc49-e2ad9e855d62"))
IMsRdpClient8 : IMsRdpClient7
{
    //
    // Raw methods provided by interface
    //

      virtual HRESULT __stdcall SendRemoteAction (
        /*[in]*/ RemoteSessionActionType actionType ) = 0;
      virtual HRESULT __stdcall get_AdvancedSettings9 (
        /*[out,retval]*/ struct IMsRdpClientAdvancedSettings8 * * ppAdvSettings ) = 0;
      virtual HRESULT __stdcall Reconnect (
        /*[in]*/ unsigned long ulWidth,
        /*[in]*/ unsigned long ulHeight,
        /*[out,retval]*/ ControlReconnectStatus * pReconnectStatus ) = 0;
};

enum __MIDL_IMsRdpClient8_0001
{
    controlReconnectStarted = 0,
    controlReconnectBlocked = 1
};

struct __declspec(uuid("5f681803-2900-4c43-a1cc-cf405404a676"))
MsRdpClient8;
    // [ default ] interface IMsRdpClient8
    // interface IMsRdpClient7
    // interface IMsRdpClient6
    // interface IMsRdpClient5
    // interface IMsRdpClient4
    // interface IMsRdpClient3
    // interface IMsRdpClient2
    // interface IMsRdpClient
    // interface IMsTscAx
    // interface IMsTscAx_Redist
    // [ default, source ] dispinterface IMsTscAxEvents
    // interface IMsTscNonScriptable
    // interface IMsRdpClientNonScriptable
    // interface IMsRdpClientNonScriptable2
    // interface IMsRdpClientNonScriptable3
    // interface IMsRdpClientNonScriptable4
    // interface IMsRdpClientNonScriptable5
    // interface IMsRdpPreferredRedirectionInfo

struct __declspec(uuid("079863b7-6d47-4105-8bfe-0cdcb360e67d"))
IRemoteDesktopClientEvents : IDispatch
{};

struct __declspec(uuid("eab16c5d-eed1-4e95-868b-0fba1b42c092"))
RemoteDesktopClient;
    // [ default ] interface IRemoteDesktopClient
    // [ default, source ] dispinterface IRemoteDesktopClientEvents

struct __declspec(uuid("48a0f2a7-2713-431f-bbac-6f4558e7d64d"))
IRemoteDesktopClientSettings : IDispatch
{
    //
    // Raw methods provided by interface
    //

      virtual HRESULT __stdcall ApplySettings (
        /*[in]*/ BSTR RdpFileContents ) = 0;
      virtual HRESULT __stdcall RetrieveSettings (
        /*[out,retval]*/ BSTR * RdpFileContents ) = 0;
      virtual HRESULT __stdcall GetRdpProperty (
        /*[in]*/ BSTR propertyName,
        /*[out,retval]*/ VARIANT * Value ) = 0;
      virtual HRESULT __stdcall SetRdpProperty (
        /*[in]*/ BSTR propertyName,
        /*[in]*/ VARIANT Value ) = 0;
};

enum __MIDL_IRemoteDesktopClientActions_0001
{
    RemoteActionCharms = 0,
    RemoteActionAppbar = 1,
    RemoteActionSnap = 2,
    RemoteActionStartScreen = 3,
    RemoteActionAppSwitch = 4
};

enum __MIDL_IRemoteDesktopClientActions_0002
{
    SnapshotEncodingDataUri = 0
};

struct __declspec(uuid("7d54bc4e-1028-45d4-8b0a-b9b6bffba176"))
IRemoteDesktopClientActions : IDispatch
{
    //
    // Raw methods provided by interface
    //

      virtual HRESULT __stdcall SuspendScreenUpdates ( ) = 0;
      virtual HRESULT __stdcall ResumeScreenUpdates ( ) = 0;
      virtual HRESULT __stdcall ExecuteRemoteAction (
        /*[in]*/ RemoteActionType remoteAction ) = 0;
      virtual HRESULT __stdcall GetSnapshot (
        /*[in]*/ SnapshotEncodingType snapshotEncoding,
        /*[in]*/ SnapshotFormatType snapshotFormat,
        /*[in]*/ unsigned long snapshotWidth,
        /*[in]*/ unsigned long snapshotHeight,
        /*[out,retval]*/ BSTR * snapshotData ) = 0;
};

enum __MIDL_IRemoteDesktopClientActions_0003
{
    SnapshotFormatPng = 0,
    SnapshotFormatJpeg = 1,
    SnapshotFormatBmp = 2
};

struct __declspec(uuid("260ec22d-8cbc-44b5-9e88-2a37f6c93ae9"))
IRemoteDesktopClientTouchPointer : IDispatch
{
    //
    // Raw methods provided by interface
    //

      virtual HRESULT __stdcall put_Enabled (
        /*[in]*/ VARIANT_BOOL Enabled ) = 0;
      virtual HRESULT __stdcall get_Enabled (
        /*[out,retval]*/ VARIANT_BOOL * Enabled ) = 0;
      virtual HRESULT __stdcall put_EventsEnabled (
        /*[in]*/ VARIANT_BOOL EventsEnabled ) = 0;
      virtual HRESULT __stdcall get_EventsEnabled (
        /*[out,retval]*/ VARIANT_BOOL * EventsEnabled ) = 0;
      virtual HRESULT __stdcall put_PointerSpeed (
        /*[in]*/ unsigned long PointerSpeed ) = 0;
      virtual HRESULT __stdcall get_PointerSpeed (
        /*[out,retval]*/ unsigned long * PointerSpeed ) = 0;
};

struct __declspec(uuid("57d25668-625a-4905-be4e-304caa13f89c"))
IRemoteDesktopClient : IDispatch
{
    //
    // Raw methods provided by interface
    //

      virtual HRESULT __stdcall Connect ( ) = 0;
      virtual HRESULT __stdcall Disconnect ( ) = 0;
      virtual HRESULT __stdcall Reconnect (
        /*[in]*/ unsigned long width,
        /*[in]*/ unsigned long height ) = 0;
      virtual HRESULT __stdcall get_Settings (
        /*[out,retval]*/ struct IRemoteDesktopClientSettings * * Settings ) = 0;
      virtual HRESULT __stdcall get_Actions (
        /*[out,retval]*/ struct IRemoteDesktopClientActions * * Actions ) = 0;
      virtual HRESULT __stdcall get_TouchPointer (
        /*[out,retval]*/ struct IRemoteDesktopClientTouchPointer * * TouchPointer ) = 0;
      virtual HRESULT __stdcall DeleteSavedCredentials (
        /*[in]*/ BSTR serverName ) = 0;
};

} // namespace mstsc

#pragma pack(pop)