~mingw-w64/mingw-w64/experimental

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
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
/* Automated generated idl file <uiautomationclient>.
 * Generated by genidl tool (c) 2009, 2010 Mingw-w64 project.
 */

/* Interface forward declarations.  */
interface IUIAutomationElement;
interface IUIAutomationCondition;
interface IUIAutomationElementArray;
interface IUIAutomationCacheRequest;
interface IUIAutomationBoolCondition;
interface IUIAutomationPropertyCondition;
interface IUIAutomationAndCondition;
interface IUIAutomationOrCondition;
interface IUIAutomationNotCondition;
interface IUIAutomationTreeWalker;
interface IUIAutomationEventHandler;
interface IUIAutomationPropertyChangedEventHandler;
interface IUIAutomationStructureChangedEventHandler;
interface IUIAutomationFocusChangedEventHandler;
interface IUIAutomationInvokePattern;
interface IUIAutomationDockPattern;
interface IUIAutomationExpandCollapsePattern;
interface IUIAutomationGridPattern;
interface IUIAutomationGridItemPattern;
interface IUIAutomationMultipleViewPattern;
interface IUIAutomationRangeValuePattern;
interface IUIAutomationScrollPattern;
interface IUIAutomationScrollItemPattern;
interface IUIAutomationSelectionPattern;
interface IUIAutomationSelectionItemPattern;
interface IUIAutomationSynchronizedInputPattern;
interface IUIAutomationTablePattern;
interface IUIAutomationTableItemPattern;
interface IUIAutomationTogglePattern;
interface IUIAutomationTransformPattern;
interface IUIAutomationValuePattern;
interface IUIAutomationWindowPattern;
interface IUIAutomationTextRange;
interface IUIAutomationTextRangeArray;
interface IUIAutomationTextPattern;
interface IUIAutomationLegacyIAccessiblePattern;
interface IUIAutomationItemContainerPattern;
interface IUIAutomationVirtualizedItemPattern;
interface IUIAutomationProxyFactory;
interface IRawElementProviderSimple;
interface IUIAutomationProxyFactoryEntry;
interface IUIAutomationProxyFactoryMapping;
interface IUIAutomation;

/* Structure forward declarations.  */
struct tagRECT;
struct tagPOINT;

/* Union record forward declarations.  */
dispinterface IAccessible;

/* Union record forward declarations.  */
coclass CUIAutomation;

/* Enumeration declarations.  */
enum TreeScope
{
  TreeScope_Element = (int) 201326593,
  TreeScope_Children = (int) 201326594,
  TreeScope_Descendants = (int) 201326596,
  TreeScope_Parent = (int) 201326600,
  TreeScope_Ancestors = (int) 201326608,
  TreeScope_Subtree = (int) 201326599
};
enum AutomationElementMode
{
  AutomationElementMode_None = (int) 201326592,
  AutomationElementMode_Full = (int) 201326593
};
enum OrientationType
{
  OrientationType_None = (int) 201326592,
  OrientationType_Horizontal = (int) 201326593,
  OrientationType_Vertical = (int) 201326594
};
enum PropertyConditionFlags
{
  PropertyConditionFlags_None = (int) 201326592,
  PropertyConditionFlags_IgnoreCase = (int) 201326593
};
enum StructureChangeType
{
  StructureChangeType_ChildAdded = (int) 201326592,
  StructureChangeType_ChildRemoved = (int) 201326593,
  StructureChangeType_ChildrenInvalidated = (int) 201326594,
  StructureChangeType_ChildrenBulkAdded = (int) 201326595,
  StructureChangeType_ChildrenBulkRemoved = (int) 201326596,
  StructureChangeType_ChildrenReordered = (int) 201326597
};
enum DockPosition
{
  DockPosition_Top = (int) 201326592,
  DockPosition_Left = (int) 201326593,
  DockPosition_Bottom = (int) 201326594,
  DockPosition_Right = (int) 201326595,
  DockPosition_Fill = (int) 201326596,
  DockPosition_None = (int) 201326597
};
enum ExpandCollapseState
{
  ExpandCollapseState_Collapsed = (int) 201326592,
  ExpandCollapseState_Expanded = (int) 201326593,
  ExpandCollapseState_PartiallyExpanded = (int) 201326594,
  ExpandCollapseState_LeafNode = (int) 201326595
};
enum ScrollAmount
{
  ScrollAmount_LargeDecrement = (int) 201326592,
  ScrollAmount_SmallDecrement = (int) 201326593,
  ScrollAmount_NoAmount = (int) 201326594,
  ScrollAmount_LargeIncrement = (int) 201326595,
  ScrollAmount_SmallIncrement = (int) 201326596
};
enum SynchronizedInputType
{
  SynchronizedInputType_KeyUp = (int) 201326593,
  SynchronizedInputType_KeyDown = (int) 201326594,
  SynchronizedInputType_LeftMouseUp = (int) 201326596,
  SynchronizedInputType_LeftMouseDown = (int) 201326600,
  SynchronizedInputType_RightMouseUp = (int) 201326608,
  SynchronizedInputType_RightMouseDown = (int) 201326624
};
enum RowOrColumnMajor
{
  RowOrColumnMajor_RowMajor = (int) 201326592,
  RowOrColumnMajor_ColumnMajor = (int) 201326593,
  RowOrColumnMajor_Indeterminate = (int) 201326594
};
enum ToggleState
{
  ToggleState_Off = (int) 201326592,
  ToggleState_On = (int) 201326593,
  ToggleState_Indeterminate = (int) 201326594
};
enum WindowVisualState
{
  WindowVisualState_Normal = (int) 201326592,
  WindowVisualState_Maximized = (int) 201326593,
  WindowVisualState_Minimized = (int) 201326594
};
enum WindowInteractionState
{
  WindowInteractionState_Running = (int) 201326592,
  WindowInteractionState_Closing = (int) 201326593,
  WindowInteractionState_ReadyForUserInteraction = (int) 201326594,
  WindowInteractionState_BlockedByModalWindow = (int) 201326595,
  WindowInteractionState_NotResponding = (int) 201326596
};
enum TextPatternRangeEndpoint
{
  TextPatternRangeEndpoint_Start = (int) 201326592,
  TextPatternRangeEndpoint_End = (int) 201326593
};
enum TextUnit
{
  TextUnit_Character = (int) 201326592,
  TextUnit_Format = (int) 201326593,
  TextUnit_Word = (int) 201326594,
  TextUnit_Line = (int) 201326595,
  TextUnit_Paragraph = (int) 201326596,
  TextUnit_Page = (int) 201326597,
  TextUnit_Document = (int) 201326598
};
enum SupportedTextSelection
{
  SupportedTextSelection_None = (int) 201326592,
  SupportedTextSelection_Single = (int) 201326593,
  SupportedTextSelection_Multiple = (int) 201326594
};
enum ProviderOptions
{
  ProviderOptions_ClientSideProvider = (int) 201326593,
  ProviderOptions_ServerSideProvider = (int) 201326594,
  ProviderOptions_NonClientAreaProvider = (int) 201326596,
  ProviderOptions_OverrideProvider = (int) 201326600,
  ProviderOptions_ProviderOwnsSetFocus = (int) 201326608,
  ProviderOptions_UseComThreading = (int) 201326624
};

/* Structure/union declarations.  */
struct tagRECT
{
  long left;
  long top;
  long right;
  long bottom;
};
struct tagPOINT
{
  long x;
  long y;
};

[
  uuid(944DE083-8FB8-45CF-BCB7-C477ACB2F897),
  version(1.0)
]
library uiautomationclient
{
  importlib("stdole2.tlb");

   /* CoClass declarations.  */
   [
     uuid(FF48DBA4-60EF-4201-AA87-54103EEF594E),
     version(1.0),
     helpstring("The Central Class for UIAutomation"),
     cancreate
   ]
   coclass CUIAutomation
   {
     interface IUIAutomation;
   };

   /* Dispatch interface declarations.  */
   [
     uuid(618736E0-3C3D-11CF-810C-00AA00389B71),
     hidden,
     dual,
     oleautomation,
     dispatchable
   ]
   dispinterface IAccessible : IDispatch
   {
     [id(-5000), propget, hidden]
     HRESULT __stdcall accParent (
       [out retval] IDispatch **ppdispParent
     );
     [id(-5001), propget, hidden]
     HRESULT __stdcall accChildCount (
       [out retval] long *pcountChildren
     );
     [id(-5002), propget, hidden]
     HRESULT __stdcall accChild (
       [in] VARIANT varChild,
       [out retval] IDispatch **ppdispChild
     );
     [id(-5003), propget, hidden]
     HRESULT __stdcall accName (
       [in opt] VARIANT varChild,
       [out retval] BSTR *pszName
     );
     [id(-5004), propget, hidden]
     HRESULT __stdcall accValue (
       [in opt] VARIANT varChild,
       [out retval] BSTR *pszValue
     );
     [id(-5005), propget, hidden]
     HRESULT __stdcall accDescription (
       [in opt] VARIANT varChild,
       [out retval] BSTR *pszDescription
     );
     [id(-5006), propget, hidden]
     HRESULT __stdcall accRole (
       [in opt] VARIANT varChild,
       [out retval] VARIANT *pvarRole
     );
     [id(-5007), propget, hidden]
     HRESULT __stdcall accState (
       [in opt] VARIANT varChild,
       [out retval] VARIANT *pvarState
     );
     [id(-5008), propget, hidden]
     HRESULT __stdcall accHelp (
       [in opt] VARIANT varChild,
       [out retval] BSTR *pszHelp
     );
     [id(-5009), propget, hidden]
     HRESULT __stdcall accHelpTopic (
       [out] BSTR *pszHelpFile,
       [in opt] VARIANT varChild,
       [out retval] long *pidTopic
     );
     [id(-5010), propget, hidden]
     HRESULT __stdcall accKeyboardShortcut (
       [in opt] VARIANT varChild,
       [out retval] BSTR *pszKeyboardShortcut
     );
     [id(-5011), propget, hidden]
     HRESULT __stdcall accFocus (
       [out retval] VARIANT *pvarChild
     );
     [id(-5012), propget, hidden]
     HRESULT __stdcall accSelection (
       [out retval] VARIANT *pvarChildren
     );
     [id(-5013), propget, hidden]
     HRESULT __stdcall accDefaultAction (
       [in opt] VARIANT varChild,
       [out retval] BSTR *pszDefaultAction
     );
     [id(-5014), hidden]
     HRESULT __stdcall accSelect (
       [in] long flagsSelect,
       [in opt] VARIANT varChild
     );
     [id(-5015), hidden]
     HRESULT __stdcall accLocation (
       [out] long *pxLeft,
       [out] long *pyTop,
       [out] long *pcxWidth,
       [out] long *pcyHeight,
       [in opt] VARIANT varChild
     );
     [id(-5016), hidden]
     HRESULT __stdcall accNavigate (
       [in] long navDir,
       [in opt] VARIANT varStart,
       [out retval] VARIANT *pvarEndUpAt
     );
     [id(-5017), hidden]
     HRESULT __stdcall accHitTest (
       [in] long xLeft,
       [in] long yTop,
       [out retval] VARIANT *pvarChild
     );
     [id(-5018), hidden]
     HRESULT __stdcall accDoDefaultAction (
       [in opt] VARIANT varChild
     );
     [id(-5003), propput, hidden]
     HRESULT __stdcall accName (
       [in opt] VARIANT varChild,
       [in] BSTR argNo2
     );
     [id(-5004), propput, hidden]
     HRESULT __stdcall accValue (
       [in opt] VARIANT varChild,
       [in] BSTR argNo2
     );
   };

};

