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
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456
3457
3458
3459
3460
3461
3462
3463
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484
3485
3486
3487
3488
3489
3490
3491
3492
3493
3494
3495
3496
3497
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511
3512
3513
3514
3515
3516
3517
3518
3519
3520
3521
3522
3523
3524
3525
3526
3527
3528
3529
3530
3531
3532
3533
3534
3535
3536
3537
3538
3539
3540
3541
3542
3543
3544
3545
3546
3547
3548
3549
3550
3551
3552
3553
3554
3555
3556
3557
3558
3559
3560
3561
3562
3563
3564
3565
3566
3567
3568
3569
3570
3571
3572
3573
3574
3575
3576
3577
3578
3579
3580
3581
3582
3583
3584
3585
3586
3587
3588
3589
3590
3591
3592
3593
3594
3595
3596
3597
3598
3599
3600
3601
3602
3603
3604
3605
3606
3607
3608
3609
3610
3611
3612
3613
3614
3615
3616
3617
3618
3619
3620
3621
3622
3623
3624
3625
3626
3627
3628
3629
3630
3631
3632
3633
3634
3635
3636
3637
3638
3639
3640
3641
3642
3643
3644
3645
3646
3647
3648
3649
3650
3651
3652
3653
3654
3655
3656
3657
3658
3659
3660
3661
3662
3663
3664
3665
3666
3667
3668
3669
3670
3671
3672
3673
3674
3675
3676
3677
3678
3679
3680
3681
3682
3683
3684
3685
3686
3687
3688
3689
3690
3691
3692
3693
3694
3695
3696
3697
3698
3699
3700
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710
3711
3712
3713
3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
3724
3725
3726
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088
4089
4090
4091
4092
4093
4094
4095
4096
4097
4098
4099
4100
4101
4102
4103
4104
4105
4106
4107
4108
4109
4110
4111
4112
4113
4114
4115
4116
4117
4118
4119
4120
4121
4122
4123
4124
4125
4126
4127
4128
4129
4130
4131
4132
4133
4134
4135
4136
4137
4138
4139
4140
4141
4142
4143
4144
4145
4146
4147
4148
4149
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
4270
4271
4272
4273
4274
4275
4276
4277
4278
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293
4294
4295
4296
4297
4298
4299
4300
4301
4302
4303
4304
4305
4306
4307
4308
4309
4310
4311
4312
4313
4314
4315
4316
4317
4318
4319
4320
4321
4322
4323
4324
4325
4326
4327
4328
4329
4330
4331
4332
4333
4334
4335
4336
4337
4338
4339
4340
4341
4342
4343
4344
4345
4346
4347
4348
4349
4350
4351
4352
4353
4354
4355
4356
4357
4358
4359
4360
4361
4362
4363
4364
4365
4366
4367
4368
4369
4370
4371
4372
4373
4374
4375
4376
4377
4378
4379
4380
4381
4382
4383
4384
4385
4386
4387
4388
4389
4390
4391
4392
4393
4394
4395
4396
4397
4398
4399
4400
4401
4402
4403
4404
4405
4406
4407
4408
4409
4410
4411
4412
4413
4414
4415
4416
4417
4418
4419
4420
4421
4422
4423
4424
4425
4426
4427
4428
4429
4430
4431
4432
4433
4434
4435
4436
4437
4438
4439
4440
4441
4442
4443
4444
4445
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463
4464
4465
4466
4467
4468
4469
4470
4471
4472
4473
4474
4475
4476
4477
4478
4479
4480
4481
4482
4483
4484
4485
4486
4487
4488
4489
4490
4491
4492
4493
4494
4495
4496
4497
4498
4499
4500
4501
4502
4503
4504
4505
4506
4507
4508
4509
4510
4511
4512
4513
4514
4515
4516
4517
4518
4519
4520
4521
4522
4523
4524
4525
4526
4527
4528
4529
4530
4531
4532
4533
4534
4535
4536
4537
4538
4539
4540
4541
4542
4543
4544
4545
4546
4547
4548
4549
4550
4551
4552
4553
4554
4555
4556
4557
4558
4559
4560
4561
4562
4563
4564
4565
4566
4567
4568
4569
4570
4571
4572
4573
4574
4575
4576
4577
4578
4579
4580
4581
4582
4583
4584
4585
4586
4587
4588
4589
4590
4591
4592
4593
4594
4595
4596
4597
4598
4599
4600
4601
4602
4603
4604
4605
4606
4607
4608
4609
4610
4611
4612
4613
4614
4615
4616
4617
4618
4619
4620
4621
4622
4623
4624
4625
4626
4627
4628
4629
4630
4631
4632
4633
4634
4635
4636
4637
4638
4639
4640
4641
4642
4643
4644
4645
4646
4647
4648
4649
4650
4651
4652
4653
4654
4655
4656
4657
4658
4659
4660
4661
4662
4663
4664
4665
4666
4667
4668
4669
4670
4671
4672
4673
4674
4675
4676
4677
4678
4679
4680
4681
4682
4683
4684
4685
4686
4687
4688
4689
4690
4691
4692
4693
4694
4695
4696
4697
4698
4699
4700
4701
4702
4703
4704
4705
4706
4707
4708
4709
4710
4711
4712
4713
4714
4715
4716
4717
4718
4719
4720
4721
4722
4723
4724
4725
4726
4727
4728
4729
4730
4731
4732
4733
4734
4735
4736
4737
4738
4739
4740
4741
4742
4743
4744
4745
4746
4747
4748
4749
4750
4751
4752
4753
4754
4755
4756
4757
4758
4759
4760
4761
4762
4763
4764
4765
4766
4767
4768
4769
4770
4771
4772
4773
4774
4775
4776
4777
4778
4779
4780
4781
4782
4783
4784
4785
4786
4787
4788
4789
4790
4791
4792
4793
4794
4795
4796
4797
4798
4799
4800
4801
4802
4803
4804
4805
4806
4807
4808
4809
4810
4811
4812
4813
4814
4815
4816
4817
4818
4819
4820
4821
4822
4823
4824
4825
4826
4827
4828
4829
4830
4831
4832
4833
4834
4835
4836
4837
4838
4839
4840
4841
4842
4843
4844
4845
4846
4847
4848
4849
4850
4851
4852
4853
4854
4855
4856
4857
4858
4859
4860
4861
4862
4863
4864
4865
4866
4867
4868
4869
4870
4871
4872
4873
4874
4875
4876
4877
4878
4879
4880
4881
4882
4883
4884
4885
4886
4887
4888
4889
4890
4891
4892
4893
4894
4895
4896
4897
4898
4899
4900
4901
4902
4903
4904
4905
4906
4907
4908
4909
4910
4911
4912
4913
4914
4915
4916
4917
4918
4919
4920
4921
4922
4923
4924
4925
4926
4927
4928
4929
4930
4931
4932
4933
4934
4935
4936
4937
4938
4939
4940
4941
4942
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972
4973
4974
4975
4976
4977
4978
4979
4980
4981
4982
4983
4984
4985
4986
4987
4988
4989
4990
4991
4992
4993
4994
4995
4996
4997
4998
4999
5000
5001
5002
5003
5004
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034
5035
5036
5037
5038
5039
5040
5041
5042
5043
5044
5045
5046
5047
5048
5049
5050
5051
5052
5053
5054
5055
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065
5066
5067
5068
5069
|
/*
Defines.h
Windows32 API definitions
Copyright (C) 1996 Free Software Foundation, Inc.
Author: Scott Christley <scottc@net-community.com>
This file is part of the Windows32 API Library.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Library General Public License for more details.
If you are interested in a warranty or support for this source code,
contact Scott Christley <scottc@net-community.com> for more information.
You should have received a copy of the GNU Library General Public
License along with this library; see the file COPYING.LIB.
If not, write to the Free Software Foundation,
59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
/* WARNING: This file is automatically generated. */
#ifndef _GNU_H_WINDOWS32_DEFINES
#define _GNU_H_WINDOWS32_DEFINES
#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */
#define MAX_PATH (260)
#define UNICODE_NULL ((WCHAR)0)
#define LF_FACESIZE (32)
#define LF_FULLFACESIZE (64)
#define ELF_VENDOR_SIZE (4)
#define SECURITY_STATIC_TRACKING (0)
#define SECURITY_DYNAMIC_TRACKING (1)
#define MAX_DEFAULTCHAR (2)
#define MAX_LEADBYTES (12)
#define EXCEPTION_MAXIMUM_PARAMETERS (15)
#define CCHDEVICENAME (32)
#define CCHFORMNAME (32)
#define MENU_TEXT_LEN (40)
#define MAX_LANA (254)
#define NCBNAMSZ (16)
#define NETBIOS_NAME_LEN (16)
#define OFS_MAXPATHNAME (128)
#define MAX_TAB_STOPS (32)
#define ANYSIZE_ARRAY (1)
#define RAS_MaxCallbackNumber (128)
#define RAS_MaxDeviceName (128)
#define RAS_MaxDeviceType (16)
#define RAS_MaxEntryName (256)
#define RAS_MaxIpAddress (15)
#define RAS_MaxIpxAddress (21)
#define RAS_MaxPhoneNumber (128)
#define UNLEN (256)
#define PWLEN (256)
#define CNLEN (15)
#define DNLEN (15)
/* Unsigned types max */
#define MAXDWORD (0xFFFFFFFF)
#define MAXWORD (0xFFFF)
#define MAXBYTE (0xFF)
/* Signed types max/min */
#define MINCHAR (0x80)
#define MAXCHAR (0x7F)
#define MINSHORT (0x8000)
#define MAXSHORT (0x7FFF)
#define MINLONG (0x80000000)
#define MAXLONG (0x7FFFFFFF)
/* _llseek */
#define FILE_BEGIN (0)
#define FILE_CURRENT (1)
#define FILE_END (2)
/* _lopen, LZOpenFile, OpenFile */
#define OF_READ (0)
#define OF_READWRITE (2)
#define OF_WRITE (1)
#define OF_SHARE_COMPAT (0)
#define OF_SHARE_DENY_NONE (64)
#define OF_SHARE_DENY_READ (48)
#define OF_SHARE_DENY_WRITE (32)
#define OF_SHARE_EXCLUSIVE (16)
#define OF_CANCEL (2048)
#define OF_CREATE (4096)
#define OF_DELETE (512)
#define OF_EXIST (16384)
#define OF_PARSE (256)
#define OF_PROMPT (8192)
#define OF_REOPEN (32768)
#define OF_VERIFY (1024)
/* ActivateKeyboardLayout, LoadKeyboardLayout */
#define HKL_NEXT (1)
#define HKL_PREV (0)
#define KLF_REORDER (8)
#define KLF_UNLOADPREVIOUS (4)
#define KLF_ACTIVATE (1)
#define KLF_NOTELLSHELL (128)
#define KLF_REPLACELANG (16)
#define KLF_SUBSTITUTE_OK (2)
/* AppendMenu */
#define MF_BITMAP (0x4L)
#define MF_DISABLED (0x2L)
#define MF_ENABLED (0L)
#define MF_GRAYED (0x1L)
#define MF_HELP (0x4000L)
#define MF_MENUBARBREAK (0x20L)
#define MF_MENUBREAK (0x40L)
#define MF_MOUSESELECT (0x8000L)
#define MF_OWNERDRAW (0x100L)
#define MF_POPUP (0x10L)
#define MF_SEPARATOR (0x800L)
#define MF_STRING (0L)
#define MF_SYSMENU (0x2000L)
#define MF_USECHECKBITMAPS (0x200L)
/* Ternary Raster Operations - BitBlt */
#define BLACKNESS 0x00000042
#define NOTSRCERASE 0x001100A6
#define NOTSRCCOPY 0x00330008
#define SRCERASE 0x00440328
#define DSTINVERT 0x00550009
#define PATINVERT 0x005A0049
#define SRCINVERT 0x00660046
#define SRCAND 0x008800C6
#define MERGEPAINT 0x00BB0226
#define MERGECOPY 0x00C000CA
#define SRCCOPY 0x00CC0020
#define SRCPAINT 0x00EE0086
#define PATCOPY 0x00F00021
#define PATPAINT 0x00FB0A09
#define WHITENESS 0x00FF0062
/* Binary Raster Operations */
#define R2_BLACK (1)
#define R2_COPYPEN (13)
#define R2_MASKNOTPEN (3)
#define R2_MASKPEN (9)
#define R2_MASKPENNOT (5)
#define R2_MERGENOTPEN (12)
#define R2_MERGEPEN (15)
#define R2_MERGEPENNOT (14)
#define R2_NOP (11)
#define R2_NOT (6)
#define R2_NOTCOPYPEN (4)
#define R2_NOTMASKPEN (8)
#define R2_NOTMERGEPEN (2)
#define R2_NOTXORPEN (10)
#define R2_WHITE (16)
#define R2_XORPEN (7)
/* BroadcastSystemMessage */
#define BSF_FLUSHDISK (4)
#define BSF_FORCEIFHUNG (32)
#define BSF_IGNORECURRENTTASK (2)
#define BSF_NOHANG (8)
#define BSF_POSTMESSAGE (16)
#define BSF_QUERY (1)
#define BSM_ALLCOMPONENTS (0)
#define BSM_APPLICATIONS (8)
#define BSM_INSTALLABLEDRIVERS (4)
#define BSM_NETDRIVER (2)
#define BSM_VXDS (1)
#define BROADCAST_QUERY_DENY (1112363332)
/* BrowseCallbackProc */
/* CallNamedPipe */
#define NMPWAIT_NOWAIT (1)
#define NMPWAIT_WAIT_FOREVER (-1)
#define NMPWAIT_USE_DEFAULT_WAIT (0)
/* CascadeWindows, TileWindows */
#define MDITILE_SKIPDISABLED (2)
#define MDITILE_HORIZONTAL (1)
#define MDITILE_VERTICAL (0)
/* CBTProc */
#define HCBT_ACTIVATE (5)
#define HCBT_CLICKSKIPPED (6)
#define HCBT_CREATEWND (3)
#define HCBT_DESTROYWND (4)
#define HCBT_KEYSKIPPED (7)
#define HCBT_MINMAX (1)
#define HCBT_MOVESIZE (0)
#define HCBT_QS (2)
#define HCBT_SETFOCUS (9)
#define HCBT_SYSCOMMAND (8)
/* ChangeDisplaySettings */
#define DM_BITSPERPEL (0x40000L)
#define DM_PELSWIDTH (0x80000L)
#define DM_PELSHEIGHT (0x100000L)
#define DM_DISPLAYFLAGS (0x200000L)
#define DM_DISPLAYFREQUENCY (0x400000L)
#define CDS_UPDATEREGISTRY (1)
#define CDS_TEST (2)
#define DISP_CHANGE_SUCCESSFUL (0)
#define DISP_CHANGE_RESTART (1)
#define DISP_CHANGE_BADFLAGS (-4)
#define DISP_CHANGE_FAILED (-1)
#define DISP_CHANGE_BADMODE (-2)
#define DISP_CHANGE_NOTUPDATED (-3)
/* ChangeServiceConfig */
#define SERVICE_NO_CHANGE (-1)
#define SERVICE_WIN32_OWN_PROCESS (16)
#define SERVICE_WIN32_SHARE_PROCESS (32)
#define SERVICE_KERNEL_DRIVER (1)
#define SERVICE_FILE_SYSTEM_DRIVER (2)
#define SERVICE_INTERACTIVE_PROCESS (256)
#define SERVICE_BOOT_START (0)
#define SERVICE_SYSTEM_START (1)
#define SERVICE_AUTO_START (2)
#define SERVICE_DEMAND_START (3)
#define SERVICE_DISABLED (4)
/* SERVICE_STATUS structure */
#define SERVICE_STOPPED (1)
#define SERVICE_START_PENDING (2)
#define SERVICE_STOP_PENDING (3)
#define SERVICE_RUNNING (4)
#define SERVICE_CONTINUE_PENDING (5)
#define SERVICE_PAUSE_PENDING (6)
#define SERVICE_PAUSED (7)
#define SERVICE_ACCEPT_STOP (1)
#define SERVICE_ACCEPT_PAUSE_CONTINUE (2)
#define SERVICE_ACCEPT_SHUTDOWN (4)
/* CheckDlgButton */
#define BST_CHECKED (1)
#define BST_INDETERMINATE (2)
#define BST_UNCHECKED (0)
#define BST_FOCUS (8)
#define BST_PUSHED (4)
/* CheckMenuItem, HiliteMenuItem */
#define MF_BYCOMMAND (0L)
#define MF_BYPOSITION (0x400L)
#define MF_CHECKED (0x8L)
#define MF_UNCHECKED (0L)
#define MF_HILITE (0x80L)
#define MF_UNHILITE (0L)
/* ChildWindowFromPointEx */
#define CWP_ALL (0)
#define CWP_SKIPINVISIBLE (1)
#define CWP_SKIPDISABLED (2)
#define CWP_SKIPTRANSPARENT (4)
/* ClearCommError */
#define CE_BREAK (16)
#define CE_DNS (2048)
#define CE_FRAME (8)
#define CE_IOE (1024)
#define CE_MODE (32768)
#define CE_OOP (4096)
#define CE_OVERRUN (2)
#define CE_PTO (512)
#define CE_RXOVER (1)
#define CE_RXPARITY (4)
#define CE_TXFULL (256)
/* ChooseMatchToTarget */
/* CombineRgn */
#define RGN_AND (1)
#define RGN_COPY (5)
#define RGN_DIFF (4)
#define RGN_OR (2)
#define RGN_XOR (3)
#define NULLREGION (1)
#define SIMPLEREGION (2)
#define COMPLEXREGION (3)
#define ERROR (0)
/* CommonDlgExtendedError */
/* CompareString, LCMapString */
#define LOCALE_SYSTEM_DEFAULT (0x800L)
#define LOCALE_USER_DEFAULT (0x400L)
#define NORM_IGNORECASE (1)
#define NORM_IGNOREKANATYPE (65536)
#define NORM_IGNORENONSPACE (2)
#define NORM_IGNORESYMBOLS (4)
#define NORM_IGNOREWIDTH (131072)
#define SORT_STRINGSORT (4096)
#define LCMAP_BYTEREV (2048)
#define LCMAP_FULLWIDTH (8388608)
#define LCMAP_HALFWIDTH (4194304)
#define LCMAP_HIRAGANA (1048576)
#define LCMAP_KATAKANA (2097152)
#define LCMAP_LOWERCASE (256)
#define LCMAP_SORTKEY (1024)
#define LCMAP_UPPERCASE (512)
/* ContinueDebugEvent */
#define DBG_CONTINUE (0x10002L)
#define DBG_CONTROL_BREAK (0x40010008L)
#define DBG_CONTROL_C (0x40010005L)
#define DBG_EXCEPTION_NOT_HANDLED (0x80010001L)
#define DBG_TERMINATE_THREAD (0x40010003L)
#define DBG_TERMINATE_PROCESS (0x40010004L)
/* ControlService */
#define SERVICE_CONTROL_STOP (1)
#define SERVICE_CONTROL_PAUSE (2)
#define SERVICE_CONTROL_CONTINUE (3)
#define SERVICE_CONTROL_INTERROGATE (4)
#define SERVICE_CONTROL_SHUTDOWN (5)
/* CopyImage, LoadImage */
#define IMAGE_BITMAP (0)
#define IMAGE_CURSOR (2)
#define IMAGE_ENHMETAFILE (1)
#define IMAGE_ICON (1)
#define LR_COPYDELETEORG (8)
#define LR_COPYRETURNORG (4)
#define LR_MONOCHROME (1)
#define LR_CREATEDIBSECTION (8192)
#define LR_DEFAULTSIZE (64)
/* CreateDesktop */
#define DF_ALLOWOTHERACCOUNTHOOK (0x1L)
#define DESKTOP_CREATEMENU (0x4L)
#define DESKTOP_CREATEWINDOW (0x2L)
#define DESKTOP_ENUMERATE (0x40L)
#define DESKTOP_HOOKCONTROL (0x8L)
#define DESKTOP_JOURNALPLAYBACK (0x20L)
#define DESKTOP_JOURNALRECORD (0x10L)
#define DESKTOP_READOBJECTS (0x1L)
#define DESKTOP_SWITCHDESKTOP (0x100L)
#define DESKTOP_WRITEOBJECTS (0x80L)
#define WSF_VISIBLE (0x1L)
/* CreateDIBitmap */
#define CBM_INIT (0x4L)
#define DIB_PAL_COLORS (1)
#define DIB_RGB_COLORS (0)
/* CreateFile, GetFileAttributes, SetFileAttributes */
#define GENERIC_READ (0x80000000L)
#define GENERIC_WRITE (0x40000000L)
#define FILE_SHARE_DELETE (4)
#define FILE_SHARE_READ (1)
#define FILE_SHARE_WRITE (2)
#define CONSOLE_TEXTMODE_BUFFER (1)
#define CREATE_NEW (1)
#define CREATE_ALWAYS (2)
#define OPEN_EXISTING (3)
#define OPEN_ALWAYS (4)
#define TRUNCATE_EXISTING (5)
#define FILE_ATTRIBUTE_ARCHIVE (32)
#define FILE_ATTRIBUTE_COMPRESSED (2048)
#define FILE_ATTRIBUTE_NORMAL (128)
#define FILE_ATTRIBUTE_DIRECTORY (16)
#define FILE_ATTRIBUTE_HIDDEN (2)
#define FILE_ATTRIBUTE_READONLY (1)
#define FILE_ATTRIBUTE_SYSTEM (4)
#define FILE_ATTRIBUTE_TEMPORARY (256)
#define FILE_FLAG_WRITE_THROUGH (2147483648)
#define FILE_FLAG_OVERLAPPED (1073741824)
#define FILE_FLAG_NO_BUFFERING (536870912)
#define FILE_FLAG_RANDOM_ACCESS (268435456)
#define FILE_FLAG_SEQUENTIAL_SCAN (134217728)
#define FILE_FLAG_DELETE_ON_CLOSE (67108864)
#define FILE_FLAG_BACKUP_SEMANTICS (33554432)
#define FILE_FLAG_POSIX_SEMANTICS (16777216)
#define SECURITY_ANONYMOUS (0)
#define SECURITY_IDENTIFICATION (65536)
#define SECURITY_IMPERSONATION (131072)
#define SECURITY_DELEGATION (196608)
#define SECURITY_CONTEXT_TRACKING (262144)
#define SECURITY_EFFECTIVE_ONLY (524288)
#define SECURITY_SQOS_PRESENT (1048576)
/* CreateFileMapping, VirtualAlloc, VirtualFree, VirtualProtect */
#define SEC_COMMIT (134217728)
#define SEC_IMAGE (16777216)
#define SEC_NOCACHE (268435456)
#define SEC_RESERVE (67108864)
#define PAGE_READONLY (2)
#define PAGE_READWRITE (4)
#define PAGE_WRITECOPY (8)
#define PAGE_EXECUTE (16)
#define PAGE_EXECUTE_READ (32)
#define PAGE_EXECUTE_READWRITE (64)
#define PAGE_EXECUTE_WRITECOPY (128)
#define PAGE_GUARD (256)
#define PAGE_NOACCESS (1)
#define PAGE_NOCACHE (512)
#define MEM_COMMIT (4096)
#define MEM_FREE (65536)
#define MEM_RESERVE (8192)
#define MEM_IMAGE (16777216)
#define MEM_MAPPED (262144)
#define MEM_PRIVATE (131072)
#define MEM_DECOMMIT (16384)
#define MEM_RELEASE (32768)
#define MEM_TOP_DOWN (1048576)
#define EXCEPTION_GUARD_PAGE (0x80000001L)
#define SECTION_EXTEND_SIZE (0x10)
#define SECTION_MAP_READ (0x4)
#define SECTION_MAP_WRITE (0x2)
#define SECTION_QUERY (0x1)
#define SECTION_ALL_ACCESS (0xf001fL)
/* CreateFont */
#define FW_DONTCARE (0)
#define FW_THIN (100)
#define FW_EXTRALIGHT (200)
#define FW_LIGHT (300)
#define FW_NORMAL (400)
#define FW_REGULAR FW_NORMAL
#define FW_MEDIUM (500)
#define FW_SEMIBOLD (600)
#define FW_BOLD (700)
#define FW_EXTRABOLD (800)
#define FW_HEAVY (900)
#define ANSI_CHARSET (0)
#define DEFAULT_CHARSET (1)
#define SYMBOL_CHARSET (2)
#define SHIFTJIS_CHARSET (128)
#define HANGEUL_CHARSET (129)
#define GB2312_CHARSET (134)
#define CHINESEBIG5_CHARSET (136)
#define GREEK_CHARSET (161)
#define TURKISH_CHARSET (162)
#define HEBREW_CHARSET (177)
#define ARABIC_CHARSET (178)
#define BALTIC_CHARSET (186)
#define RUSSIAN_CHARSET (204)
#define THAI_CHARSET (222)
#define EASTEUROPE_CHARSET (238)
#define OEM_CHARSET (255)
#define OUT_DEFAULT_PRECIS (0)
#define OUT_STRING_PRECIS (1)
#define OUT_CHARACTER_PRECIS (2)
#define OUT_STROKE_PRECIS (3)
#define OUT_TT_PRECIS (4)
#define OUT_DEVICE_PRECIS (5)
#define OUT_RASTER_PRECIS (6)
#define OUT_TT_ONLY_PRECIS (7)
#define OUT_OUTLINE_PRECIS (8)
#define CLIP_DEFAULT_PRECIS (0)
#define CLIP_CHARACTER_PRECIS (1)
#define CLIP_STROKE_PRECIS (2)
#define CLIP_MASK (15)
#define CLIP_LH_ANGLES (16)
#define CLIP_TT_ALWAYS (32)
#define CLIP_EMBEDDED (128)
#define DEFAULT_QUALITY (0)
#define DRAFT_QUALITY (1)
#define PROOF_QUALITY (2)
#define DEFAULT_PITCH (0)
#define FIXED_PITCH (1)
#define VARIABLE_PITCH (2)
#define FF_DECORATIVE (80)
#define FF_DONTCARE (0)
#define FF_MODERN (48)
#define FF_ROMAN (16)
#define FF_SCRIPT (64)
#define FF_SWISS (32)
/* CreateHatchBrush */
#define HS_BDIAGONAL (3)
#define HS_CROSS (4)
#define HS_DIAGCROSS (5)
#define HS_FDIAGONAL (2)
#define HS_HORIZONTAL (0)
#define HS_VERTICAL (1)
/* CreateIconFromResourceEx */
#define LR_DEFAULTCOLOR (0)
#define LR_LOADREALSIZE (128)
#define LR_MONOCHROME (1)
/* CreateMailslot, GetMailslotInfo */
#define MAILSLOT_WAIT_FOREVER (0xffffffffL)
#define MAILSLOT_NO_MESSAGE (0xffffffffL)
/* CreateMappedBitmap */
#define CMB_MASKED (2)
/* CreateNamedPipe */
#define PIPE_ACCESS_DUPLEX (3)
#define PIPE_ACCESS_INBOUND (1)
#define PIPE_ACCESS_OUTBOUND (2)
#define WRITE_DAC (0x40000L)
#define WRITE_OWNER (0x80000L)
#define ACCESS_SYSTEM_SECURITY (0x1000000L)
#define PIPE_TYPE_BYTE (0)
#define PIPE_TYPE_MESSAGE (4)
#define PIPE_READMODE_BYTE (0)
#define PIPE_READMODE_MESSAGE (2)
#define PIPE_WAIT (0)
#define PIPE_NOWAIT (1)
/* CreatePen, ExtCreatePen */
#define PS_GEOMETRIC (65536)
#define PS_COSMETIC (0)
#define PS_ALTERNATE (8)
#define PS_SOLID (0)
#define PS_DASH (1)
#define PS_DOT (2)
#define PS_DASHDOT (3)
#define PS_DASHDOTDOT (4)
#define PS_NULL (5)
#define PS_USERSTYLE (7)
#define PS_INSIDEFRAME (6)
#define PS_ENDCAP_ROUND (0)
#define PS_ENDCAP_SQUARE (256)
#define PS_ENDCAP_FLAT (512)
#define PS_JOIN_BEVEL (4096)
#define PS_JOIN_MITER (8192)
#define PS_JOIN_ROUND (0)
#define PS_STYLE_MASK (15)
#define PS_ENDCAP_MASK (3840)
#define PS_TYPE_MASK (983040)
/* CreatePolygonRgn */
#define ALTERNATE (1)
#define WINDING (2)
/* CreateProcess */
#define CREATE_DEFAULT_ERROR_MODE (67108864)
#define CREATE_NEW_CONSOLE (16)
#define CREATE_NEW_PROCESS_GROUP (512)
#define CREATE_SEPARATE_WOW_VDM (2048)
#define CREATE_SUSPENDED (4)
#define CREATE_UNICODE_ENVIRONMENT (1024)
#define DEBUG_PROCESS (1)
#define DEBUG_ONLY_THIS_PROCESS (2)
#define DETACHED_PROCESS (8)
#define HIGH_PRIORITY_CLASS (128)
#define IDLE_PRIORITY_CLASS (64)
#define NORMAL_PRIORITY_CLASS (32)
#define REALTIME_PRIORITY_CLASS (256)
/* CreateService */
#define SERVICE_ALL_ACCESS (0xf01ffL)
#define SERVICE_CHANGE_CONFIG (2)
#define SERVICE_ENUMERATE_DEPENDENTS (8)
#define SERVICE_INTERROGATE (128)
#define SERVICE_PAUSE_CONTINUE (64)
#define SERVICE_QUERY_CONFIG (1)
#define SERVICE_QUERY_STATUS (4)
#define SERVICE_START (16)
#define SERVICE_STOP (32)
#define SERVICE_USER_DEFINED_CONTROL (256)
#define DELETE (0x10000L)
#define READ_CONTROL (0x20000L)
#define GENERIC_EXECUTE (0x20000000L)
#define SERVICE_WIN32_OWN_PROCESS (16)
#define SERVICE_WIN32_SHARE_PROCESS (32)
#define SERVICE_KERNEL_DRIVER (1)
#define SERVICE_FILE_SYSTEM_DRIVER (2)
#define SERVICE_INTERACTIVE_PROCESS (256)
#define SERVICE_BOOT_START (0)
#define SERVICE_SYSTEM_START (1)
#define SERVICE_AUTO_START (2)
#define SERVICE_DEMAND_START (3)
#define SERVICE_DISABLED (4)
#define SERVICE_ERROR_IGNORE (0)
#define SERVICE_ERROR_NORMAL (1)
#define SERVICE_ERROR_SEVERE (2)
#define SERVICE_ERROR_CRITICAL (3)
/* CreateTapePartition, WriteTapemark */
#define TAPE_FIXED_PARTITIONS (0L)
#define TAPE_INITIATOR_PARTITIONS (0x2L)
#define TAPE_SELECT_PARTITIONS (0x1L)
#define TAPE_FILEMARKS (0x1L)
#define TAPE_LONG_FILEMARKS (0x3L)
#define TAPE_SETMARKS (0L)
#define TAPE_SHORT_FILEMARKS (0x2L)
/* CreateWindow */
#define CW_USEDEFAULT (0x80000000)
#define WS_BORDER (0x800000L)
#define WS_CAPTION (0xc00000L)
#define WS_CHILD (0x40000000L)
#define WS_CHILDWINDOW (0x40000000L)
#define WS_CLIPCHILDREN (0x2000000L)
#define WS_CLIPSIBLINGS (0x4000000L)
#define WS_DISABLED (0x8000000L)
#define WS_DLGFRAME (0x400000L)
#define WS_GROUP (0x20000L)
#define WS_HSCROLL (0x100000L)
#define WS_ICONIC (0x20000000L)
#define WS_MAXIMIZE (0x1000000L)
#define WS_MAXIMIZEBOX (0x10000L)
#define WS_MINIMIZE (0x20000000L)
#define WS_MINIMIZEBOX (0x20000L)
#define WS_OVERLAPPED (0L)
#define WS_OVERLAPPEDWINDOW (0xcf0000L)
#define WS_POPUP (0x80000000L)
#define WS_POPUPWINDOW (0x80880000L)
#define WS_SIZEBOX (0x40000L)
#define WS_SYSMENU (0x80000L)
#define WS_TABSTOP (0x10000L)
#define WS_THICKFRAME (0x40000L)
#define WS_TILED (0L)
#define WS_TILEDWINDOW (0xcf0000L)
#define WS_VISIBLE (0x10000000L)
#define WS_VSCROLL (0x200000L)
#define MDIS_ALLCHILDSTYLES (0x1)
#define BS_3STATE (0x5L)
#define BS_AUTO3STATE (0x6L)
#define BS_AUTOCHECKBOX (0x3L)
#define BS_AUTORADIOBUTTON (0x9L)
#define BS_BITMAP (0x80L)
#define BS_BOTTOM (0x800L)
#define BS_CENTER (0x300L)
#define BS_CHECKBOX (0x2L)
#define BS_DEFPUSHBUTTON (0x1L)
#define BS_GROUPBOX (0x7L)
#define BS_ICON (0x40L)
#define BS_LEFT (0x100L)
#define BS_LEFTTEXT (0x20L)
#define BS_MULTILINE (0x2000L)
#define BS_NOTIFY (0x4000L)
#define BS_OWNERDRAW (0xbL)
#define BS_PUSHBUTTON (0L)
#define BS_PUSHLIKE (0x1000L)
#define BS_RADIOBUTTON (0x4L)
#define BS_RIGHT (0x200L)
#define BS_RIGHTBUTTON (0x20L)
#define BS_TEXT (0L)
#define BS_TOP (0x400L)
#define BS_USERBUTTON (0x8L)
#define BS_VCENTER (0xc00L)
#define CBS_AUTOHSCROLL (0x40L)
#define CBS_DISABLENOSCROLL (0x800L)
#define CBS_DROPDOWN (0x2L)
#define CBS_DROPDOWNLIST (0x3L)
#define CBS_HASSTRINGS (0x200L)
#define CBS_LOWERCASE (0x4000L)
#define CBS_NOINTEGRALHEIGHT (0x400L)
#define CBS_OEMCONVERT (0x80L)
#define CBS_OWNERDRAWFIXED (0x10L)
#define CBS_OWNERDRAWVARIABLE (0x20L)
#define CBS_SIMPLE (0x1L)
#define CBS_SORT (0x100L)
#define CBS_UPPERCASE (0x2000L)
#define ES_AUTOHSCROLL (0x80L)
#define ES_AUTOVSCROLL (0x40L)
#define ES_CENTER (0x1L)
#define ES_LEFT (0L)
#define ES_LOWERCASE (0x10L)
#define ES_MULTILINE (0x4L)
#define ES_NOHIDESEL (0x100L)
#define ES_NUMBER (0x2000L)
#define ES_OEMCONVERT (0x400L)
#define ES_PASSWORD (0x20L)
#define ES_READONLY (0x800L)
#define ES_RIGHT (0x2L)
#define ES_UPPERCASE (0x8L)
#define ES_WANTRETURN (0x1000L)
#define LBS_DISABLENOSCROLL (0x1000L)
#define LBS_EXTENDEDSEL (0x800L)
#define LBS_HASSTRINGS (0x40L)
#define LBS_MULTICOLUMN (0x200L)
#define LBS_MULTIPLESEL (0x8L)
#define LBS_NODATA (0x2000L)
#define LBS_NOINTEGRALHEIGHT (0x100L)
#define LBS_NOREDRAW (0x4L)
#define LBS_NOSEL (0x4000L)
#define LBS_NOTIFY (0x1L)
#define LBS_OWNERDRAWFIXED (0x10L)
#define LBS_OWNERDRAWVARIABLE (0x20L)
#define LBS_SORT (0x2L)
#define LBS_STANDARD (0xa00003L)
#define LBS_USETABSTOPS (0x80L)
#define LBS_WANTKEYBOARDINPUT (0x400L)
#define SBS_BOTTOMALIGN (0x4L)
#define SBS_HORZ (0L)
#define SBS_LEFTALIGN (0x2L)
#define SBS_RIGHTALIGN (0x4L)
#define SBS_SIZEBOX (0x8L)
#define SBS_SIZEBOXBOTTOMRIGHTALIGN (0x4L)
#define SBS_SIZEBOXTOPLEFTALIGN (0x2L)
#define SBS_SIZEGRIP (0x10L)
#define SBS_TOPALIGN (0x2L)
#define SBS_VERT (0x1L)
#define SS_BITMAP (0xeL)
#define SS_BLACKFRAME (0x7L)
#define SS_BLACKRECT (0x4L)
#define SS_CENTER (0x1L)
#define SS_CENTERIMAGE (0x200L)
#define SS_ENHMETAFILE (0xfL)
#define SS_ETCHEDFRAME (0x12L)
#define SS_ETCHEDHORZ (0x10L)
#define SS_ETCHEDVERT (0x11L)
#define SS_GRAYFRAME (0x8L)
#define SS_GRAYRECT (0x5L)
#define SS_ICON (0x3L)
#define SS_LEFT (0L)
#define SS_LEFTNOWORDWRAP (0xcL)
#define SS_NOPREFIX (0x80L)
#define SS_NOTIFY (0x100L)
#define SS_OWNERDRAW (0xdL)
#define SS_REALSIZEIMAGE (0x800L)
#define SS_RIGHT (0x2L)
#define SS_RIGHTJUST (0x400L)
#define SS_SIMPLE (0xbL)
#define SS_SUNKEN (0x1000L)
#define SS_USERITEM (0xaL)
#define SS_WHITEFRAME (0x9L)
#define SS_WHITERECT (0x6L)
#define DS_3DLOOK (0x4L)
#define DS_ABSALIGN (0x1L)
#define DS_CENTER (0x800L)
#define DS_CENTERMOUSE (0x1000L)
#define DS_CONTEXTHELP (0x2000L)
#define DS_CONTROL (0x400L)
#define DS_FIXEDSYS (0x8L)
#define DS_LOCALEDIT (0x20L)
#define DS_MODALFRAME (0x80L)
#define DS_NOFAILCREATE (0x10L)
#define DS_NOIDLEMSG (0x100L)
#define DS_SETFONT (0x40L)
#define DS_SETFOREGROUND (0x200L)
#define DS_SYSMODAL (0x2L)
/* CreateWindowEx */
#define WS_EX_ACCEPTFILES (0x10L)
#define WS_EX_APPWINDOW (0x40000L)
#define WS_EX_CLIENTEDGE (0x200L)
#define WS_EX_CONTEXTHELP (0x400L)
#define WS_EX_CONTROLPARENT (0x10000L)
#define WS_EX_DLGMODALFRAME (0x1L)
#define WS_EX_LEFT (0L)
#define WS_EX_LEFTSCROLLBAR (0x4000L)
#define WS_EX_LTRREADING (0L)
#define WS_EX_MDICHILD (0x40L)
#define WS_EX_NOPARENTNOTIFY (0x4L)
#define WS_EX_OVERLAPPEDWINDOW (0x300L)
#define WS_EX_PALETTEWINDOW (0x188L)
#define WS_EX_RIGHT (0x1000L)
#define WS_EX_RIGHTSCROLLBAR (0L)
#define WS_EX_RTLREADING (0x2000L)
#define WS_EX_STATICEDGE (0x20000L)
#define WS_EX_TOOLWINDOW (0x80L)
#define WS_EX_TOPMOST (0x8L)
#define WS_EX_TRANSPARENT (0x20L)
#define WS_EX_WINDOWEDGE (0x100L)
/* CreateWindowStation */
#define WINSTA_ACCESSCLIPBOARD (0x4L)
#define WINSTA_ACCESSGLOBALATOMS (0x20L)
#define WINSTA_CREATEDESKTOP (0x8L)
#define WINSTA_ENUMDESKTOPS (0x1L)
#define WINSTA_ENUMERATE (0x100L)
#define WINSTA_EXITWINDOWS (0x40L)
#define WINSTA_READATTRIBUTES (0x2L)
#define WINSTA_READSCREEN (0x200L)
#define WINSTA_WRITEATTRIBUTES (0x10L)
/* DdeCallback */
/* DdeClientTransaction */
/* DdeEnableCallback */
/* DdeGetLastError */
/* DdeInitialize */
/* DdeNameService */
/* DebugProc */
#define WH_CALLWNDPROC (4)
#define WH_CALLWNDPROCRET (12)
#define WH_CBT (5)
#define WH_DEBUG (9)
#define WH_GETMESSAGE (3)
#define WH_JOURNALPLAYBACK (1)
#define WH_JOURNALRECORD (0)
#define WH_KEYBOARD (2)
#define WH_MOUSE (7)
#define WH_MSGFILTER (-1)
#define WH_SHELL (10)
#define WH_SYSMSGFILTER (6)
#define WH_MSGFILTER (-1)
#define WH_FOREGROUNDIDLE (11)
/* DefineDosDevice */
#define DDD_RAW_TARGET_PATH (1)
#define DDD_REMOVE_DEFINITION (2)
#define DDD_EXACT_MATCH_ON_REMOVE (4)
/* DeviceCapbilities */
#define DC_BINNAMES (12)
#define DC_BINS (6)
#define DC_COPIES (18)
#define DC_DRIVER (11)
#define DC_DATATYPE_PRODUCED (21)
#define DC_DUPLEX (7)
#define DC_EMF_COMPLIANT (20)
#define DC_ENUMRESOLUTIONS (13)
#define DC_EXTRA (9)
#define DC_FIELDS (1)
#define DC_FILEDEPENDENCIES (14)
#define DC_MAXEXTENT (5)
#define DC_MINEXTENT (4)
#define DC_ORIENTATION (17)
#define DC_PAPERNAMES (16)
#define DC_PAPERS (2)
#define DC_PAPERSIZE (3)
#define DC_SIZE (8)
#define DC_TRUETYPE (15)
#define DCTT_BITMAP (0x1L)
#define DCTT_DOWNLOAD (0x2L)
#define DCTT_SUBDEV (0x4L)
#define DC_VERSION (10)
#define DC_BINADJUST (19)
#define DC_DATATYPE_PRODUCED (21)
/* DeviceIoControl */
/* DlgDirList */
#define DDL_ARCHIVE (32)
#define DDL_DIRECTORY (16)
#define DDL_DRIVES (16384)
#define DDL_EXCLUSIVE (32768)
#define DDL_HIDDEN (2)
#define DDL_READONLY (1)
#define DDL_READWRITE (0)
#define DDL_SYSTEM (4)
#define DDL_POSTMSGS (8192)
/* DllEntryPoint */
#define DLL_PROCESS_ATTACH (1)
#define DLL_THREAD_ATTACH (2)
#define DLL_PROCESS_DETACH (0)
#define DLL_THREAD_DETACH (3)
/* DocumentProperties */
#define DM_IN_BUFFER (8)
#define DM_MODIFY (8)
#define DM_IN_PROMPT (4)
#define DM_PROMPT (4)
#define DM_OUT_BUFFER (2)
#define DM_COPY (2)
#define DM_UPDATE (1)
/* DrawAnimatedRects */
#define IDANI_OPEN (1)
#define IDANI_CLOSE (2)
/* DrawCaption */
#define DC_ACTIVE (1)
#define DC_SMALLCAP (2)
/* DrawEdge */
#define BDR_RAISEDINNER (4)
#define BDR_SUNKENINNER (8)
#define BDR_RAISEDOUTER (1)
#define BDR_SUNKENOUTER (1)
#define EDGE_BUMP (9)
#define EDGE_ETCHED (6)
#define EDGE_RAISED (5)
#define EDGE_SUNKEN (10)
#define BF_ADJUST (8192)
#define BF_BOTTOM (8)
#define BF_BOTTOMLEFT (9)
#define BF_BOTTOMRIGHT (12)
#define BF_DIAGONAL (16)
#define BF_DIAGONAL_ENDBOTTOMLEFT (25)
#define BF_DIAGONAL_ENDBOTTOMRIGHT (28)
#define BF_DIAGONAL_ENDTOPLEFT (19)
#define BF_DIAGONAL_ENDTOPRIGHT (22)
#define BF_FLAT (16384)
#define BF_LEFT (1)
#define BF_MIDDLE (2048)
#define BF_MONO (32768)
#define BF_RECT (15)
#define BF_RIGHT (4)
#define BF_SOFT (4096)
#define BF_TOP (2)
#define BF_TOPLEFT (3)
#define BF_TOPRIGHT (6)
/* DrawFrameControl */
#define DFC_BUTTON (4)
#define DFC_CAPTION (1)
#define DFC_MENU (2)
#define DFC_SCROLL (3)
#define DFCS_BUTTON3STATE (8)
#define DFCS_BUTTONCHECK (0)
#define DFCS_BUTTONPUSH (16)
#define DFCS_BUTTONRADIO (4)
#define DFCS_BUTTONRADIOIMAGE (1)
#define DFCS_BUTTONRADIOMASK (2)
#define DFCS_CAPTIONCLOSE (0)
#define DFCS_CAPTIONHELP (4)
#define DFCS_CAPTIONMAX (2)
#define DFCS_CAPTIONMIN (1)
#define DFCS_CAPTIONRESTORE (3)
#define DFCS_MENUARROW (0)
#define DFCS_MENUBULLET (2)
#define DFCS_MENUCHECK (1)
#define DFCS_SCROLLCOMBOBOX (5)
#define DFCS_SCROLLDOWN (1)
#define DFCS_SCROLLLEFT (2)
#define DFCS_SCROLLRIGHT (3)
#define DFCS_SCROLLSIZEGRIP (8)
#define DFCS_SCROLLUP (0)
#define DFCS_ADJUSTRECT (8192)
#define DFCS_CHECKED (1024)
#define DFCS_FLAT (16384)
#define DFCS_INACTIVE (256)
#define DFCS_MONO (32768)
#define DFCS_PUSHED (512)
/* DrawIconEx */
#define DI_COMPAT (4)
#define DI_DEFAULTSIZE (8)
#define DI_IMAGE (2)
#define DI_MASK (1)
#define DI_NORMAL (3)
/* DrawState */
#define DST_BITMAP (4)
#define DST_COMPLEX (0)
#define DST_ICON (3)
#define DST_PREFIXTEXT (2)
#define DST_TEXT (1)
#define DSS_NORMAL (0)
#define DSS_UNION (16)
#define DSS_DISABLED (32)
#define DSS_MONO (128)
/* DrawStatusText */
#define SBT_NOBORDERS (256)
#define SBT_OWNERDRAW (4096)
#define SBT_POPOUT (512)
#define SBT_RTLREADING (1024)
/* DrawText, DrawTextEx */
#define DT_BOTTOM (8)
#define DT_CALCRECT (1024)
#define DT_CENTER (1)
#define DT_EDITCONTROL (8192)
#define DT_END_ELLIPSIS (32768)
#define DT_PATH_ELLIPSIS (16384)
#define DT_EXPANDTABS (64)
#define DT_EXTERNALLEADING (512)
#define DT_LEFT (0)
#define DT_MODIFYSTRING (65536)
#define DT_NOCLIP (256)
#define DT_NOPREFIX (2048)
#define DT_RIGHT (2)
#define DT_RTLREADING (131072)
#define DT_SINGLELINE (32)
#define DT_TABSTOP (128)
#define DT_TOP (0)
#define DT_VCENTER (4)
#define DT_WORDBREAK (16)
#define DT_INTERNAL (4096)
/* DuplicateHandle, MapViewOfFile */
#define DUPLICATE_CLOSE_SOURCE (1)
#define DUPLICATE_SAME_ACCESS (2)
#define FILE_MAP_ALL_ACCESS (0xf001fL)
#define FILE_MAP_READ (4)
#define FILE_MAP_WRITE (2)
#define FILE_MAP_COPY (1)
#define MUTEX_ALL_ACCESS (0x1f0001L)
#define MUTEX_MODIFY_STATE (1)
#define SYNCHRONIZE (0x100000L)
#define SEMAPHORE_ALL_ACCESS (0x1f0003L)
#define SEMAPHORE_MODIFY_STATE (2)
#define EVENT_ALL_ACCESS (0x1f0003L)
#define EVENT_MODIFY_STATE (2)
#define KEY_ALL_ACCESS (0xf003fL)
#define KEY_CREATE_LINK (32)
#define KEY_CREATE_SUB_KEY (4)
#define KEY_ENUMERATE_SUB_KEYS (8)
#define KEY_EXECUTE (0x20019L)
#define KEY_NOTIFY (16)
#define KEY_QUERY_VALUE (1)
#define KEY_READ (0x20019L)
#define KEY_SET_VALUE (2)
#define KEY_WRITE (0x20006L)
#define PROCESS_ALL_ACCESS (0x1f0fffL)
#define PROCESS_CREATE_PROCESS (128)
#define PROCESS_CREATE_THREAD (2)
#define PROCESS_DUP_HANDLE (64)
#define PROCESS_QUERY_INFORMATION (1024)
#define PROCESS_SET_INFORMATION (512)
#define PROCESS_TERMINATE (1)
#define PROCESS_VM_OPERATION (8)
#define PROCESS_VM_READ (16)
#define PROCESS_VM_WRITE (32)
#define THREAD_ALL_ACCESS (0x1f03ffL)
#define THREAD_DIRECT_IMPERSONATION (512)
#define THREAD_GET_CONTEXT (8)
#define THREAD_IMPERSONATE (256)
#define THREAD_QUERY_INFORMATION (64)
#define THREAD_SET_CONTEXT (16)
#define THREAD_SET_INFORMATION (32)
#define THREAD_SET_THREAD_TOKEN (128)
#define THREAD_SUSPEND_RESUME (2)
#define THREAD_TERMINATE (1)
/* EditWordBreakProc */
#define WB_ISDELIMITER (2)
#define WB_LEFT (0)
#define WB_RIGHT (1)
/* EnableScrollBar */
#define SB_BOTH (3)
#define SB_CTL (2)
#define SB_HORZ (0)
#define SB_VERT (1)
#define ESB_DISABLE_BOTH (3)
#define ESB_DISABLE_DOWN (2)
#define ESB_DISABLE_LEFT (1)
#define ESB_DISABLE_LTUP (1)
#define ESB_DISABLE_RIGHT (2)
#define ESB_DISABLE_RTDN (2)
#define ESB_DISABLE_UP (1)
#define ESB_ENABLE_BOTH (0)
/* Scroll Bar notifications*/
#define SB_LINEUP (0)
#define SB_LINEDOWN (1)
#define SB_LINELEFT (0)
#define SB_LINERIGHT (1)
#define SB_PAGEUP (2)
#define SB_PAGEDOWN (3)
#define SB_PAGELEFT (2)
#define SB_PAGERIGHT (3)
#define SB_THUMBPOSITION (4)
#define SB_THUMBTRACK (5)
#define SB_ENDSCROLL (8)
#define SB_LEFT (6)
#define SB_RIGHT (7)
#define SB_BOTTOM (7)
#define SB_TOP (6)
/* EnumCalendarInfo */
#define ENUM_ALL_CALENDARS (-1)
/* EnumDateFormats */
#define DATE_SHORTDATE (1)
#define DATE_LONGDATE (2)
/* EnumDependentServices */
#define SERVICE_ACTIVE (1)
#define SERVICE_INACTIVE (2)
/* EnumFontFamExProc */
#define DEVICE_FONTTYPE (2)
#define RASTER_FONTTYPE (1)
#define TRUETYPE_FONTTYPE (4)
/* EnumObjects, GetCurrentObject, GetObjectType */
#define OBJ_BRUSH (2)
#define OBJ_PEN (1)
#define OBJ_PAL (5)
#define OBJ_FONT (6)
#define OBJ_BITMAP (7)
#define OBJ_EXTPEN (11)
#define OBJ_REGION (8)
#define OBJ_DC (3)
#define OBJ_MEMDC (10)
#define OBJ_METAFILE (9)
#define OBJ_METADC (4)
#define OBJ_ENHMETAFILE (13)
#define OBJ_ENHMETADC (12)
/* EnumPrinters */
/* EnumProtocols */
/* EnumResLangProc */
#define RT_ACCELERATOR (MAKEINTRESOURCE(9))
#define RT_BITMAP (MAKEINTRESOURCE(2))
#define RT_DIALOG (MAKEINTRESOURCE(5))
#define RT_FONT (MAKEINTRESOURCE(8))
#define RT_FONTDIR (MAKEINTRESOURCE(7))
#define RT_MENU (MAKEINTRESOURCE(4))
#define RT_RCDATA (MAKEINTRESOURCE(10))
#define RT_STRING (MAKEINTRESOURCE(6))
#define RT_MESSAGETABLE (MAKEINTRESOURCE(11))
#define RT_CURSOR (MAKEINTRESOURCE(1))
#define RT_GROUP_CURSOR (MAKEINTRESOURCE(12))
#define RT_ICON (MAKEINTRESOURCE(3))
#define RT_GROUP_ICON (MAKEINTRESOURCE(13))
#define RT_VERSION (MAKEINTRESOURCE(16))
/* EnumServicesStatus */
#define SERVICE_WIN32 (48)
#define SERVICE_DRIVER (11)
/* EnumSystemCodePages */
#define CP_INSTALLED (1)
#define CP_SUPPORTED (2)
/* EnumSystemLocales */
#define LCID_INSTALLED (1)
#define LCID_SUPPORTED (2)
/* EraseTape */
#define TAPE_ERASE_LONG (0x1L)
#define TAPE_ERASE_SHORT (0L)
/* Escape */
#define SP_ERROR (-1)
#define SP_OUTOFDISK (-4)
#define SP_OUTOFMEMORY (-5)
#define SP_USERABORT (-3)
#define PHYSICALWIDTH (110)
#define PHYSICALHEIGHT (111)
#define PHYSICALOFFSETX (112)
#define PHYSICALOFFSETY (113)
#define SCALINGFACTORX (114)
#define SCALINGFACTORY (115)
#define QUERYESCSUPPORT (8)
#define ABORTDOC (2)
#define ENDDOC (11)
#define GETPHYSPAGESIZE (12)
#define GETPRINTINGOFFSET (13)
#define GETSCALINGFACTOR (14)
#define NEWFRAME (1)
#define NEXTBAND (3)
#define PASSTHROUGH (19)
#define SETABORTPROC (9)
#define STARTDOC (10)
/* EscapeCommFunction */
#define CLRDTR (6)
#define CLRRTS (4)
#define SETDTR (5)
#define SETRTS (3)
#define SETXOFF (1)
#define SETXON (2)
#define SETBREAK (8)
#define CLRBREAK (9)
/* ExitWindowsEx */
#define EWX_FORCE (4)
#define EWX_LOGOFF (0)
#define EWX_POWEROFF (8)
#define EWX_REBOOT (2)
#define EWX_SHUTDOWN (1)
/* ExtFloodFill */
#define FLOODFILLBORDER (0)
#define FLOODFILLSURFACE (1)
/* ExtTextOut */
#define ETO_CLIPPED (4)
#define ETO_GLYPH_INDEX (16)
#define ETO_OPAQUE (2)
#define ETO_RTLREADING (128)
/* FillConsoleOutputAttribute */
#define FOREGROUND_BLUE (1)
#define FOREGROUND_GREEN (2)
#define FOREGROUND_RED (4)
#define FOREGROUND_INTENSITY (8)
#define BACKGROUND_BLUE (16)
#define BACKGROUND_GREEN (32)
#define BACKGROUND_RED (64)
#define BACKGROUND_INTENSITY (128)
/* FindFirstChangeNotification */
#define FILE_NOTIFY_CHANGE_FILE_NAME (1)
#define FILE_NOTIFY_CHANGE_DIR_NAME (2)
#define FILE_NOTIFY_CHANGE_ATTRIBUTES (4)
#define FILE_NOTIFY_CHANGE_SIZE (8)
#define FILE_NOTIFY_CHANGE_LAST_WRITE (16)
#define FILE_NOTIFY_CHANGE_SECURITY (256)
/* FindFirstPrinterChangeNotification */
/* FindNextPrinterNotification */
/* FMExtensionProc */
/* FoldString */
#define MAP_FOLDCZONE (16)
#define MAP_FOLDDIGITS (128)
#define MAP_PRECOMPOSED (32)
#define MAP_COMPOSITE (64)
/* ForegroundIdleProc */
#define HC_ACTION (0)
/* FormatMessage */
#define FORMAT_MESSAGE_ALLOCATE_BUFFER (256)
#define FORMAT_MESSAGE_IGNORE_INSERTS (512)
#define FORMAT_MESSAGE_FROM_STRING (1024)
#define FORMAT_MESSAGE_FROM_HMODULE (2048)
#define FORMAT_MESSAGE_FROM_SYSTEM (4096)
#define FORMAT_MESSAGE_ARGUMENT_ARRAY (8192)
#define FORMAT_MESSAGE_MAX_WIDTH_MASK (255)
/* GdiComment */
#define GDICOMMENT_WINDOWS_METAFILE (-2147483647)
#define GDICOMMENT_BEGINGROUP (2)
#define GDICOMMENT_ENDGROUP (3)
#define GDICOMMENT_MULTIFORMATS (1073741828)
#define GDICOMMENT_IDENTIFIER (1128875079)
/* GenerateConsoleCtrlEvent, HandlerRoutine */
#define CTRL_C_EVENT (0)
#define CTRL_BREAK_EVENT (1)
#define CTRL_CLOSE_EVENT (2)
#define CTRL_LOGOFF_EVENT (5)
#define CTRL_SHUTDOWN_EVENT (6)
/* GetAddressByName */
/* GetArcDirection */
#define AD_COUNTERCLOCKWISE (1)
#define AD_CLOCKWISE (2)
/* GetBinaryTypes */
#define SCS_32BIT_BINARY (0)
#define SCS_DOS_BINARY (1)
#define SCS_OS216_BINARY (5)
#define SCS_PIF_BINARY (3)
#define SCS_POSIX_BINARY (4)
#define SCS_WOW_BINARY (2)
/* GetBoundsRect, SetBoundsRect */
#define DCB_DISABLE (8)
#define DCB_ENABLE (4)
#define DCB_RESET (1)
#define DCB_SET (3)
#define DCB_ACCUMULATE (2)
/* GetCharacterPlacement, GetFontLanguageInfo */
#define GCP_DBCS (1)
#define GCP_ERROR (0x8000)
#define GCP_CLASSIN (0x80000L)
#define GCP_DIACRITIC (256)
#define GCP_DISPLAYZWG (0x400000L)
#define GCP_GLYPHSHAPE (16)
#define GCP_JUSTIFY (0x10000L)
#define GCP_JUSTIFYIN (0x200000L)
#define GCP_KASHIDA (1024)
#define GCP_LIGATE (32)
#define GCP_MAXEXTENT (0x100000L)
#define GCP_NEUTRALOVERRIDE (0x2000000L)
#define GCP_NUMERICOVERRIDE (0x1000000L)
#define GCP_NUMERICSLATIN (0x4000000L)
#define GCP_NUMERICSLOCAL (0x8000000L)
#define GCP_REORDER (2)
#define GCP_SYMSWAPOFF (0x800000L)
#define GCP_USEKERNING (8)
#define FLI_GLYPHS (0x40000L)
#define FLI_MASK (0x103b)
/* GetClassLong, GetClassWord */
#define GCW_ATOM (-32)
#define GCL_CBCLSEXTRA (-20)
#define GCL_CBWNDEXTRA (-18)
#define GCL_HBRBACKGROUND (-10)
#define GCL_HCURSOR (-12)
#define GCL_HICON (-14)
#define GCL_HICONSM (-34)
#define GCL_HMODULE (-16)
#define GCL_MENUNAME (-8)
#define GCL_STYLE (-26)
#define GCL_WNDPROC (-24)
/* GetClipboardFormat, SetClipboardData */
#define CF_BITMAP (2)
#define CF_DIB (8)
#define CF_PALETTE (9)
#define CF_ENHMETAFILE (14)
#define CF_METAFILEPICT (3)
#define CF_OEMTEXT (7)
#define CF_TEXT (1)
#define CF_UNICODETEXT (13)
#define CF_DIF (5)
#define CF_DSPBITMAP (130)
#define CF_DSPENHMETAFILE (142)
#define CF_DSPMETAFILEPICT (131)
#define CF_DSPTEXT (129)
#define CF_GDIOBJFIRST (768)
#define CF_GDIOBJLAST (1023)
#define CF_HDROP (15)
#define CF_LOCALE (16)
#define CF_OWNERDISPLAY (128)
#define CF_PENDATA (10)
#define CF_PRIVATEFIRST (512)
#define CF_PRIVATELAST (767)
#define CF_RIFF (11)
#define CF_SYLK (4)
#define CF_WAVE (12)
#define CF_TIFF (6)
/* GetCommMask */
#define EV_BREAK (64)
#define EV_CTS (8)
#define EV_DSR (16)
#define EV_ERR (128)
#define EV_EVENT1 (2048)
#define EV_EVENT2 (4096)
#define EV_PERR (512)
#define EV_RING (256)
#define EV_RLSD (32)
#define EV_RX80FULL (1024)
#define EV_RXCHAR (1)
#define EV_RXFLAG (2)
#define EV_TXEMPTY (4)
/* GetCommModemStatus */
#define MS_CTS_ON (0x10L)
#define MS_DSR_ON (0x20L)
#define MS_RING_ON (0x40L)
#define MS_RLSD_ON (0x80L)
/* GetComputerName */
#define MAX_COMPUTERNAME_LENGTH (15)
/* GetConsoleMode */
#define ENABLE_LINE_INPUT (2)
#define ENABLE_ECHO_INPUT (4)
#define ENABLE_PROCESSED_INPUT (1)
#define ENABLE_WINDOW_INPUT (8)
#define ENABLE_MOUSE_INPUT (16)
#define ENABLE_PROCESSED_OUTPUT (1)
#define ENABLE_WRAP_AT_EOL_OUTPUT (2)
/* GetCPInfo */
#define CP_ACP (0)
#define CP_MACCP (2)
#define CP_OEMCP (1)
/* GetDateFormat */
#define DATE_SHORTDATE (1)
#define DATE_LONGDATE (2)
#define DATE_USE_ALT_CALENDAR (4)
/* GetDCEx */
#define DCX_WINDOW (0x1L)
#define DCX_CACHE (0x2L)
#define DCX_PARENTCLIP (0x20L)
#define DCX_CLIPSIBLINGS (0x10L)
#define DCX_CLIPCHILDREN (0x8L)
#define DCX_NORESETATTRS (0x4L)
#define DCX_LOCKWINDOWUPDATE (0x400L)
#define DCX_EXCLUDERGN (0x40L)
#define DCX_INTERSECTRGN (0x80L)
#define DCX_VALIDATE (0x200000L)
/* GetDeviceCaps */
#define DRIVERVERSION (0)
#define TECHNOLOGY (2)
#define DT_PLOTTER (0)
#define DT_RASDISPLAY (1)
#define DT_RASPRINTER (2)
#define DT_RASCAMERA (3)
#define DT_CHARSTREAM (4)
#define DT_METAFILE (5)
#define DT_DISPFILE (6)
#define HORZSIZE (4)
#define VERTSIZE (6)
#define HORZRES (8)
#define VERTRES (10)
#define LOGPIXELSX (88)
#define LOGPIXELSY (90)
#define BITSPIXEL (12)
#define PLANES (14)
#define NUMBRUSHES (16)
#define NUMPENS (18)
#define NUMFONTS (22)
#define NUMCOLORS (24)
#define ASPECTX (40)
#define ASPECTY (42)
#define ASPECTXY (44)
#define PDEVICESIZE (26)
#define CLIPCAPS (36)
#define SIZEPALETTE (104)
#define NUMRESERVED (106)
#define COLORRES (108)
#define PHYSICALWIDTH (110)
#define PHYSICALHEIGHT (111)
#define PHYSICALOFFSETX (112)
#define PHYSICALOFFSETY (113)
#define SCALINGFACTORX (114)
#define SCALINGFACTORY (115)
#define VREFRESH (116)
#define DESKTOPHORZRES (118)
#define DESKTOPVERTRES (117)
#define BLTALIGNMENT (119)
#define RASTERCAPS (38)
#define RC_BANDING (2)
#define RC_BITBLT (1)
#define RC_BITMAP64 (8)
#define RC_DI_BITMAP (128)
#define RC_DIBTODEV (512)
#define RC_FLOODFILL (4096)
#define RC_GDI20_OUTPUT (16)
#define RC_PALETTE (256)
#define RC_SCALING (4)
#define RC_STRETCHBLT (2048)
#define RC_STRETCHDIB (8192)
#define CURVECAPS (28)
#define CC_NONE (0)
#define CC_CIRCLES (1)
#define CC_PIE (2)
#define CC_CHORD (4)
#define CC_ELLIPSES (8)
#define CC_WIDE (16)
#define CC_STYLED (32)
#define CC_WIDESTYLED (64)
#define CC_INTERIORS (128)
#define CC_ROUNDRECT (256)
#define LINECAPS (30)
#define LC_NONE (0)
#define LC_POLYLINE (2)
#define LC_MARKER (4)
#define LC_POLYMARKER (8)
#define LC_WIDE (16)
#define LC_STYLED (32)
#define LC_WIDESTYLED (64)
#define LC_INTERIORS (128)
#define POLYGONALCAPS (32)
#define PC_NONE (0)
#define PC_POLYGON (1)
#define PC_RECTANGLE (2)
#define PC_WINDPOLYGON (4)
#define PC_SCANLINE (8)
#define PC_WIDE (16)
#define PC_STYLED (32)
#define PC_WIDESTYLED (64)
#define PC_INTERIORS (128)
#define TEXTCAPS (34)
#define TC_OP_CHARACTER (1)
#define TC_OP_STROKE (2)
#define TC_CP_STROKE (4)
#define TC_CR_90 (8)
#define TC_CR_ANY (16)
#define TC_SF_X_YINDEP (32)
#define TC_SA_DOUBLE (64)
#define TC_SA_INTEGER (128)
#define TC_SA_CONTIN (256)
#define TC_EA_DOUBLE (512)
#define TC_IA_ABLE (1024)
#define TC_UA_ABLE (2048)
#define TC_SO_ABLE (4096)
#define TC_RA_ABLE (8192)
#define TC_VA_ABLE (16384)
#define TC_RESERVED (32768)
#define TC_SCROLLBLT (65536)
#define PC_PATHS (512)
/* GetDriveType */
#define DRIVE_REMOVABLE (2)
#define DRIVE_FIXED (3)
#define DRIVE_REMOTE (4)
#define DRIVE_CDROM (5)
#define DRIVE_RAMDISK (6)
#define DRIVE_UNKNOWN (0)
#define DRIVE_NO_ROOT_DIR (1)
/* GetExceptionCode */
#define EXCEPTION_ACCESS_VIOLATION (0xc0000005L)
#define EXCEPTION_BREAKPOINT (0x80000003L)
#define EXCEPTION_DATATYPE_MISALIGNMENT (0x80000002L)
#define EXCEPTION_SINGLE_STEP (0x80000004L)
#define EXCEPTION_ARRAY_BOUNDS_EXCEEDED (0xc000008cL)
#define EXCEPTION_FLT_DENORMAL_OPERAND (0xc000008dL)
#define EXCEPTION_FLT_DIVIDE_BY_ZERO (0xc000008eL)
#define EXCEPTION_FLT_INEXACT_RESULT (0xc000008fL)
#define EXCEPTION_FLT_INVALID_OPERATION (0xc0000090L)
#define EXCEPTION_FLT_OVERFLOW (0xc0000091L)
#define EXCEPTION_FLT_STACK_CHECK (0xc0000092L)
#define EXCEPTION_FLT_UNDERFLOW (0xc0000093L)
#define EXCEPTION_INT_DIVIDE_BY_ZERO (0xc0000094L)
#define EXCEPTION_INT_OVERFLOW (0xc0000095L)
#define EXCEPTION_PRIV_INSTRUCTION (0xc0000096L)
#define EXCEPTION_NONCONTINUABLE_EXCEPTION (0xc0000025L)
#define EXCEPTION_NONCONTINUABLE (0x1)
#define EXCEPTION_STACK_OVERFLOW (0xc00000fdL)
#define EXCEPTION_INVALID_DISPOSITION (0xc0000026L)
/* GetFileType */
#define FILE_TYPE_UNKNOWN (0)
#define FILE_TYPE_DISK (1)
#define FILE_TYPE_CHAR (2)
#define FILE_TYPE_PIPE (3)
/* GetGlyphOutline */
#define GGO_BITMAP (1)
#define GGO_NATIVE (2)
#define GGO_METRICS (0)
#define GGO_GRAY2_BITMAP (4)
#define GGO_GRAY4_BITMAP (5)
#define GGO_GRAY8_BITMAP (6)
#define GDI_ERROR (0xffffffffL)
/* GetGraphicsMode */
#define GM_COMPATIBLE (1)
#define GM_ADVANCED (2)
/* GetHandleInformation */
#define HANDLE_FLAG_INHERIT (1)
#define HANDLE_FLAG_PROTECT_FROM_CLOSE (2)
/* GetIconInfo */
#define IDC_ARROW (MAKEINTRESOURCE(32512))
#define IDC_IBEAM (MAKEINTRESOURCE(32513))
#define IDC_WAIT (MAKEINTRESOURCE(32514))
#define IDC_CROSS (MAKEINTRESOURCE(32515))
#define IDC_UPARROW (MAKEINTRESOURCE(32516))
#define IDC_SIZENWSE (MAKEINTRESOURCE(32642))
#define IDC_SIZENESW (MAKEINTRESOURCE(32643))
#define IDC_SIZEWE (MAKEINTRESOURCE(32644))
#define IDC_SIZENS (MAKEINTRESOURCE(32645))
#define IDC_SIZEALL (MAKEINTRESOURCE(32646))
#define IDC_NO (MAKEINTRESOURCE(32648))
#define IDC_APPSTARTING (MAKEINTRESOURCE(32650))
#define IDC_HELP (MAKEINTRESOURCE(32651))
#define IDI_APPLICATION (MAKEINTRESOURCE(32512))
#define IDI_HAND (MAKEINTRESOURCE(32513))
#define IDI_QUESTION (MAKEINTRESOURCE(32514))
#define IDI_EXCLAMATION (MAKEINTRESOURCE(32515))
#define IDI_ASTERISK (MAKEINTRESOURCE(32516))
#define IDI_WINLOGO (MAKEINTRESOURCE(32517))
#define IDC_SIZE (MAKEINTRESOURCE(32640))
#define IDC_ICON (MAKEINTRESOURCE(32641))
/* GetMapMode */
#define MM_ANISOTROPIC (8)
#define MM_HIENGLISH (5)
#define MM_HIMETRIC (3)
#define MM_ISOTROPIC (7)
#define MM_LOENGLISH (4)
#define MM_LOMETRIC (2)
#define MM_TEXT (1)
#define MM_TWIPS (6)
/* GetMenuDefaultItem */
#define GMDI_GOINTOPOPUPS (0x2L)
#define GMDI_USEDISABLED (0x1L)
/* PeekMessage */
#define PM_NOREMOVE (0)
#define PM_REMOVE (1)
#define PM_NOYIELD (2)
/* GetNamedPipeHandleState */
#define PIPE_NOWAIT (1)
#define PIPE_READMODE_MESSAGE (2)
/* GetNamedPipeInfo */
#define PIPE_CLIENT_END (0)
#define PIPE_SERVER_END (1)
#define PIPE_TYPE_MESSAGE (4)
/* GetNextWindow, GetWindow */
#define GW_HWNDNEXT (2)
#define GW_HWNDPREV (3)
#define GW_CHILD (5)
#define GW_HWNDFIRST (0)
#define GW_HWNDLAST (1)
#define GW_OWNER (4)
/* GetPath */
#define PT_MOVETO (6)
#define PT_LINETO (2)
#define PT_BEZIERTO (4)
#define PT_CLOSEFIGURE (1)
/* GetProcessShutdownParameters */
#define SHUTDOWN_NORETRY (1)
/* GetQueueStatus */
#define QS_ALLEVENTS (191)
#define QS_ALLINPUT (255)
#define QS_HOTKEY (128)
#define QS_INPUT (7)
#define QS_KEY (1)
#define QS_MOUSE (6)
#define QS_MOUSEBUTTON (4)
#define QS_MOUSEMOVE (2)
#define QS_PAINT (32)
#define QS_POSTMESSAGE (8)
#define QS_SENDMESSAGE (64)
#define QS_TIMER (16)
/* GetScrollInfo, SetScrollInfo */
#define SIF_ALL (23)
#define SIF_PAGE (2)
#define SIF_POS (4)
#define SIF_RANGE (1)
#define SIF_DISABLENOSCROLL (8)
/* GetStdHandle */
#define STD_INPUT_HANDLE (DWORD)(-10)
#define STD_OUTPUT_HANDLE (DWORD)(-11)
#define STD_ERROR_HANDLE (DWORD)(-12)
#define INVALID_HANDLE_VALUE ((HANDLE)-1)
/* GetStockObject */
#define BLACK_BRUSH (4)
#define DKGRAY_BRUSH (3)
#define GRAY_BRUSH (2)
#define HOLLOW_BRUSH (5)
#define LTGRAY_BRUSH (1)
#define NULL_BRUSH (5)
#define WHITE_BRUSH (0)
#define BLACK_PEN (7)
#define NULL_PEN (8)
#define WHITE_PEN (6)
#define ANSI_FIXED_FONT (11)
#define ANSI_VAR_FONT (12)
#define DEVICE_DEFAULT_FONT (14)
#define DEFAULT_GUI_FONT (17)
#define OEM_FIXED_FONT (10)
#define SYSTEM_FONT (13)
#define SYSTEM_FIXED_FONT (16)
#define DEFAULT_PALETTE (15)
/* GetStringTypeA */
#define CT_CTYPE1 (1)
#define CT_CTYPE2 (2)
#define CT_CTYPE3 (4)
#define C1_UPPER (1)
#define C1_LOWER (2)
#define C1_DIGIT (4)
#define C1_SPACE (8)
#define C1_PUNCT (16)
#define C1_CNTRL (32)
#define C1_BLANK (64)
#define C1_XDIGIT (128)
#define C1_ALPHA (256)
#define C2_LEFTTORIGHT (1)
#define C2_RIGHTTOLEFT (2)
#define C2_EUROPENUMBER (3)
#define C2_EUROPESEPARATOR (4)
#define C2_EUROPETERMINATOR (5)
#define C2_ARABICNUMBER (6)
#define C2_COMMONSEPARATOR (7)
#define C2_BLOCKSEPARATOR (8)
#define C2_SEGMENTSEPARATOR (9)
#define C2_WHITESPACE (10)
#define C2_OTHERNEUTRAL (11)
#define C2_NOTAPPLICABLE (0)
#define C3_NONSPACING (1)
#define C3_DIACRITIC (2)
#define C3_VOWELMARK (4)
#define C3_SYMBOL (8)
#define C3_KATAKANA (16)
#define C3_HIRAGANA (32)
#define C3_HALFWIDTH (64)
#define C3_FULLWIDTH (128)
#define C3_IDEOGRAPH (256)
#define C3_KASHIDA (512)
#define C3_ALPHA (32768)
#define C3_NOTAPPLICABLE (0)
/* GetSysColor */
#define COLOR_3DDKSHADOW (21)
#define COLOR_3DFACE (15)
#define COLOR_3DHILIGHT (20)
#define COLOR_3DLIGHT (22)
#define COLOR_BTNHILIGHT (20)
#define COLOR_3DSHADOW (16)
#define COLOR_ACTIVEBORDER (10)
#define COLOR_ACTIVECAPTION (2)
#define COLOR_APPWORKSPACE (12)
#define COLOR_BACKGROUND (1)
#define COLOR_DESKTOP (1)
#define COLOR_BTNFACE (15)
#define COLOR_BTNHIGHLIGHT (20)
#define COLOR_BTNSHADOW (16)
#define COLOR_BTNTEXT (18)
#define COLOR_CAPTIONTEXT (9)
#define COLOR_GRAYTEXT (17)
#define COLOR_HIGHLIGHT (13)
#define COLOR_HIGHLIGHTTEXT (14)
#define COLOR_INACTIVEBORDER (11)
#define COLOR_INACTIVECAPTION (3)
#define COLOR_INACTIVECAPTIONTEXT (19)
#define COLOR_INFOBK (24)
#define COLOR_INFOTEXT (23)
#define COLOR_MENU (4)
#define COLOR_MENUTEXT (7)
#define COLOR_SCROLLBAR (0)
#define COLOR_WINDOW (5)
#define COLOR_WINDOWFRAME (6)
#define COLOR_WINDOWTEXT (8)
/* GetSystemMetrics */
#define SM_CYMIN (29)
#define SM_CXMIN (28)
#define SM_ARRANGE (56)
#define SM_CLEANBOOT (67)
#define SM_CMETRICS (75)
#define SM_CMOUSEBUTTONS (43)
#define SM_CXBORDER (5)
#define SM_CYBORDER (6)
#define SM_CXCURSOR (13)
#define SM_CYCURSOR (14)
#define SM_CXDLGFRAME (7)
#define SM_CYDLGFRAME (8)
#define SM_CXDOUBLECLK (36)
#define SM_CYDOUBLECLK (37)
#define SM_CXDRAG (32)
#define SM_CYDRAG (33)
#define SM_CXEDGE (32)
#define SM_CYEDGE (33)
#define SM_CXFIXEDFRAME (32)
#define SM_CYFIXEDFRAME (33)
#define SM_CXFRAME (32)
#define SM_CYFRAME (33)
#define SM_CXFULLSCREEN (16)
#define SM_CYFULLSCREEN (17)
#define SM_CXHSCROLL (21)
#define SM_CYHSCROLL (3)
#define SM_CXHTHUMB (10)
#define SM_CXICON (11)
#define SM_CYICON (12)
#define SM_CXICONSPACING (38)
#define SM_CYICONSPACING (39)
#define SM_CXMAXIMIZED (61)
#define SM_CYMAXIMIZED (62)
#define SM_CXMAXTRACK (59)
#define SM_CYMAXTRACK (60)
#define SM_CXMENUCHECK (71)
#define SM_CYMENUCHECK (72)
#define SM_CXMENUSIZE (54)
#define SM_CYMENUSIZE (55)
#define SM_CXMINIMIZED (57)
#define SM_CYMINIMIZED (58)
#define SM_CXMINSPACING (47)
#define SM_CYMINSPACING (48)
#define SM_CXMINTRACK (34)
#define SM_CYMINTRACK (35)
#define SM_CXSCREEN (0)
#define SM_CYSCREEN (1)
#define SM_CXSIZE (30)
#define SM_CYSIZE (31)
#define SM_CXSIZEFRAME (32)
#define SM_CYSIZEFRAME (33)
#define SM_CXSMICON (49)
#define SM_CYSMICON (50)
#define SM_CXSMSIZE (52)
#define SM_CYSMSIZE (53)
#define SM_CXVSCROLL (2)
#define SM_CYHSCROLL (3)
#define SM_CXHSCROLL (21)
#define SM_CYVSCROLL (20)
#define SM_CYVTHUMB (9)
#define SM_CYCAPTION (4)
#define SM_CYKANJIWINDOW (18)
#define SM_CYMENU (15)
#define SM_CYSMCAPTION (51)
#define SM_DBCSENABLED (42)
#define SM_DEBUG (22)
#define SM_MENUDROPALIGNMENT (40)
#define SM_MIDEASTENABLED (74)
#define SM_MOUSEPRESENT (19)
#define SM_NETWORK (63)
#define SM_PENWINDOWS (41)
#define SM_SECURE (44)
#define SM_SHOWSOUNDS (70)
#define SM_SLOWMACHINE (73)
#define SM_SWAPBUTTON (23)
#define ARW_BOTTOMLEFT (0L)
#define ARW_BOTTOMRIGHT (0x1L)
#define ARW_HIDE (0x8L)
#define ARW_TOPLEFT (0x2L)
#define ARW_TOPRIGHT (0x3L)
#define ARW_DOWN (0x4L)
#define ARW_LEFT (0L)
#define ARW_RIGHT (0L)
#define ARW_UP (0x4L)
/* GetSystemPaletteUse */
#define SYSPAL_NOSTATIC (2)
#define SYSPAL_STATIC (1)
#define SYSPAL_ERROR (0)
/* GetTapeParameters, SetTapeParameters */
#define GET_TAPE_MEDIA_INFORMATION (0)
#define GET_TAPE_DRIVE_INFORMATION (1)
#define SET_TAPE_MEDIA_INFORMATION (0)
#define SET_TAPE_DRIVE_INFORMATION (1)
/* GetTapePosition */
#define TAPE_ABSOLUTE_POSITION (0L)
#define TAPE_LOGICAL_POSITION (0x1L)
/* GetTextAlign */
#define TA_BASELINE (24)
#define TA_BOTTOM (8)
#define TA_TOP (0)
#define TA_CENTER (6)
#define TA_LEFT (0)
#define TA_RIGHT (2)
#define TA_RTLREADING (256)
#define TA_NOUPDATECP (0)
#define TA_UPDATECP (1)
#define VTA_BASELINE (24)
#define VTA_CENTER (6)
/* GetThreadPriority */
#define THREAD_PRIORITY_ABOVE_NORMAL (1)
#define THREAD_PRIORITY_BELOW_NORMAL (-1)
#define THREAD_PRIORITY_HIGHEST (2)
#define THREAD_PRIORITY_IDLE (-15)
#define THREAD_PRIORITY_LOWEST (-2)
#define THREAD_PRIORITY_NORMAL (0)
#define THREAD_PRIORITY_TIME_CRITICAL (15)
#define THREAD_PRIORITY_ERROR_RETURN (2147483647)
#define TLS_MINIMUM_AVAILABLE (64)
/* GetTimeFormat */
#define TIME_NOMINUTESORSECONDS (1)
#define TIME_NOSECONDS (2)
#define TIME_NOTIMEMARKER (4)
#define TIME_FORCE24HOURFORMAT (8)
/* GetTimeZoneInformation */
#define TIME_ZONE_ID_UNKNOWN (0)
#define TIME_ZONE_ID_STANDARD (1)
#define TIME_ZONE_ID_DAYLIGHT (2)
/* GetUserObjectInformation */
#define UOI_FLAGS (1)
#define UOI_NAME (2)
#define UOI_TYPE (3)
/* GetVolumeInformation */
#define FS_CASE_IS_PRESERVED (2)
#define FS_CASE_SENSITIVE (1)
#define FS_UNICODE_STORED_ON_DISK (4)
#define FS_PERSISTENT_ACLS (8)
#define FS_FILE_COMPRESSION (16)
#define FS_VOL_IS_COMPRESSED (32768)
/* GetWindowLong */
#define GWL_EXSTYLE (-20)
#define GWL_STYLE (-16)
#define GWL_WNDPROC (-4)
#define GWL_HINSTANCE (-6)
#define GWL_HWNDPARENT (-8)
#define GWL_ID (-12)
#define GWL_USERDATA (-21)
#define DWL_DLGPROC (4)
#define DWL_MSGRESULT (0)
#define DWL_USER (8)
/* GlobalAlloc, GlobalFlags */
#define GMEM_FIXED (0)
#define GMEM_MOVEABLE (2)
#define GPTR (64)
#define GHND (66)
#define GMEM_DDESHARE (8192)
#define GMEM_DISCARDABLE (256)
#define GMEM_LOWER (4096)
#define GMEM_NOCOMPACT (16)
#define GMEM_NODISCARD (32)
#define GMEM_NOT_BANKED (4096)
#define GMEM_NOTIFY (16384)
#define GMEM_SHARE (8192)
#define GMEM_ZEROINIT (64)
#define GMEM_DISCARDED (16384)
#define GMEM_INVALID_HANDLE (32768)
#define GMEM_LOCKCOUNT (255)
/* HeapAlloc, HeapReAlloc */
#define HEAP_GENERATE_EXCEPTIONS (4)
#define HEAP_NO_SERIALIZE (1)
#define HEAP_ZERO_MEMORY (8)
#define STATUS_NO_MEMORY (0xc0000017L)
#define STATUS_ACCESS_VIOLATION (0xc0000005L)
#define HEAP_REALLOC_IN_PLACE_ONLY (16)
/* ImageList_Create */
#define ILC_COLOR (0)
#define ILC_COLOR4 (4)
#define ILC_COLOR8 (8)
#define ILC_COLOR16 (16)
#define ILC_COLOR24 (24)
#define ILC_COLOR32 (32)
#define ILC_COLORDDB (254)
#define ILC_MASK (1)
#define ILC_PALETTE (2048)
/* ImageList_Draw, ImageList_DrawEx */
#define ILD_BLEND25 (2)
#define ILD_BLEND50 (4)
#define ILD_SELECTED (4)
#define ILD_BLEND (4)
#define ILD_FOCUS (2)
#define ILD_MASK (16)
#define ILD_NORMAL (0)
#define ILD_TRANSPARENT (1)
#define CLR_NONE (0xffffffffL)
#define CLR_DEFAULT (0xff000000L)
/* ImageList_LoadImage */
#define LR_DEFAULTCOLOR (0)
#define LR_LOADFROMFILE (16)
#define LR_LOADMAP3DCOLORS (4096)
#define LR_LOADTRANSPARENT (32)
#define LR_MONOCHROME (1)
/* ImmConfigureIME */
#define IME_CONFIG_GENERAL (1)
#define IME_CONFIG_REGISTERWORD (2)
#define IME_CONFIG_SELECTDICTIONARY (3)
/* ImmGetConversionList */
#define GCL_CONVERSION (1)
#define GCL_REVERSECONVERSION (2)
#define GCL_REVERSE_LENGTH (3)
/* ImmGetGuideLine */
#define GGL_LEVEL (1)
#define GGL_INDEX (2)
#define GGL_STRING (3)
#define GGL_PRIVATE (4)
#define GL_LEVEL_ERROR (2)
#define GL_LEVEL_FATAL (1)
#define GL_LEVEL_INFORMATION (4)
#define GL_LEVEL_NOGUIDELINE (0)
#define GL_LEVEL_WARNING (3)
#define GL_ID_CANNOTSAVE (17)
#define GL_ID_NOCONVERT (32)
#define GL_ID_NODICTIONARY (16)
#define GL_ID_NOMODULE (1)
#define GL_ID_READINGCONFLICT (35)
#define GL_ID_TOOMANYSTROKE (34)
#define GL_ID_TYPINGERROR (33)
#define GL_ID_UNKNOWN (0)
#define GL_ID_INPUTREADING (36)
#define GL_ID_INPUTRADICAL (37)
#define GL_ID_INPUTCODE (38)
#define GL_ID_CHOOSECANDIDATE (40)
#define GL_ID_REVERSECONVERSION (41)
/* ImmGetProperty */
#define IGP_PROPERTY (4)
#define IGP_CONVERSION (8)
#define IGP_SENTENCE (12)
#define IGP_UI (16)
#define IGP_SETCOMPSTR (20)
#define IGP_SELECT (24)
#define IME_PROP_AT_CARET (65536)
#define IME_PROP_SPECIAL_UI (131072)
#define IME_PROP_CANDLIST_START_FROM_1 (262144)
#define IME_PROP_UNICODE (524288)
#define UI_CAP_2700 (1)
#define UI_CAP_ROT90 (2)
#define UI_CAP_ROTANY (4)
#define SCS_CAP_COMPSTR (1)
#define SCS_CAP_MAKEREAD (2)
#define SELECT_CAP_CONVERSION (1)
#define SELECT_CAP_SENTENCE (2)
/* ImmNotifyIME */
#define NI_CHANGECANDIDATELIST (19)
#define NI_CLOSECANDIDATE (17)
#define NI_COMPOSITIONSTR (21)
#define NI_OPENCANDIDATE (16)
#define NI_SELECTCANDIDATESTR (18)
#define NI_SETCANDIDATE_PAGESIZE (23)
#define NI_SETCANDIDATE_PAGESTART (22)
#define CPS_CANCEL (4)
#define CPS_COMPLETE (1)
#define CPS_CONVERT (2)
#define CPS_REVERT (3)
/* ImmSetCompositionString */
#define SCS_SETSTR (9)
#define SCS_CHANGEATTR (18)
#define SCS_CHANGECLAUSE (36)
/* ImmUnregisterWord */
#define IME_REGWORD_STYLE_EUDC (1)
#define IME_REGWORD_STYLE_USER_FIRST 0x80000000
#define IME_REGWORD_STYLE_USER_LAST (-1)
/* InitializeSecurityDescriptor */
#define SECURITY_DESCRIPTOR_REVISION (1)
/* IsTextUnicode */
#define IS_TEXT_UNICODE_ASCII16 (1)
#define IS_TEXT_UNICODE_REVERSE_ASCII16 (16)
#define IS_TEXT_UNICODE_STATISTICS (2)
#define IS_TEXT_UNICODE_REVERSE_STATISTICS (32)
#define IS_TEXT_UNICODE_CONTROLS (4)
#define IS_TEXT_UNICODE_REVERSE_CONTROLS (64)
#define IS_TEXT_UNICODE_SIGNATURE (8)
#define IS_TEXT_UNICODE_REVERSE_SIGNATURE (128)
#define IS_TEXT_UNICODE_ILLEGAL_CHARS (256)
#define IS_TEXT_UNICODE_ODD_LENGTH (512)
#define IS_TEXT_UNICODE_NULL_BYTES (4096)
#define IS_TEXT_UNICODE_UNICODE_MASK (15)
#define IS_TEXT_UNICODE_REVERSE_MASK (240)
#define IS_TEXT_UNICODE_NOT_UNICODE_MASK (3840)
#define IS_TEXT_UNICODE_NOT_ASCII_MASK (61440)
/* JournalPlaybackProc, KeyboardProc */
#define HC_GETNEXT (1)
#define HC_SKIP (2)
#define HC_SYSMODALOFF (5)
#define HC_SYSMODALON (4)
#define HC_NOREMOVE (3)
/* keybd_event */
#define KEYEVENTF_EXTENDEDKEY (1)
#define KEYEVENTF_KEYUP (2)
/* LoadBitmap */
#define OBM_BTNCORNERS (32758)
#define OBM_BTSIZE (32761)
#define OBM_CHECK (32760)
#define OBM_CHECKBOXES (32759)
#define OBM_CLOSE (32754)
#define OBM_COMBO (32738)
#define OBM_DNARROW (32752)
#define OBM_DNARROWD (32742)
#define OBM_DNARROWI (32736)
#define OBM_LFARROW (32750)
#define OBM_LFARROWI (32734)
#define OBM_LFARROWD (32740)
#define OBM_MNARROW (32739)
#define OBM_OLD_CLOSE (32767)
#define OBM_OLD_DNARROW (32764)
#define OBM_OLD_LFARROW (32762)
#define OBM_OLD_REDUCE (32757)
#define OBM_OLD_RESTORE (32755)
#define OBM_OLD_RGARROW (32763)
#define OBM_OLD_UPARROW (32765)
#define OBM_OLD_ZOOM (32756)
#define OBM_REDUCE (32749)
#define OBM_REDUCED (32746)
#define OBM_RESTORE (32747)
#define OBM_RESTORED (32744)
#define OBM_RGARROW (32751)
#define OBM_RGARROWD (32741)
#define OBM_RGARROWI (32735)
#define OBM_SIZE (32766)
#define OBM_UPARROW (32753)
#define OBM_UPARROWD (32743)
#define OBM_UPARROWI (32737)
#define OBM_ZOOM (32748)
#define OBM_ZOOMD (32745)
/* LoadLibraryEx */
#define DONT_RESOLVE_DLL_REFERENCES (1)
#define LOAD_LIBRARY_AS_DATAFILE (2)
#define LOAD_WITH_ALTERED_SEARCH_PATH (8)
/* LocalAlloc, LocalFlags */
#define LPTR (64)
#define LHND (66)
#define NONZEROLHND (2)
#define NONZEROLPTR (0)
#define LMEM_NONZEROLHND (2)
#define LMEM_NONZEROLPTR (0)
#define LMEM_FIXED (0)
#define LMEM_MOVEABLE (2)
#define LMEM_NOCOMPACT (16)
#define LMEM_NODISCARD (32)
#define LMEM_ZEROINIT (64)
#define LMEM_MODIFY (128)
#define LMEM_LOCKCOUNT (255)
#define LMEM_DISCARDABLE (3840)
#define LMEM_DISCARDED (16384)
#define LMEM_INVALID_HANDLE (32768)
/* LockFileEx */
#define LOCKFILE_FAIL_IMMEDIATELY (1)
#define LOCKFILE_EXCLUSIVE_LOCK (2)
/* LogonUser */
/* LZCopy, LZInit, LZRead */
/* MessageBeep, MessageBox */
#define MB_USERICON (0x80L)
#define MB_ICONASTERISK (0x40L)
#define MB_ICONEXCLAMATION (0x30L)
#define MB_ICONWARNING (0x30L)
#define MB_ICONERROR (0x10L)
#define MB_ICONHAND (0x10L)
#define MB_ICONQUESTION (0x20L)
#define MB_OK (0L)
#define MB_ABORTRETRYIGNORE (0x2L)
#define MB_APPLMODAL (0L)
#define MB_DEFAULT_DESKTOP_ONLY (0x20000L)
#define MB_HELP (0x4000L)
#define MB_RIGHT (0x80000L)
#define MB_RTLREADING (0x100000L)
#define MB_TOPMOST (0x40000L)
#define MB_DEFBUTTON1 (0L)
#define MB_DEFBUTTON2 (0x100L)
#define MB_DEFBUTTON3 (0x200L)
#define MB_DEFBUTTON4 (0x300L)
#define MB_ICONINFORMATION (0x40L)
#define MB_ICONSTOP (0x10L)
#define MB_OKCANCEL (0x1L)
#define MB_RETRYCANCEL (0x5L)
#define MB_SERVICE_NOTIFICATION (0x40000L)
#define MB_SETFOREGROUND (0x10000L)
#define MB_SYSTEMMODAL (0x1000L)
#define MB_TASKMODAL (0x2000L)
#define MB_YESNO (0x4L)
#define MB_YESNOCANCEL (0x3L)
#define IDABORT (3)
#define IDCANCEL (2)
#define IDCLOSE (8)
#define IDHELP (9)
#define IDIGNORE (5)
#define IDNO (7)
#define IDOK (1)
#define IDRETRY (4)
#define IDYES (6)
/* MessageProc */
#define MSGF_DIALOGBOX (0)
#define MSGF_MENU (2)
#define MSGF_NEXTWINDOW (6)
#define MSGF_SCROLLBAR (5)
#define MSGF_MAINLOOP (8)
#define MSGF_USER (4096)
/* ModifyWorldTransform */
#define MWT_IDENTITY (1)
#define MWT_LEFTMULTIPLY (2)
#define MWT_RIGHTMULTIPLY (3)
/* mouse_event */
#define MOUSEEVENTF_ABSOLUTE (32768)
#define MOUSEEVENTF_MOVE (1)
#define MOUSEEVENTF_LEFTDOWN (2)
#define MOUSEEVENTF_LEFTUP (4)
#define MOUSEEVENTF_RIGHTDOWN (8)
#define MOUSEEVENTF_RIGHTUP (16)
#define MOUSEEVENTF_MIDDLEDOWN (32)
#define MOUSEEVENTF_MIDDLEUP (64)
/* MoveFileEx */
#define MOVEFILE_REPLACE_EXISTING (1)
#define MOVEFILE_COPY_ALLOWED (2)
#define MOVEFILE_DELAY_UNTIL_REBOOT (4)
/* MsgWaitForMultipleObjects, WaitForMultipleObjectsEx */
#define WAIT_OBJECT_0 (0L)
#define WAIT_ABANDONED_0 (0x80L)
#define WAIT_TIMEOUT (0x102L)
#define WAIT_IO_COMPLETION (0xc0L)
#define WAIT_ABANDONED (0x80L)
#define WAIT_FAILED (0xffffffffL)
#define MAXIMUM_WAIT_OBJECTS (0x40)
#define MAXIMUM_SUSPEND_COUNT (0x7f)
/* MultiByteToWideChar */
#define MB_PRECOMPOSED (1)
#define MB_COMPOSITE (2)
#define MB_ERR_INVALID_CHARS (8)
#define MB_USEGLYPHCHARS (4)
/* NDdeSetTrustedShare */
/* NetAccessCheck */
/* NetServerEnum */
/* NetServiceControl */
/* NetUserEnum */
/* OpenProcessToken */
#define TOKEN_ADJUST_DEFAULT (128)
#define TOKEN_ADJUST_GROUPS (64)
#define TOKEN_ADJUST_PRIVILEGES (32)
#define TOKEN_ALL_ACCESS (0xf00ffL)
#define TOKEN_ASSIGN_PRIMARY (1)
#define TOKEN_DUPLICATE (2)
#define TOKEN_EXECUTE (0x20000L)
#define TOKEN_IMPERSONATE (4)
#define TOKEN_QUERY (8)
#define TOKEN_QUERY_SOURCE (16)
#define TOKEN_READ (0x20008L)
#define TOKEN_WRITE (0x200e0L)
/* OpenSCManager */
#define SC_MANAGER_ALL_ACCESS (0xf003fL)
#define SC_MANAGER_CONNECT (1)
#define SC_MANAGER_CREATE_SERVICE (2)
#define SC_MANAGER_ENUMERATE_SERVICE (4)
#define SC_MANAGER_LOCK (8)
#define SC_MANAGER_QUERY_LOCK_STATUS (16)
#define SC_MANAGER_MODIFY_BOOT_CONFIG (32)
/* PostMessage */
#define HWND_BROADCAST ((HWND)0xFFFF)
/* PrepareTape */
#define TAPE_FORMAT (0x5L)
#define TAPE_LOAD (0L)
#define TAPE_LOCK (0x3L)
#define TAPE_TENSION (0x2L)
#define TAPE_UNLOAD (0x1L)
#define TAPE_UNLOCK (0x4L)
/* PropertySheet */
#define IS_PSREBOOTSYSTEM (3)
#define IS_PSRESTARTWINDOWS (2)
/* PropSheetPageProc */
#define PSPCB_CREATE (2)
#define PSPCB_RELEASE (1)
/* PurgeComm */
#define PURGE_TXABORT (1)
#define PURGE_RXABORT (2)
#define PURGE_TXCLEAR (4)
#define PURGE_RXCLEAR (8)
/* QueryServiceObjectSecurity */
#define OWNER_SECURITY_INFORMATION (0x1L)
#define GROUP_SECURITY_INFORMATION (0x2L)
#define DACL_SECURITY_INFORMATION (0x4L)
#define SACL_SECURITY_INFORMATION (0x8L)
/* ReadEventLog, ReportEvent */
#define EVENTLOG_FORWARDS_READ (4)
#define EVENTLOG_BACKWARDS_READ (8)
#define EVENTLOG_SEEK_READ (2)
#define EVENTLOG_SEQUENTIAL_READ (1)
#define EVENTLOG_ERROR_TYPE (1)
#define EVENTLOG_WARNING_TYPE (2)
#define EVENTLOG_INFORMATION_TYPE (4)
#define EVENTLOG_AUDIT_SUCCESS (8)
#define EVENTLOG_AUDIT_FAILURE (16)
/* RedrawWindow */
#define RDW_ERASE (4)
#define RDW_FRAME (1024)
#define RDW_INTERNALPAINT (2)
#define RDW_INVALIDATE (1)
#define RDW_NOERASE (32)
#define RDW_NOFRAME (2048)
#define RDW_NOINTERNALPAINT (16)
#define RDW_VALIDATE (8)
#define RDW_ERASENOW (512)
#define RDW_UPDATENOW (256)
#define RDW_ALLCHILDREN (128)
#define RDW_NOCHILDREN (64)
/* RegCreateKey */
#define HKEY_CLASSES_ROOT ((HKEY)0x80000000)
#define HKEY_CURRENT_USER ((HKEY)0x80000001)
#define HKEY_LOCAL_MACHINE ((HKEY)0x80000002)
#define HKEY_USERS ((HKEY)0x80000003)
#define HKEY_PERFORMANCE_DATA ((HKEY)0x80000004)
#define HKEY_CURRENT_CONFIG ((HKEY)0x80000005)
/* RegCreateKeyEx */
#define REG_OPTION_VOLATILE (0x1L)
#define REG_OPTION_NON_VOLATILE (0L)
#define REG_CREATED_NEW_KEY (0x1L)
#define REG_OPENED_EXISTING_KEY (0x2L)
/* RegEnumValue */
#define REG_BINARY (3)
#define REG_DWORD (4)
#define REG_DWORD_LITTLE_ENDIAN (4)
#define REG_DWORD_BIG_ENDIAN (5)
#define REG_EXPAND_SZ (2)
#define REG_LINK (6)
#define REG_MULTI_SZ (7)
#define REG_NONE (0)
#define REG_RESOURCE_LIST (8)
#define REG_SZ (1)
/* RegisterHotKey */
#define MOD_ALT (1)
#define MOD_CONTROL (2)
#define MOD_SHIFT (4)
#define MOD_WIN (8)
#define IDHOT_SNAPDESKTOP (-2)
#define IDHOT_SNAPWINDOW (-1)
/* RegNotifyChangeKeyValue */
#define REG_NOTIFY_CHANGE_NAME (0x1L)
#define REG_NOTIFY_CHANGE_ATTRIBUTES (0x2L)
#define REG_NOTIFY_CHANGE_LAST_SET (0x4L)
#define REG_NOTIFY_CHANGE_SECURITY (0x8L)
/* ScrollWindowEx */
#define SW_ERASE (4)
#define SW_INVALIDATE (2)
#define SW_SCROLLCHILDREN (1)
/* SendMessageTimeout */
#define SMTO_ABORTIFHUNG (2)
#define SMTO_BLOCK (1)
#define SMTO_NORMAL (0)
/* SetBkMode */
#define OPAQUE (2)
#define TRANSPARENT (1)
/* SetDebugErrorLevel */
#define SLE_ERROR (1)
#define SLE_MINORERROR (2)
#define SLE_WARNING (3)
/* SetErrorMode */
#define SEM_FAILCRITICALERRORS (1)
#define SEM_NOALIGNMENTFAULTEXCEPT (4)
#define SEM_NOGPFAULTERRORBOX (2)
#define SEM_NOOPENFILEERRORBOX (32768)
/* SetICMMode */
#define ICM_ON (2)
#define ICM_OFF (1)
#define ICM_QUERY (3)
/* SetJob */
/* Locale Information */
#define LOCALE_ILANGUAGE (1)
#define LOCALE_SLANGUAGE (2)
#define LOCALE_SENGLANGUAGE (4097)
#define LOCALE_SABBREVLANGNAME (3)
#define LOCALE_SNATIVELANGNAME (4)
#define LOCALE_ICOUNTRY (5)
#define LOCALE_SCOUNTRY (6)
#define LOCALE_SENGCOUNTRY (4098)
#define LOCALE_SABBREVCTRYNAME (7)
#define LOCALE_SNATIVECTRYNAME (8)
#define LOCALE_IDEFAULTLANGUAGE (9)
#define LOCALE_IDEFAULTCOUNTRY (10)
#define LOCALE_IDEFAULTANSICODEPAGE (4100)
#define LOCALE_IDEFAULTCODEPAGE (11)
#define LOCALE_SLIST (12)
#define LOCALE_IMEASURE (13)
#define LOCALE_SDECIMAL (14)
#define LOCALE_STHOUSAND (15)
#define LOCALE_SGROUPING (16)
#define LOCALE_IDIGITS (17)
#define LOCALE_ILZERO (18)
#define LOCALE_INEGNUMBER (4112)
#define LOCALE_SCURRENCY (20)
#define LOCALE_SMONDECIMALSEP (22)
#define LOCALE_SMONTHOUSANDSEP (23)
#define LOCALE_SMONGROUPING (24)
#define LOCALE_ICURRDIGITS (25)
#define LOCALE_ICURRENCY (27)
#define LOCALE_INEGCURR (28)
#define LOCALE_SDATE (29)
#define LOCALE_STIME (30)
#define LOCALE_STIMEFORMAT (4099)
#define LOCALE_SSHORTDATE (31)
#define LOCALE_SLONGDATE (32)
#define LOCALE_IDATE (33)
#define LOCALE_ILDATE (34)
#define LOCALE_ITIME (35)
#define LOCALE_ITLZERO (37)
#define LOCALE_IDAYLZERO (38)
#define LOCALE_IMONLZERO (39)
#define LOCALE_S1159 (40)
#define LOCALE_S2359 (41)
#define LOCALE_ICALENDARTYPE (4105)
#define LOCALE_IOPTIONALCALENDAR (4107)
#define LOCALE_IFIRSTDAYOFWEEK (4108)
#define LOCALE_IFIRSTWEEKOFYEAR (4109)
#define LOCALE_SDAYNAME1 (42)
#define LOCALE_SDAYNAME2 (43)
#define LOCALE_SDAYNAME3 (44)
#define LOCALE_SDAYNAME4 (45)
#define LOCALE_SDAYNAME5 (46)
#define LOCALE_SDAYNAME6 (47)
#define LOCALE_SDAYNAME7 (48)
#define LOCALE_SABBREVDAYNAME1 (49)
#define LOCALE_SABBREVDAYNAME2 (50)
#define LOCALE_SABBREVDAYNAME3 (51)
#define LOCALE_SABBREVDAYNAME4 (52)
#define LOCALE_SABBREVDAYNAME5 (53)
#define LOCALE_SABBREVDAYNAME6 (54)
#define LOCALE_SABBREVDAYNAME7 (55)
#define LOCALE_SMONTHNAME1 (56)
#define LOCALE_SMONTHNAME2 (57)
#define LOCALE_SMONTHNAME3 (58)
#define LOCALE_SMONTHNAME4 (59)
#define LOCALE_SMONTHNAME5 (60)
#define LOCALE_SMONTHNAME6 (61)
#define LOCALE_SMONTHNAME7 (62)
#define LOCALE_SMONTHNAME8 (63)
#define LOCALE_SMONTHNAME9 (64)
#define LOCALE_SMONTHNAME10 (65)
#define LOCALE_SMONTHNAME11 (66)
#define LOCALE_SMONTHNAME12 (67)
#define LOCALE_SMONTHNAME13 (4110)
#define LOCALE_SABBREVMONTHNAME1 (68)
#define LOCALE_SABBREVMONTHNAME2 (69)
#define LOCALE_SABBREVMONTHNAME3 (70)
#define LOCALE_SABBREVMONTHNAME4 (71)
#define LOCALE_SABBREVMONTHNAME5 (72)
#define LOCALE_SABBREVMONTHNAME6 (73)
#define LOCALE_SABBREVMONTHNAME7 (74)
#define LOCALE_SABBREVMONTHNAME8 (75)
#define LOCALE_SABBREVMONTHNAME9 (76)
#define LOCALE_SABBREVMONTHNAME10 (77)
#define LOCALE_SABBREVMONTHNAME11 (78)
#define LOCALE_SABBREVMONTHNAME12 (79)
#define LOCALE_SABBREVMONTHNAME13 (4111)
#define LOCALE_SPOSITIVESIGN (80)
#define LOCALE_SNEGATIVESIGN (81)
#define LOCALE_IPOSSIGNPOSN (82)
#define LOCALE_INEGSIGNPOSN (83)
#define LOCALE_IPOSSYMPRECEDES (84)
#define LOCALE_IPOSSEPBYSPACE (85)
#define LOCALE_INEGSYMPRECEDES (86)
#define LOCALE_INEGSEPBYSPACE (87)
#define LOCALE_NOUSEROVERRIDE (0x80000000)
/* Calendar Type Information */
#define CAL_ICALINTVALUE (1)
#define CAL_IYEAROFFSETRANGE (3)
#define CAL_SABBREVDAYNAME1 (14)
#define CAL_SABBREVDAYNAME2 (15)
#define CAL_SABBREVDAYNAME3 (16)
#define CAL_SABBREVDAYNAME4 (17)
#define CAL_SABBREVDAYNAME5 (18)
#define CAL_SABBREVDAYNAME6 (19)
#define CAL_SABBREVDAYNAME7 (20)
#define CAL_SABBREVMONTHNAME1 (34)
#define CAL_SABBREVMONTHNAME2 (35)
#define CAL_SABBREVMONTHNAME3 (36)
#define CAL_SABBREVMONTHNAME4 (37)
#define CAL_SABBREVMONTHNAME5 (38)
#define CAL_SABBREVMONTHNAME6 (39)
#define CAL_SABBREVMONTHNAME7 (40)
#define CAL_SABBREVMONTHNAME8 (41)
#define CAL_SABBREVMONTHNAME9 (42)
#define CAL_SABBREVMONTHNAME10 (43)
#define CAL_SABBREVMONTHNAME11 (44)
#define CAL_SABBREVMONTHNAME12 (45)
#define CAL_SABBREVMONTHNAME13 (46)
#define CAL_SCALNAME (2)
#define CAL_SDAYNAME1 (7)
#define CAL_SDAYNAME2 (8)
#define CAL_SDAYNAME3 (9)
#define CAL_SDAYNAME4 (10)
#define CAL_SDAYNAME5 (11)
#define CAL_SDAYNAME6 (12)
#define CAL_SDAYNAME7 (13)
#define CAL_SERASTRING (4)
#define CAL_SLONGDATE (6)
#define CAL_SMONTHNAME1 (21)
#define CAL_SMONTHNAME2 (22)
#define CAL_SMONTHNAME3 (23)
#define CAL_SMONTHNAME4 (24)
#define CAL_SMONTHNAME5 (25)
#define CAL_SMONTHNAME6 (26)
#define CAL_SMONTHNAME7 (27)
#define CAL_SMONTHNAME8 (28)
#define CAL_SMONTHNAME9 (29)
#define CAL_SMONTHNAME10 (30)
#define CAL_SMONTHNAME11 (31)
#define CAL_SMONTHNAME12 (32)
#define CAL_SMONTHNAME13 (33)
#define CAL_SSHORTDATE (5)
/* SetProcessWorkingSetSize */
#define PROCESS_SET_QUOTA (256)
/* SetPrinter */
/* SetService */
/* SetStretchBltMode */
#define BLACKONWHITE (1)
#define COLORONCOLOR (3)
#define HALFTONE (4)
#define STRETCH_ANDSCANS (1)
#define STRETCH_DELETESCANS (3)
#define STRETCH_HALFTONE (4)
#define STRETCH_ORSCANS (2)
#define WHITEONBLACK (2)
/* SetSystemCursor */
#define OCR_NORMAL (32512)
#define OCR_IBEAM (32513)
#define OCR_WAIT (32514)
#define OCR_CROSS (32515)
#define OCR_UP (32516)
#define OCR_SIZE (32640)
#define OCR_ICON (32641)
#define OCR_SIZENWSE (32642)
#define OCR_SIZENESW (32643)
#define OCR_SIZEWE (32644)
#define OCR_SIZENS (32645)
#define OCR_SIZEALL (32646)
#define OCR_NO (32648)
#define OCR_APPSTARTING (32650)
/* SetTapePosition */
#define TAPE_ABSOLUTE_BLOCK (0x1L)
#define TAPE_LOGICAL_BLOCK (0x2L)
#define TAPE_REWIND (0L)
#define TAPE_SPACE_END_OF_DATA (0x4L)
#define TAPE_SPACE_FILEMARKS (0x6L)
#define TAPE_SPACE_RELATIVE_BLOCKS (0x5L)
#define TAPE_SPACE_SEQUENTIAL_FMKS (0x7L)
#define TAPE_SPACE_SEQUENTIAL_SMKS (0x9L)
#define TAPE_SPACE_SETMARKS (0x8L)
/* SetUnhandledExceptionFilter */
#define EXCEPTION_EXECUTE_HANDLER (1)
#define EXCEPTION_CONTINUE_EXECUTION (-1)
#define EXCEPTION_CONTINUE_SEARCH (0)
/* SetWindowPos, DeferWindowPos */
#define HWND_BOTTOM ((HWND)1)
#define HWND_NOTOPMOST ((HWND)-2)
#define HWND_TOP ((HWND)0)
#define HWND_TOPMOST ((HWND)-1)
#define SWP_DRAWFRAME (32)
#define SWP_FRAMECHANGED (32)
#define SWP_HIDEWINDOW (128)
#define SWP_NOACTIVATE (16)
#define SWP_NOCOPYBITS (256)
#define SWP_NOMOVE (2)
#define SWP_NOSIZE (1)
#define SWP_NOREDRAW (8)
#define SWP_NOZORDER (4)
#define SWP_SHOWWINDOW (64)
#define SWP_NOOWNERZORDER (512)
#define SWP_NOREPOSITION (512)
#define SWP_NOSENDCHANGING (1024)
/* SHAddToRecentDocs */
/* SHAppBarMessage */
/* SHChangeNotify */
/* ShellProc */
#define HSHELL_ACTIVATESHELLWINDOW (3)
#define HSHELL_GETMINRECT (5)
#define HSHELL_LANGUAGE (8)
#define HSHELL_REDRAW (6)
#define HSHELL_TASKMAN (7)
#define HSHELL_WINDOWACTIVATED (4)
#define HSHELL_WINDOWCREATED (1)
#define HSHELL_WINDOWDESTROYED (2)
/* SHGetFileInfo */
/* SHGetSpecialFolderLocation */
/* ShowWindow */
#define SW_HIDE (0)
#define SW_MAXIMIZE (3)
#define SW_MINIMIZE (6)
#define SW_NORMAL (1)
#define SW_RESTORE (9)
#define SW_SHOW (5)
#define SW_SHOWDEFAULT (10)
#define SW_SHOWMAXIMIZED (3)
#define SW_SHOWMINIMIZED (2)
#define SW_SHOWMINNOACTIVE (7)
#define SW_SHOWNA (8)
#define SW_SHOWNOACTIVATE (4)
#define SW_SHOWNORMAL (1)
#define WPF_RESTORETOMAXIMIZED (2)
#define WPF_SETMINPOSITION (1)
/* Sleep */
#define INFINITE 0xFFFFFFFF
/* SystemParametersInfo */
#define SPI_GETACCESSTIMEOUT (60)
#define SPI_GETANIMATION (72)
#define SPI_GETBEEP (1)
#define SPI_GETBORDER (5)
#define SPI_GETDEFAULTINPUTLANG (89)
#define SPI_GETDRAGFULLWINDOWS (38)
#define SPI_GETFASTTASKSWITCH (35)
#define SPI_GETFILTERKEYS (50)
#define SPI_GETFONTSMOOTHING (74)
#define SPI_GETGRIDGRANULARITY (18)
#define SPI_GETHIGHCONTRAST (66)
#define SPI_GETICONMETRICS (45)
#define SPI_GETICONTITLELOGFONT (31)
#define SPI_GETICONTITLEWRAP (25)
#define SPI_GETKEYBOARDDELAY (22)
#define SPI_GETKEYBOARDPREF (68)
#define SPI_GETKEYBOARDSPEED (10)
#define SPI_GETLOWPOWERACTIVE (83)
#define SPI_GETLOWPOWERTIMEOUT (79)
#define SPI_GETMENUDROPALIGNMENT (27)
#define SPI_GETMINIMIZEDMETRICS (43)
#define SPI_GETMOUSE (3)
#define SPI_GETMOUSEKEYS (54)
#define SPI_GETMOUSETRAILS (94)
#define SPI_GETNONCLIENTMETRICS (41)
#define SPI_GETPOWEROFFACTIVE (84)
#define SPI_GETPOWEROFFTIMEOUT (80)
#define SPI_GETSCREENREADER (70)
#define SPI_GETSCREENSAVEACTIVE (16)
#define SPI_GETSCREENSAVETIMEOUT (14)
#define SPI_GETSERIALKEYS (62)
#define SPI_GETSHOWSOUNDS (56)
#define SPI_GETSOUNDSENTRY (64)
#define SPI_GETSTICKYKEYS (58)
#define SPI_GETTOGGLEKEYS (52)
#define SPI_GETWINDOWSEXTENSION (92)
#define SPI_GETWORKAREA (48)
#define SPI_ICONHORIZONTALSPACING (13)
#define SPI_ICONVERTICALSPACING (24)
#define SPI_LANGDRIVER (12)
#define SPI_SCREENSAVERRUNNING (97)
#define SPI_SETACCESSTIMEOUT (61)
#define SPI_SETANIMATION (73)
#define SPI_SETBEEP (2)
#define SPI_SETBORDER (6)
#define SPI_SETDEFAULTINPUTLANG (90)
#define SPI_SETDESKPATTERN (21)
#define SPI_SETDESKWALLPAPER (20)
#define SPI_SETDOUBLECLICKTIME (32)
#define SPI_SETDOUBLECLKHEIGHT (30)
#define SPI_SETDOUBLECLKWIDTH (29)
#define SPI_SETDRAGFULLWINDOWS (37)
#define SPI_SETDRAGHEIGHT (77)
#define SPI_SETDRAGWIDTH (76)
#define SPI_SETFASTTASKSWITCH (36)
#define SPI_SETFILTERKEYS (51)
#define SPI_SETFONTSMOOTHING (75)
#define SPI_SETGRIDGRANULARITY (19)
#define SPI_SETHANDHELD (78)
#define SPI_SETHIGHCONTRAST (67)
#define SPI_SETICONMETRICS (46)
#define SPI_SETICONTITLELOGFONT (34)
#define SPI_SETICONTITLEWRAP (26)
#define SPI_SETKEYBOARDDELAY (23)
#define SPI_SETKEYBOARDPREF (69)
#define SPI_SETKEYBOARDSPEED (11)
#define SPI_SETLANGTOGGLE (91)
#define SPI_SETLOWPOWERACTIVE (85)
#define SPI_SETLOWPOWERTIMEOUT (81)
#define SPI_SETMENUDROPALIGNMENT (28)
#define SPI_SETMINIMIZEDMETRICS (44)
#define SPI_SETMOUSE (4)
#define SPI_SETMOUSEBUTTONSWAP (33)
#define SPI_SETMOUSEKEYS (55)
#define SPI_SETMOUSETRAILS (93)
#define SPI_SETNONCLIENTMETRICS (42)
#define SPI_SETPENWINDOWS (49)
#define SPI_SETPOWEROFFACTIVE (86)
#define SPI_SETPOWEROFFTIMEOUT (82)
#define SPI_SETSCREENREADER (71)
#define SPI_SETSCREENSAVEACTIVE (17)
#define SPI_SETSCREENSAVETIMEOUT (15)
#define SPI_SETSERIALKEYS (63)
#define SPI_SETSHOWSOUNDS (57)
#define SPI_SETSOUNDSENTRY (65)
#define SPI_SETSTICKYKEYS (59)
#define SPI_SETTOGGLEKEYS (53)
#define SPI_SETWORKAREA (47)
#define SPIF_UPDATEINIFILE (1)
#define SPIF_SENDWININICHANGE (2)
#define SPIF_SENDCHANGE (2)
/* TrackPopupMenu, TrackPopMenuEx */
#define TPM_CENTERALIGN (0x4L)
#define TPM_LEFTALIGN (0L)
#define TPM_RIGHTALIGN (0x8L)
#define TPM_LEFTBUTTON (0L)
#define TPM_RIGHTBUTTON (0x2L)
#define TPM_HORIZONTAL (0L)
#define TPM_VERTICAL (0x40L)
/* TranslateCharsetInfo */
#define TCI_SRCCHARSET (1)
#define TCI_SRCCODEPAGE (2)
#define TCI_SRCFONTSIG (3)
/* VerFindFile */
#define VFFF_ISSHAREDFILE (1)
#define VFF_CURNEDEST (1)
#define VFF_FILEINUSE (2)
#define VFF_BUFFTOOSMALL (4)
/* VerInstallFile */
#define VIFF_FORCEINSTALL (1)
#define VIFF_DONTDELETEOLD (2)
#define VIF_TEMPFILE (0x1L)
#define VIF_MISMATCH (0x2L)
#define VIF_SRCOLD (0x4L)
#define VIF_DIFFLANG (0x8L)
#define VIF_DIFFCODEPG (0x10L)
#define VIF_DIFFTYPE (0x20L)
#define VIF_WRITEPROT (0x40L)
#define VIF_FILEINUSE (0x80L)
#define VIF_OUTOFSPACE (0x100L)
#define VIF_ACCESSVIOLATION (0x200L)
#define VIF_SHARINGVIOLATION (0x400L)
#define VIF_CANNOTCREATE (0x800L)
#define VIF_CANNOTDELETE (0x1000L)
#define VIF_CANNOTDELETECUR (0x4000L)
#define VIF_CANNOTRENAME (0x2000L)
#define VIF_OUTOFMEMORY (0x8000L)
#define VIF_CANNOTREADSRC (0x10000L)
#define VIF_CANNOTREADDST (0x20000L)
#define VIF_BUFFTOOSMALL (0x40000L)
/* WideCharToMultiByte */
#define WC_COMPOSITECHECK (512)
#define WC_DISCARDNS (16)
#define WC_SEPCHARS (32)
#define WC_DEFAULTCHAR (64)
/* WinHelp */
#define HELP_COMMAND (0x102L)
#define HELP_CONTENTS (0x3L)
#define HELP_CONTEXT (0x1L)
#define HELP_CONTEXTPOPUP (0x8L)
#define HELP_FORCEFILE (0x9L)
#define HELP_HELPONHELP (0x4L)
#define HELP_INDEX (0x3L)
#define HELP_KEY (0x101L)
#define HELP_MULTIKEY (0x201L)
#define HELP_PARTIALKEY (0x105L)
#define HELP_QUIT (0x2L)
#define HELP_SETCONTENTS (0x5L)
#define HELP_SETINDEX (0x5L)
#define HELP_CONTEXTMENU (0xa)
#define HELP_FINDER (0xb)
#define HELP_WM_HELP (0xc)
#define HELP_TCARD (0x8000)
#define HELP_TCARD_DATA (0x10)
#define HELP_TCARD_OTHER_CALLER (0x11)
/* WNetAddConnectino2 */
#define CONNECT_UPDATE_PROFILE (1)
/* WNetConnectionDialog, WNetDisconnectDialog, WNetOpenEnum */
#define RESOURCETYPE_DISK (1)
#define RESOURCETYPE_PRINT (2)
#define RESOURCETYPE_ANY (0)
#define RESOURCE_CONNECTED (1)
#define RESOURCE_GLOBALNET (2)
#define RESOURCE_REMEMBERED (3)
#define RESOURCEUSAGE_CONNECTABLE (1)
#define RESOURCEUSAGE_CONTAINER (2)
/* WNetGetResourceInformation, WNetGetResourceParent */
#define WN_BAD_NETNAME (0x43L)
#define WN_EXTENDED_ERROR (0x4b8L)
#define WN_MORE_DATA (0xeaL)
#define WN_NO_NETWORK (0x4c6L)
#define WN_SUCCESS (0L)
#define WN_ACCESS_DENIED (0x5L)
#define WN_BAD_PROVIDER (0x4b4L)
#define WN_NOT_AUTHENTICATED (0x4dcL)
/* WNetGetUniversalName */
#define UNIVERSAL_NAME_INFO_LEVEL (1)
#define REMOTE_NAME_INFO_LEVEL (2)
/* GetExitCodeThread */
#define STILL_ACTIVE (0x103L)
/* COMMPROP structure */
#define SP_SERIALCOMM (0x1L)
#define BAUD_075 (0x1L)
#define BAUD_110 (0x2L)
#define BAUD_134_5 (0x4L)
#define BAUD_150 (0x8L)
#define BAUD_300 (0x10L)
#define BAUD_600 (0x20L)
#define BAUD_1200 (0x40L)
#define BAUD_1800 (0x80L)
#define BAUD_2400 (0x100L)
#define BAUD_4800 (0x200L)
#define BAUD_7200 (0x400L)
#define BAUD_9600 (0x800L)
#define BAUD_14400 (0x1000L)
#define BAUD_19200 (0x2000L)
#define BAUD_38400 (0x4000L)
#define BAUD_56K (0x8000L)
#define BAUD_57600 (0x40000L)
#define BAUD_115200 (0x20000L)
#define BAUD_128K (0x10000L)
#define BAUD_USER (0x10000000L)
#define PST_FAX (0x21L)
#define PST_LAT (0x101L)
#define PST_MODEM (0x6L)
#define PST_NETWORK_BRIDGE (0x100L)
#define PST_PARALLELPORT (0x2L)
#define PST_RS232 (0x1L)
#define PST_RS422 (0x3L)
#define PST_RS423 (0x4L)
#define PST_RS449 (0x5L)
#define PST_SCANNER (0x22L)
#define PST_TCPIP_TELNET (0x102L)
#define PST_UNSPECIFIED (0L)
#define PST_X25 (0x103L)
#define PCF_16BITMODE (0x200L)
#define PCF_DTRDSR (0x1L)
#define PCF_INTTIMEOUTS (0x80L)
#define PCF_PARITY_CHECK (0x8L)
#define PCF_RLSD (0x4L)
#define PCF_RTSCTS (0x2L)
#define PCF_SETXCHAR (0x20L)
#define PCF_SPECIALCHARS (0x100L)
#define PCF_TOTALTIMEOUTS (0x40L)
#define PCF_XONXOFF (0x10L)
#define SP_BAUD (0x2L)
#define SP_DATABITS (0x4L)
#define SP_HANDSHAKING (0x10L)
#define SP_PARITY (0x1L)
#define SP_PARITY_CHECK (0x20L)
#define SP_RLSD (0x40L)
#define SP_STOPBITS (0x8L)
#define DATABITS_5 (1)
#define DATABITS_6 (2)
#define DATABITS_7 (4)
#define DATABITS_8 (8)
#define DATABITS_16 (16)
#define DATABITS_16X (32)
#define STOPBITS_10 (1)
#define STOPBITS_15 (2)
#define STOPBITS_20 (4)
#define PARITY_NONE (256)
#define PARITY_ODD (512)
#define PARITY_EVEN (1024)
#define PARITY_MARK (2048)
#define PARITY_SPACE (4096)
#define COMMPROP_INITIALIZED (0xe73cf52eL)
/* DCB structure */
#define CBR_110 (110)
#define CBR_300 (300)
#define CBR_600 (600)
#define CBR_1200 (1200)
#define CBR_2400 (2400)
#define CBR_4800 (4800)
#define CBR_9600 (9600)
#define CBR_14400 (14400)
#define CBR_19200 (19200)
#define CBR_38400 (38400)
#define CBR_56000 (56000)
#define CBR_57600 (57600)
#define CBR_115200 (115200)
#define CBR_128000 (128000)
#define CBR_256000 (256000)
#define DTR_CONTROL_DISABLE (0)
#define DTR_CONTROL_ENABLE (1)
#define DTR_CONTROL_HANDSHAKE (2)
#define RTS_CONTROL_DISABLE (0)
#define RTS_CONTROL_ENABLE (1)
#define RTS_CONTROL_HANDSHAKE (2)
#define RTS_CONTROL_TOGGLE (3)
#define EVENPARITY (2)
#define MARKPARITY (3)
#define NOPARITY (0)
#define ODDPARITY (1)
#define SPACEPARITY (4)
#define ONESTOPBIT (0)
#define ONE5STOPBITS (1)
#define TWOSTOPBITS (2)
/* Debugging events */
#define CREATE_PROCESS_DEBUG_EVENT (3)
#define CREATE_THREAD_DEBUG_EVENT (2)
#define EXCEPTION_DEBUG_EVENT (1)
#define EXIT_PROCESS_DEBUG_EVENT (5)
#define EXIT_THREAD_DEBUG_EVENT (4)
#define LOAD_DLL_DEBUG_EVENT (6)
#define OUTPUT_DEBUG_STRING_EVENT (8)
#define UNLOAD_DLL_DEBUG_EVENT (7)
#define RIP_EVENT (9)
/* PROCESS_HEAP_ENTRY structure */
#define PROCESS_HEAP_REGION (1)
#define PROCESS_HEAP_UNCOMMITTED_RANGE (2)
#define PROCESS_HEAP_ENTRY_BUSY (4)
#define PROCESS_HEAP_ENTRY_MOVEABLE (16)
#define PROCESS_HEAP_ENTRY_DDESHARE (32)
/* Win32s */
#define HINSTANCE_ERROR (32)
/* WIN32_STREAM_ID structure */
#define BACKUP_DATA (1)
#define BACKUP_EA_DATA (2)
#define BACKUP_SECURITY_DATA (3)
#define BACKUP_ALTERNATE_DATA (4)
#define BACKUP_LINK (5)
#define STREAM_MODIFIED_WHEN_READ (1)
#define STREAM_CONTAINS_SECURITY (2)
/* STARTUPINFO structure */
#define STARTF_USESHOWWINDOW (1)
#define STARTF_USEPOSITION (4)
#define STARTF_USESIZE (2)
#define STARTF_USECOUNTCHARS (8)
#define STARTF_USEFILLATTRIBUTE (16)
#define STARTF_RUNFULLSCREEN (32)
#define STARTF_FORCEONFEEDBACK (64)
#define STARTF_FORCEOFFFEEDBACK (128)
#define STARTF_USESTDHANDLES (256)
#define STARTF_USEHOTKEY (512)
/* OSVERSIONINFO structure */
#define VER_PLATFORM_WIN32s (0)
#define VER_PLATFORM_WIN32_WINDOWS (1)
#define VER_PLATFORM_WIN32_NT (2)
/* PROPSHEETPAGE structure */
#define MAXPROPPAGES (100)
#define PSP_DEFAULT (0)
#define PSP_DLGINDIRECT (1)
#define PSP_HASHELP (32)
#define PSP_USECALLBACK (128)
#define PSP_USEHICON (2)
#define PSP_USEICONID (4)
#define PSP_USEREFPARENT (64)
#define PSP_USETITLE (8)
#define PSP_RTLREADING (16)
/* PROPSHEETHEADER structure */
#define PSH_DEFAULT (0)
#define PSH_HASHELP (512)
#define PSH_MODELESS (1024)
#define PSH_NOAPPLYNOW (128)
#define PSH_PROPSHEETPAGE (8)
#define PSH_PROPTITLE (1)
#define PSH_USECALLBACK (256)
#define PSH_USEHICON (2)
#define PSH_USEICONID (4)
#define PSH_USEPSTARTPAGE (64)
#define PSH_WIZARD (32)
#define PSH_RTLREADING (2048)
#define PSCB_INITIALIZED (1)
#define PSCB_PRECREATE (2)
/* PSN_APPLY message */
#define PSNRET_NOERROR (0)
#define PSNRET_INVALID_NOCHANGEPAGE (2)
/* Property Sheet */
#define PSBTN_APPLYNOW (4)
#define PSBTN_BACK (0)
#define PSBTN_CANCEL (5)
#define PSBTN_FINISH (2)
#define PSBTN_HELP (6)
#define PSBTN_NEXT (1)
#define PSBTN_OK (3)
#define PSWIZB_BACK (1)
#define PSWIZB_NEXT (2)
#define PSWIZB_FINISH (4)
#define PSWIZB_DISABLEDFINISH (8)
#define ID_PSREBOOTSYSTEM (3)
#define ID_PSRESTARTWINDOWS (2)
#define WIZ_BODYCX (184)
#define WIZ_BODYX (92)
#define WIZ_CXBMP (80)
#define WIZ_CXDLG (276)
#define WIZ_CYDLG (140)
/* VX_FIXEDFILEINFO structure */
#define VS_FILE_INFO (MAKEINTRESOURCE(16))
#define VS_VERSION_INFO (1)
#define VS_FF_DEBUG (0x1L)
#define VS_FF_INFOINFERRED (0x10L)
#define VS_FF_PATCHED (0x4L)
#define VS_FF_PRERELEASE (0x2L)
#define VS_FF_PRIVATEBUILD (0x8L)
#define VS_FF_SPECIALBUILD (0x20L)
#define VOS_UNKNOWN (0L)
#define VOS_DOS (0x10000L)
#define VOS_OS216 (0x20000L)
#define VOS_OS232 (0x30000L)
#define VOS_NT (0x40000L)
#define VOS_DOS_WINDOWS16 (0x10001L)
#define VOS_DOS_WINDOWS32 (0x10004L)
#define VOS_OS216_PM16 (0x20002L)
#define VOS_OS232_PM32 (0x30003L)
#define VOS_NT_WINDOWS32 (0x40004L)
#define VFT_UNKNOWN (0L)
#define VFT_APP (0x1L)
#define VFT_DLL (0x2L)
#define VFT_DRV (0x3L)
#define VFT_FONT (0x4L)
#define VFT_VXD (0x5L)
#define VFT_STATIC_LIB (0x7L)
#define VFT2_UNKNOWN (0L)
#define VFT2_DRV_PRINTER (0x1L)
#define VFT2_DRV_KEYBOARD (0x2L)
#define VFT2_DRV_LANGUAGE (0x3L)
#define VFT2_DRV_DISPLAY (0x4L)
#define VFT2_DRV_MOUSE (0x5L)
#define VFT2_DRV_NETWORK (0x6L)
#define VFT2_DRV_SYSTEM (0x7L)
#define VFT2_DRV_INSTALLABLE (0x8L)
#define VFT2_DRV_SOUND (0x9L)
#define VFT2_FONT_RASTER (0x1L)
#define VFT2_FONT_VECTOR (0x2L)
#define VFT2_FONT_TRUETYPE (0x3L)
/* PANOSE structure */
#define PAN_ANY (0)
#define PAN_NO_FIT (1)
#define PAN_FAMILY_TEXT_DISPLAY (2)
#define PAN_FAMILY_SCRIPT (3)
#define PAN_FAMILY_DECORATIVE (4)
#define PAN_FAMILY_PICTORIAL (5)
#define PAN_SERIF_COVE (2)
#define PAN_SERIF_OBTUSE_COVE (3)
#define PAN_SERIF_SQUARE_COVE (4)
#define PAN_SERIF_OBTUSE_SQUARE_COVE (5)
#define PAN_SERIF_SQUARE (6)
#define PAN_SERIF_THIN (7)
#define PAN_SERIF_BONE (8)
#define PAN_SERIF_EXAGGERATED (9)
#define PAN_SERIF_TRIANGLE (10)
#define PAN_SERIF_NORMAL_SANS (11)
#define PAN_SERIF_OBTUSE_SANS (12)
#define PAN_SERIF_PERP_SANS (13)
#define PAN_SERIF_FLARED (14)
#define PAN_SERIF_ROUNDED (15)
#define PAN_WEIGHT_VERY_LIGHT (2)
#define PAN_WEIGHT_LIGHT (3)
#define PAN_WEIGHT_THIN (4)
#define PAN_WEIGHT_BOOK (5)
#define PAN_WEIGHT_MEDIUM (6)
#define PAN_WEIGHT_DEMI (7)
#define PAN_WEIGHT_BOLD (8)
#define PAN_WEIGHT_HEAVY (9)
#define PAN_WEIGHT_BLACK (10)
#define PAN_WEIGHT_NORD (11)
#define PAN_PROP_OLD_STYLE (2)
#define PAN_PROP_MODERN (3)
#define PAN_PROP_EVEN_WIDTH (4)
#define PAN_PROP_EXPANDED (5)
#define PAN_PROP_CONDENSED (6)
#define PAN_PROP_VERY_EXPANDED (7)
#define PAN_PROP_VERY_CONDENSED (8)
#define PAN_PROP_MONOSPACED (9)
#define PAN_CONTRAST_NONE (2)
#define PAN_CONTRAST_VERY_LOW (3)
#define PAN_CONTRAST_LOW (4)
#define PAN_CONTRAST_MEDIUM_LOW (5)
#define PAN_CONTRAST_MEDIUM (6)
#define PAN_CONTRAST_MEDIUM_HIGH (7)
#define PAN_CONTRAST_HIGH (8)
#define PAN_CONTRAST_VERY_HIGH (9)
#define PAN_STROKE_GRADUAL_DIAG (2)
#define PAN_STROKE_GRADUAL_TRAN (3)
#define PAN_STROKE_GRADUAL_VERT (4)
#define PAN_STROKE_GRADUAL_HORZ (5)
#define PAN_STROKE_RAPID_VERT (6)
#define PAN_STROKE_RAPID_HORZ (7)
#define PAN_STROKE_INSTANT_VERT (8)
#define PAN_STRAIGHT_ARMS_HORZ (2)
#define PAN_STRAIGHT_ARMS_WEDGE (3)
#define PAN_STRAIGHT_ARMS_VERT (4)
#define PAN_STRAIGHT_ARMS_SINGLE_SERIF (5)
#define PAN_STRAIGHT_ARMS_DOUBLE_SERIF (6)
#define PAN_BENT_ARMS_HORZ (7)
#define PAN_BENT_ARMS_VERT (9)
#define PAN_BENT_ARMS_WEDGE (8)
#define PAN_BENT_ARMS_SINGLE_SERIF (10)
#define PAN_BENT_ARMS_DOUBLE_SERIF (11)
#define PAN_LETT_NORMAL_CONTACT (2)
#define PAN_LETT_NORMAL_WEIGHTED (3)
#define PAN_LETT_NORMAL_BOXED (4)
#define PAN_LETT_NORMAL_FLATTENED (5)
#define PAN_LETT_NORMAL_ROUNDED (6)
#define PAN_LETT_NORMAL_OFF_CENTER (7)
#define PAN_LETT_NORMAL_SQUARE (8)
#define PAN_LETT_OBLIQUE_CONTACT (9)
#define PAN_LETT_OBLIQUE_WEIGHTED (10)
#define PAN_LETT_OBLIQUE_BOXED (11)
#define PAN_LETT_OBLIQUE_FLATTENED (12)
#define PAN_LETT_OBLIQUE_ROUNDED (13)
#define PAN_LETT_OBLIQUE_OFF_CENTER (14)
#define PAN_LETT_OBLIQUE_SQUARE (15)
#define PAN_MIDLINE_STANDARD_TRIMMED (2)
#define PAN_MIDLINE_STANDARD_POINTED (3)
#define PAN_MIDLINE_STANDARD_SERIFED (4)
#define PAN_MIDLINE_HIGH_TRIMMED (5)
#define PAN_MIDLINE_HIGH_POINTED (6)
#define PAN_MIDLINE_HIGH_SERIFED (7)
#define PAN_MIDLINE_CONSTANT_TRIMMED (8)
#define PAN_MIDLINE_CONSTANT_POINTED (9)
#define PAN_MIDLINE_CONSTANT_SERIFED (10)
#define PAN_MIDLINE_LOW_TRIMMED (11)
#define PAN_MIDLINE_LOW_POINTED (12)
#define PAN_MIDLINE_LOW_SERIFED (13)
#define PAN_XHEIGHT_CONSTANT_SMALL (2)
#define PAN_XHEIGHT_CONSTANT_STD (3)
#define PAN_XHEIGHT_CONSTANT_LARGE (4)
#define PAN_XHEIGHT_DUCKING_SMALL (5)
#define PAN_XHEIGHT_DUCKING_STD (6)
#define PAN_XHEIGHT_DUCKING_LARGE (7)
/* PALETTENTRY structure */
#define PC_EXPLICIT (2)
#define PC_NOCOLLAPSE (4)
#define PC_RESERVED (1)
/* LOGBRUSH structure */
#define BS_DIBPATTERN (5)
#define BS_DIBPATTERN8X8 (8)
#define BS_DIBPATTERNPT (6)
#define BS_HATCHED (2)
#define BS_HOLLOW (1)
#define BS_NULL (1)
#define BS_PATTERN (3)
#define BS_PATTERN8X8 (7)
#define BS_SOLID (0)
/* DEVMODE structure */
#define DM_ORIENTATION (0x1L)
#define DM_PAPERSIZE (0x2L)
#define DM_PAPERLENGTH (0x4L)
#define DM_PAPERWIDTH (0x8L)
#define DM_SCALE (0x10L)
#define DM_COPIES (0x100L)
#define DM_DEFAULTSOURCE (0x200L)
#define DM_PRINTQUALITY (0x400L)
#define DM_COLOR (0x800L)
#define DM_DUPLEX (0x1000L)
#define DM_YRESOLUTION (0x2000L)
#define DM_TTOPTION (0x4000L)
#define DM_COLLATE (0x8000L)
#define DM_FORMNAME (0x10000L)
#define DM_LOGPIXELS (0x20000L)
#define DM_BITSPERPEL (0x40000L)
#define DM_PELSWIDTH (0x80000L)
#define DM_PELSHEIGHT (0x100000L)
#define DM_DISPLAYFLAGS (0x200000L)
#define DM_DISPLAYFREQUENCY (0x400000L)
#define DM_ICMMETHOD (0x800000L)
#define DM_ICMINTENT (0x1000000L)
#define DM_MEDIATYPE (0x2000000L)
#define DM_DITHERTYPE (0x4000000L)
#define DMORIENT_LANDSCAPE (2)
#define DMORIENT_PORTRAIT (1)
#define DMPAPER_LETTER (1)
#define DMPAPER_LEGAL (5)
#define DMPAPER_A4 (9)
#define DMPAPER_CSHEET (24)
#define DMPAPER_DSHEET (25)
#define DMPAPER_ESHEET (26)
#define DMPAPER_LETTERSMALL (2)
#define DMPAPER_TABLOID (3)
#define DMPAPER_LEDGER (4)
#define DMPAPER_STATEMENT (6)
#define DMPAPER_EXECUTIVE (7)
#define DMPAPER_A3 (8)
#define DMPAPER_A4SMALL (10)
#define DMPAPER_A5 (11)
#define DMPAPER_B4 (12)
#define DMPAPER_B5 (13)
#define DMPAPER_FOLIO (14)
#define DMPAPER_QUARTO (15)
#define DMPAPER_10X14 (16)
#define DMPAPER_11X17 (17)
#define DMPAPER_NOTE (18)
#define DMPAPER_ENV_9 (19)
#define DMPAPER_ENV_10 (20)
#define DMPAPER_ENV_11 (21)
#define DMPAPER_ENV_12 (22)
#define DMPAPER_ENV_14 (23)
#define DMPAPER_ENV_DL (27)
#define DMPAPER_ENV_C5 (28)
#define DMPAPER_ENV_C3 (29)
#define DMPAPER_ENV_C4 (30)
#define DMPAPER_ENV_C6 (31)
#define DMPAPER_ENV_C65 (32)
#define DMPAPER_ENV_B4 (33)
#define DMPAPER_ENV_B5 (34)
#define DMPAPER_ENV_B6 (35)
#define DMPAPER_ENV_ITALY (36)
#define DMPAPER_ENV_MONARCH (37)
#define DMPAPER_ENV_PERSONAL (38)
#define DMPAPER_FANFOLD_US (39)
#define DMPAPER_FANFOLD_STD_GERMAN (40)
#define DMPAPER_FANFOLD_LGL_GERMAN (41)
#define DMRES_HIGH (-4)
#define DMRES_MEDIUM (-3)
#define DMRES_LOW (-2)
#define DMRES_DRAFT (-1)
#define DMCOLOR_COLOR (2)
#define DMCOLOR_MONOCHROME (1)
#define DMDUP_SIMPLEX (1)
#define DMDUP_HORIZONTAL (3)
#define DMDUP_VERTICAL (2)
#define DMTT_BITMAP (1)
#define DMTT_DOWNLOAD (2)
#define DMTT_SUBDEV (3)
#define DMCOLLATE_TRUE (1)
#define DMCOLLATE_FALSE (0)
#define DM_GRAYSCALE (1)
#define DM_INTERLACED (2)
#define DMICMMETHOD_NONE (1)
#define DMICMMETHOD_SYSTEM (2)
#define DMICMMETHOD_DRIVER (3)
#define DMICMMETHOD_DEVICE (4)
#define DMICMMETHOD_USER (256)
#define DMICM_SATURATE (1)
#define DMICM_CONTRAST (2)
#define DMICM_COLORMETRIC (3)
#define DMICM_USER (256)
#define DMMEDIA_STANDARD (1)
#define DMMEDIA_GLOSSY (3)
#define DMMEDIA_TRANSPARENCY (2)
#define DMMEDIA_USER (256)
#define DMDITHER_NONE (1)
#define DMDITHER_COARSE (2)
#define DMDITHER_FINE (3)
#define DMDITHER_LINEART (4)
#define DMDITHER_GRAYSCALE (10)
#define DMDITHER_USER (256)
/* RGNDATAHEADER structure */
#define RDH_RECTANGLES (1)
/* TTPOLYGONHEADER structure */
#define TT_POLYGON_TYPE (24)
/* TTPOLYCURVE structure */
#define TT_PRIM_LINE (1)
#define TT_PRIM_QSPLINE (2)
/* GCP_RESULTS structure */
#define GCPCLASS_ARABIC (2)
#define GCPCLASS_HEBREW (2)
#define GCPCLASS_LATIN (1)
#define GCPCLASS_LATINNUMBER (5)
#define GCPCLASS_LOCALNUMBER (4)
#define GCPCLASS_LATINNUMERICSEPARATOR (7)
#define GCPCLASS_LATINNUMERICTERMINATOR (6)
#define GCPCLASS_NEUTRAL (3)
#define GCPCLASS_NUMERICSEPARATOR (8)
#define GCPCLASS_PREBOUNDLTR (128)
#define GCPCLASS_PREBOUNDRTL (64)
#define GCPCLASS_POSTBOUNDLTR (32)
#define GCPCLASS_POSTBOUNDRTL (16)
#define GCPGLYPH_LINKBEFORE (32768)
#define GCPGLYPH_LINKAFTER (16384)
/* RASTERIZER_STATUS structure */
#define TT_AVAILABLE (1)
#define TT_ENABLED (2)
/* COLORADJUSTMENT structure */
#define CA_NEGATIVE (1)
#define CA_LOG_FILTER (2)
#define ILLUMINANT_DEVICE_DEFAULT (0)
#define ILLUMINANT_A (1)
#define ILLUMINANT_B (2)
#define ILLUMINANT_C (3)
#define ILLUMINANT_D50 (4)
#define ILLUMINANT_D55 (5)
#define ILLUMINANT_D65 (6)
#define ILLUMINANT_D75 (7)
#define ILLUMINANT_F2 (8)
#define ILLUMINANT_TUNGSTEN (1)
#define ILLUMINANT_DAYLIGHT (3)
#define ILLUMINANT_FLUORESCENT (8)
#define ILLUMINANT_NTSC (3)
/* DOCINFO structure */
#define DI_APPBANDING (1)
/* EMRMETAHEADER structure */
#define EMR_HEADER (1)
#define ENHMETA_SIGNATURE (1179469088)
/* RTF event masks */
#define ENM_CHANGE (1)
#define ENM_CORRECTTEXT (4194304)
#define ENM_DROPFILES (1048576)
#define ENM_KEYEVENTS (65536)
#define ENM_MOUSEEVENTS (131072)
#define ENM_PROTECTED (2097152)
#define ENM_REQUESTRESIZE (262144)
#define ENM_SCROLL (4)
#define ENM_SELCHANGE (524288)
#define ENM_UPDATE (2)
#define ENM_NONE (0)
/* RTF styles */
#define ES_DISABLENOSCROLL (8192)
#define ES_EX_NOCALLOLEINIT (16777216)
#define ES_NOIME (524288)
#define ES_SAVESEL (32768)
#define ES_SELFIME (262144)
#define ES_SUNKEN (16384)
#define ES_VERTICAL (4194304)
#define ES_SELECTIONBAR (16777216)
/* EM_SETOPTIONS message */
#define ECOOP_SET (1)
#define ECOOP_OR (2)
#define ECOOP_AND (3)
#define ECOOP_XOR (4)
#define ECO_AUTOWORDSELECTION (1)
#define ECO_AUTOVSCROLL (64)
#define ECO_AUTOHSCROLL (128)
#define ECO_NOHIDESEL (256)
#define ECO_READONLY (2048)
#define ECO_WANTRETURN (4096)
#define ECO_SAVESEL (32768)
#define ECO_SELECTIONBAR (16777216)
#define ECO_VERTICAL (4194304)
/* EM_SETCHARFORMAT message */
#define SCF_WORD (2)
#define SCF_SELECTION (1)
/* EM_STREAMOUT message */
#define SF_TEXT (1)
#define SF_RTF (2)
#define SF_RTFNOOBJS (3)
#define SF_TEXTIZED (4)
#define SFF_SELECTION (32768)
#define SFF_PLAINRTF (16384)
/* EM_FINDWORDBREAK message */
#define WB_CLASSIFY (3)
#define WB_ISDELIMITER (2)
#define WB_LEFT (0)
#define WB_LEFTBREAK (6)
#define WB_PREVBREAK (6)
#define WB_MOVEWORDLEFT (4)
#define WB_MOVEWORDPREV (4)
#define WB_MOVEWORDRIGHT (5)
#define WB_MOVEWORDNEXT (5)
#define WB_RIGHT (1)
#define WB_RIGHTBREAK (7)
#define WB_NEXTBREAK (7)
/* EM_GETPUNCTUATION message */
#define PC_LEADING (2)
#define PC_FOLLOWING (1)
#define PC_DELIMITER (4)
#define PC_OVERFLOW (3)
/* EM_SETWORDWRAPMODE message */
#define WBF_WORDWRAP (16)
#define WBF_WORDBREAK (32)
#define WBF_OVERFLOW (64)
#define WBF_LEVEL1 (128)
#define WBF_LEVEL2 (256)
#define WBF_CUSTOM (512)
#define WBF_BREAKAFTER (64)
#define WBF_BREAKLINE (32)
#define WBF_ISWHITE (16)
/* CHARFORMAT structure */
#define CFM_BOLD (1)
#define CFM_COLOR (1073741824)
#define CFM_FACE (536870912)
#define CFM_ITALIC (2)
#define CFM_OFFSET (268435456)
#define CFM_PROTECTED (16)
#define CFM_SIZE (0x80000000)
#define CFM_STRIKEOUT (8)
#define CFM_UNDERLINE (4)
#define CFE_AUTOCOLOR (1073741824)
#define CFE_BOLD (1)
#define CFE_ITALIC (2)
#define CFE_STRIKEOUT (8)
#define CFE_UNDERLINE (4)
#define CFE_PROTECTED (16)
/* PARAFORMAT structure */
#define PFM_ALIGNMENT (8)
#define PFM_NUMBERING (32)
#define PFM_OFFSET (4)
#define PFM_OFFSETINDENT (0x80000000)
#define PFM_RIGHTINDENT (2)
#define PFM_STARTINDENT (1)
#define PFM_TABSTOPS (16)
#define PFN_BULLET (1)
#define PFA_LEFT (1)
#define PFA_RIGHT (2)
#define PFA_CENTER (3)
/* SELCHANGE structure */
#define SEL_EMPTY (0)
#define SEL_TEXT (1)
#define SEL_OBJECT (2)
#define SEL_MULTICHAR (4)
#define SEL_MULTIOBJECT (8)
/* RTF clipboard formats */
#define CF_RTF "Rich Text Format"
#define CF_RETEXTOBJ "RichEdit Text and Objects"
/* DRAWITEMSTRUCT structure */
#define ODT_BUTTON (4)
#define ODT_COMBOBOX (3)
#define ODT_LISTBOX (2)
#define ODT_LISTVIEW (102)
#define ODT_MENU (1)
#define ODT_STATIC (5)
#define ODT_TAB (101)
#define ODT_HEADER (100)
#define ODA_DRAWENTIRE (1)
#define ODA_FOCUS (4)
#define ODA_SELECT (2)
#define ODS_CHECKED (8)
#define ODS_COMBOBOXEDIT (4096)
#define ODS_DEFAULT (32)
#define ODS_DISABLED (4)
#define ODS_FOCUS (16)
#define ODS_GRAYED (2)
#define ODS_SELECTED (1)
/* Common control window classes */
#define ANIMATE_CLASSW L"SysAnimate32"
#define HOTKEY_CLASSW L"msctls_hotkey32"
#define PROGRESS_CLASSW L"msctls_progress32"
#define STATUSCLASSNAMEW L"msctls_statusbar32"
#define TOOLBARCLASSNAMEW L"ToolbarWindow32"
#define TOOLTIPS_CLASSW L"tooltips_class32"
#define TRACKBAR_CLASSW L"msctls_trackbar32"
#define UPDOWN_CLASSW L"msctls_updown32"
#define WC_HEADERW L"SysHeader32"
#define WC_LISTVIEWW L"SysListView32"
#define WC_TABCONTROLW L"SysTabControl32"
#define WC_TREEVIEWW L"SysTreeView32"
/* Common control styles */
#define CCS_ADJUSTABLE (0x20L)
#define CCS_BOTTOM (0x3L)
#define CCS_NODIVIDER (0x40L)
#define CCS_NOMOVEY (0x2L)
#define CCS_NOPARENTALIGN (0x8L)
#define CCS_NORESIZE (0x4L)
#define CCS_TOP (0x1L)
#define ANIMATE_CLASSA "SysAnimate32"
#define HOTKEY_CLASSA "msctls_hotkey32"
#define PROGRESS_CLASSA "msctls_progress32"
#define STATUSCLASSNAMEA "msctls_statusbar32"
#define TOOLBARCLASSNAMEA "ToolbarWindow32"
#define TOOLTIPS_CLASSA "tooltips_class32"
#define TRACKBAR_CLASSA "msctls_trackbar32"
#define UPDOWN_CLASSA "msctls_updown32"
#define WC_HEADERA "SysHeader32"
#define WC_LISTVIEWA "SysListView32"
#define WC_TABCONTROLA "SysTabControl32"
#define WC_TREEVIEWA "SysTreeView32"
#ifdef UNICODE
#define ANIMATE_CLASS ANIMATE_CLASSW
#define HOTKEY_CLASS HOTKEY_CLASSW
#define PROGRESS_CLASS PROGRESS_CLASSW
#define STATUSCLASSNAME STATUSCLASSNAMEW
#define TOOLBARCLASSNAME TOOLBARCLASSNAMEW
#define TOOLTIPS_CLASS TOOLTIPS_CLASSW
#define TRACKBAR_CLASS TRACKBAR_CLASSW
#define UPDOWN_CLASS UPDOWN_CLASSW
#define WC_HEADER WC_HEADERW
#define WC_LISTVIEW WC_LISTVIEWW
#define WC_TABCONTROL WC_TABCONTROLW
#define WC_TREEVIEW WC_TREEVIEWW
#else
#define ANIMATE_CLASS ANIMATE_CLASSA
#define HOTKEY_CLASS HOTKEY_CLASSA
#define PROGRESS_CLASS PROGRESS_CLASSA
#define STATUSCLASSNAME STATUSCLASSNAMEA
#define TOOLBARCLASSNAME TOOLBARCLASSNAMEA
#define TOOLTIPS_CLASS TOOLTIPS_CLASSA
#define TRACKBAR_CLASS TRACKBAR_CLASSA
#define UPDOWN_CLASS UPDOWN_CLASSA
#define WC_HEADER WC_HEADERA
#define WC_LISTVIEW WC_LISTVIEWA
#define WC_TABCONTROL WC_TABCONTROLA
#define WC_TREEVIEW WC_TREEVIEWA
#endif /* UNICODE */
/* Header control styles */
#define HDS_BUTTONS (2)
#define HDS_HIDDEN (8)
#define HDS_HORZ (0)
/* HD_ITEM structure */
#define HDI_BITMAP (16)
#define HDI_FORMAT (4)
#define HDI_HEIGHT (1)
#define HDI_LPARAM (8)
#define HDI_TEXT (2)
#define HDI_WIDTH (1)
#define HDF_CENTER (2)
#define HDF_LEFT (0)
#define HDF_RIGHT (1)
#define HDF_RTLREADING (4)
#define HDF_BITMAP (8192)
#define HDF_OWNERDRAW (32768)
#define HDF_STRING (16384)
#define HDF_JUSTIFYMASK (3)
/* HD_HITTESTINFO structure */
#define HHT_NOWHERE (1)
#define HHT_ONDIVIDER (4)
#define HHT_ONDIVOPEN (8)
#define HHT_ONHEADER (2)
#define HHT_TOLEFT (2048)
#define HHT_TORIGHT (1024)
/* TBADDBITMAP structure */
#define HINST_COMMCTRL ((HINSTANCE)-1)
#define IDB_STD_LARGE_COLOR (1)
#define IDB_STD_SMALL_COLOR (0)
#define IDB_VIEW_LARGE_COLOR (5)
#define IDB_VIEW_SMALL_COLOR (4)
#define STD_COPY (1)
#define STD_CUT (0)
#define STD_DELETE (5)
#define STD_FILENEW (6)
#define STD_FILEOPEN (7)
#define STD_FILESAVE (8)
#define STD_FIND (12)
#define STD_HELP (11)
#define STD_PASTE (2)
#define STD_PRINT (14)
#define STD_PRINTPRE (9)
#define STD_PROPERTIES (10)
#define STD_REDOW (4)
#define STD_REPLACE (13)
#define STD_UNDO (3)
#define VIEW_LARGEICONS (0)
#define VIEW_SMALLICONS (1)
#define VIEW_LIST (2)
#define VIEW_DETAILS (3)
#define VIEW_SORTNAME (4)
#define VIEW_SORTSIZE (5)
#define VIEW_SORTDATE (6)
#define VIEW_SORTTYPE (7)
/* Toolbar styles */
#define TBSTYLE_ALTDRAG (1024)
#define TBSTYLE_TOOLTIPS (256)
#define TBSTYLE_WRAPABLE (512)
#define TBSTYLE_BUTTON (0)
#define TBSTYLE_CHECK (2)
#define TBSTYLE_CHECKGROUP (6)
#define TBSTYLE_GROUP (4)
#define TBSTYLE_SEP (1)
/* Toolbar states */
#define TBSTATE_CHECKED (1)
#define TBSTATE_ENABLED (4)
#define TBSTATE_HIDDEN (8)
#define TBSTATE_INDETERMINATE (16)
#define TBSTATE_PRESSED (2)
#define TBSTATE_WRAP (32)
/* Tooltip styles */
#define TTS_ALWAYSTIP (1)
#define TTS_NOPREFIX (2)
/* TOOLINFO structure */
#define TTF_IDISHWND (1)
#define TTF_CENTERTIP (2)
#define TTF_RTLREADING (4)
#define TTF_SUBCLASS (16)
/* TTM_SETDELAYTIME message */
#define TTDT_AUTOMATIC (0)
#define TTDT_AUTOPOP (2)
#define TTDT_INITIAL (3)
#define TTDT_RESHOW (1)
/* Status window */
#define SBARS_SIZEGRIP (256)
#define SBARS_SIZEGRIP (256)
/* DL_DRAGGING message */
#define DL_MOVECURSOR (3)
#define DL_COPYCURSOR (2)
#define DL_STOPCURSOR (1)
/* Up-down control styles */
#define UDS_ALIGNLEFT (8)
#define UDS_ALIGNRIGHT (4)
#define UDS_ARROWKEYS (32)
#define UDS_AUTOBUDDY (16)
#define UDS_HORZ (64)
#define UDS_NOTHOUSANDS (128)
#define UDS_SETBUDDYINT (2)
#define UDS_WRAP (1)
/* UDM_SETRANGE message */
#define UD_MAXVAL (32767)
#define UD_MINVAL (-32767)
/* HKM_GETHOTKEY message */
#define HOTKEYF_ALT (4)
#define HOTKEYF_CONTROL (2)
#define HOTKEYF_EXT (8)
#define HOTKEYF_SHIFT (1)
/* HKM_SETRULES message */
#define HKCOMB_A (8)
#define HKCOMB_C (4)
#define HKCOMB_CA (64)
#define HKCOMB_NONE (1)
#define HKCOMB_S (2)
#define HKCOMB_SA (32)
#define HKCOMB_SC (16)
#define HKCOMB_SCA (128)
/* Trackbar styles */
#define TBS_HORZ (0)
#define TBS_VERT (2)
#define TBS_AUTOTICKS (1)
#define TBS_NOTICKS (16)
#define TBS_TOP (4)
#define TBS_BOTTOM (0)
#define TBS_LEFT (4)
#define TBS_RIGHT (0)
#define TBS_BOTH (8)
#define TBS_ENABLESELRANGE (32)
#define TBS_FIXEDLENGTH (64)
#define TBS_NOTHUMB (128)
#define TB_BOTTOM (7)
#define TB_ENDTRACK (8)
#define TB_LINEDOWN (1)
#define TB_LINEUP (0)
#define TB_PAGEDOWN (3)
#define TB_PAGEUP (2)
#define TB_THUMBPOSITION (4)
#define TB_THUMBTRACK (5)
#define TB_TOP (6)
/* List view styles */
#define LVS_ALIGNLEFT (2048)
#define LVS_ALIGNTOP (0)
#define LVS_AUTOARRANGE (256)
#define LVS_EDITLABELS (512)
#define LVS_ICON (0)
#define LVS_LIST (3)
#define LVS_NOCOLUMNHEADER (16384)
#define LVS_NOLABELWRAP (128)
#define LVS_NOSCROLL (8192)
#define LVS_NOSORTHEADER (32768)
#define LVS_OWNERDRAWFIXED (1024)
#define LVS_REPORT (1)
#define LVS_SHAREIMAGELISTS (64)
#define LVS_SHOWSELALWAYS (8)
#define LVS_SINGLESEL (4)
#define LVS_SMALLICON (2)
#define LVS_SORTASCENDING (16)
#define LVS_SORTDESCENDING (32)
#define LVS_TYPESTYLEMASK (64512)
#define LVSIL_NORMAL (0)
#define LVSIL_SMALL (1)
#define LVSIL_STATE (2)
#define LVIS_CUT (4)
#define LVIS_DROPHILITED (8)
#define LVIS_FOCUSED (1)
#define LVIS_SELECTED (2)
#define LVIS_OVERLAYMASK (3840)
#define LVIS_STATEIMAGEMASK (61440)
#define LPSTR_TEXTCALLBACKW ((LPWSTR)-1L)
#define LPSTR_TEXTCALLBACKA (LPSTR)-1L)
#ifdef UNICODE
#define LPSTR_TEXTCALLBACK LPSTR_TEXTCALLBACKW
#else
#define LPSTR_TEXTCALLBACK LPSTR_TEXTCALLBACKA
#endif /* UNICODE */
/* LV_ITEM structure */
#define LVIF_TEXT (1)
#define LVIF_IMAGE (2)
#define LVIF_PARAM (4)
#define LVIF_STATE (8)
#define LVIF_DI_SETITEM (4096)
/* LVM_GETNEXTITEM structure */
#define LVNI_ABOVE (256)
#define LVNI_ALL (0)
#define LVNI_BELOW (512)
#define LVNI_TOLEFT (1024)
#define LVNI_TORIGHT (2048)
#define LVNI_CUT (4)
#define LVNI_DROPHILITED (8)
#define LVNI_FOCUSED (1)
#define LVNI_SELECTED (2)
/* LV_FINDINFO structure */
#define LVFI_PARAM (1)
#define LVFI_PARTIAL (8)
#define LVFI_STRING (2)
#define LVFI_WRAP (32)
#define LVFI_NEARESTXY (64)
/* LV_HITTESTINFO structure */
#define LVHT_ABOVE (8)
#define LVHT_BELOW (16)
#define LVHT_NOWHERE (1)
#define LVHT_ONITEMICON (2)
#define LVHT_ONITEMLABEL (4)
#define LVHT_ONITEMSTATEICON (8)
#define LVHT_TOLEFT (64)
#define LVHT_TORIGHT (32)
/* LV_COLUMN structure */
#define LVCF_FMT (1)
#define LVCF_SUBITEM (8)
#define LVCF_TEXT (4)
#define LVCF_WIDTH (2)
#define LVCFMT_CENTER (2)
#define LVCFMT_LEFT (0)
#define LVCFMT_RIGHT (1)
/* ListView_GetItemRect */
#define LVIR_BOUNDS (0)
#define LVIR_ICON (1)
#define LVIR_LABEL (2)
#define LVIR_SELECTBOUNDS (3)
/* LVM_ARRANGE message */
#define LVA_ALIGNLEFT (1)
#define LVA_ALIGNTOP (2)
#define LVA_DEFAULT (0)
#define LVA_SNAPTOGRID (5)
/* LVM_SETCOLUMNWIDTH message */
#define LVSCW_AUTOSIZE (-1)
#define LVSCW_AUTOSIZE_USEHEADER (-2)
/* Tree View styles */
#define TVS_DISABLEDRAGDROP (16)
#define TVS_EDITLABELS (8)
#define TVS_HASBUTTONS (1)
#define TVS_HASLINES (2)
#define TVS_LINESATROOT (4)
#define TVS_SHOWSELALWAYS (32)
/* Tree View states */
#define TVIS_BOLD (16)
#define TVIS_CUT (4)
#define TVIS_DROPHILITED (8)
#define TVIS_EXPANDED (32)
#define TVIS_EXPANDEDONCE (64)
#define TVIS_FOCUSED (1)
#define TVIS_OVERLAYMASK (3840)
#define TVIS_SELECTED (2)
#define TVIS_STATEIMAGEMASK (61440)
#define TVIS_USERMASK (61440)
/* TV_ITEM structure */
#define TVIF_CHILDREN (64)
#define TVIF_HANDLE (16)
#define TVIF_IMAGE (2)
#define TVIF_PARAM (4)
#define TVIF_SELECTEDIMAGE (32)
#define TVIF_STATE (8)
#define TVIF_TEXT (1)
#define I_CHILDRENCALLBACK (-1)
#define I_IMAGECALLBACK (-1)
/* TV_INSERTSTRUCT structure */
#define TVI_ROOT ((HTREEITEM)0xFFFF0000)
#define TVI_FIRST ((HTREEITEM)0xFFFF0001)
#define TVI_LAST ((HTREEITEM)0xFFFF0002)
#define TVI_SORT ((HTREEITEM)0xFFFF0003)
/* TV_HITTESTINFO structure */
#define TVHT_ABOVE (256)
#define TVHT_BELOW (512)
#define TVHT_NOWHERE (1)
#define TVHT_ONITEM (70)
#define TVHT_ONITEMBUTTON (16)
#define TVHT_ONITEMICON (2)
#define TVHT_ONITEMINDENT (8)
#define TVHT_ONITEMLABEL (4)
#define TVHT_ONITEMRIGHT (32)
#define TVHT_ONITEMSTATEICON (64)
#define TVHT_TOLEFT (2048)
#define TVHT_TORIGHT (1024)
/* TVM_EXPAND message */
#define TVE_COLLAPSE (1)
#define TVE_COLLAPSERESET (32768)
#define TVE_EXPAND (2)
#define TVE_TOGGLE (3)
/* TVM_GETIMAGELIST message */
#define TVSIL_NORMAL (0)
#define TVSIL_STATE (2)
/* TVM_GETNEXTITEM message */
#define TVGN_CARET (9)
#define TVGN_CHILD (4)
#define TVGN_DROPHILITE (8)
#define TVGN_FIRSTVISIBLE (5)
#define TVGN_NEXT (1)
#define TVGN_NEXTVISIBLE (6)
#define TVGN_PARENT (3)
#define TVGN_PREVIOUS (2)
#define TVGN_PREVIOUSVISIBLE (7)
#define TVGN_ROOT (0)
/* TVN_SELCHANGED message */
#define TVC_BYKEYBOARD (2)
#define TVC_BYMOUSE (1)
#define TVC_UNKNOWN (0)
/* Tab control styles */
#define TCS_BUTTONS (256)
#define TCS_FIXEDWIDTH (1024)
#define TCS_FOCUSNEVER (32768)
#define TCS_FOCUSONBUTTONDOWN (4096)
#define TCS_FORCEICONLEFT (16)
#define TCS_FORCELABELLEFT (32)
#define TCS_MULTILINE (512)
#define TCS_OWNERDRAWFIXED (8192)
#define TCS_RAGGEDRIGHT (2048)
#define TCS_RIGHTJUSTIFY (0)
#define TCS_SINGLELINE (0)
#define TCS_TABS (0)
#define TCS_TOOLTIPS (16384)
/* TC_ITEM structure */
#define TCIF_TEXT (1)
#define TCIF_IMAGE (2)
#define TCIF_PARAM (8)
#define TCIF_RTLREADING (4)
/* TC_HITTESTINFO structure */
#define TCHT_NOWHERE (1)
#define TCHT_ONITEM (6)
#define TCHT_ONITEMICON (2)
#define TCHT_ONITEMLABEL (4)
/* Animation control styles */
#define ACS_AUTOPLAY (4)
#define ACS_CENTER (1)
#define ACS_TRANSPARENT (2)
/* MODEMDEVCAPS structure */
#define DIALOPTION_BILLING (64)
#define DIALOPTION_QUIET (128)
#define DIALOPTION_DIALTONE (256)
#define MDMVOLFLAG_LOW (1)
#define MDMVOLFLAG_MEDIUM (2)
#define MDMVOLFLAG_HIGH (4)
#define MDMVOL_LOW (0)
#define MDMVOL_MEDIUM (1)
#define MDMVOL_HIGH (2)
#define MDMSPKRFLAG_OFF (1)
#define MDMSPKRFLAG_DIAL (2)
#define MDMSPKRFLAG_ON (4)
#define MDMSPKRFLAG_CALLSETUP (8)
#define MDMSPKR_OFF (0)
#define MDMSPKR_DIAL (1)
#define MDMSPKR_ON (2)
#define MDMSPKR_CALLSETUP (3)
#define MDM_BLIND_DIAL (512)
#define MDM_CCITT_OVERRIDE (64)
#define MDM_CELLULAR (8)
#define MDM_COMPRESSION (1)
#define MDM_ERROR_CONTROL (2)
#define MDM_FLOWCONTROL_HARD (16)
#define MDM_FLOWCONTROL_SOFT (32)
#define MDM_FORCED_EC (4)
#define MDM_SPEED_ADJUST (128)
#define MDM_TONE_DIAL (256)
#define MDM_V23_OVERRIDE (1024)
/* Languages */
#define LANG_BULGARIAN (2)
#define LANG_CHINESE (4)
#define LANG_CROATIAN (26)
#define LANG_CZECH (5)
#define LANG_DANISH (6)
#define LANG_DUTCH (19)
#define LANG_ENGLISH (9)
#define LANG_FINNISH (11)
#define LANG_FRENCH (12)
#define LANG_GERMAN (7)
#define LANG_GREEK (8)
#define LANG_HUNGARIAN (14)
#define LANG_ICELANDIC (15)
#define LANG_ITALIAN (16)
#define LANG_JAPANESE (17)
#define LANG_KOREAN (18)
#define LANG_NEUTRAL (0)
#define LANG_NORWEGIAN (20)
#define LANG_POLISH (21)
#define LANG_PORTUGUESE (22)
#define LANG_ROMANIAN (24)
#define LANG_RUSSIAN (25)
#define LANG_SLOVAK (27)
#define LANG_SLOVENIAN (36)
#define LANG_SPANISH (10)
#define LANG_SWEDISH (29)
#define LANG_TURKISH (31)
#define SUBLANG_CHINESE_SIMPLIFIED (2)
#define SUBLANG_CHINESE_TRADITIONAL (1)
#define SUBLANG_CHINESE_HONGKONG (3)
#define SUBLANG_CHINESE_SINGAPORE (4)
#define SUBLANG_DEFAULT (1)
#define SUBLANG_DUTCH (1)
#define SUBLANG_DUTCH_BELGIAN (2)
#define SUBLANG_ENGLISH_AUS (3)
#define SUBLANG_ENGLISH_CAN (4)
#define SUBLANG_ENGLISH_EIRE (6)
#define SUBLANG_ENGLISH_NZ (5)
#define SUBLANG_ENGLISH_UK (2)
#define SUBLANG_ENGLISH_US (1)
#define SUBLANG_FRENCH (1)
#define SUBLANG_FRENCH_BELGIAN (2)
#define SUBLANG_FRENCH_CANADIAN (3)
#define SUBLANG_FRENCH_SWISS (4)
#define SUBLANG_GERMAN (1)
#define SUBLANG_GERMAN_AUSTRIAN (3)
#define SUBLANG_GERMAN_SWISS (2)
#define SUBLANG_ITALIAN (1)
#define SUBLANG_ITALIAN_SWISS (2)
#define SUBLANG_NEUTRAL (0)
#define SUBLANG_NORWEGIAN_BOKMAL (1)
#define SUBLANG_NORWEGIAN_NYNORSK (2)
#define SUBLANG_PORTUGUESE (2)
#define SUBLANG_PORTUGUESE_BRAZILIAN (1)
#define SUBLANG_SPANISH (1)
#define SUBLANG_SPANISH_MEXICAN (2)
#define SUBLANG_SPANISH_MODERN (3)
#define SUBLANG_SYS_DEFAULT (2)
#define NLS_VALID_LOCALE_MASK (1048575)
#define SORT_DEFAULT (0)
#define SORT_JAPANESE_XJIS (0)
#define SORT_JAPANESE_UNICODE (1)
#define SORT_CHINESE_BIG5 (0)
#define SORT_CHINESE_UNICODE (1)
#define SORT_KOREAN_KSC (0)
#define SORT_KOREAN_UNICODE (1)
/* SYSTEM_INFO structure */
#define PROCESSOR_INTEL_386 (386)
#define PROCESSOR_INTEL_486 (486)
#define PROCESSOR_INTEL_PENTIUM (586)
#define PROCESSOR_MIPS_R4000 (4000)
#define PROCESSOR_ALPHA_21064 (21064)
/* FSCTL_SET_COMPRESSION */
#define COMPRESSION_FORMAT_NONE (0)
#define COMPRESSION_FORMAT_DEFAULT (1)
#define COMPRESSION_FORMAT_LZNT1 (2)
/* TAPE_GET_DRIVE_PARAMETERS structure */
#define TAPE_DRIVE_COMPRESSION (131072)
#define TAPE_DRIVE_ECC (65536)
#define TAPE_DRIVE_ERASE_BOP_ONLY (64)
#define TAPE_DRIVE_ERASE_LONG (32)
#define TAPE_DRIVE_ERASE_IMMEDIATE (128)
#define TAPE_DRIVE_ERASE_SHORT (16)
#define TAPE_DRIVE_FIXED (1)
#define TAPE_DRIVE_FIXED_BLOCK (1024)
#define TAPE_DRIVE_INITIATOR (4)
#define TAPE_DRIVE_PADDING (262144)
#define TAPE_DRIVE_GET_ABSOLUTE_BLK (1048576)
#define TAPE_DRIVE_GET_LOGICAL_BLK (2097152)
#define TAPE_DRIVE_REPORT_SMKS (524288)
#define TAPE_DRIVE_SELECT (2)
#define TAPE_DRIVE_SET_EOT_WZ_SIZE (4194304)
#define TAPE_DRIVE_TAPE_CAPACITY (256)
#define TAPE_DRIVE_TAPE_REMAINING (512)
#define TAPE_DRIVE_VARIABLE_BLOCK (2048)
#define TAPE_DRIVE_WRITE_PROTECT (4096)
#define TAPE_DRIVE_ABS_BLK_IMMED (-2147475456)
#define TAPE_DRIVE_ABSOLUTE_BLK (-2147479552)
#define TAPE_DRIVE_END_OF_DATA (-2147418112)
#define TAPE_DRIVE_FILEMARKS (-2147221504)
#define TAPE_DRIVE_LOAD_UNLOAD (-2147483647)
#define TAPE_DRIVE_LOAD_UNLD_IMMED (-2147483616)
#define TAPE_DRIVE_LOCK_UNLOCK (-2147483644)
#define TAPE_DRIVE_LOCK_UNLK_IMMED (-2147483520)
#define TAPE_DRIVE_LOG_BLK_IMMED (-2147450880)
#define TAPE_DRIVE_LOGICAL_BLK (-2147467264)
#define TAPE_DRIVE_RELATIVE_BLKS (-2147352576)
#define TAPE_DRIVE_REVERSE_POSITION (-2143289344)
#define TAPE_DRIVE_REWIND_IMMEDIATE (-2147483640)
#define TAPE_DRIVE_SEQUENTIAL_FMKS (-2146959360)
#define TAPE_DRIVE_SEQUENTIAL_SMKS (-2145386496)
#define TAPE_DRIVE_SET_BLOCK_SIZE (-2147483632)
#define TAPE_DRIVE_SET_COMPRESSION (-2147483136)
#define TAPE_DRIVE_SET_ECC (-2147483392)
#define TAPE_DRIVE_SET_PADDING (-2147482624)
#define TAPE_DRIVE_SET_REPORT_SMKS (-2147481600)
#define TAPE_DRIVE_SETMARKS (-2146435072)
#define TAPE_DRIVE_SPACE_IMMEDIATE (-2139095040)
#define TAPE_DRIVE_TENSION (-2147483646)
#define TAPE_DRIVE_TENSION_IMMED (-2147483584)
#define TAPE_DRIVE_WRITE_FILEMARKS (-2113929216)
#define TAPE_DRIVE_WRITE_LONG_FMKS (-2013265920)
#define TAPE_DRIVE_WRITE_MARK_IMMED (-1879048192)
#define TAPE_DRIVE_WRITE_SETMARKS (-2130706432)
#define TAPE_DRIVE_WRITE_SHORT_FMKS (-2080374784)
/* Standard rights */
#define STANDARD_RIGHTS_REQUIRED (0xf0000L)
#define STANDARD_RIGHTS_WRITE (0x20000L)
#define STANDARD_RIGHTS_READ (0x20000L)
#define STANDARD_RIGHTS_EXECUTE (0x20000L)
#define STANDARD_RIGHTS_ALL (0x1f0000L)
#define SPECIFIC_RIGHTS_ALL (0xffffL)
/* ACCESS_MASK */
#define MAXIMUM_ALLOWED (0x2000000L)
#define GENERIC_ALL (0x10000000L)
/* SID */
#define SECURITY_NULL_RID (0L)
#define SECURITY_WORLD_RID (0L)
#define SECURITY_LOCAL_RID (0L)
#define SECURITY_CREATOR_OWNER_RID (0L)
#define SECURITY_CREATOR_GROUP_RID (0x1L)
#define SECURITY_DIALUP_RID (0x1L)
#define SECURITY_NETWORK_RID (0x2L)
#define SECURITY_BATCH_RID (0x3L)
#define SECURITY_INTERACTIVE_RID (0x4L)
#define SECURITY_LOGON_IDS_RID (0x5L)
#define SECURITY_LOGON_IDS_RID_COUNT (0x3L)
#define SECURITY_SERVICE_RID (0x6L)
#define SECURITY_LOCAL_SYSTEM_RID (0x12L)
#define SECURITY_BUILTIN_DOMAIN_RID (0x20L)
#define DOMAIN_USER_RID_ADMIN (0x1f4L)
#define DOMAIN_USER_RID_GUEST (0x1f5L)
#define DOMAIN_GROUP_RID_ADMINS (0x200L)
#define DOMAIN_GROUP_RID_USERS (0x201L)
#define DOMAIN_ALIAS_RID_ADMINS (0x220L)
#define DOMAIN_ALIAS_RID_USERS (0x221L)
#define DOMAIN_ALIAS_RID_GUESTS (0x222L)
#define DOMAIN_ALIAS_RID_POWER_USERS (0x223L)
#define DOMAIN_ALIAS_RID_ACCOUNT_OPS (0x224L)
#define DOMAIN_ALIAS_RID_SYSTEM_OPS (0x225L)
#define DOMAIN_ALIAS_RID_PRINT_OPS (0x226L)
#define DOMAIN_ALIAS_RID_BACKUP_OPS (0x227L)
#define DOMAIN_ALIAS_RID_REPLICATOR (0x228L)
/* TOKEN_GROUPS structure */
#define SE_GROUP_MANDATORY (0x1L)
#define SE_GROUP_ENABLED_BY_DEFAULT (0x2L)
#define SE_GROUP_ENABLED (0x4L)
#define SE_GROUP_OWNER (0x8L)
#define SE_GROUP_LOGON_ID (0xc0000000L)
/* ACL Defines */
#define ACL_REVISION (2)
/* ACE_HEADER structure */
#define ACCESS_ALLOWED_ACE_TYPE (0x0)
#define ACCESS_DENIED_ACE_TYPE (0x1)
#define SYSTEM_AUDIT_ACE_TYPE (0x2)
#define SYSTEM_ALARM_ACE_TYPE (0x3)
/* ACE flags in the ACE_HEADER structure */
#define OBJECT_INHERIT_ACE (0x1)
#define CONTAINER_INHERIT_ACE (0x2)
#define NO_PROPAGATE_INHERIT_ACE (0x4)
#define INHERIT_ONLY_ACE (0x8)
#define SUCCESSFUL_ACCESS_ACE_FLAG (0x40)
#define FAILED_ACCESS_ACE_FLAG (0x80)
/* SECURITY_DESCRIPTOR_CONTROL */
#define SECURITY_DESCRIPTOR_REVISION (1)
#define SECURITY_DESCRIPTOR_MIN_LENGTH (20)
#define SE_OWNER_DEFAULTED (1)
#define SE_GROUP_DEFAULTED (2)
#define SE_DACL_PRESENT (4)
#define SE_DACL_DEFAULTED (8)
#define SE_SACL_PRESENT (16)
#define SE_SACL_DEFAULTED (32)
#define SE_SELF_RELATIVE (32768)
/* PRIVILEGE_SET */
#define SE_PRIVILEGE_ENABLED_BY_DEFAULT (0x1L)
#define SE_PRIVILEGE_ENABLED (0x2L)
#define SE_PRIVILEGE_USED_FOR_ACCESS (0x80000000L)
#define PRIVILEGE_SET_ALL_NECESSARY (0x1)
/* OPENFILENAME structure */
#define OFN_ALLOWMULTISELECT (0x200)
#define OFN_CREATEPROMPT (0x2000)
#define OFN_ENABLEHOOK (0x20)
#define OFN_ENABLETEMPLATE (0x40)
#define OFN_ENABLETEMPLATEHANDLE (0x80)
#define OFN_EXPLORER (0x80000)
#define OFN_EXTENSIONDIFFERENT (0x400)
#define OFN_FILEMUSTEXIST (0x1000)
#define OFN_HIDEREADONLY (0x4)
#define OFN_LONGNAMES (0x200000)
#define OFN_NOCHANGEDIR (0x8)
#define OFN_NODEREFERENCELINKS (0x100000)
#define OFN_NOLONGNAMES (0x40000)
#define OFN_NONETWORKBUTTON (0x20000)
#define OFN_NOREADONLYRETURN (0x8000)
#define OFN_NOTESTFILECREATE (0x10000)
#define OFN_NOVALIDATE (0x100)
#define OFN_OVERWRITEPROMPT (0x2)
#define OFN_PATHMUSTEXIST (0x800)
#define OFN_READONLY (0x1)
#define OFN_SHAREAWARE (0x4000)
#define OFN_SHOWHELP (0x10)
/* SHAREVISTRING message */
#define OFN_SHAREFALLTHROUGH (0x2)
#define OFN_SHARENOWARN (0x1)
#define OFN_SHAREWARN (0)
/* Open/Save notifications */
#define CDN_INITDONE (0xfffffda7)
#define CDN_SELCHANGE (0xfffffda6)
#define CDN_FOLDERCHANGE (0xfffffda5)
#define CDN_SHAREVIOLATION (0xfffffda4)
#define CDN_HELP (0xfffffda3)
#define CDN_FILEOK (0xfffffda2)
#define CDN_TYPECHANGE (0xfffffda1)
/* Open/Save messages */
#define CDM_GETFILEPATH (0x465)
#define CDM_GETFOLDERIDLIST (0x467)
#define CDM_GETFOLDERPATH (0x466)
#define CDM_GETSPEC (0x464)
#define CDM_HIDECONTROL (0x469)
#define CDM_SETCONTROLTEXT (0x468)
#define CDM_SETDEFEXT (0x46a)
/* CHOOSECOLOR structure */
#define CC_ENABLEHOOK (0x10)
#define CC_ENABLETEMPLATE (0x20)
#define CC_ENABLETEMPLATEHANDLE (0x40)
#define CC_FULLOPEN (0x2)
#define CC_PREVENTFULLOPEN (0x4)
#define CC_RGBINIT (0x1)
#define CC_SHOWHELP (0x8)
#define CC_SOLIDCOLOR (0x80)
/* FINDREPLACE structure */
#define FR_DIALOGTERM (0x40)
#define FR_DOWN (0x1)
#define FR_ENABLEHOOK (0x100)
#define FR_ENABLETEMPLATE (0x200)
#define FR_ENABLETEMPLATEHANDLE (0x2000)
#define FR_FINDNEXT (0x8)
#define FR_HIDEUPDOWN (0x4000)
#define FR_HIDEMATCHCASE (0x8000)
#define FR_HIDEWHOLEWORD (0x10000)
#define FR_MATCHCASE (0x4)
#define FR_NOMATCHCASE (0x800)
#define FR_NOUPDOWN (0x400)
#define FR_NOWHOLEWORD (0x1000)
#define FR_REPLACE (0x10)
#define FR_REPLACEALL (0x20)
#define FR_SHOWHELP (0x80)
#define FR_WHOLEWORD (0x2)
/* CHOOSEFONT structure */
#define CF_APPLY (0x200L)
#define CF_ANSIONLY (0x400L)
#define CF_BOTH (0x3)
#define CF_TTONLY (0x40000L)
#define CF_EFFECTS (0x100L)
#define CF_ENABLEHOOK (0x8L)
#define CF_ENABLETEMPLATE (0x10L)
#define CF_ENABLETEMPLATEHANDLE (0x20L)
#define CF_FIXEDPITCHONLY (0x4000L)
#define CF_FORCEFONTEXIST (0x10000L)
#define CF_INITTOLOGFONTSTRUCT (0x40L)
#define CF_LIMITSIZE (0x2000L)
#define CF_NOOEMFONTS (0x800L)
#define CF_NOFACESEL (0x80000L)
#define CF_NOSCRIPTSEL (0x800000L)
#define CF_NOSTYLESEL (0x100000L)
#define CF_NOSIZESEL (0x200000L)
#define CF_NOSIMULATIONS (0x1000L)
#define CF_NOVECTORFONTS (0x800L)
#define CF_NOVERTFONTS (0x1000000L)
#define CF_PRINTERFONTS (0x2)
#define CF_SCALABLEONLY (0x20000L)
#define CF_SCREENFONTS (0x1)
#define CF_SCRIPTSONLY (0x400L)
#define CF_SELECTSCRIPT (0x400000L)
#define CF_SHOWHELP (0x4L)
#define CF_USESTYLE (0x80L)
#define CF_WYSIWYG (0x8000L)
#define BOLD_FONTTYPE (0x100)
#define ITALIC_FONTTYPE (0x200)
#define PRINTER_FONTTYPE (0x4000)
#define REGULAR_FONTTYPE (0x400)
#define SCREEN_FONTTYPE (0x2000)
#define SIMULATED_FONTTYPE (0x8000)
/* Common dialog messages */
#define COLOROKSTRINGW L"commdlg_ColorOK"
#define FILEOKSTRINGW L"commdlg_FileNameOK"
#define FINDMSGSTRINGW L"commdlg_FindReplace"
#define HELPMSGSTRINGW L"commdlg_help"
#define LBSELCHSTRINGW L"commdlg_LBSelChangedNotify"
#define SETRGBSTRINGW L"commdlg_SetRGBColor"
#define SHAREVISTRINGW L"commdlg_ShareViolation"
#define COLOROKSTRINGA "commdlg_ColorOK"
#define FILEOKSTRINGA "commdlg_FileNameOK"
#define FINDMSGSTRINGA "commdlg_FindReplace"
#define HELPMSGSTRINGA "commdlg_help"
#define LBSELCHSTRINGA "commdlg_LBSelChangedNotify"
#define SETRGBSTRINGA "commdlg_SetRGBColor"
#define SHAREVISTRINGA "commdlg_ShareViolation"
#ifdef UNICODE
#define COLOROKSTRING COLOROKSTRINGW
#define FILEOKSTRING FILEOKSTRINGW
#define FINDMSGSTRING FINDMSGSTRINGW
#define HELPMSGSTRING HELPMSGSTRINGW
#define LBSELCHSTRING LBSELCHSTRINGW
#define SETRGBSTRING SETRGBSTRINGW
#define SHAREVISTRING SHAREVISTRINGW
#else
#define COLOROKSTRING COLOROKSTRINGA
#define FILEOKSTRING FILEOKSTRINGA
#define FINDMSGSTRING FINDMSGSTRINGA
#define HELPMSGSTRING HELPMSGSTRINGA
#define LBSELCHSTRING LBSELCHSTRINGA
#define SETRGBSTRING SETRGBSTRINGA
#define SHAREVISTRING SHAREVISTRINGA
#endif
/* LBSELCHSTRING message */
#define CD_LBSELCHANGE (0)
#define CD_LBSELADD (2)
#define CD_LBSELSUB (1)
#define CD_LBSELNOITEMS (-1)
/* DEVNAMES structure */
#define DN_DEFAULTPRN (1)
/* PRINTDLG structure */
#define PD_ALLPAGES (0)
#define PD_COLLATE (16)
#define PD_DISABLEPRINTTOFILE (524288)
#define PD_ENABLEPRINTHOOK (4096)
#define PD_ENABLEPRINTTEMPLATE (16384)
#define PD_ENABLEPRINTTEMPLATEHANDLE (65536)
#define PD_ENABLESETUPHOOK (8192)
#define PD_ENABLESETUPTEMPLATE (32768)
#define PD_ENABLESETUPTEMPLATEHANDLE (131072)
#define PD_HIDEPRINTTOFILE (1048576)
#define PD_NOPAGENUMS (8)
#define PD_NOSELECTION (4)
#define PD_NOWARNING (128)
#define PD_PAGENUMS (2)
#define PD_PRINTSETUP (64)
#define PD_PRINTTOFILE (32)
#define PD_RETURNDC (256)
#define PD_RETURNDEFAULT (1024)
#define PD_RETURNIC (512)
#define PD_SELECTION (1)
#define PD_SHOWHELP (2048)
#define PD_USEDEVMODECOPIES (262144)
#define PD_USEDEVMODECOPIESANDCOLLATE (262144)
/* PAGESETUPDLG structure */
#define PSD_DEFAULTMINMARGINS (0)
#define PSD_DISABLEMARGINS (16)
#define PSD_DISABLEORIENTATION (256)
#define PSD_DISABLEPAGEPAINTING (524288)
#define PSD_DISABLEPAPER (512)
#define PSD_DISABLEPRINTER (32)
#define PSD_ENABLEPAGEPAINTHOOK (262144)
#define PSD_ENABLEPAGESETUPHOOK (8192)
#define PSD_ENABLEPAGESETUPTEMPLATE (32768)
#define PSD_ENABLEPAGESETUPTEMPLATEHANDLE (131072)
#define PSD_INHUNDREDTHSOFMILLIMETERS (8)
#define PSD_INTHOUSANDTHSOFINCHES (4)
#define PSD_INWININIINTLMEASURE (0)
#define PSD_MARGINS (2)
#define PSD_MINMARGINS (1)
#define PSD_NOWARNING (128)
#define PSD_RETURNDEFAULT (1024)
#define PSD_SHOWHELP (2048)
/* WM_SHOWWINDOW message */
#define SW_OTHERUNZOOM (4)
#define SW_OTHERZOOM (2)
#define SW_PARENTCLOSING (1)
#define SW_PARENTOPENING (3)
/* Virtual Key codes */
#define VK_LBUTTON (1)
#define VK_RBUTTON (2)
#define VK_CANCEL (3)
#define VK_MBUTTON (4)
#define VK_BACK (8)
#define VK_TAB (9)
#define VK_CLEAR (12)
#define VK_RETURN (13)
#define VK_SHIFT (16)
#define VK_CONTROL (17)
#define VK_MENU (18)
#define VK_PAUSE (19)
#define VK_CAPITAL (20)
#define VK_ESCAPE (27)
#define VK_SPACE (32)
#define VK_PRIOR (33)
#define VK_NEXT (34)
#define VK_END (35)
#define VK_HOME (36)
#define VK_LEFT (37)
#define VK_UP (38)
#define VK_RIGHT (39)
#define VK_DOWN (40)
#define VK_SELECT (41)
#define VK_PRINT (42)
#define VK_EXECUTE (43)
#define VK_SNAPSHOT (44)
#define VK_INSERT (45)
#define VK_DELETE (46)
#define VK_HELP (47)
#define VK_0 (48)
#define VK_1 (49)
#define VK_2 (50)
#define VK_3 (51)
#define VK_4 (52)
#define VK_5 (53)
#define VK_6 (54)
#define VK_7 (55)
#define VK_8 (56)
#define VK_9 (57)
#define VK_A (65)
#define VK_B (66)
#define VK_C (67)
#define VK_D (68)
#define VK_E (69)
#define VK_F (70)
#define VK_G (71)
#define VK_H (72)
#define VK_I (73)
#define VK_J (74)
#define VK_K (75)
#define VK_L (76)
#define VK_M (77)
#define VK_N (78)
#define VK_O (79)
#define VK_P (80)
#define VK_Q (81)
#define VK_R (82)
#define VK_S (83)
#define VK_T (84)
#define VK_U (85)
#define VK_V (86)
#define VK_W (87)
#define VK_X (88)
#define VK_Y (89)
#define VK_Z (90)
#define VK_NUMPAD0 (96)
#define VK_NUMPAD1 (97)
#define VK_NUMPAD2 (98)
#define VK_NUMPAD3 (99)
#define VK_NUMPAD4 (100)
#define VK_NUMPAD5 (101)
#define VK_NUMPAD6 (102)
#define VK_NUMPAD7 (103)
#define VK_NUMPAD8 (104)
#define VK_NUMPAD9 (105)
#define VK_MULTIPLY (106)
#define VK_ADD (107)
#define VK_SEPARATOR (108)
#define VK_SUBTRACT (109)
#define VK_DECIMAL (110)
#define VK_DIVIDE (111)
#define VK_F1 (112)
#define VK_F2 (113)
#define VK_F3 (114)
#define VK_F4 (115)
#define VK_F5 (116)
#define VK_F6 (117)
#define VK_F7 (118)
#define VK_F8 (119)
#define VK_F9 (120)
#define VK_F10 (121)
#define VK_F11 (122)
#define VK_F12 (123)
#define VK_F13 (124)
#define VK_F14 (125)
#define VK_F15 (126)
#define VK_F16 (127)
#define VK_F17 (128)
#define VK_F18 (129)
#define VK_F19 (130)
#define VK_F20 (131)
#define VK_F21 (132)
#define VK_F22 (133)
#define VK_F23 (134)
#define VK_F24 (135)
/* GetAsyncKeyState */
#define VK_NUMLOCK (144)
#define VK_SCROLL (145)
#define VK_LSHIFT (160)
#define VK_LCONTROL (162)
#define VK_LMENU (164)
#define VK_RSHIFT (161)
#define VK_RCONTROL (163)
#define VK_RMENU (165)
/* ImmGetVirtualKey */
#define VK_PROCESSKEY (229)
/* Keystroke Message Flags */
#define KF_ALTDOWN (8192)
#define KF_DLGMODE (2048)
#define KF_EXTENDED (256)
#define KF_MENUMODE (4096)
#define KF_REPEAT (16384)
#define KF_UP (32768)
/* GetKeyboardLayoutName */
#define KL_NAMELENGTH (9)
/* WM_ACTIVATE message */
#define WA_ACTIVE (1)
#define WA_CLICKACTIVE (2)
#define WA_INACTIVE (0)
/* WM_ACTIVATE message */
#define PWR_CRITICALRESUME (3)
#define PWR_SUSPENDREQUEST (1)
#define PWR_SUSPENDRESUME (2)
#define PWR_FAIL (-1)
#define PWR_OK (1)
/* WM_NOTIFYFORMAT message */
#define NF_QUERY (3)
#define NF_REQUERY (4)
#define NFR_ANSI (1)
#define NFR_UNICODE (2)
/* WM_SIZING message */
#define WMSZ_BOTTOM (6)
#define WMSZ_BOTTOMLEFT (7)
#define WMSZ_BOTTOMRIGHT (8)
#define WMSZ_LEFT (1)
#define WMSZ_RIGHT (2)
#define WMSZ_TOP (3)
#define WMSZ_TOPLEFT (4)
#define WMSZ_TOPRIGHT (5)
/* WM_MOUSEACTIVATE message */
#define MA_ACTIVATE (1)
#define MA_ACTIVATEANDEAT (2)
#define MA_NOACTIVATE (3)
#define MA_NOACTIVATEANDEAT (4)
/* WM_SIZE message */
#define SIZE_MAXHIDE (4)
#define SIZE_MAXIMIZED (2)
#define SIZE_MAXSHOW (3)
#define SIZE_MINIMIZED (1)
#define SIZE_RESTORED (0)
/* WM_NCCALCSIZE message */
#define WVR_ALIGNTOP (16)
#define WVR_ALIGNLEFT (32)
#define WVR_ALIGNBOTTOM (64)
#define WVR_ALIGNRIGHT (128)
#define WVR_HREDRAW (256)
#define WVR_VREDRAW (512)
#define WVR_REDRAW (768)
#define WVR_VALIDRECTS (1024)
/* WM_NCHITTEST message */
#define HTBOTTOM (15)
#define HTBOTTOMLEFT (16)
#define HTBOTTOMRIGHT (17)
#define HTCAPTION (2)
#define HTCLIENT (1)
#define HTERROR (-2)
#define HTGROWBOX (4)
#define HTHSCROLL (6)
#define HTLEFT (10)
#define HTMENU (5)
#define HTNOWHERE (0)
#define HTREDUCE (8)
#define HTRIGHT (11)
#define HTSIZE (4)
#define HTSYSMENU (3)
#define HTTOP (12)
#define HTTOPLEFT (13)
#define HTTOPRIGHT (14)
#define HTTRANSPARENT (-1)
#define HTVSCROLL (7)
#define HTZOOM (9)
/* Mouse messages */
#define MK_CONTROL (8)
#define MK_LBUTTON (1)
#define MK_MBUTTON (16)
#define MK_RBUTTON (2)
#define MK_SHIFT (4)
/* WNDCLASS structure */
#define CS_BYTEALIGNCLIENT (4096)
#define CS_BYTEALIGNWINDOW (8192)
#define CS_CLASSDC (64)
#define CS_DBLCLKS (8)
#define CS_GLOBALCLASS (16384)
#define CS_HREDRAW (2)
#define CS_KEYCVTWINDOW (4)
#define CS_NOCLOSE (512)
#define CS_NOKEYCVT (256)
#define CS_OWNDC (32)
#define CS_PARENTDC (128)
#define CS_SAVEBITS (2048)
#define CS_VREDRAW (1)
#define DLGWINDOWEXTRA (30)
/* ACCEL structure */
#define FALT (16)
#define FCONTROL (8)
#define FNOINVERT (2)
#define FSHIFT (4)
#define FVIRTKEY (1)
/* MENUITEMINFO structure */
#define MIIM_CHECKMARKS (8)
#define MIIM_DATA (32)
#define MIIM_ID (2)
#define MIIM_STATE (1)
#define MIIM_SUBMENU (4)
#define MIIM_TYPE (16)
#define MFT_BITMAP (0x4L)
#define MFT_MENUBARBREAK (0x20L)
#define MFT_MENUBREAK (0x40L)
#define MFT_OWNERDRAW (0x100L)
#define MFT_RADIOCHECK (0x200L)
#define MFT_RIGHTJUSTIFY (0x4000L)
#define MFT_SEPARATOR (0x800L)
#define MFT_STRING (0L)
#define MFS_CHECKED (0x8L)
#define MFS_DEFAULT (0x1000L)
#define MFS_DISABLED (0x3L)
#define MFS_ENABLED (0L)
#define MFS_GRAYED (0x3L)
#define MFS_HILITE (0x80L)
#define MFS_UNCHECKED (0L)
#define MFS_UNHILITE (0L)
/* SERIALKEYS structure */
#define SERKF_AVAILABLE (2)
#define SERKF_INDICATOR (4)
#define SERKF_SERIALKEYSON (1)
/* FILTERKEYS structure */
#define FKF_AVAILABLE (2)
#define FKF_CLICKON (64)
#define FKF_FILTERKEYSON (1)
#define FKF_HOTKEYACTIVE (4)
#define FKF_HOTKEYSOUND (16)
#define FKF_CONFIRMHOTKEY (8)
#define FKF_INDICATOR (32)
/* HELPINFO structure */
#define HELPINFO_MENUITEM (2)
#define HELPINFO_WINDOW (1)
/* WM_PRINT message */
#define PRF_CHECKVISIBLE (0x1L)
#define PRF_CHILDREN (0x10L)
#define PRF_CLIENT (0x4L)
#define PRF_ERASEBKGND (0x8L)
#define PRF_NONCLIENT (0x2L)
#define PRF_OWNED (0x20L)
/* MapWindowPoints */
#define HWND_DESKTOP ((HWND)0)
/* WM_SYSCOMMAND message */
#define SC_CLOSE (61536)
#define SC_CONTEXTHELP (61824)
#define SC_DEFAULT (61792)
#define SC_HOTKEY (61776)
#define SC_HSCROLL (61568)
#define SC_KEYMENU (61696)
#define SC_MAXIMIZE (61488)
#define SC_ZOOM (61488)
#define SC_MINIMIZE (61472)
#define SC_ICON (61472)
#define SC_MONITORPOWER (61808)
#define SC_MOUSEMENU (61584)
#define SC_MOVE (61456)
#define SC_NEXTWINDOW (61504)
#define SC_PREVWINDOW (61520)
#define SC_RESTORE (61728)
#define SC_SCREENSAVE (61760)
#define SC_SIZE (61440)
#define SC_TASKLIST (61744)
#define SC_VSCROLL (61552)
/* DM_GETDEFID message */
#define DC_HASDEFID (21323)
/* WM_GETDLGCODE message */
#define DLGC_BUTTON (8192)
#define DLGC_DEFPUSHBUTTON (16)
#define DLGC_HASSETSEL (8)
#define DLGC_RADIOBUTTON (64)
#define DLGC_STATIC (256)
#define DLGC_UNDEFPUSHBUTTON (32)
#define DLGC_WANTALLKEYS (4)
#define DLGC_WANTARROWS (1)
#define DLGC_WANTCHARS (128)
#define DLGC_WANTMESSAGE (4)
#define DLGC_WANTTAB (2)
/* EM_SETMARGINS message */
#define EC_LEFTMARGIN (1)
#define EC_RIGHTMARGIN (2)
#define EC_USEFONTINFO (65535)
/* LB_SETCOUNT message */
#define LB_ERR (-1)
#define LB_ERRSPACE (-2)
#define LB_OKAY (0)
/* CB_DIR message */
#define CB_ERR (-1)
#define CB_ERRSPACE (-2)
/* WM_IME_CONTROL message */
#define IMC_GETCANDIDATEPOS (7)
#define IMC_GETCOMPOSITIONFONT (9)
#define IMC_GETCOMPOSITIONWINDOW (11)
#define IMC_GETSTATUSWINDOWPOS (15)
#define IMC_CLOSESTATUSWINDOW (33)
#define IMC_OPENSTATUSWINDOW (34)
#define IMC_SETCANDIDATEPOS (8)
#define IMC_SETCOMPOSITIONFONT (10)
#define IMC_SETCOMPOSITIONWINDOW (12)
#define IMC_SETSTATUSWINDOWPOS (16)
/* WM_IME_CONTROL message */
#define IMN_CHANGECANDIDATE (3)
#define IMN_CLOSECANDIDATE (4)
#define IMN_CLOSESTATUSWINDOW (1)
#define IMN_GUIDELINE (13)
#define IMN_OPENCANDIDATE (5)
#define IMN_OPENSTATUSWINDOW (2)
#define IMN_SETCANDIDATEPOS (9)
#define IMN_SETCOMPOSITIONFONT (10)
#define IMN_SETCOMPOSITIONWINDOW (11)
#define IMN_SETCONVERSIONMODE (6)
#define IMN_SETOPENSTATUS (8)
#define IMN_SETSENTENCEMODE (7)
#define IMN_SETSTATUSWINDOWPOS (12)
#define IMN_PRIVATE (14)
/* STICKYKEYS structure */
#define SKF_AUDIBLEFEEDBACK (64)
#define SKF_AVAILABLE (2)
#define SKF_CONFIRMHOTKEY (8)
#define SKF_HOTKEYACTIVE (4)
#define SKF_HOTKEYSOUND (16)
#define SKF_INDICATOR (32)
#define SKF_STICKYKEYSON (1)
#define SKF_TRISTATE (128)
#define SKF_TWOKEYSOFF (256)
/* MOUSEKEYS structure */
#define MKF_AVAILABLE (2)
#define MKF_CONFIRMHOTKEY (8)
#define MKF_HOTKEYACTIVE (4)
#define MKF_HOTKEYSOUND (16)
#define MKF_INDICATOR (32)
#define MKF_MOUSEKEYSON (1)
#define MKF_MODIFIERS (64)
#define MKF_REPLACENUMBERS (128)
/* SOUNDSENTRY structure */
#define SSF_AVAILABLE (2)
#define SSF_SOUNDSENTRYON (1)
#define SSTF_BORDER (2)
#define SSTF_CHARS (1)
#define SSTF_DISPLAY (3)
#define SSTF_NONE (0)
#define SSGF_DISPLAY (3)
#define SSGF_NONE (0)
#define SSWF_CUSTOM (4)
#define SSWF_DISPLAY (3)
#define SSWF_NONE (0)
#define SSWF_TITLE (1)
#define SSWF_WINDOW (2)
/* ACCESSTIMEOUT structure */
#define ATF_ONOFFFEEDBACK (2)
#define ATF_TIMEOUTON (1)
/* HIGHCONTRAST structure */
#define HCF_AVAILABLE (2)
#define HCF_CONFIRMHOTKEY (8)
#define HCF_HIGHCONTRASTON (1)
#define HCF_HOTKEYACTIVE (4)
#define HCF_HOTKEYAVAILABLE (64)
#define HCF_HOTKEYSOUND (16)
#define HCF_INDICATOR (32)
/* TOGGLEKEYS structure */
#define TKF_AVAILABLE (2)
#define TKF_CONFIRMHOTKEY (8)
#define TKF_HOTKEYACTIVE (4)
#define TKF_HOTKEYSOUND (16)
#define TKF_TOGGLEKEYSON (1)
/* Installable Policy */
#define PP_DISPLAYERRORS (1)
/* SERVICE_INFO structure */
#define RESOURCEDISPLAYTYPE_DOMAIN (1)
#define RESOURCEDISPLAYTYPE_FILE (4)
#define RESOURCEDISPLAYTYPE_GENERIC (0)
#define RESOURCEDISPLAYTYPE_GROUP (5)
#define RESOURCEDISPLAYTYPE_SERVER (2)
#define RESOURCEDISPLAYTYPE_SHARE (3)
/* KEY_EVENT_RECORD structure */
#define CAPSLOCK_ON (128)
#define ENHANCED_KEY (256)
#define LEFT_ALT_PRESSED (2)
#define LEFT_CTRL_PRESSED (8)
#define NUMLOCK_ON (32)
#define RIGHT_ALT_PRESSED (1)
#define RIGHT_CTRL_PRESSED (4)
#define SCROLLLOCK_ON (64)
#define SHIFT_PRESSED (16)
/* MOUSE_EVENT_RECORD structure */
#define FROM_LEFT_1ST_BUTTON_PRESSED (1)
#define RIGHTMOST_BUTTON_PRESSED (2)
#define FROM_LEFT_2ND_BUTTON_PRESSED (4)
#define FROM_LEFT_3RD_BUTTON_PRESSED (8)
#define FROM_LEFT_4TH_BUTTON_PRESSED (16)
#define DOUBLE_CLICK (2)
#define MOUSE_MOVED (1)
/* INPUT_RECORD structure */
#define KEY_EVENT (1)
#define MOUSE_EVENT (2)
#define WINDOW_BUFFER_SIZE_EVENT (4)
#define MENU_EVENT (8)
#define FOCUS_EVENT (16)
/* BITMAPINFOHEADER structure */
#define BI_RGB (0L)
#define BI_RLE8 (1L)
#define BI_RLE4 (2L)
#define BI_BITFIELDS (3L)
/* Extensions to OpenGL */
/* ChoosePixelFormat */
#define PFD_DRAW_TO_WINDOW (0x4)
#define PFD_DRAW_TO_BITMAP (0x8)
#define PFD_SUPPORT_GDI (0x10)
#define PFD_SUPPORT_OPENGL (0x20)
#define PFD_DOUBLEBUFFER (0x1)
#define PFD_STEREO (0x2)
#define PFD_DOUBLEBUFFER_DONTCARE (0x40000000)
#define PFD_STEREO_DONTCARE (0x80000000)
#define PFD_TYPE_RGBA (0)
#define PFD_TYPE_COLORINDEX (1)
#define PFD_MAIN_PLANE (0)
#define PFD_OVERLAY_PLANE (1)
#define PFD_UNDERLAY_PLANE (-1)
/* wglUseFontOutlines */
#define WGL_FONT_LINES (0)
#define WGL_FONT_POLYGONS (1)
/* LAYERPLANEDESCRIPTOR structure */
/* PIXELFORMATDESCRIPTOR structure */
#define PFD_GENERIC_FORMAT (0x40)
#define PFD_NEED_PALETTE (0x80)
#define PFD_NEED_SYSTEM_PALETTE (0x100)
#define PFD_SWAP_COPY (0x400)
#define PFD_SWAP_EXCHANGE (0x200)
/* --------------------- old stuff, need to organize! --------------- */
/* BEGINNING of windowsx.h stuff from old headers: */
#define __CRACK_VOID_F(fn,args) (void)(fn args)
#define __CRACK_BOOL_F(fn,args) (BOOL)(fn args)
#define __CRACK_HMENU_F(fn,args) (HMENU)(fn args)
#define __CRACK_HWND_F(fn,args) (HWND)(fn args)
#define __CRACK_LONG_F(fn, args) (LRESULT)(fn args)
#define __CRACK_ZERO_F(fn, args) (fn args,0)
#define GetFirstChild(h) GetTopWindow(h)
#define GetNextSibling(h) GetWindow(h, GW_HWNDNEXT)
#define GetWindowID(h) GetDlgCtrlID(h)
#define SubclassWindow(h, p) (SetWindowLong(h, GWL_WNDPROC, p))
#define GET_WM_COMMAND_CMD(w, l) HIWORD(w)
#define GET_WM_COMMAND_ID(w, l) LOWORD(w)
#define GET_WM_CTLCOLOR_HDC(w, l, msg) (HDC)(w)
#define GET_WM_CTLCOLOR_HWND(w, l, msg) (HWND)(l)
#define GET_WM_HSCROLL_CODE(w, l) LOWORD(w)
#define GET_WM_HSCROLL_HWND(w, l) (HWND)(l)
#define GET_WM_HSCROLL_POS(w, l) HIWORD(w)
#define GET_WM_MDIACTIVATE_FACTIVATE(h, a, b) (b == (LONG)h)
#define GET_WM_MDIACTIVATE_HWNDACTIVATE(a, b) (HWND)(b)
#define GET_WM_MDIACTIVATE_HWNDDEACT(a, b) (HWND)(a)
#define GET_WM_VSCROLL_CODE(w, l) LOWORD(w)
#define GET_WM_VSCROLL_HWND(w, l) (HWND)(l)
#define GET_WM_VSCROLL_POS(w, l) HIWORD(w)
#define FORWARD_WM_CLOSE(h, fn) __CRACK_VOID_F(fn,(h, WM_CLOSE, 0, 0))
#define FORWARD_WM_COMMAND(h, id, c, n, fn) __CRACK_VOID_F(fn,(h, WM_COMMAND, MAKEWPARAM(id,n), (LPARAM)c))
#define FORWARD_WM_CREATE(h, p, fn) __CRACK_BOOL_F(fn,(h, WM_CREATE, 0, (LPARAM)p))
#define FORWARD_WM_DESTROY(h, fn) __CRACK_VOID_F(fn,(h, WM_DESTROY, 0, 0))
#define FORWARD_WM_ENABLE(h, e, fn) __CRACK_VOID_F(fn,(h, WM_ENABLE, (WPARAM)e, 0))
#define FORWARD_WM_INITDIALOG(h, c, l, fn) __CRACK_BOOL_F(fn,(h, WM_INITDIALOG, (WPARAM)c, l))
#define FORWARD_WM_MDICASCADE(h, c, fn) __CRACK_BOOL_F(fn,(h, WM_MDICASCADE, (WPARAM)c, 0))
#define FORWARD_WM_MDIDESTROY(h, d, fn) __CRACK_VOID_F(fn,(h, WM_MDIDESTROY, (WPARAM)d, 0))
#define FORWARD_WM_MDIGETACTIVE(h, fn) __CRACK_HWND_F(fn,(h, WM_MDIGETACTIVE, 0, 0))
#define FORWARD_WM_MDIICONARRANGE(h, fn) __CRACK_VOID_F(fn,(h, WM_MDIICONARRANGE, 0, 0))
#define FORWARD_WM_MDISETMENU(h, fr, hf, hw, fn) __CRACK_HMENU_F(fn,(h, WM_MDISETMENU, (WPARAM)((fr) ? (hf) : 0), (LPARAM)(hw)))
#define FORWARD_WM_MDITILE(h, c, fn) __CRACK_BOOL_F(fn,(h, WM_MDITILE, (WPARAM)(c), 0))
#define FORWARD_WM_PAINT(h, fn) __CRACK_VOID_F(fn,(h, WM_PAINT, 0, 0))
#define FORWARD_WM_QUERYENDSESSION(h, fn) __CRACK_BOOL_F(fn,(h, WM_QUERYENDSESSION, 0, 0))
#define FORWARD_WM_SIZE(h, state, cx, cy, fn) __CRACK_VOID_F(fn,(h, WM_SIZE, (WPARAM)state, MAKELPARAM(cx, cy)))
#define FORWARD_WM_SYSCOMMAND(h, c, x, y, fn) __CRACK_VOID_F(fn,(h, WM_SYSCOMMAND, (WPARAM)c, MAKELPARAM(x, y)))
#define HANDLE_WM_CLOSE(h, w, l, fn) __CRACK_ZERO_F(fn,(h));
#define HANDLE_WM_COMMAND(h, w, l, fn) __CRACK_ZERO_F(fn,(h, SEXT_LOWORD(w), (HWND)l, HIWORD(w)))
#define HANDLE_WM_CREATE(h, w, l, fn) (LRESULT)((fn(h, (CREATESTRUCT *)l)) ? 0 : -1)
#define HANDLE_WM_DESTROY(h, w, l, fn) __CRACK_ZERO_F(fn,(h))
#define HANDLE_WM_ENABLE(h, w, l, fn) __CRACK_ZERO_F(fn,(h, (BOOL)w))
#define HANDLE_WM_INITDIALOG(h, w, l, fn) __CRACK_LONG_F(fn,(h, (HWND)w, l))
#define HANDLE_WM_MDICASCADE(h, w, l, fn) __CRACK_LONG_F(fn, (h, (UINT)w)
#define HANDLE_WM_MDIDESTROY(h, w, l, fn) __CRACK_ZERO_F(fn,(h, (HWND)w))
#define HANDLE_WM_MDIGETACTIVE(h, w, l, fn) __CRACK_LONG_F(fn,(h))
#define HANDLE_WM_MDIICONARRANGE(h, w, l, fn) __CRACK_ZERO_F(fn,(h))
#define HANDLE_WM_MDISETMENU(h, w, l, fn) __CRACK_LONG_F(fn,(h, (BOOL)w, (HMENU)w, (HMENU)l)
#define HANDLE_WM_MDITILE(h, w, l, fn) __CRACK_LONG_F(fn,(h, (UINT)w))
#define HANDLE_WM_PAINT(h, w, l, fn) __CRACK_ZERO_F(fn,(h))
#define HANDLE_WM_QUERYENDSESSION(h, w, l, fn) MAKELRESULT(fn(h), 0)
#define HANDLE_WM_SIZE(h, w, l, fn) __CRACK_ZERO_F(fn,(h, (UINT)w, SEXT_LOWORD(l), SEXT_HIWORD(l)))
#define HANDLE_WM_SYSCOMMAND(h, w, l, fn) __CRACK_ZERO_F(fn,(h, (UINT)w, SEXT_LOWORD(l), SEXT_HIWORD(l)))
/* Totally disgusting! get wParam and lParam from the environment ! */
#define HANDLE_MSG(h, message, fn) case message: return HANDLE_##message(h, wParam, lParam, fn)
/* END OF windowsx.h stuff from old headers */
/* ------------------------------------------------------------------ */
/* BEGINNING of shellapi.h stuff from old headers */
#define SE_ERR_SHARE 26
#define SE_ERR_ASSOCINCOMPLETE 27
#define SE_ERR_DDETIMEOUT 28
#define SE_ERR_DDEFAIL 29
#define SE_ERR_DDEBUSY 30
#define SE_ERR_NOASSOC 31
/* END OF shellapi.h stuff from old headers */
/* ------------------------------------------------------------------ */
/* From ddeml.h in old Cygnus headers */
#define XCLASS_BOOL 0x1000
#define XCLASS_DATA 0x2000
#define XCLASS_FLAGS 0x4000
#define XCLASS_MASK 0xfc00
#define XCLASS_NOTIFICATION 0x8000
#define XTYPF_NOBLOCK 0x0002
#define XTYP_ADVDATA 0x4010
#define XTYP_ADVREQ 0x2022
#define XTYP_ADVSTART 0x1030
#define XTYP_ADVSTOP 0x8040
#define XTYP_CONNECT 0x1062
#define XTYP_CONNECT_CONFIRM 0x8072
#define XTYP_DISCONNECT 0x80c2
#define XTYP_EXECUTE 0x4050
#define XTYP_POKE 0x4090
#define XTYP_REQUEST 0x20b0
#define XTYP_WILDCONNECT 0x20E2
#define XTYP_REGISTER 0x80A2
#define XTYP_ERROR 0x8002
#define XTYP_XACT_COMPLETE 0x8080
#define XTYP_UNREGISTER 0x80D2
#define DMLERR_DLL_USAGE 0x4004
#define DMLERR_INVALIDPARAMETER 0x4006
#define DMLERR_NOTPROCESSED 0x4009
#define DMLERR_POSTMSG_FAILED 0x400c
#define DMLERR_SERVER_DIED 0x400e
#define DMLERR_SYS_ERROR 0x400f
#define DMLERR_BUSY 0x4001
#define DMLERR_DATAACKTIMEOUT 0x4002
#define DMLERR_ADVACKTIMEOUT 0x4000
#define DMLERR_DLL_NOT_INITIALIZED 0x4003
#define DMLERR_LOW_MEMORY 0x4007
#define DMLERR_MEMORY_ERROR 0x4008
#define DMLERR_POKEACKTIMEOUT 0x400b
#define DMLERR_NO_CONV_ESTABLISHED 0x400a
#define DMLERR_REENTRANCY 0x400d
#define DMLERR_UNFOUND_QUEUE_ID 0x4011
#define DMLERR_UNADVACKTIMEOUT 0x4010
#define DMLERR_EXECACKTIMEOUT 0x4005
#define DDE_FACK 0x8000
#define DDE_FNOTPROCESSED 0x0000
#define DNS_REGISTER 0x0001
#define DNS_UNREGISTER 0x0002
#define CP_WINANSI 1004
#define CP_WINUNICODE 1200
#define EXPENTRY CALLBACK
#define APPCLASS_STANDARD 0x00000000
/* End of stuff from ddeml.h in old Cygnus headers */
/* ----------------------------------------------- */
#define BKMODE_LAST (2)
#define CTLCOLOR_MSGBOX (0)
#define CTLCOLOR_EDIT (1)
#define CTLCOLOR_LISTBOX (2)
#define CTLCOLOR_BTN (3)
#define CTLCOLOR_DLG (4)
#define CTLCOLOR_SCROLLBAR (5)
#define CTLCOLOR_STATIC (6)
#define CTLCOLOR_MAX (7)
#define META_SETMAPMODE (0x0103L)
#define META_SETWINDOWORG (0x020BL)
#define META_SETWINDOWEXT (0x020CL)
#define POLYFILL_LAST (2)
#define STATUS_WAIT_0 (0x00000000L)
#define STATUS_ABANDONED_WAIT_0 (0x00000080L)
#define STATUS_USER_APC (0x000000C0L)
#define STATUS_TIMEOUT (0x00000102L)
#define STATUS_PENDING (0x00000103L)
#define STATUS_GUARD_PAGE_VIOLATION (0x80000001L)
#define STATUS_DATATYPE_MISALIGNMENT (0x80000002L)
#define STATUS_BREAKPOINT (0x80000003L)
#define STATUS_SINGLE_STEP (0x80000004L)
#define STATUS_IN_PAGE_ERROR (0xC0000006L)
#define STATUS_ILLEGAL_INSTRUCTION (0xC000001DL)
#define STATUS_NONCONTINUABLE_EXCEPTION (0xC0000025L)
#define STATUS_INVALID_DISPOSITION (0xC0000026L)
#define STATUS_ARRAY_BOUNDS_EXCEEDED (0xC000008CL)
#define STATUS_FLOAT_DENORMAL_OPERAND (0xC000008DL)
#define STATUS_FLOAT_DIVIDE_BY_ZERO (0xC000008EL)
#define STATUS_FLOAT_INEXACT_RESULT (0xC000008FL)
#define STATUS_FLOAT_INVALID_OPERATION (0xC0000090L)
#define STATUS_FLOAT_OVERFLOW (0xC0000091L)
#define STATUS_FLOAT_STACK_CHECK (0xC0000092L)
#define STATUS_FLOAT_UNDERFLOW (0xC0000093L)
#define STATUS_INTEGER_DIVIDE_BY_ZERO (0xC0000094L)
#define STATUS_INTEGER_OVERFLOW (0xC0000095L)
#define STATUS_PRIVILEGED_INSTRUCTION (0xC0000096L)
#define STATUS_STACK_OVERFLOW (0xC00000FDL)
#define STATUS_CONTROL_C_EXIT (0xC000013AL)
#define EXCEPTION_CTRL_C
#define PROCESSOR_ARCHITECTURE_INTEL 0
#define PROCESSOR_ARCHITECTURE_MIPS 1
#define PROCESSOR_ARCHITECTURE_ALPHA 2
#define PROCESSOR_ARCHITECTURE_PPC 3
#define FreeModule(h) FreeLibrary(h)
#define MakeProcInstance(p,i) (p)
#define FreeProcInstance(p) (p)
#define _fmemcpy memcpy
/* Used by wxwindows. */
#define SIZEFULLSCREEN SIZE_MAXIMIZED
#define SIZENORMAL SIZE_RESTORED
#define SIZEICONIC SIZE_MINIMIZED
#define NPLOGPALETTE PLOGPALETTE
/* In the old winnt.h */
#if 0
#ifdef __ANAL__
#define DECLARE_HANDLE(h) struct h##__ { int dummy; }; typedef struct h##__ *h
#else
#define DECLARE_HANDLE(h) typedef void *h
#endif
DECLARE_HANDLE(HANDLE);
#endif
#ifdef __PPC__
#define CONTEXT_CONTROL 1L
#define CONTEXT_FLOATING_POINT 2L
#define CONTEXT_INTEGER 4L
#define CONTEXT_DEBUG_REGISTERS 8L
#define CONTEXT_FULL (CONTEXT_CONTROL | CONTEXT_FLOATING_POINT | CONTEXT_INTEGER)
#define CONTEXT_DEBUGGER (CONTEXT_FULL)
#else /* x86 */
/* The doc refered me to winnt.h, so I had to look... */
#define SIZE_OF_80387_REGISTERS 80
/* Values for contextflags */
#define CONTEXT_i386 0x10000
#define CONTEXT_CONTROL (CONTEXT_i386 | 1)
#define CONTEXT_INTEGER (CONTEXT_i386 | 2)
#define CONTEXT_SEGMENTS (CONTEXT_i386 | 4)
#define CONTEXT_FLOATING_POINT (CONTEXT_i386 | 8)
#define CONTEXT_DEBUG_REGISTERS (CONTEXT_i386 | 0x10)
#define CONTEXT_FULL (CONTEXT_CONTROL | CONTEXT_INTEGER | CONTEXT_SEGMENTS)
/* our own invention */
#define FLAG_TRACE_BIT 0x100
#define CONTEXT_DEBUGGER (CONTEXT_FULL | CONTEXT_FLOATING_POINT)
#endif
#define ASCIICHAR AsciiChar
#define FAR
#define PACKED __attribute__((packed))
#define FILTER_TEMP_DUPLICATE_ACCOUNT (0x0001)
#define FILTER_NORMAL_ACCOUNT (0x0002)
#define FILTER_INTERDOMAIN_TRUST_ACCOUNT (0x0008)
#define FILTER_WORKSTATION_TRUST_ACCOUNT (0x0010)
#define FILTER_SERVER_TRUST_ACCOUNT (0x0020)
#define LOGON32_LOGON_INTERACTIVE (0x02)
#define LOGON32_LOGON_BATCH (0x04)
#define LOGON32_LOGON_SERVICE (0x05)
#define LOGON32_PROVIDER_DEFAULT (0x00)
#define LOGON32_PROVIDER_WINNT35 (0x01)
#define QID_SYNC 0xFFFFFFFF
#ifdef __cplusplus
}
#endif /* __cplusplus */
#endif /* _GNU_H_WINDOWS32_DEFINES */
|