/* Interface declarations.  */
[
  uuid(D22108AA-8AC5-49A5-837B-37BBB3D7591E)
]
interface IUIAutomationElement : IUnknown
{
  [id(1610678272)]
  HRESULT __stdcall SetFocus (void);
  HRESULT __stdcall GetRuntimeId (
    [out retval] int runtimeId[]*
  );
  HRESULT __stdcall FindFirst (
    [in] enum TreeScope scope,
    [in] interface IUIAutomationCondition *condition,
    [out retval] interface IUIAutomationElement **found
  );
  HRESULT __stdcall FindAll (
    [in] enum TreeScope scope,
    [in] interface IUIAutomationCondition *condition,
    [out retval] interface IUIAutomationElementArray **found
  );
  HRESULT __stdcall FindFirstBuildCache (
    [in] enum TreeScope scope,
    [in] interface IUIAutomationCondition *condition,
    [in] interface IUIAutomationCacheRequest *cacheRequest,
    [out retval] interface IUIAutomationElement **found
  );
  HRESULT __stdcall FindAllBuildCache (
    [in] enum TreeScope scope,
    [in] interface IUIAutomationCondition *condition,
    [in] interface IUIAutomationCacheRequest *cacheRequest,
    [out retval] interface IUIAutomationElementArray **found
  );
  HRESULT __stdcall BuildUpdatedCache (
    [in] interface IUIAutomationCacheRequest *cacheRequest,
    [out retval] interface IUIAutomationElement **updatedElement
  );
  HRESULT __stdcall GetCurrentPropertyValue (
    [in] int propertyId,
    [out retval] VARIANT *retVal
  );
  HRESULT __stdcall GetCurrentPropertyValueEx (
    [in] int propertyId,
    [in] long ignoreDefaultValue,
    [out retval] VARIANT *retVal
  );
  HRESULT __stdcall GetCachedPropertyValue (
    [in] int propertyId,
    [out retval] VARIANT *retVal
  );
  HRESULT __stdcall GetCachedPropertyValueEx (
    [in] int propertyId,
    [in] long ignoreDefaultValue,
    [out retval] VARIANT *retVal
  );
  HRESULT __stdcall GetCurrentPatternAs (
    [in] int patternId,
    [in] struct GUID *riid,
    [out retval] void *patternObject
  );
  HRESULT __stdcall GetCachedPatternAs (
    [in] int patternId,
    [in] struct GUID *riid,
    [out retval] void *patternObject
  );
  HRESULT __stdcall GetCurrentPattern (
    [in] int patternId,
    [out retval] IUnknown **patternObject
  );
  HRESULT __stdcall GetCachedPattern (
    [in] int patternId,
    [out retval] IUnknown **patternObject
  );
  HRESULT __stdcall GetCachedParent (
    [out retval] interface IUIAutomationElement **parent
  );
  HRESULT __stdcall GetCachedChildren (
    [out retval] interface IUIAutomationElementArray **children
  );
  [propget]
  HRESULT __stdcall CurrentProcessId (
    [out retval] int *retVal
  );
  [propget]
  HRESULT __stdcall CurrentControlType (
    [out retval] int *retVal
  );
  [propget]
  HRESULT __stdcall CurrentLocalizedControlType (
    [out retval] BSTR *retVal
  );
  [propget]
  HRESULT __stdcall CurrentName (
    [out retval] BSTR *retVal
  );
  [propget]
  HRESULT __stdcall CurrentAcceleratorKey (
    [out retval] BSTR *retVal
  );
  [propget]
  HRESULT __stdcall CurrentAccessKey (
    [out retval] BSTR *retVal
  );
  [propget]
  HRESULT __stdcall CurrentHasKeyboardFocus (
    [out retval] long *retVal
  );
  [propget]
  HRESULT __stdcall CurrentIsKeyboardFocusable (
    [out retval] long *retVal
  );
  [propget]
  HRESULT __stdcall CurrentIsEnabled (
    [out retval] long *retVal
  );
  [propget]
  HRESULT __stdcall CurrentAutomationId (
    [out retval] BSTR *retVal
  );
  [propget]
  HRESULT __stdcall CurrentClassName (
    [out retval] BSTR *retVal
  );
  [propget]
  HRESULT __stdcall CurrentHelpText (
    [out retval] BSTR *retVal
  );
  [propget]
  HRESULT __stdcall CurrentCulture (
    [out retval] int *retVal
  );
  [propget]
  HRESULT __stdcall CurrentIsControlElement (
    [out retval] long *retVal
  );
  [propget]
  HRESULT __stdcall CurrentIsContentElement (
    [out retval] long *retVal
  );
  [propget]
  HRESULT __stdcall CurrentIsPassword (
    [out retval] long *retVal
  );
  [propget]
  HRESULT __stdcall CurrentNativeWindowHandle (
    [out retval] void *retVal
  );
  [propget]
  HRESULT __stdcall CurrentItemType (
    [out retval] BSTR *retVal
  );
  [propget]
  HRESULT __stdcall CurrentIsOffscreen (
    [out retval] long *retVal
  );
  [propget]
  HRESULT __stdcall CurrentOrientation (
    [out retval] enum OrientationType *retVal
  );
  [propget]
  HRESULT __stdcall CurrentFrameworkId (
    [out retval] BSTR *retVal
  );
  [propget]
  HRESULT __stdcall CurrentIsRequiredForForm (
    [out retval] long *retVal
  );
  [propget]
  HRESULT __stdcall CurrentItemStatus (
    [out retval] BSTR *retVal
  );
  [propget]
  HRESULT __stdcall CurrentBoundingRectangle (
    [out retval] struct tagRECT *retVal
  );
  [propget]
  HRESULT __stdcall CurrentLabeledBy (
    [out retval] interface IUIAutomationElement **retVal
  );
  [propget]
  HRESULT __stdcall CurrentAriaRole (
    [out retval] BSTR *retVal
  );
  [propget]
  HRESULT __stdcall CurrentAriaProperties (
    [out retval] BSTR *retVal
  );
  [propget]
  HRESULT __stdcall CurrentIsDataValidForForm (
    [out retval] long *retVal
  );
  [propget]
  HRESULT __stdcall CurrentControllerFor (
    [out retval] interface IUIAutomationElementArray **retVal
  );
  [propget]
  HRESULT __stdcall CurrentDescribedBy (
    [out retval] interface IUIAutomationElementArray **retVal
  );
  [propget]
  HRESULT __stdcall CurrentFlowsTo (
    [out retval] interface IUIAutomationElementArray **retVal
  );
  [propget]
  HRESULT __stdcall CurrentProviderDescription (
    [out retval] BSTR *retVal
  );
  [propget]
  HRESULT __stdcall CachedProcessId (
    [out retval] int *retVal
  );
  [propget]
  HRESULT __stdcall CachedControlType (
    [out retval] int *retVal
  );
  [propget]
  HRESULT __stdcall CachedLocalizedControlType (
    [out retval] BSTR *retVal
  );
  [propget]
  HRESULT __stdcall CachedName (
    [out retval] BSTR *retVal
  );
  [propget]
  HRESULT __stdcall CachedAcceleratorKey (
    [out retval] BSTR *retVal
  );
  [propget]
  HRESULT __stdcall CachedAccessKey (
    [out retval] BSTR *retVal
  );
  [propget]
  HRESULT __stdcall CachedHasKeyboardFocus (
    [out retval] long *retVal
  );
  [propget]
  HRESULT __stdcall CachedIsKeyboardFocusable (
    [out retval] long *retVal
  );
  [propget]
  HRESULT __stdcall CachedIsEnabled (
    [out retval] long *retVal
  );
  [propget]
  HRESULT __stdcall CachedAutomationId (
    [out retval] BSTR *retVal
  );
  [propget]
  HRESULT __stdcall CachedClassName (
    [out retval] BSTR *retVal
  );
  [propget]
  HRESULT __stdcall CachedHelpText (
    [out retval] BSTR *retVal
  );
  [propget]
  HRESULT __stdcall CachedCulture (
    [out retval] int *retVal
  );
  [propget]
  HRESULT __stdcall CachedIsControlElement (
    [out retval] long *retVal
  );
  [propget]
  HRESULT __stdcall CachedIsContentElement (
    [out retval] long *retVal
  );
  [propget]
  HRESULT __stdcall CachedIsPassword (
    [out retval] long *retVal
  );
  [propget]
  HRESULT __stdcall CachedNativeWindowHandle (
    [out retval] void *retVal
  );
  [propget]
  HRESULT __stdcall CachedItemType (
    [out retval] BSTR *retVal
  );
  [propget]
  HRESULT __stdcall CachedIsOffscreen (
    [out retval] long *retVal
  );
  [propget]
  HRESULT __stdcall CachedOrientation (
    [out retval] enum OrientationType *retVal
  );
  [propget]
  HRESULT __stdcall CachedFrameworkId (
    [out retval] BSTR *retVal
  );
  [propget]
  HRESULT __stdcall CachedIsRequiredForForm (
    [out retval] long *retVal
  );
  [propget]
  HRESULT __stdcall CachedItemStatus (
    [out retval] BSTR *retVal
  );
  [propget]
  HRESULT __stdcall CachedBoundingRectangle (
    [out retval] struct tagRECT *retVal
  );
  [propget]
  HRESULT __stdcall CachedLabeledBy (
    [out retval] interface IUIAutomationElement **retVal
  );
  [propget]
  HRESULT __stdcall CachedAriaRole (
    [out retval] BSTR *retVal
  );
  [propget]
  HRESULT __stdcall CachedAriaProperties (
    [out retval] BSTR *retVal
  );
  [propget]
  HRESULT __stdcall CachedIsDataValidForForm (
    [out retval] long *retVal
  );
  [propget]
  HRESULT __stdcall CachedControllerFor (
    [out retval] interface IUIAutomationElementArray **retVal
  );
  [propget]
  HRESULT __stdcall CachedDescribedBy (
    [out retval] interface IUIAutomationElementArray **retVal
  );
  [propget]
  HRESULT __stdcall CachedFlowsTo (
    [out retval] interface IUIAutomationElementArray **retVal
  );
  [propget]
  HRESULT __stdcall CachedProviderDescription (
    [out retval] BSTR *retVal
  );
  HRESULT __stdcall GetClickablePoint (
    [out] struct tagPOINT *clickable,
    [out retval] long *gotClickable
  );
};
[
  uuid(352FFBA8-0973-437C-A61F-F64CAFD81DF9)
]
interface IUIAutomationCondition : IUnknown
{
};
[
  uuid(14314595-B4BC-4055-95F2-58F2E42C9855)
]
interface IUIAutomationElementArray : IUnknown
{
  [id(1610678272), propget]
  HRESULT __stdcall Length (
    [out retval] int *Length
  );
  HRESULT __stdcall GetElement (
    [in] int index,
    [out retval] interface IUIAutomationElement **element
  );
};
[
  uuid(B32A92B5-BC25-4078-9C08-D7EE95C48E03)
]
interface IUIAutomationCacheRequest : IUnknown
{
  [id(1610678272)]
  HRESULT __stdcall AddProperty (
    [in] int propertyId
  );
  HRESULT __stdcall AddPattern (
    [in] int patternId
  );
  HRESULT __stdcall Clone (
    [out retval] interface IUIAutomationCacheRequest **clonedRequest
  );
  [propget]
  HRESULT __stdcall TreeScope (
    [out retval] enum TreeScope *scope
  );
  [id(1610678275), propput]
  HRESULT __stdcall TreeScope (
    [in] enum TreeScope argNo1
  );
  [id(1610678277), propget]
  HRESULT __stdcall TreeFilter (
    [out retval] interface IUIAutomationCondition **filter
  );
  [id(1610678277), propput]
  HRESULT __stdcall TreeFilter (
    [in] interface IUIAutomationCondition *argNo1
  );
  [id(1610678279), propget]
  HRESULT __stdcall AutomationElementMode (
    [out retval] enum AutomationElementMode *mode
  );
  [id(1610678279), propput]
  HRESULT __stdcall AutomationElementMode (
    [in] enum AutomationElementMode argNo1
  );
};
[
  uuid(1B4E1F2E-75EB-4D0B-8952-5A69988E2307)
]
interface IUIAutomationBoolCondition : IUIAutomationCondition
{
  [id(1610743808), propget]
  HRESULT __stdcall BooleanValue (
    [out retval] long *boolVal
  );
};
[
  uuid(99EBF2CB-5578-4267-9AD4-AFD6EA77E94B)
]
interface IUIAutomationPropertyCondition : IUIAutomationCondition
{
  [id(1610743808), propget]
  HRESULT __stdcall propertyId (
    [out retval] int *propertyId
  );
  [propget]
  HRESULT __stdcall PropertyValue (
    [out retval] VARIANT *PropertyValue
  );
  [propget]
  HRESULT __stdcall PropertyConditionFlags (
    [out retval] enum PropertyConditionFlags *flags
  );
};
[
  uuid(A7D0AF36-B912-45FE-9855-091DDC174AEC)
]
interface IUIAutomationAndCondition : IUIAutomationCondition
{
  [id(1610743808), propget]
  HRESULT __stdcall ChildCount (
    [out retval] int *ChildCount
  );
  HRESULT __stdcall GetChildrenAsNativeArray (
    [out] interface IUIAutomationCondition ***childArray,
    [out] int *childArrayCount
  );
  HRESULT __stdcall GetChildren (
    [out retval] interface IUIAutomationCondition *childArray[]*
  );
};
[
  uuid(8753F032-3DB1-47B5-A1FC-6E34A266C712)
]
interface IUIAutomationOrCondition : IUIAutomationCondition
{
  [id(1610743808), propget]
  HRESULT __stdcall ChildCount (
    [out retval] int *ChildCount
  );
  HRESULT __stdcall GetChildrenAsNativeArray (
    [out] interface IUIAutomationCondition ***childArray,
    [out] int *childArrayCount
  );
  HRESULT __stdcall GetChildren (
    [out retval] interface IUIAutomationCondition *childArray[]*
  );
};
[
  uuid(F528B657-847B-498C-8896-D52B565407A1)
]
interface IUIAutomationNotCondition : IUIAutomationCondition
{
  [id(1610743808)]
  HRESULT __stdcall GetChild (
    [out retval] interface IUIAutomationCondition **condition
  );
};
[
  uuid(4042C624-389C-4AFC-A630-9DF854A541FC)
]
interface IUIAutomationTreeWalker : IUnknown
{
  [id(1610678272)]
  HRESULT __stdcall GetParentElement (
    [in] interface IUIAutomationElement *element,
    [out retval] interface IUIAutomationElement **parent
  );
  HRESULT __stdcall GetFirstChildElement (
    [in] interface IUIAutomationElement *element,
    [out retval] interface IUIAutomationElement **first
  );
  HRESULT __stdcall GetLastChildElement (
    [in] interface IUIAutomationElement *element,
    [out retval] interface IUIAutomationElement **last
  );
  HRESULT __stdcall GetNextSiblingElement (
    [in] interface IUIAutomationElement *element,
    [out retval] interface IUIAutomationElement **next
  );
  HRESULT __stdcall GetPreviousSiblingElement (
    [in] interface IUIAutomationElement *element,
    [out retval] interface IUIAutomationElement **previous
  );
  HRESULT __stdcall NormalizeElement (
    [in] interface IUIAutomationElement *element,
    [out retval] interface IUIAutomationElement **normalized
  );
  HRESULT __stdcall GetParentElementBuildCache (
    [in] interface IUIAutomationElement *element,
    [in] interface IUIAutomationCacheRequest *cacheRequest,
    [out retval] interface IUIAutomationElement **parent
  );
  HRESULT __stdcall GetFirstChildElementBuildCache (
    [in] interface IUIAutomationElement *element,
    [in] interface IUIAutomationCacheRequest *cacheRequest,
    [out retval] interface IUIAutomationElement **first
  );
  HRESULT __stdcall GetLastChildElementBuildCache (
    [in] interface IUIAutomationElement *element,
    [in] interface IUIAutomationCacheRequest *cacheRequest,
    [out retval] interface IUIAutomationElement **last
  );
  HRESULT __stdcall GetNextSiblingElementBuildCache (
    [in] interface IUIAutomationElement *element,
    [in] interface IUIAutomationCacheRequest *cacheRequest,
    [out retval] interface IUIAutomationElement **next
  );
  HRESULT __stdcall GetPreviousSiblingElementBuildCache (
    [in] interface IUIAutomationElement *element,
    [in] interface IUIAutomationCacheRequest *cacheRequest,
    [out retval] interface IUIAutomationElement **previous
  );
  HRESULT __stdcall NormalizeElementBuildCache (
    [in] interface IUIAutomationElement *element,
    [in] interface IUIAutomationCacheRequest *cacheRequest,
    [out retval] interface IUIAutomationElement **normalized
  );
  [propget]
  HRESULT __stdcall condition (
    [out retval] interface IUIAutomationCondition **condition
  );
};
[
  uuid(146C3C17-F12E-4E22-8C27-F894B9B79C69),
  oleautomation
]
interface IUIAutomationEventHandler : IUnknown
{
  [id(1610678272)]
  HRESULT __stdcall HandleAutomationEvent (
    [in] interface IUIAutomationElement *sender,
    [in] int eventId
  );
};
[
  uuid(40CD37D4-C756-4B0C-8C6F-BDDFEEB13B50),
  oleautomation
]
interface IUIAutomationPropertyChangedEventHandler : IUnknown
{
  [id(1610678272)]
  HRESULT __stdcall HandlePropertyChangedEvent (
    [in] interface IUIAutomationElement *sender,
    [in] int propertyId,
    [in] VARIANT newValue
  );
};
[
  uuid(E81D1B4E-11C5-42F8-9754-E7036C79F054),
  oleautomation
]
interface IUIAutomationStructureChangedEventHandler : IUnknown
{
  [id(1610678272)]
  HRESULT __stdcall HandleStructureChangedEvent (
    [in] interface IUIAutomationElement *sender,
    [in] enum StructureChangeType changeType,
    [in] int runtimeId[]
  );
};
[
  uuid(C270F6B5-5C69-4290-9745-7A7F97169468),
  oleautomation
]
interface IUIAutomationFocusChangedEventHandler : IUnknown
{
  [id(1610678272)]
  HRESULT __stdcall HandleFocusChangedEvent (
    [in] interface IUIAutomationElement *sender
  );
};
[
  uuid(FB377FBE-8EA6-46D5-9C73-6499642D3059)
]
interface IUIAutomationInvokePattern : IUnknown
{
  [id(1610678272)]
  HRESULT __stdcall Invoke (void);
};
[
  uuid(FDE5EF97-1464-48F6-90BF-43D0948E86EC)
]
interface IUIAutomationDockPattern : IUnknown
{
  [id(1610678272)]
  HRESULT __stdcall SetDockPosition (
    [in] enum DockPosition dockPos
  );
  [propget]
  HRESULT __stdcall CurrentDockPosition (
    [out retval] enum DockPosition *retVal
  );
  [propget]
  HRESULT __stdcall CachedDockPosition (
    [out retval] enum DockPosition *retVal
  );
};
[
  uuid(619BE086-1F4E-4EE4-BAFA-210128738730)
]
interface IUIAutomationExpandCollapsePattern : IUnknown
{
  [id(1610678272)]
  HRESULT __stdcall Expand (void);
  HRESULT __stdcall Collapse (void);
  [propget]
  HRESULT __stdcall CurrentExpandCollapseState (
    [out retval] enum ExpandCollapseState *retVal
  );
  [propget]
  HRESULT __stdcall CachedExpandCollapseState (
    [out retval] enum ExpandCollapseState *retVal
  );
};
[
  uuid(414C3CDC-856B-4F5B-8538-3131C6302550)
]
interface IUIAutomationGridPattern : IUnknown
{
  [id(1610678272)]
  HRESULT __stdcall GetItem (
    [in] int row,
    [in] int column,
    [out retval] interface IUIAutomationElement **element
  );
  [propget]
  HRESULT __stdcall CurrentRowCount (
    [out retval] int *retVal
  );
  [propget]
  HRESULT __stdcall CurrentColumnCount (
    [out retval] int *retVal
  );
  [propget]
  HRESULT __stdcall CachedRowCount (
    [out retval] int *retVal
  );
  [propget]
  HRESULT __stdcall CachedColumnCount (
    [out retval] int *retVal
  );
};
[
  uuid(78F8EF57-66C3-4E09-BD7C-E79B2004894D)
]
interface IUIAutomationGridItemPattern : IUnknown
{
  [id(1610678272), propget]
  HRESULT __stdcall CurrentContainingGrid (
    [out retval] interface IUIAutomationElement **retVal
  );
  [propget]
  HRESULT __stdcall CurrentRow (
    [out retval] int *retVal
  );
  [propget]
  HRESULT __stdcall CurrentColumn (
    [out retval] int *retVal
  );
  [propget]
  HRESULT __stdcall CurrentRowSpan (
    [out retval] int *retVal
  );
  [propget]
  HRESULT __stdcall CurrentColumnSpan (
    [out retval] int *retVal
  );
  [propget]
  HRESULT __stdcall CachedContainingGrid (
    [out retval] interface IUIAutomationElement **retVal
  );
  [propget]
  HRESULT __stdcall CachedRow (
    [out retval] int *retVal
  );
  [propget]
  HRESULT __stdcall CachedColumn (
    [out retval] int *retVal
  );
  [propget]
  HRESULT __stdcall CachedRowSpan (
    [out retval] int *retVal
  );
  [propget]
  HRESULT __stdcall CachedColumnSpan (
    [out retval] int *retVal
  );
};
[
  uuid(8D253C91-1DC5-4BB5-B18F-ADE16FA495E8)
]
interface IUIAutomationMultipleViewPattern : IUnknown
{
  [id(1610678272)]
  HRESULT __stdcall GetViewName (
    [in] int view,
    [out retval] BSTR *name
  );
  HRESULT __stdcall SetCurrentView (
    [in] int view
  );
  [propget]
  HRESULT __stdcall CurrentCurrentView (
    [out retval] int *retVal
  );
  HRESULT __stdcall GetCurrentSupportedViews (
    [out retval] int retVal[]*
  );
  [propget]
  HRESULT __stdcall CachedCurrentView (
    [out retval] int *retVal
  );
  HRESULT __stdcall GetCachedSupportedViews (
    [out retval] int retVal[]*
  );
};
[
  uuid(59213F4F-7346-49E5-B120-80555987A148)
]
interface IUIAutomationRangeValuePattern : IUnknown
{
  [id(1610678272)]
  HRESULT __stdcall SetValue (
    [in] double val
  );
  [propget]
  HRESULT __stdcall CurrentValue (
    [out retval] double *retVal
  );
  [propget]
  HRESULT __stdcall CurrentIsReadOnly (
    [out retval] long *retVal
  );
  [propget]
  HRESULT __stdcall CurrentMaximum (
    [out retval] double *retVal
  );
  [propget]
  HRESULT __stdcall CurrentMinimum (
    [out retval] double *retVal
  );
  [propget]
  HRESULT __stdcall CurrentLargeChange (
    [out retval] double *retVal
  );
  [propget]
  HRESULT __stdcall CurrentSmallChange (
    [out retval] double *retVal
  );
  [propget]
  HRESULT __stdcall CachedValue (
    [out retval] double *retVal
  );
  [propget]
  HRESULT __stdcall CachedIsReadOnly (
    [out retval] long *retVal
  );
  [propget]
  HRESULT __stdcall CachedMaximum (
    [out retval] double *retVal
  );
  [propget]
  HRESULT __stdcall CachedMinimum (
    [out retval] double *retVal
  );
  [propget]
  HRESULT __stdcall CachedLargeChange (
    [out retval] double *retVal
  );
  [propget]
  HRESULT __stdcall CachedSmallChange (
    [out retval] double *retVal
  );
};
[
  uuid(88F4D42A-E881-459D-A77C-73BBBB7E02DC)
]
interface IUIAutomationScrollPattern : IUnknown
{
  [id(1610678272)]
  HRESULT __stdcall Scroll (
    [in] enum ScrollAmount horizontalAmount,
    [in] enum ScrollAmount verticalAmount
  );
  HRESULT __stdcall SetScrollPercent (
    [in] double horizontalPercent,
    [in] double verticalPercent
  );
  [propget]
  HRESULT __stdcall CurrentHorizontalScrollPercent (
    [out retval] double *retVal
  );
  [propget]
  HRESULT __stdcall CurrentVerticalScrollPercent (
    [out retval] double *retVal
  );
  [propget]
  HRESULT __stdcall CurrentHorizontalViewSize (
    [out retval] double *retVal
  );
  [propget]
  HRESULT __stdcall CurrentVerticalViewSize (
    [out retval] double *retVal
  );
  [propget]
  HRESULT __stdcall CurrentHorizontallyScrollable (
    [out retval] long *retVal
  );
  [propget]
  HRESULT __stdcall CurrentVerticallyScrollable (
    [out retval] long *retVal
  );
  [propget]
  HRESULT __stdcall CachedHorizontalScrollPercent (
    [out retval] double *retVal
  );
  [propget]
  HRESULT __stdcall CachedVerticalScrollPercent (
    [out retval] double *retVal
  );
  [propget]
  HRESULT __stdcall CachedHorizontalViewSize (
    [out retval] double *retVal
  );
  [propget]
  HRESULT __stdcall CachedVerticalViewSize (
    [out retval] double *retVal
  );
  [propget]
  HRESULT __stdcall CachedHorizontallyScrollable (
    [out retval] long *retVal
  );
  [propget]
  HRESULT __stdcall CachedVerticallyScrollable (
    [out retval] long *retVal
  );
};
[
  uuid(B488300F-D015-4F19-9C29-BB595E3645EF)
]
interface IUIAutomationScrollItemPattern : IUnknown
{
  [id(1610678272)]
  HRESULT __stdcall ScrollIntoView (void);
};
[
  uuid(5ED5202E-B2AC-47A6-B638-4B0BF140D78E)
]
interface IUIAutomationSelectionPattern : IUnknown
{
  [id(1610678272)]
  HRESULT __stdcall GetCurrentSelection (
    [out retval] interface IUIAutomationElementArray **retVal
  );
  [propget]
  HRESULT __stdcall CurrentCanSelectMultiple (
    [out retval] long *retVal
  );
  [propget]
  HRESULT __stdcall CurrentIsSelectionRequired (
    [out retval] long *retVal
  );
  HRESULT __stdcall GetCachedSelection (
    [out retval] interface IUIAutomationElementArray **retVal
  );
  [propget]
  HRESULT __stdcall CachedCanSelectMultiple (
    [out retval] long *retVal
  );
  [propget]
  HRESULT __stdcall CachedIsSelectionRequired (
    [out retval] long *retVal
  );
};
[
  uuid(A8EFA66A-0FDA-421A-9194-38021F3578EA)
]
interface IUIAutomationSelectionItemPattern : IUnknown
{
  [id(1610678272)]
  HRESULT __stdcall Select (void);
  HRESULT __stdcall AddToSelection (void);
  HRESULT __stdcall RemoveFromSelection (void);
  [propget]
  HRESULT __stdcall CurrentIsSelected (
    [out retval] long *retVal
  );
  [propget]
  HRESULT __stdcall CurrentSelectionContainer (
    [out retval] interface IUIAutomationElement **retVal
  );
  [propget]
  HRESULT __stdcall CachedIsSelected (
    [out retval] long *retVal
  );
  [propget]
  HRESULT __stdcall CachedSelectionContainer (
    [out retval] interface IUIAutomationElement **retVal
  );
};
[
  uuid(2233BE0B-AFB7-448B-9FDA-3B378AA5EAE1)
]
interface IUIAutomationSynchronizedInputPattern : IUnknown
{
  [id(1610678272)]
  HRESULT __stdcall StartListening (
    [in] enum SynchronizedInputType inputType
  );
  HRESULT __stdcall Cancel (void);
};
[
  uuid(620E691C-EA96-4710-A850-754B24CE2417)
]
interface IUIAutomationTablePattern : IUnknown
{
  [id(1610678272)]
  HRESULT __stdcall GetCurrentRowHeaders (
    [out retval] interface IUIAutomationElementArray **retVal
  );
  HRESULT __stdcall GetCurrentColumnHeaders (
    [out retval] interface IUIAutomationElementArray **retVal
  );
  [propget]
  HRESULT __stdcall CurrentRowOrColumnMajor (
    [out retval] enum RowOrColumnMajor *retVal
  );
  HRESULT __stdcall GetCachedRowHeaders (
    [out retval] interface IUIAutomationElementArray **retVal
  );
  HRESULT __stdcall GetCachedColumnHeaders (
    [out retval] interface IUIAutomationElementArray **retVal
  );
  [propget]
  HRESULT __stdcall CachedRowOrColumnMajor (
    [out retval] enum RowOrColumnMajor *retVal
  );
};
[
  uuid(0B964EB3-EF2E-4464-9C79-61D61737A27E)
]
interface IUIAutomationTableItemPattern : IUnknown
{
  [id(1610678272)]
  HRESULT __stdcall GetCurrentRowHeaderItems (
    [out retval] interface IUIAutomationElementArray **retVal
  );
  HRESULT __stdcall GetCurrentColumnHeaderItems (
    [out retval] interface IUIAutomationElementArray **retVal
  );
  HRESULT __stdcall GetCachedRowHeaderItems (
    [out retval] interface IUIAutomationElementArray **retVal
  );
  HRESULT __stdcall GetCachedColumnHeaderItems (
    [out retval] interface IUIAutomationElementArray **retVal
  );
};
[
  uuid(94CF8058-9B8D-4AB9-8BFD-4CD0A33C8C70)
]
interface IUIAutomationTogglePattern : IUnknown
{
  [id(1610678272)]
  HRESULT __stdcall Toggle (void);
  [propget]
  HRESULT __stdcall CurrentToggleState (
    [out retval] enum ToggleState *retVal
  );
  [propget]
  HRESULT __stdcall CachedToggleState (
    [out retval] enum ToggleState *retVal
  );
};
[
  uuid(A9B55844-A55D-4EF0-926D-569C16FF89BB)
]
interface IUIAutomationTransformPattern : IUnknown
{
  [id(1610678272)]
  HRESULT __stdcall Move (
    [in] double x,
    [in] double y
  );
  HRESULT __stdcall Resize (
    [in] double width,
    [in] double height
  );
  HRESULT __stdcall Rotate (
    [in] double degrees
  );
  [propget]
  HRESULT __stdcall CurrentCanMove (
    [out retval] long *retVal
  );
  [propget]
  HRESULT __stdcall CurrentCanResize (
    [out retval] long *retVal
  );
  [propget]
  HRESULT __stdcall CurrentCanRotate (
    [out retval] long *retVal
  );
  [propget]
  HRESULT __stdcall CachedCanMove (
    [out retval] long *retVal
  );
  [propget]
  HRESULT __stdcall CachedCanResize (
    [out retval] long *retVal
  );
  [propget]
  HRESULT __stdcall CachedCanRotate (
    [out retval] long *retVal
  );
};
[
  uuid(A94CD8B1-0844-4CD6-9D2D-640537AB39E9)
]
interface IUIAutomationValuePattern : IUnknown
{
  [id(1610678272)]
  HRESULT __stdcall SetValue (
    [in] BSTR val
  );
  [propget]
  HRESULT __stdcall CurrentValue (
    [out retval] BSTR *retVal
  );
  [propget]
  HRESULT __stdcall CurrentIsReadOnly (
    [out retval] long *retVal
  );
  [propget]
  HRESULT __stdcall CachedValue (
    [out retval] BSTR *retVal
  );
  [propget]
  HRESULT __stdcall CachedIsReadOnly (
    [out retval] long *retVal
  );
};
[
  uuid(0FAEF453-9208-43EF-BBB2-3B485177864F)
]
interface IUIAutomationWindowPattern : IUnknown
{
  [id(1610678272)]
  HRESULT __stdcall Close (void);
  HRESULT __stdcall WaitForInputIdle (
    [in] int milliseconds,
    [out retval] long *success
  );
  HRESULT __stdcall SetWindowVisualState (
    [in] enum WindowVisualState state
  );
  [propget]
  HRESULT __stdcall CurrentCanMaximize (
    [out retval] long *retVal
  );
  [propget]
  HRESULT __stdcall CurrentCanMinimize (
    [out retval] long *retVal
  );
  [propget]
  HRESULT __stdcall CurrentIsModal (
    [out retval] long *retVal
  );
  [propget]
  HRESULT __stdcall CurrentIsTopmost (
    [out retval] long *retVal
  );
  [propget]
  HRESULT __stdcall CurrentWindowVisualState (
    [out retval] enum WindowVisualState *retVal
  );
  [propget]
  HRESULT __stdcall CurrentWindowInteractionState (
    [out retval] enum WindowInteractionState *retVal
  );
  [propget]
  HRESULT __stdcall CachedCanMaximize (
    [out retval] long *retVal
  );
  [propget]
  HRESULT __stdcall CachedCanMinimize (
    [out retval] long *retVal
  );
  [propget]
  HRESULT __stdcall CachedIsModal (
    [out retval] long *retVal
  );
  [propget]
  HRESULT __stdcall CachedIsTopmost (
    [out retval] long *retVal
  );
  [propget]
  HRESULT __stdcall CachedWindowVisualState (
    [out retval] enum WindowVisualState *retVal
  );
  [propget]
  HRESULT __stdcall CachedWindowInteractionState (
    [out retval] enum WindowInteractionState *retVal
  );
};
[
  uuid(A543CC6A-F4AE-494B-8239-C814481187A8)
]
interface IUIAutomationTextRange : IUnknown
{
  [id(1610678272)]
  HRESULT __stdcall Clone (
    [out retval] interface IUIAutomationTextRange **clonedRange
  );
  HRESULT __stdcall Compare (
    [in] interface IUIAutomationTextRange *range,
    [out retval] long *areSame
  );
  HRESULT __stdcall CompareEndpoints (
    [in] enum TextPatternRangeEndpoint srcEndPoint,
    [in] interface IUIAutomationTextRange *range,
    [in] enum TextPatternRangeEndpoint targetEndPoint,
    [out retval] int *compValue
  );
  HRESULT __stdcall ExpandToEnclosingUnit (
    [in] enum TextUnit TextUnit
  );
  HRESULT __stdcall FindAttribute (
    [in] int attr,
    [in] VARIANT val,
    [in] long backward,
    [out retval] interface IUIAutomationTextRange **found
  );
  HRESULT __stdcall FindText (
    [in] BSTR text,
    [in] long backward,
    [in] long ignoreCase,
    [out retval] interface IUIAutomationTextRange **found
  );
  HRESULT __stdcall GetAttributeValue (
    [in] int attr,
    [out retval] VARIANT *value
  );
  HRESULT __stdcall GetBoundingRectangles (
    [out retval] double boundingRects[]*
  );
  HRESULT __stdcall GetEnclosingElement (
    [out retval] interface IUIAutomationElement **enclosingElement
  );
  HRESULT __stdcall GetText (
    [in] int maxLength,
    [out retval] BSTR *text
  );
  HRESULT __stdcall Move (
    [in] enum TextUnit unit,
    [in] int count,
    [out retval] int *moved
  );
  HRESULT __stdcall MoveEndpointByUnit (
    [in] enum TextPatternRangeEndpoint endpoint,
    [in] enum TextUnit unit,
    [in] int count,
    [out retval] int *moved
  );
  HRESULT __stdcall MoveEndpointByRange (
    [in] enum TextPatternRangeEndpoint srcEndPoint,
    [in] interface IUIAutomationTextRange *range,
    [in] enum TextPatternRangeEndpoint targetEndPoint
  );
  HRESULT __stdcall Select (void);
  HRESULT __stdcall AddToSelection (void);
  HRESULT __stdcall RemoveFromSelection (void);
  HRESULT __stdcall ScrollIntoView (
    [in] long alignToTop
  );
  HRESULT __stdcall GetChildren (
    [out retval] interface IUIAutomationElementArray **children
  );
};
[
  uuid(CE4AE76A-E717-4C98-81EA-47371D028EB6)
]
interface IUIAutomationTextRangeArray : IUnknown
{
  [id(1610678272), propget]
  HRESULT __stdcall Length (
    [out retval] int *Length
  );
  HRESULT __stdcall GetElement (
    [in] int index,
    [out retval] interface IUIAutomationTextRange **element
  );
};
[
  uuid(32EBA289-3583-42C9-9C59-3B6D9A1E9B6A)
]
interface IUIAutomationTextPattern : IUnknown
{
  [id(1610678272)]
  HRESULT __stdcall RangeFromPoint (
    [in] struct tagPOINT pt,
    [out retval] interface IUIAutomationTextRange **range
  );
  HRESULT __stdcall RangeFromChild (
    [in] interface IUIAutomationElement *child,
    [out retval] interface IUIAutomationTextRange **range
  );
  HRESULT __stdcall GetSelection (
    [out retval] interface IUIAutomationTextRangeArray **ranges
  );
  HRESULT __stdcall GetVisibleRanges (
    [out retval] interface IUIAutomationTextRangeArray **ranges
  );
  [propget]
  HRESULT __stdcall DocumentRange (
    [out retval] interface IUIAutomationTextRange **range
  );
  [propget]
  HRESULT __stdcall SupportedTextSelection (
    [out retval] enum SupportedTextSelection *SupportedTextSelection
  );
};
[
  uuid(828055AD-355B-4435-86D5-3B51C14A9B1B)
]
interface IUIAutomationLegacyIAccessiblePattern : IUnknown
{
  [id(1610678272)]
  HRESULT __stdcall Select (
    long flagsSelect
  );
  HRESULT __stdcall DoDefaultAction (void);
  HRESULT __stdcall SetValue (
    LPWSTR szValue
  );
  [propget]
  HRESULT __stdcall CurrentChildId (
    [out retval] int *pRetVal
  );
  [propget]
  HRESULT __stdcall CurrentName (
    [out retval] BSTR *pszName
  );
  [propget]
  HRESULT __stdcall CurrentValue (
    [out retval] BSTR *pszValue
  );
  [propget]
  HRESULT __stdcall CurrentDescription (
    [out retval] BSTR *pszDescription
  );
  [propget]
  HRESULT __stdcall CurrentRole (
    [out retval] UINT *pdwRole
  );
  [propget]
  HRESULT __stdcall CurrentState (
    [out retval] UINT *pdwState
  );
  [propget]
  HRESULT __stdcall CurrentHelp (
    [out retval] BSTR *pszHelp
  );
  [propget]
  HRESULT __stdcall CurrentKeyboardShortcut (
    [out retval] BSTR *pszKeyboardShortcut
  );
  HRESULT __stdcall GetCurrentSelection (
    [out retval] interface IUIAutomationElementArray **pvarSelectedChildren
  );
  [propget]
  HRESULT __stdcall CurrentDefaultAction (
    [out retval] BSTR *pszDefaultAction
  );
  [propget]
  HRESULT __stdcall CachedChildId (
    [out retval] int *pRetVal
  );
  [propget]
  HRESULT __stdcall CachedName (
    [out retval] BSTR *pszName
  );
  [propget]
  HRESULT __stdcall CachedValue (
    [out retval] BSTR *pszValue
  );
  [propget]
  HRESULT __stdcall CachedDescription (
    [out retval] BSTR *pszDescription
  );
  [propget]
  HRESULT __stdcall CachedRole (
    [out retval] UINT *pdwRole
  );
  [propget]
  HRESULT __stdcall CachedState (
    [out retval] UINT *pdwState
  );
  [propget]
  HRESULT __stdcall CachedHelp (
    [out retval] BSTR *pszHelp
  );
  [propget]
  HRESULT __stdcall CachedKeyboardShortcut (
    [out retval] BSTR *pszKeyboardShortcut
  );
  HRESULT __stdcall GetCachedSelection (
    [out retval] interface IUIAutomationElementArray **pvarSelectedChildren
  );
  [propget]
  HRESULT __stdcall CachedDefaultAction (
    [out retval] BSTR *pszDefaultAction
  );
  HRESULT __stdcall GetIAccessible (
    [out retval] dispinterface IAccessible **ppAccessible
  );
};
[
  uuid(C690FDB2-27A8-423C-812D-429773C9084E)
]
interface IUIAutomationItemContainerPattern : IUnknown
{
  [id(1610678272)]
  HRESULT __stdcall FindItemByProperty (
    [in] interface IUIAutomationElement *pStartAfter,
    [in] int propertyId,
    [in] VARIANT value,
    [out retval] interface IUIAutomationElement **pFound
  );
};
[
  uuid(6BA3D7A6-04CF-4F11-8793-A8D1CDE9969F)
]
interface IUIAutomationVirtualizedItemPattern : IUnknown
{
  [id(1610678272)]
  HRESULT __stdcall Realize (void);
};
[
  uuid(85B94ECD-849D-42B6-B94D-D6DB23FDF5A4)
]
interface IUIAutomationProxyFactory : IUnknown
{
  [id(1610678272)]
  HRESULT __stdcall CreateProvider (
    [in] void *hwnd,
    [in] long idObject,
    [in] long idChild,
    [out retval] interface IRawElementProviderSimple **provider
  );
  [propget]
  HRESULT __stdcall ProxyFactoryId (
    [out retval] BSTR *factoryId
  );
};
[
  uuid(D6DD68D1-86FD-4332-8666-9ABEDEA2D24C)
]
interface IRawElementProviderSimple : IUnknown
{
  [id(1610678272), propget]
  HRESULT __stdcall ProviderOptions (
    [out retval] enum ProviderOptions *pRetVal
  );
  HRESULT __stdcall GetPatternProvider (
    [in] int patternId,
    [out retval] IUnknown **pRetVal
  );
  HRESULT __stdcall GetPropertyValue (
    [in] int propertyId,
    [out retval] VARIANT *pRetVal
  );
  [propget]
  HRESULT __stdcall HostRawElementProvider (
    [out retval] interface IRawElementProviderSimple **pRetVal
  );
};
[
  uuid(D50E472E-B64B-490C-BCA1-D30696F9F289)
]
interface IUIAutomationProxyFactoryEntry : IUnknown
{
  [id(1610678272), propget]
  HRESULT __stdcall ProxyFactory (
    [out retval] interface IUIAutomationProxyFactory **factory
  );
  [propget]
  HRESULT __stdcall ClassName (
    [out retval] BSTR *ClassName
  );
  [propget]
  HRESULT __stdcall ImageName (
    [out retval] BSTR *ImageName
  );
  [propget]
  HRESULT __stdcall AllowSubstringMatch (
    [out retval] long *AllowSubstringMatch
  );
  [propget]
  HRESULT __stdcall CanCheckBaseClass (
    [out retval] long *CanCheckBaseClass
  );
  [propget]
  HRESULT __stdcall NeedsAdviseEvents (
    [out retval] long *adviseEvents
  );
  [id(1610678273), propput]
  HRESULT __stdcall ClassName (
    [in] LPWSTR argNo1
  );
  [propput]
  HRESULT __stdcall ImageName (
    [in] LPWSTR argNo1
  );
  [propput]
  HRESULT __stdcall AllowSubstringMatch (
    [in] long argNo1
  );
  [propput]
  HRESULT __stdcall CanCheckBaseClass (
    [in] long argNo1
  );
  [propput]
  HRESULT __stdcall NeedsAdviseEvents (
    [in] long argNo1
  );
  [id(1610678283)]
  HRESULT __stdcall SetWinEventsForAutomationEvent (
    [in] int eventId,
    [in] int propertyId,
    [in] unsigned int winEvents[]
  );
  HRESULT __stdcall GetWinEventsForAutomationEvent (
    [in] int eventId,
    [in] int propertyId,
    [out retval] unsigned int winEvents[]*
  );
};
[
  uuid(09E31E18-872D-4873-93D1-1E541EC133FD)
]
interface IUIAutomationProxyFactoryMapping : IUnknown
{
  [id(1610678272), propget]
  HRESULT __stdcall count (
    [out retval] unsigned int *count
  );
  HRESULT __stdcall GetTable (
    [out retval] interface IUIAutomationProxyFactoryEntry *table[]*
  );
  HRESULT __stdcall GetEntry (
    [in] unsigned int index,
    [out retval] interface IUIAutomationProxyFactoryEntry **entry
  );
  HRESULT __stdcall SetTable (
    [in] interface IUIAutomationProxyFactoryEntry *factoryList[]
  );
  HRESULT __stdcall InsertEntries (
    [in] unsigned int before,
    [in] interface IUIAutomationProxyFactoryEntry *factoryList[]
  );
  HRESULT __stdcall InsertEntry (
    [in] unsigned int before,
    [in] interface IUIAutomationProxyFactoryEntry *factory
  );
  HRESULT __stdcall RemoveEntry (
    [in] unsigned int index
  );
  HRESULT __stdcall ClearTable (void);
  HRESULT __stdcall RestoreDefaultTable (void);
};
[
  uuid(30CBE57D-D9D0-452A-AB13-7AC5AC4825EE)
]
interface IUIAutomation : IUnknown
{
  [id(1610678272)]
  HRESULT __stdcall CompareElements (
    [in] interface IUIAutomationElement *el1,
    [in] interface IUIAutomationElement *el2,
    [out retval] long *areSame
  );
  HRESULT __stdcall CompareRuntimeIds (
    [in] int runtimeId1[],
    [in] int runtimeId2[],
    [out retval] long *areSame
  );
  HRESULT __stdcall GetRootElement (
    [out retval] interface IUIAutomationElement **root
  );
  HRESULT __stdcall ElementFromHandle (
    [in] void *hwnd,
    [out retval] interface IUIAutomationElement **element
  );
  HRESULT __stdcall ElementFromPoint (
    [in] struct tagPOINT pt,
    [out retval] interface IUIAutomationElement **element
  );
  HRESULT __stdcall GetFocusedElement (
    [out retval] interface IUIAutomationElement **element
  );
  HRESULT __stdcall GetRootElementBuildCache (
    [in] interface IUIAutomationCacheRequest *cacheRequest,
    [out retval] interface IUIAutomationElement **root
  );
  HRESULT __stdcall ElementFromHandleBuildCache (
    [in] void *hwnd,
    [in] interface IUIAutomationCacheRequest *cacheRequest,
    [out retval] interface IUIAutomationElement **element
  );
  HRESULT __stdcall ElementFromPointBuildCache (
    [in] struct tagPOINT pt,
    [in] interface IUIAutomationCacheRequest *cacheRequest,
    [out retval] interface IUIAutomationElement **element
  );
  HRESULT __stdcall GetFocusedElementBuildCache (
    [in] interface IUIAutomationCacheRequest *cacheRequest,
    [out retval] interface IUIAutomationElement **element
  );
  HRESULT __stdcall CreateTreeWalker (
    [in] interface IUIAutomationCondition *pCondition,
    [out retval] interface IUIAutomationTreeWalker **walker
  );
  [propget]
  HRESULT __stdcall ControlViewWalker (
    [out retval] interface IUIAutomationTreeWalker **walker
  );
  [propget]
  HRESULT __stdcall ContentViewWalker (
    [out retval] interface IUIAutomationTreeWalker **walker
  );
  [propget]
  HRESULT __stdcall RawViewWalker (
    [out retval] interface IUIAutomationTreeWalker **walker
  );
  [propget]
  HRESULT __stdcall RawViewCondition (
    [out retval] interface IUIAutomationCondition **condition
  );
  [propget]
  HRESULT __stdcall ControlViewCondition (
    [out retval] interface IUIAutomationCondition **condition
  );
  [propget]
  HRESULT __stdcall ContentViewCondition (
    [out retval] interface IUIAutomationCondition **condition
  );
  HRESULT __stdcall CreateCacheRequest (
    [out retval] interface IUIAutomationCacheRequest **cacheRequest
  );
  HRESULT __stdcall CreateTrueCondition (
    [out retval] interface IUIAutomationCondition **newCondition
  );
  HRESULT __stdcall CreateFalseCondition (
    [out retval] interface IUIAutomationCondition **newCondition
  );
  HRESULT __stdcall CreatePropertyCondition (
    [in] int propertyId,
    [in] VARIANT value,
    [out retval] interface IUIAutomationCondition **newCondition
  );
  HRESULT __stdcall CreatePropertyConditionEx (
    [in] int propertyId,
    [in] VARIANT value,
    [in] enum PropertyConditionFlags flags,
    [out retval] interface IUIAutomationCondition **newCondition
  );
  HRESULT __stdcall CreateAndCondition (
    [in] interface IUIAutomationCondition *condition1,
    [in] interface IUIAutomationCondition *condition2,
    [out retval] interface IUIAutomationCondition **newCondition
  );
  HRESULT __stdcall CreateAndConditionFromArray (
    [in] interface IUIAutomationCondition *conditions[],
    [out retval] interface IUIAutomationCondition **newCondition
  );
  HRESULT __stdcall CreateAndConditionFromNativeArray (
    [in] interface IUIAutomationCondition **conditions,
    [in] int conditionCount,
    [out retval] interface IUIAutomationCondition **newCondition
  );
  HRESULT __stdcall CreateOrCondition (
    [in] interface IUIAutomationCondition *condition1,
    [in] interface IUIAutomationCondition *condition2,
    [out retval] interface IUIAutomationCondition **newCondition
  );
  HRESULT __stdcall CreateOrConditionFromArray (
    [in] interface IUIAutomationCondition *conditions[],
    [out retval] interface IUIAutomationCondition **newCondition
  );
  HRESULT __stdcall CreateOrConditionFromNativeArray (
    [in] interface IUIAutomationCondition **conditions,
    [in] int conditionCount,
    [out retval] interface IUIAutomationCondition **newCondition
  );
  HRESULT __stdcall CreateNotCondition (
    [in] interface IUIAutomationCondition *condition,
    [out retval] interface IUIAutomationCondition **newCondition
  );
  HRESULT __stdcall AddAutomationEventHandler (
    [in] int eventId,
    [in] interface IUIAutomationElement *element,
    [in] enum TreeScope scope,
    [in] interface IUIAutomationCacheRequest *cacheRequest,
    [in] interface IUIAutomationEventHandler *handler
  );
  HRESULT __stdcall RemoveAutomationEventHandler (
    [in] int eventId,
    [in] interface IUIAutomationElement *element,
    [in] interface IUIAutomationEventHandler *handler
  );
  HRESULT __stdcall AddPropertyChangedEventHandlerNativeArray (
    [in] interface IUIAutomationElement *element,
    [in] enum TreeScope scope,
    [in] interface IUIAutomationCacheRequest *cacheRequest,
    [in] interface IUIAutomationPropertyChangedEventHandler *handler,
    [in] int *propertyArray,
    [in] int propertyCount
  );
  HRESULT __stdcall AddPropertyChangedEventHandler (
    [in] interface IUIAutomationElement *element,
    [in] enum TreeScope scope,
    [in] interface IUIAutomationCacheRequest *cacheRequest,
    [in] interface IUIAutomationPropertyChangedEventHandler *handler,
    [in] int propertyArray[]
  );
  HRESULT __stdcall RemovePropertyChangedEventHandler (
    [in] interface IUIAutomationElement *element,
    [in] interface IUIAutomationPropertyChangedEventHandler *handler
  );
  HRESULT __stdcall AddStructureChangedEventHandler (
    [in] interface IUIAutomationElement *element,
    [in] enum TreeScope scope,
    [in] interface IUIAutomationCacheRequest *cacheRequest,
    [in] interface IUIAutomationStructureChangedEventHandler *handler
  );
  HRESULT __stdcall RemoveStructureChangedEventHandler (
    [in] interface IUIAutomationElement *element,
    [in] interface IUIAutomationStructureChangedEventHandler *handler
  );
  HRESULT __stdcall AddFocusChangedEventHandler (
    [in] interface IUIAutomationCacheRequest *cacheRequest,
    [in] interface IUIAutomationFocusChangedEventHandler *handler
  );
  HRESULT __stdcall RemoveFocusChangedEventHandler (
    [in] interface IUIAutomationFocusChangedEventHandler *handler
  );
  HRESULT __stdcall RemoveAllEventHandlers (void);
  HRESULT __stdcall IntNativeArrayToSafeArray (
    [in] int *array,
    [in] int arrayCount,
    [out retval] int safeArray[]*
  );
  HRESULT __stdcall IntSafeArrayToNativeArray (
    [in] int intArray[],
    [out] int *array,
    [out retval] int *arrayCount
  );
  HRESULT __stdcall RectToVariant (
    [in] struct tagRECT rc,
    [out retval] VARIANT *var
  );
  HRESULT __stdcall VariantToRect (
    [in] VARIANT var,
    [out retval] struct tagRECT *rc
  );
  HRESULT __stdcall SafeArrayToRectNativeArray (
    [in] double rects[],
    [out] struct tagRECT **rectArray,
    [out retval] int *rectArrayCount
  );
  HRESULT __stdcall CreateProxyFactoryEntry (
    [in] interface IUIAutomationProxyFactory *factory,
    [out retval] interface IUIAutomationProxyFactoryEntry **factoryEntry
  );
  [propget]
  HRESULT __stdcall ProxyFactoryMapping (
    [out retval] interface IUIAutomationProxyFactoryMapping **factoryMapping
  );
  HRESULT __stdcall GetPropertyProgrammaticName (
    [in] int property,
    [out retval] BSTR *name
  );
  HRESULT __stdcall GetPatternProgrammaticName (
    [in] int pattern,
    [out retval] BSTR *name
  );
  HRESULT __stdcall PollForPotentialSupportedPatterns (
    [in] interface IUIAutomationElement *pElement,
    [out] int patternIds[]*,
    [out] BSTR patternNames[]*
  );
  HRESULT __stdcall PollForPotentialSupportedProperties (
    [in] interface IUIAutomationElement *pElement,
    [out] int propertyIds[]*,
    [out] BSTR propertyNames[]*
  );
  HRESULT __stdcall CheckNotSupported (
    [in] VARIANT value,
    [out retval] long *isNotSupported
  );
  [propget]
  HRESULT __stdcall ReservedNotSupportedValue (
    [out retval] IUnknown **notSupportedValue
  );
  [propget]
  HRESULT __stdcall ReservedMixedAttributeValue (
    [out retval] IUnknown **mixedAttributeValue
  );
  HRESULT __stdcall ElementFromIAccessible (
    [in] dispinterface IAccessible *accessible,
    [in] int childId,
    [out retval] interface IUIAutomationElement **element
  );
  HRESULT __stdcall ElementFromIAccessibleBuildCache (
    [in] dispinterface IAccessible *accessible,
    [in] int childId,
    [in] interface IUIAutomationCacheRequest *cacheRequest,
    [out retval] interface IUIAutomationElement **element
  );
};

/* Module declarations.  */
module UIA_PatternIds
{
  [id(1073741824)]
  CONST long UIA_InvokePatternId = (int) 201336592;
  CONST long UIA_SelectionPatternId = (int) 201336593;
  CONST long UIA_ValuePatternId = (int) 201336594;
  CONST long UIA_RangeValuePatternId = (int) 201336595;
  CONST long UIA_ScrollPatternId = (int) 201336596;
  CONST long UIA_ExpandCollapsePatternId = (int) 201336597;
  CONST long UIA_GridPatternId = (int) 201336598;
  CONST long UIA_GridItemPatternId = (int) 201336599;
  CONST long UIA_MultipleViewPatternId = (int) 201336600;
  CONST long UIA_WindowPatternId = (int) 201336601;
  CONST long UIA_SelectionItemPatternId = (int) 201336602;
  CONST long UIA_DockPatternId = (int) 201336603;
  CONST long UIA_TablePatternId = (int) 201336604;
  CONST long UIA_TableItemPatternId = (int) 201336605;
  CONST long UIA_TextPatternId = (int) 201336606;
  CONST long UIA_TogglePatternId = (int) 201336607;
  CONST long UIA_TransformPatternId = (int) 201336608;
  CONST long UIA_ScrollItemPatternId = (int) 201336609;
  CONST long UIA_LegacyIAccessiblePatternId = (int) 201336610;
  CONST long UIA_ItemContainerPatternId = (int) 201336611;
  CONST long UIA_VirtualizedItemPatternId = (int) 201336612;
  CONST long UIA_SynchronizedInputPatternId = (int) 201336613;
};
module UIA_EventIds
{
  [id(1073741824)]
  CONST long UIA_ToolTipOpenedEventId = (int) 201346592;
  CONST long UIA_ToolTipClosedEventId = (int) 201346593;
  CONST long UIA_StructureChangedEventId = (int) 201346594;
  CONST long UIA_MenuOpenedEventId = (int) 201346595;
  CONST long UIA_AutomationPropertyChangedEventId = (int) 201346596;
  CONST long UIA_AutomationFocusChangedEventId = (int) 201346597;
  CONST long UIA_AsyncContentLoadedEventId = (int) 201346598;
  CONST long UIA_MenuClosedEventId = (int) 201346599;
  CONST long UIA_LayoutInvalidatedEventId = (int) 201346600;
  CONST long UIA_Invoke_InvokedEventId = (int) 201346601;
  CONST long UIA_SelectionItem_ElementAddedToSelectionEventId = (int) 201346602;
  CONST long UIA_SelectionItem_ElementRemovedFromSelectionEventId = (int) 201346603;
  CONST long UIA_SelectionItem_ElementSelectedEventId = (int) 201346604;
  CONST long UIA_Selection_InvalidatedEventId = (int) 201346605;
  CONST long UIA_Text_TextSelectionChangedEventId = (int) 201346606;
  CONST long UIA_Text_TextChangedEventId = (int) 201346607;
  CONST long UIA_Window_WindowOpenedEventId = (int) 201346608;
  CONST long UIA_Window_WindowClosedEventId = (int) 201346609;
  CONST long UIA_MenuModeStartEventId = (int) 201346610;
  CONST long UIA_MenuModeEndEventId = (int) 201346611;
  CONST long UIA_InputReachedTargetEventId = (int) 201346612;
  CONST long UIA_InputReachedOtherElementEventId = (int) 201346613;
  CONST long UIA_InputDiscardedEventId = (int) 201346614;
};
module UIA_PropertyIds
{
  [id(1073741824)]
  CONST long UIA_RuntimeIdPropertyId = (int) 201356592;
  CONST long UIA_BoundingRectanglePropertyId = (int) 201356593;
  CONST long UIA_ProcessIdPropertyId = (int) 201356594;
  CONST long UIA_ControlTypePropertyId = (int) 201356595;
  CONST long UIA_LocalizedControlTypePropertyId = (int) 201356596;
  CONST long UIA_NamePropertyId = (int) 201356597;
  CONST long UIA_AcceleratorKeyPropertyId = (int) 201356598;
  CONST long UIA_AccessKeyPropertyId = (int) 201356599;
  CONST long UIA_HasKeyboardFocusPropertyId = (int) 201356600;
  CONST long UIA_IsKeyboardFocusablePropertyId = (int) 201356601;
  CONST long UIA_IsEnabledPropertyId = (int) 201356602;
  CONST long UIA_AutomationIdPropertyId = (int) 201356603;
  CONST long UIA_ClassNamePropertyId = (int) 201356604;
  CONST long UIA_HelpTextPropertyId = (int) 201356605;
  CONST long UIA_ClickablePointPropertyId = (int) 201356606;
  CONST long UIA_CulturePropertyId = (int) 201356607;
  CONST long UIA_IsControlElementPropertyId = (int) 201356608;
  CONST long UIA_IsContentElementPropertyId = (int) 201356609;
  CONST long UIA_LabeledByPropertyId = (int) 201356610;
  CONST long UIA_IsPasswordPropertyId = (int) 201356611;
  CONST long UIA_NativeWindowHandlePropertyId = (int) 201356612;
  CONST long UIA_ItemTypePropertyId = (int) 201356613;
  CONST long UIA_IsOffscreenPropertyId = (int) 201356614;
  CONST long UIA_OrientationPropertyId = (int) 201356615;
  CONST long UIA_FrameworkIdPropertyId = (int) 201356616;
  CONST long UIA_IsRequiredForFormPropertyId = (int) 201356617;
  CONST long UIA_ItemStatusPropertyId = (int) 201356618;
  CONST long UIA_IsDockPatternAvailablePropertyId = (int) 201356619;
  CONST long UIA_IsExpandCollapsePatternAvailablePropertyId = (int) 201356620;
  CONST long UIA_IsGridItemPatternAvailablePropertyId = (int) 201356621;
  CONST long UIA_IsGridPatternAvailablePropertyId = (int) 201356622;
  CONST long UIA_IsInvokePatternAvailablePropertyId = (int) 201356623;
  CONST long UIA_IsMultipleViewPatternAvailablePropertyId = (int) 201356624;
  CONST long UIA_IsRangeValuePatternAvailablePropertyId = (int) 201356625;
  CONST long UIA_IsScrollPatternAvailablePropertyId = (int) 201356626;
  CONST long UIA_IsScrollItemPatternAvailablePropertyId = (int) 201356627;
  CONST long UIA_IsSelectionItemPatternAvailablePropertyId = (int) 201356628;
  CONST long UIA_IsSelectionPatternAvailablePropertyId = (int) 201356629;
  CONST long UIA_IsTablePatternAvailablePropertyId = (int) 201356630;
  CONST long UIA_IsTableItemPatternAvailablePropertyId = (int) 201356631;
  CONST long UIA_IsTextPatternAvailablePropertyId = (int) 201356632;
  CONST long UIA_IsTogglePatternAvailablePropertyId = (int) 201356633;
  CONST long UIA_IsTransformPatternAvailablePropertyId = (int) 201356634;
  CONST long UIA_IsValuePatternAvailablePropertyId = (int) 201356635;
  CONST long UIA_IsWindowPatternAvailablePropertyId = (int) 201356636;
  CONST long UIA_ValueValuePropertyId = (int) 201356637;
  CONST long UIA_ValueIsReadOnlyPropertyId = (int) 201356638;
  CONST long UIA_RangeValueValuePropertyId = (int) 201356639;
  CONST long UIA_RangeValueIsReadOnlyPropertyId = (int) 201356640;
  CONST long UIA_RangeValueMinimumPropertyId = (int) 201356641;
  CONST long UIA_RangeValueMaximumPropertyId = (int) 201356642;
  CONST long UIA_RangeValueLargeChangePropertyId = (int) 201356643;
  CONST long UIA_RangeValueSmallChangePropertyId = (int) 201356644;
  CONST long UIA_ScrollHorizontalScrollPercentPropertyId = (int) 201356645;
  CONST long UIA_ScrollHorizontalViewSizePropertyId = (int) 201356646;
  CONST long UIA_ScrollVerticalScrollPercentPropertyId = (int) 201356647;
  CONST long UIA_ScrollVerticalViewSizePropertyId = (int) 201356648;
  CONST long UIA_ScrollHorizontallyScrollablePropertyId = (int) 201356649;
  CONST long UIA_ScrollVerticallyScrollablePropertyId = (int) 201356650;
  CONST long UIA_SelectionSelectionPropertyId = (int) 201356651;
  CONST long UIA_SelectionCanSelectMultiplePropertyId = (int) 201356652;
  CONST long UIA_SelectionIsSelectionRequiredPropertyId = (int) 201356653;
  CONST long UIA_GridRowCountPropertyId = (int) 201356654;
  CONST long UIA_GridColumnCountPropertyId = (int) 201356655;
  CONST long UIA_GridItemRowPropertyId = (int) 201356656;
  CONST long UIA_GridItemColumnPropertyId = (int) 201356657;
  CONST long UIA_GridItemRowSpanPropertyId = (int) 201356658;
  CONST long UIA_GridItemColumnSpanPropertyId = (int) 201356659;
  CONST long UIA_GridItemContainingGridPropertyId = (int) 201356660;
  CONST long UIA_DockDockPositionPropertyId = (int) 201356661;
  CONST long UIA_ExpandCollapseExpandCollapseStatePropertyId = (int) 201356662;
  CONST long UIA_MultipleViewCurrentViewPropertyId = (int) 201356663;
  CONST long UIA_MultipleViewSupportedViewsPropertyId = (int) 201356664;
  CONST long UIA_WindowCanMaximizePropertyId = (int) 201356665;
  CONST long UIA_WindowCanMinimizePropertyId = (int) 201356666;
  CONST long UIA_WindowWindowVisualStatePropertyId = (int) 201356667;
  CONST long UIA_WindowWindowInteractionStatePropertyId = (int) 201356668;
  CONST long UIA_WindowIsModalPropertyId = (int) 201356669;
  CONST long UIA_WindowIsTopmostPropertyId = (int) 201356670;
  CONST long UIA_SelectionItemIsSelectedPropertyId = (int) 201356671;
  CONST long UIA_SelectionItemSelectionContainerPropertyId = (int) 201356672;
  CONST long UIA_TableRowHeadersPropertyId = (int) 201356673;
  CONST long UIA_TableColumnHeadersPropertyId = (int) 201356674;
  CONST long UIA_TableRowOrColumnMajorPropertyId = (int) 201356675;
  CONST long UIA_TableItemRowHeaderItemsPropertyId = (int) 201356676;
  CONST long UIA_TableItemColumnHeaderItemsPropertyId = (int) 201356677;
  CONST long UIA_ToggleToggleStatePropertyId = (int) 201356678;
  CONST long UIA_TransformCanMovePropertyId = (int) 201356679;
  CONST long UIA_TransformCanResizePropertyId = (int) 201356680;
  CONST long UIA_TransformCanRotatePropertyId = (int) 201356681;
  CONST long UIA_IsLegacyIAccessiblePatternAvailablePropertyId = (int) 201356682;
  CONST long UIA_LegacyIAccessibleChildIdPropertyId = (int) 201356683;
  CONST long UIA_LegacyIAccessibleNamePropertyId = (int) 201356684;
  CONST long UIA_LegacyIAccessibleValuePropertyId = (int) 201356685;
  CONST long UIA_LegacyIAccessibleDescriptionPropertyId = (int) 201356686;
  CONST long UIA_LegacyIAccessibleRolePropertyId = (int) 201356687;
  CONST long UIA_LegacyIAccessibleStatePropertyId = (int) 201356688;
  CONST long UIA_LegacyIAccessibleHelpPropertyId = (int) 201356689;
  CONST long UIA_LegacyIAccessibleKeyboardShortcutPropertyId = (int) 201356690;
  CONST long UIA_LegacyIAccessibleSelectionPropertyId = (int) 201356691;
  CONST long UIA_LegacyIAccessibleDefaultActionPropertyId = (int) 201356692;
  CONST long UIA_AriaRolePropertyId = (int) 201356693;
  CONST long UIA_AriaPropertiesPropertyId = (int) 201356694;
  CONST long UIA_IsDataValidForFormPropertyId = (int) 201356695;
  CONST long UIA_ControllerForPropertyId = (int) 201356696;
  CONST long UIA_DescribedByPropertyId = (int) 201356697;
  CONST long UIA_FlowsToPropertyId = (int) 201356698;
  CONST long UIA_ProviderDescriptionPropertyId = (int) 201356699;
  CONST long UIA_IsItemContainerPatternAvailablePropertyId = (int) 201356700;
  CONST long UIA_IsVirtualizedItemPatternAvailablePropertyId = (int) 201356701;
  CONST long UIA_IsSynchronizedInputPatternAvailablePropertyId = (int) 201356702;
};
module UIA_TextAttributeIds
{
  [id(1073741824)]
  CONST long UIA_AnimationStyleAttributeId = (int) 201366592;
  CONST long UIA_BackgroundColorAttributeId = (int) 201366593;
  CONST long UIA_BulletStyleAttributeId = (int) 201366594;
  CONST long UIA_CapStyleAttributeId = (int) 201366595;
  CONST long UIA_CultureAttributeId = (int) 201366596;
  CONST long UIA_FontNameAttributeId = (int) 201366597;
  CONST long UIA_FontSizeAttributeId = (int) 201366598;
  CONST long UIA_FontWeightAttributeId = (int) 201366599;
  CONST long UIA_ForegroundColorAttributeId = (int) 201366600;
  CONST long UIA_HorizontalTextAlignmentAttributeId = (int) 201366601;
  CONST long UIA_IndentationFirstLineAttributeId = (int) 201366602;
  CONST long UIA_IndentationLeadingAttributeId = (int) 201366603;
  CONST long UIA_IndentationTrailingAttributeId = (int) 201366604;
  CONST long UIA_IsHiddenAttributeId = (int) 201366605;
  CONST long UIA_IsItalicAttributeId = (int) 201366606;
  CONST long UIA_IsReadOnlyAttributeId = (int) 201366607;
  CONST long UIA_IsSubscriptAttributeId = (int) 201366608;
  CONST long UIA_IsSuperscriptAttributeId = (int) 201366609;
  CONST long UIA_MarginBottomAttributeId = (int) 201366610;
  CONST long UIA_MarginLeadingAttributeId = (int) 201366611;
  CONST long UIA_MarginTopAttributeId = (int) 201366612;
  CONST long UIA_MarginTrailingAttributeId = (int) 201366613;
  CONST long UIA_OutlineStylesAttributeId = (int) 201366614;
  CONST long UIA_OverlineColorAttributeId = (int) 201366615;
  CONST long UIA_OverlineStyleAttributeId = (int) 201366616;
  CONST long UIA_StrikethroughColorAttributeId = (int) 201366617;
  CONST long UIA_StrikethroughStyleAttributeId = (int) 201366618;
  CONST long UIA_TabsAttributeId = (int) 201366619;
  CONST long UIA_TextFlowDirectionsAttributeId = (int) 201366620;
  CONST long UIA_UnderlineColorAttributeId = (int) 201366621;
  CONST long UIA_UnderlineStyleAttributeId = (int) 201366622;
};
module UIA_ControlTypeIds
{
  [id(1073741824)]
  CONST long UIA_ButtonControlTypeId = (int) 201376592;
  CONST long UIA_CalendarControlTypeId = (int) 201376593;
  CONST long UIA_CheckBoxControlTypeId = (int) 201376594;
  CONST long UIA_ComboBoxControlTypeId = (int) 201376595;
  CONST long UIA_EditControlTypeId = (int) 201376596;
  CONST long UIA_HyperlinkControlTypeId = (int) 201376597;
  CONST long UIA_ImageControlTypeId = (int) 201376598;
  CONST long UIA_ListItemControlTypeId = (int) 201376599;
  CONST long UIA_ListControlTypeId = (int) 201376600;
  CONST long UIA_MenuControlTypeId = (int) 201376601;
  CONST long UIA_MenuBarControlTypeId = (int) 201376602;
  CONST long UIA_MenuItemControlTypeId = (int) 201376603;
  CONST long UIA_ProgressBarControlTypeId = (int) 201376604;
  CONST long UIA_RadioButtonControlTypeId = (int) 201376605;
  CONST long UIA_ScrollBarControlTypeId = (int) 201376606;
  CONST long UIA_SliderControlTypeId = (int) 201376607;
  CONST long UIA_SpinnerControlTypeId = (int) 201376608;
  CONST long UIA_StatusBarControlTypeId = (int) 201376609;
  CONST long UIA_TabControlTypeId = (int) 201376610;
  CONST long UIA_TabItemControlTypeId = (int) 201376611;
  CONST long UIA_TextControlTypeId = (int) 201376612;
  CONST long UIA_ToolBarControlTypeId = (int) 201376613;
  CONST long UIA_ToolTipControlTypeId = (int) 201376614;
  CONST long UIA_TreeControlTypeId = (int) 201376615;
  CONST long UIA_TreeItemControlTypeId = (int) 201376616;
  CONST long UIA_CustomControlTypeId = (int) 201376617;
  CONST long UIA_GroupControlTypeId = (int) 201376618;
  CONST long UIA_ThumbControlTypeId = (int) 201376619;
  CONST long UIA_DataGridControlTypeId = (int) 201376620;
  CONST long UIA_DataItemControlTypeId = (int) 201376621;
  CONST long UIA_DocumentControlTypeId = (int) 201376622;
  CONST long UIA_SplitButtonControlTypeId = (int) 201376623;
  CONST long UIA_WindowControlTypeId = (int) 201376624;
  CONST long UIA_PaneControlTypeId = (int) 201376625;
  CONST long UIA_HeaderControlTypeId = (int) 201376626;
  CONST long UIA_HeaderItemControlTypeId = (int) 201376627;
  CONST long UIA_TableControlTypeId = (int) 201376628;
  CONST long UIA_TitleBarControlTypeId = (int) 201376629;
  CONST long UIA_SeparatorControlTypeId = (int) 201376630;
};