apiw-sys 0.1.0

This crate provides core API bindings for Windows according to ECMA-234.
Documentation
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
#![allow(unused_doc_comments)]
#[cfg(any(
    feature = "windows-subsystem-paint",
    feature = "windows-subsystem-updateregion",
    feature = "graphics-subsystem-basic"
))]
use windows_sys::Win32::Graphics::Gdi as gdi;
#[cfg(any(
    feature = "windows-subsystem-clipboard",
    feature = "windows-subsystem-atom"
))]
use windows_sys::Win32::System::DataExchange as sysdx;
#[cfg(any(
    feature = "windows-subsystem-message",
    feature = "windows-subsystem-control-button",
    feature = "windows-subsystem-dialogbox",
    feature = "windows-subsystem-scroll",
))]
use windows_sys::Win32::UI::Controls as ctrls;
#[cfg(feature = "windows-subsystem-basic")]
use windows_sys::Win32::UI::Input::KeyboardAndMouse as kbdmse;
use windows_sys::Win32::UI::WindowsAndMessaging as winmsg;

/// `#6` CallWindowProc
///
/// passes message information to the specified window procedure
pub use winmsg::CallWindowProcW as CallWindowProc;

/// `#7` DispatchMessage
///
/// dispatches a message to a window
#[cfg(feature = "windows-subsystem-message")]
pub use winmsg::DispatchMessageW as DispatchMessage;

/// `#8` GetMessage
///
/// retrieves a message from the application's message queue and places the
/// message in an `MSG`` structure
#[cfg(feature = "windows-subsystem-message")]
pub use winmsg::GetMessageW as GetMessage;

/// `#8` PeekMessage
///
/// checks the application's message queue for a message and places the message
/// (if any) in the specified `MSG`` structure
#[cfg(feature = "windows-subsystem-message")]
pub use winmsg::PeekMessageW as PeekMessage;

/// `#9` WaitMessage
///
/// suspends the application and waits until a new message is added to the
/// application’s queue
#[cfg(feature = "windows-subsystem-message")]
pub use winmsg::WaitMessage;

/// `#10` GetMessagePos
///
/// returns a long value representing a cursor position, in screen coordinates,
/// when the last message retrieved by the `GetMessage()` function occurs
#[cfg(feature = "windows-subsystem-message")]
pub use winmsg::GetMessagePos;

/// `#10` GetMessageTime
///
/// returns the message time for the last message retrieved by the function
#[cfg(feature = "windows-subsystem-message")]
pub use winmsg::GetMessageTime;

/// `#11` InSendMessage
///
/// determines whether the current window procedure is processing a message sent
/// from another task by a call to the `SendMessage()` function
#[cfg(feature = "windows-subsystem-message")]
pub use winmsg::InSendMessage;

/// `#11` ReplyMessage
///
/// reply to a message sent through the SendMessage() function without returning
/// control to the application that sent the message
#[cfg(feature = "windows-subsystem-message")]
pub use winmsg::ReplyMessage;

/// `#12` PostAppMessage
///
/// places a message in the message queue of the given task
removed_item!(
    pub use winmsg::PostAppMessage;
);

/// `#12` PostMessage
///
/// places a message in a window message queue
#[cfg(feature = "windows-subsystem-message")]
pub use winmsg::PostMessageW as PostMessage;

/// `#12` PostQuitMessage
///
/// posts a message to the system requesting an application to terminate
/// execution
#[cfg(feature = "windows-subsystem-message")]
pub use winmsg::PostQuitMessage;

/// `#13` SendMessage
///
/// sends a message to the specified window or windows
#[cfg(feature = "windows-subsystem-message")]
pub use winmsg::SendMessageW as SendMessage;

/// `#14` SetMessageQueue
///
/// set the application's message queue size
#[cfg(feature = "windows-subsystem-message")]
pub use winmsg::SetMessageQueue;

/// `#15` TranslateAccelerator
///
/// processes accelerator keys for menu commands
#[cfg(feature = "windows-subsystem-message")]
pub use winmsg::TranslateAcceleratorW as TranslateAccelerator;

/// `#16` TranslateMDISysAccel
///
/// processes the accelerator keys of the given multiple document interface
/// (MDI) child window
#[cfg(all(
    feature = "windows-subsystem-message",
    feature = "windows-subsystem-mdi"
))]
pub use winmsg::TranslateMDISysAccel;

/// `#17` TranslateMessage
///
/// translates virtual-key messages into character messages
#[cfg(feature = "windows-subsystem-message")]
pub use winmsg::TranslateMessage;

/// `#18` RegisterWindowMessage
///
/// create a custom window message or retrieve the identifier associated with an
/// existing custom window message
#[cfg(feature = "windows-subsystem-message")]
pub use winmsg::RegisterWindowMessageW as RegisterWindowMessage;

/// `#19` GetMessageExtraInfo
///
/// gets extra information belonging to the last message found by the
/// `GetMessage()` or `PeekMessage()` functions
#[cfg(feature = "windows-subsystem-message")]
pub use winmsg::GetMessageExtraInfo;

/// `C.25` MSG
///
/// contains a message's information
#[cfg(feature = "windows-subsystem-message")]
pub use winmsg::MSG;

/// `D.1~D.5` Window messages for button
#[cfg(all(
    feature = "windows-subsystem-message",
    feature = "windows-subsystem-control-button"
))]
pub mod window_messages_for_button;

/// `D.6~D.30` Window messages for combo box
#[cfg(all(
    feature = "windows-subsystem-message",
    feature = "windows-subsystem-control-combobox"
))]
pub mod window_messages_for_combobox;

/// `D.31~D.32` Window messages for dialog box
#[cfg(all(
    feature = "windows-subsystem-message",
    feature = "windows-subsystem-dialogbox"
))]
pub mod window_messages_for_dialogbox;

/// `D.33~D.60` Window messages for edit
#[cfg(all(
    feature = "windows-subsystem-message",
    feature = "windows-subsystem-control-edit"
))]
pub mod window_messages_for_edit;

/// `D.61~D.91` Window messages for combo box
#[cfg(all(
    feature = "windows-subsystem-message",
    feature = "windows-subsystem-control-listbox"
))]
pub mod window_messages_for_listbox;

/// `D.92~D.93` Window messages for static
#[cfg(all(
    feature = "windows-subsystem-message",
    feature = "windows-subsystem-control-static"
))]
pub mod window_messages_for_static;

/// `D.94~D.217` General window messages
#[cfg(feature = "windows-subsystem-message")]
pub mod general_window_messages;

/// `C.10` COMPAREITEMSTRUCT
///
/// contains the identifiers and application-defined data for two items in a
/// sorted, owner-drawn combo box or list box control
#[cfg(all(
    feature = "windows-subsystem-message",
    any(
        feature = "windows-subsystem-control-combobox",
        feature = "windows-subsystem-control-listbox"
    )
))]
pub use ctrls::COMPAREITEMSTRUCT;

/// `C.12` DELETEITEMSTRUCT
///
/// contains information associated with an item that is deleted from an
/// owner-drawn list-box or combo-box control
#[cfg(all(
    feature = "windows-subsystem-message",
    any(
        feature = "windows-subsystem-control-combobox",
        feature = "windows-subsystem-control-listbox"
    )
))]
pub use ctrls::DELETEITEMSTRUCT;

/// `C.13` DRAWITEMSTRUCT
///
/// contains information that the control's owner needs to determine how to
/// paint an owner-drawn control
#[cfg(feature = "windows-subsystem-message")]
pub use ctrls::DRAWITEMSTRUCT;

/// `C.21` MEASUREITEMSTRUCT
///
/// contains the dimensions of an owner-drawn control
#[cfg(feature = "windows-subsystem-message")]
pub use ctrls::MEASUREITEMSTRUCT;

/// `C.22` MINMAXINFO
///
/// contains a window's maximized size and position and tracking size
#[cfg(feature = "windows-subsystem-message")]
pub use winmsg::MINMAXINFO;

/// `E.1~E.6` Control notifications for button
#[cfg(all(
    feature = "windows-subsystem-message",
    feature = "windows-subsystem-control-button"
))]
pub mod control_notifications_for_button;

/// `E.7~E.17` Control notifications for combo box
#[cfg(all(
    feature = "windows-subsystem-message",
    feature = "windows-subsystem-control-combobox"
))]
pub mod control_notifications_for_combobox;

/// `E.18~E.25` Control notifications for edit
#[cfg(all(
    feature = "windows-subsystem-message",
    feature = "windows-subsystem-control-edit"
))]
pub mod control_notifications_for_edit;

/// `E.26~E.31` Control notifications for list box
#[cfg(all(
    feature = "windows-subsystem-message",
    feature = "windows-subsystem-control-listbox"
))]
pub mod control_notifications_for_listbox;

/// `#20` GetQueueStatus
///
/// determines whether any new messages were put in the message queue since the
/// last time the `GetQueueStatus()`, `GetMessage()`, or `PeekMessage()`
/// functions were called
#[cfg(feature = "windows-subsystem-message")]
pub use winmsg::GetQueueStatus;

/// `#21` RegisterClass
///
/// registers a window class for use when creating other windows or class
/// manipulation functions
#[cfg(feature = "windows-subsystem-basic")]
pub use winmsg::RegisterClassW as RegisterClass;

/// `#21` UnregisterClass
///
/// removes a previously registered window class
#[cfg(feature = "windows-subsystem-basic")]
pub use winmsg::UnregisterClassW as UnregisterClass;

/// `#22` GetClassInfo
///
/// retrieves information about a previously registered window class
#[cfg(feature = "windows-subsystem-reflect")]
pub use winmsg::GetClassInfoW as GetClassInfo;

/// `C.40` WNDCLASS
///
/// contains information about a window class
#[cfg(feature = "windows-subsystem-basic")]
pub use winmsg::WNDCLASSW as WNDCLASS;

/// `#23` GetClassName
///
/// retrieves the class name for a given window
#[cfg(feature = "windows-subsystem-reflect")]
pub use winmsg::GetClassNameW as GetClassName;

/// `#24` GetClassWord
///
/// retrieve a word value at the specified offset from extra memory associated
/// with the class associated with the specified window
#[cfg(feature = "windows-subsystem-reflect")]
pub use winmsg::GetClassWord;

/// `#24` SetClassWord
///
/// set a word value at the specified offset from extra memory associated with
/// the class associated with the specified window
#[cfg(feature = "windows-subsystem-basic")]
pub use winmsg::SetClassWord;

/// `#25` GetClassLong
///
/// retrieve a long value at the specified offset from extra memory associated
/// with the class associated with the specified window
#[cfg(feature = "windows-subsystem-reflect")]
pub use winmsg::GetClassLongW as GetClassLong;

/// `#25` SetClassLong
///
/// set a long value at the specified offset from extra memory associated with
/// the class associated with the specified window
#[cfg(feature = "windows-subsystem-basic")]
pub use winmsg::SetClassLongW as SetClassLong;

/// `#26` SetWindowLong
///
/// sets a value of `LONG`` in a window's extra memory
#[cfg(feature = "windows-subsystem-basic")]
pub use winmsg::SetWindowLongW as SetWindowLong;

/// `#27` CreateWindow
///
/// make a window
#[cfg(feature = "windows-subsystem-basic")]
pub use winmsg_polyfill::CreateWindowW as CreateWindow;

/// `#27a` CreateWindowEx
///
/// make a window
#[cfg(feature = "windows-subsystem-basic")]
pub use winmsg::CreateWindowExW as CreateWindowEx;

/// `C.9` CLIENTCREATESTRUCT
///
/// contains information about a multiple document interface (MDI) client
/// window's menu and first MDI child window
#[cfg(feature = "windows-subsystem-mdi")]
pub use winmsg::CLIENTCREATESTRUCT;

/// `C.11` CREATESTRUCT
///
/// contains initialization information that is passed to a new window's window
/// procedure
#[cfg(feature = "windows-subsystem-basic")]
pub use winmsg::CREATESTRUCTW as CREATESTRUCT;

/// `C.20` MDICREATESTRUCT
///
/// contains multiple document interface (MDI) child window's information
#[cfg(feature = "windows-subsystem-mdi")]
pub use winmsg::MDICREATESTRUCTW as MDICREATESTRUCT;

/// `F.1` General window styles
#[cfg(feature = "windows-subsystem-basic")]
pub mod general_window_styles;

/// `F.2` Button styles
#[cfg(all(
    feature = "windows-subsystem-basic",
    feature = "windows-subsystem-control-button"
))]
pub mod window_styles_for_button;

/// `F.3` Combo box styles
#[cfg(all(
    feature = "windows-subsystem-basic",
    feature = "windows-subsystem-control-combobox"
))]
pub mod window_styles_for_combobox;

/// `F.4` Edit control styles
#[cfg(all(
    feature = "windows-subsystem-basic",
    feature = "windows-subsystem-control-edit"
))]
pub mod window_styles_for_edit;

/// `F.5` List box styles
#[cfg(all(
    feature = "windows-subsystem-basic",
    feature = "windows-subsystem-control-listbox"
))]
pub mod window_styles_for_listbox;

/// `F.6` Scroll bar styles
#[cfg(all(
    feature = "windows-subsystem-basic",
    feature = "windows-subsystem-control-scrollbar"
))]
pub mod window_styles_for_scrollbar;

/// `F.7` Static control styles
#[cfg(all(
    feature = "windows-subsystem-basic",
    feature = "windows-subsystem-control-static"
))]
pub mod window_styles_for_static;

/// `F.8` Dialog box styles
#[cfg(all(
    feature = "windows-subsystem-basic",
    feature = "windows-subsystem-dialogbox"
))]
pub mod window_styles_for_dialogbox;

/// `#28` DestroyWindow
///
/// destroys the specified window and all its children, if any
#[cfg(feature = "windows-subsystem-basic")]
pub use winmsg::DestroyWindow;

/// `#29` WindowProc
///
/// an application-defined callback procedure that processes messages sent to
/// the window
#[cfg(feature = "windows-subsystem-basic")]
pub type WindowProc = opt_inner_type!(winmsg::WNDPROC);

/// `#30` DefDlgProc
///
/// performs default processing for any messages that a dialog box, with an
/// application-defined window class, does not process
#[cfg(feature = "windows-subsystem-dialogbox")]
pub use winmsg::DefDlgProcW as DefDlgProc;

/// `#31` DefFrameProc
///
/// performs default processing for any messages that the window procedure of an
/// MDI frame window does not process
#[cfg(feature = "windows-subsystem-mdi")]
pub use winmsg::DefFrameProcW as DefFrameProc;

/// `#32` DefMDIChildProc
///
/// performs default processing for any messages that the window procedure of an
/// MDI child window does not process
#[cfg(feature = "windows-subsystem-mdi")]
pub use winmsg::DefMDIChildProcW as DefMDIChildProc;

/// `#33` DefWindowProc
///
/// performs default processing for any messages that an application-defined
/// window procedure does not process
#[cfg(feature = "windows-subsystem-basic")]
pub use winmsg::DefWindowProcW as DefWindowProc;

/// `#34` GetWindowWord
///
/// returns a WORD value from a window's extra memory
#[cfg(feature = "windows-subsystem-reflect")]
pub use winmsg::GetWindowWord;

/// `#35` GetWindowLong
///
/// returns a LONG value from a window's extra memory
#[cfg(feature = "windows-subsystem-reflect")]
pub use winmsg::GetWindowLongW as GetWindowLong;

/// `#36` SetWindowWord
///
/// sets the value of a WORD in a window's extra memory
#[cfg(feature = "windows-subsystem-basic")]
pub use winmsg::SetWindowWord;

/// `#37` BeginDeferWindowPos
///
/// allocates a storage area for window-positioning information
#[cfg(feature = "windows-subsystem-placement")]
pub use winmsg::BeginDeferWindowPos;

/// `#38` EndDeferWindowPos
///
/// uses the window-positioning information stored in the buffer to update the
/// position of the windows
#[cfg(feature = "windows-subsystem-placement")]
pub use winmsg::EndDeferWindowPos;

/// `C.39` WINDOWPOS
///
/// contains information about a window's size and position
#[cfg(feature = "windows-subsystem-placement")]
pub use winmsg::WINDOWPOS;

/// `#39` DeferWindowPos
///
/// fills a storage area with information for a window that is about to be
/// moved, resized, shown, hidden, or activated
#[cfg(feature = "windows-subsystem-placement")]
pub use winmsg::DeferWindowPos;

/// `#40` SetWindowPos
///
/// executes a single window-positioning request
#[cfg(feature = "windows-subsystem-placement")]
pub use winmsg::SetWindowPos;

/// `#41` ShowWindow
///
/// sets the given window's show state
#[cfg(feature = "windows-subsystem-basic")]
pub use winmsg::ShowWindow;

/// `#41` IsWindowVisible
///
/// retrieves the visibility state of the given window
#[cfg(feature = "windows-subsystem-reflect")]
pub use winmsg::IsWindowVisible;

/// `#42` ArrangeIconicWindows
///
/// arranges all iconic (minimized) child windows of the given parent window
#[cfg(feature = "windows-subsystem-placement")]
pub use winmsg::ArrangeIconicWindows;

/// `#43` OpenIcon
///
/// activates and displays the given minimized window, restoring its original
/// size and position (that is, the size and position the window had before it
/// was minimized)
#[cfg(feature = "windows-subsystem-placement")]
pub use winmsg::OpenIcon;

/// `#44` BringWindowToTop
///
/// brings the given window to the top of the windows stacking order
#[cfg(feature = "windows-subsystem-placement")]
pub use winmsg::BringWindowToTop;

/// `#45` CloseWindow
///
/// minimizes the given window
#[cfg(feature = "windows-subsystem-placement")]
pub use winmsg::CloseWindow;

/// `#46` IsIconic
///
/// determines whether the given window is minimized
#[cfg(feature = "windows-subsystem-reflect")]
pub use winmsg::IsIconic;

/// `#46` IsZoomed
///
/// determines whether the given window is maximized
#[cfg(feature = "windows-subsystem-reflect")]
pub use winmsg::IsZoomed;

/// `#47` ShowOwnedPopups
///
/// shows or hides all pop-up windows owned by the given window
#[cfg(feature = "windows-subsystem-basic")]
pub use winmsg::ShowOwnedPopups;

/// `#48` IsWindow
///
/// determines whether the given window handle identifies the existing window
#[cfg(feature = "windows-subsystem-reflect")]
pub use winmsg::IsWindow;

/// `#49` IsWindowEnabled
///
/// retrieves the input status of the given window
#[cfg(feature = "windows-subsystem-reflect")]
pub use kbdmse::IsWindowEnabled;

/// `#49` EnableWindow
///
/// sets the input status of the given window
#[cfg(feature = "windows-subsystem-basic")]
pub use kbdmse::EnableWindow;

/// `#50` GetActiveWindow
///
/// retrieves the active window handle
#[cfg(feature = "windows-subsystem-reflect")]
pub use kbdmse::GetActiveWindow;

/// `#50` SetActiveWindow
///
/// sets the active window handle
#[cfg(feature = "windows-subsystem-basic")]
pub use kbdmse::SetActiveWindow;

/// `#51` GetCapture
///
/// retrieves the mouse capture window handle
#[cfg(feature = "windows-subsystem-reflect")]
pub use kbdmse::GetCapture;

/// `#51` SetCapture
///
/// sets the mouse capture window handle
#[cfg(feature = "windows-subsystem-basic")]
pub use kbdmse::SetCapture;

/// `#51` ReleaseCapture
///
/// releases the mouse capture and restores normal input processing
#[cfg(feature = "windows-subsystem-basic")]
pub use kbdmse::ReleaseCapture;

/// `#52` GetFocus
///
/// retrieves the input focus window handle
#[cfg(feature = "windows-subsystem-reflect")]
pub use kbdmse::GetFocus;

/// `#52` SetFocus
///
/// sets the input focus window handle
#[cfg(feature = "windows-subsystem-basic")]
pub use kbdmse::SetFocus;

/// `#53` GetSysModalWindow
///
/// retrieves the handle of the system-modal window, if one exists
removed_item!(
    pub use kbdmse::GetSysModalWindow;
);

/// `#54` AnyPopup
///
/// indicates whether an owned, visible, top-level window exists on the desktop
#[cfg(feature = "windows-subsystem-management")]
pub use winmsg::AnyPopup;

/// `#55` GetLastActivePopup
///
/// retrieves the handle of the most recently active pop-up window owned by the
/// given window
#[cfg(feature = "windows-subsystem-reflect")]
pub use winmsg::GetLastActivePopup;

/// `#56` IsChild
///
/// determines whether the given window is a child window or a descendant window
/// of a given parent window
#[cfg(feature = "windows-subsystem-reflect")]
pub use winmsg::IsChild;

/// `#57` GetParent
///
/// retrieves the parent window of the given child window
#[cfg(feature = "windows-subsystem-reflect")]
pub use winmsg::GetParent;

/// `#57` SetParent
///
/// sets the parent window of the given child window
#[cfg(feature = "windows-subsystem-basic")]
pub use winmsg::SetParent;

/// `#58` GetWindow
///
/// retrieves the handle of a window that has the specified relationship to the
/// given window
#[cfg(feature = "windows-subsystem-reflect")]
pub use winmsg::GetWindow;

/// `#58` GetTopWindow
///
/// the same as calling GetWindow() with the GW_CHILD parameter
#[cfg(feature = "windows-subsystem-reflect")]
pub use winmsg::GetTopWindow;

/// `#58` GetNextWindow
///
/// the same as calling the GetWindow() function with the GW_HWNDNEXT or
/// GW_HWNDPREV flags
removed_item!(
    pub use winmsg::GetNextWindow;
);

/// `#59` MoveWindow
///
/// moves or changes the size of a window
#[cfg(feature = "windows-subsystem-placement")]
pub use winmsg::MoveWindow;

/// `#60` GetDesktopWindow
///
/// get the window handle of the desktop window
#[cfg(feature = "windows-subsystem-management")]
pub use winmsg::GetDesktopWindow;

/// `#61` GetWindowPlacement
///
/// identifies the window's show state (normal, maximized, minimized) and the
/// show state positions and stores the information in a given WINDOWPLACEMENT
/// structure
#[cfg(feature = "windows-subsystem-reflect")]
pub use winmsg::GetWindowPlacement;

/// `#61` SetWindowPlacement
///
/// changes the window's show state (normal, maximized, minimized) and the show
/// state positions using the information supplied in the given WINDOWPLACEMENT
/// structure
#[cfg(feature = "windows-subsystem-placement")]
pub use winmsg::SetWindowPlacement;

/// `C.38` WINDOWPLACEMENT
///
/// contains information about a window's placement on the screen
#[cfg(feature = "windows-subsystem-placement")]
pub use winmsg::WINDOWPLACEMENT;

/// `#62` AdjustWindowRect
///
/// calculate the size of a window given information about the window's
/// components and styles
#[cfg(feature = "windows-subsystem-compute")]
pub use winmsg::AdjustWindowRect;

/// `#62` AdjustWindowRectEx
///
/// calculate the size of a window given information about the window's
/// components and styles
#[cfg(feature = "windows-subsystem-compute")]
pub use winmsg::AdjustWindowRectEx;

/// `#63` GetClientRect
///
/// returns the coordinates of window's client area
#[cfg(any(
    feature = "windows-subsystem-reflect",
    feature = "windows-subsystem-export"
))]
pub use winmsg::GetClientRect;

/// `#63` GetWindowRect
///
/// returns a window's screen coordinates relative to the upper-left corner of
/// the display
#[cfg(any(
    feature = "windows-subsystem-reflect",
    feature = "windows-subsystem-export"
))]
pub use winmsg::GetWindowRect;

/// `#64` GetWindowText
///
/// retrieves a window's title or the text within a control and copies it into a
/// buffer
#[cfg(any(
    feature = "windows-subsystem-reflect",
    feature = "windows-subsystem-export"
))]
pub use winmsg::GetWindowTextW as GetWindowText;

/// `#64` GetWindowTextLength
///
/// returns the size, in bytes, of a window's title or the text within a control
#[cfg(any(
    feature = "windows-subsystem-reflect",
    feature = "windows-subsystem-export"
))]
pub use winmsg::GetWindowTextLengthW as GetWindowTextLength;

/// `#64` SetWindowText
///
/// changes a window's title or sets the text within a control
#[cfg(feature = "windows-subsystem-basic")]
pub use winmsg::SetWindowTextW as SetWindowText;

/// `#65` EnumWindows
///
/// enumerates all parent windows
#[cfg(feature = "windows-subsystem-management")]
pub use winmsg::EnumWindows;

/// `#65` EnumWindowsProc
///
/// an exported, user-defined, callback function of type WNDENUMPROC whose
/// address is passed to the EnumWindows() function
#[cfg(feature = "windows-subsystem-management")]
pub type EnumWindowsProc = opt_inner_type!(winmsg::WNDENUMPROC);

/// `#66` EnumChildWindows
///
/// enumerates all of the parent window's child windows
#[cfg(any(
    feature = "windows-subsystem-reflect",
    feature = "windows-subsystem-management"
))]
pub use winmsg::EnumChildWindows;

/// `#66` EnumChildProc
///
/// an exported, user-defined, callback function of type WNDENUMPROC whose
/// address is passed to the EnumChildWindows() function
#[cfg(any(
    feature = "windows-subsystem-reflect",
    feature = "windows-subsystem-management"
))]
pub type EnumChildProc = opt_inner_type!(winmsg::WNDENUMPROC);

/// `#67` FindWindow
///
/// searches for a window using the following criteria: window's class name and
/// window's title
#[cfg(any(
    feature = "windows-subsystem-reflect",
    feature = "windows-subsystem-management"
))]
pub use winmsg::FindWindowW as FindWindow;

/// `#68` AppendMenu
///
/// appends a new item to the end of the menu
#[cfg(feature = "windows-subsystem-menu")]
pub use winmsg::AppendMenuW as AppendMenu;

/// `#68` InsertMenu
///
/// inserts a new item before the item specified in the `uiPosition` parameter
/// as determined by `uiFlags`
#[cfg(feature = "windows-subsystem-menu")]
pub use winmsg::InsertMenuW as InsertMenu;

/// `#68` ModifyMenu
///
/// changes the existing menu item specified in uiPosition
#[cfg(feature = "windows-subsystem-menu")]
pub use winmsg::ModifyMenuW as ModifyMenu;

/// `#69` RemoveMenu
///
/// removes a pop-up menu item from a menu
#[cfg(feature = "windows-subsystem-menu")]
pub use winmsg::RemoveMenu;

/// `#69` DeleteMenu
///
/// removes an item from a menu
#[cfg(feature = "windows-subsystem-menu")]
pub use winmsg::DeleteMenu;

/// `#69` DestroyMenu
///
/// destroys the menu handle specified in the `hMenu` parameter and frees all
/// the memory it uses
#[cfg(feature = "windows-subsystem-menu")]
pub use winmsg::DestroyMenu;

/// `#70` CreateMenu
///
/// creates a new menu
#[cfg(feature = "windows-subsystem-menu")]
pub use winmsg::CreateMenu;

/// `#70` CreatePopupMenu
///
/// creates a new pop-up menu
#[cfg(feature = "windows-subsystem-menu")]
pub use winmsg::CreatePopupMenu;

/// `#71` GetMenu
///
/// obtains the handle of the menu associated with the window specified in the
/// `hWnd` parameter
#[cfg(all(
    feature = "windows-subsystem-menu",
    feature = "windows-subsystem-reflect"
))]
pub use winmsg::GetMenu;

/// `#72` DrawMenuBar
///
/// redraws the menu bar of the window specified in the `hWnd` parameter
#[cfg(feature = "windows-subsystem-paint")]
pub use winmsg::DrawMenuBar;

/// `#73` GetSystemMenu
///
/// retrieves the handle of the system menu for the window specified in the
/// `hWnd` parameter
#[cfg(feature = "windows-subsystem-menu")]
pub use winmsg::GetSystemMenu;

/// `#74` CheckMenuItem
///
/// change the state of a menu item from the menu specified in the `hMenu`
/// parameter
#[cfg(feature = "windows-subsystem-menu")]
pub use winmsg::CheckMenuItem;

/// `#74` EnableMenuItem
///
/// change the state of a menu item from the menu specified in the `hMenu`
/// parameter
#[cfg(feature = "windows-subsystem-menu")]
pub use winmsg::EnableMenuItem;

/// `#74` HiliteMenuItem
///
/// change the state of a menu item from the menu specified in the `hMenu`
/// parameter
#[cfg(feature = "windows-subsystem-menu")]
pub use winmsg::HiliteMenuItem;

/// `#75` GetMenuItemID
///
/// obtains the menu item identifier of an item from a menu specified in the
/// `hMenu` parameter
#[cfg(all(
    feature = "windows-subsystem-menu",
    any(
        feature = "windows-subsystem-reflect",
        feature = "windows-subsystem-export"
    )
))]
pub use winmsg::GetMenuItemID;

/// `#75` GetSubMenu
///
/// retrieves a handle of a pop-up menu that is an item on a menu specified by
/// `hMenu`
#[cfg(all(
    feature = "windows-subsystem-menu",
    any(
        feature = "windows-subsystem-reflect",
        feature = "windows-subsystem-export"
    )
))]
pub use winmsg::GetSubMenu;

/// `#76` GetMenuState
///
/// returns the flags for a menu item on the menu specified in the `hMenu`
/// parameter
#[cfg(all(
    feature = "windows-subsystem-menu",
    any(
        feature = "windows-subsystem-reflect",
        feature = "windows-subsystem-export"
    )
))]
pub use winmsg::GetMenuState;

/// `#76` GetMenuString
///
/// retrieves the contents string of a menu item from the menu specified in the
/// `hMenu` parameter and copies it into the buffer passed to it in the
/// `lpString` parameter
#[cfg(all(
    feature = "windows-subsystem-menu",
    any(
        feature = "windows-subsystem-reflect",
        feature = "windows-subsystem-export"
    )
))]
pub use winmsg::GetMenuStringW as GetMenuString;

/// `#77` GetMenuItemCount
///
/// returns the item count
#[cfg(all(
    feature = "windows-subsystem-menu",
    any(
        feature = "windows-subsystem-reflect",
        feature = "windows-subsystem-export"
    )
))]
pub use winmsg::GetMenuItemCount;

/// `#78` GetMenuCheckMarkDimensions
///
/// retrieves the size of the default check mark bitmap
#[cfg(all(
    feature = "windows-subsystem-menu",
    feature = "windows-subsystem-reflect"
))]
pub use winmsg::GetMenuCheckMarkDimensions;

/// `#79` SetMenuItemBitmaps
///
/// sets the custom check mark bitmaps for a menu item from the menu specified
/// in the `hMenu` parameter
#[cfg(feature = "windows-subsystem-menu")]
pub use winmsg::SetMenuItemBitmaps;

/// `#80` TrackPopupMenu
///
/// displays the pop-up menu handle of the menu specified in the `hMenu`
/// parameter and tracks the selection events resulting from mouse or keyboard
/// input to the specified menu and its sub-menus
#[cfg(feature = "windows-subsystem-menu")]
pub use winmsg::TrackPopupMenu;

/// `#81` SetMenu
///
/// associates a menu with a window specified in the `hWnd` parameter
#[cfg(feature = "windows-subsystem-menu")]
pub use winmsg::SetMenu;

/// `#82` IsMenu
///
/// identifies whether the given handle is a menu handle
#[cfg(all(
    feature = "windows-subsystem-menu",
    feature = "windows-subsystem-reflect"
))]
pub use winmsg::IsMenu;

/// `#83` GetScrollPos
///
/// returns the current position of the specified scrollbar
#[cfg(all(
    feature = "windows-subsystem-scroll",
    any(
        feature = "windows-subsystem-reflect",
        feature = "windows-subsystem-export"
    )
))]
pub use winmsg::GetScrollPos;

/// `#83` SetScrollPos
///
/// sets the current position of a scrollbar, possibly redrawing it in the
/// process
#[cfg(feature = "windows-subsystem-scroll")]
pub use ctrls::SetScrollPos;

/// `#84` GetScrollRange
///
/// returns the range of the specified scrollbar
#[cfg(all(
    feature = "windows-subsystem-scroll",
    any(
        feature = "windows-subsystem-reflect",
        feature = "windows-subsystem-export"
    )
))]
pub use winmsg::GetScrollRange;

/// `#84` SetScrollRange
///
/// sets the range of the specified scrollbar
#[cfg(feature = "windows-subsystem-scroll")]
pub use ctrls::SetScrollRange;

/// `#85` ShowScrollBar
///
/// shows or hides a scrollbar
#[cfg(feature = "windows-subsystem-scroll")]
pub use ctrls::ShowScrollBar;

/// `#86` ScrollWindow
///
/// scrolls what is shown in a window's client area
#[cfg(feature = "windows-subsystem-scroll")]
pub use winmsg::ScrollWindow;

/// `#87` EnableScrollBar
///
/// enables or disables one or both of the arrows of the scroll bar
#[cfg(feature = "windows-subsystem-scroll")]
pub use ctrls::EnableScrollBar;

/// `#88` ScrollDC
///
/// scrolls the given device-context horizontally or vertically
#[cfg(all(
    feature = "windows-subsystem-scroll",
    feature = "graphics-subsystem-basic"
))]
pub use winmsg::ScrollDC;

/// `#89` ScrollWindowEx
///
/// scrolls what is shown in a window's client area and is an extension of the
/// ScrollWindow() function
#[cfg(feature = "windows-subsystem-scroll")]
pub use winmsg::ScrollWindowEx;

/// `#90` CreateCaret
///
/// creates a new image for the system caret
#[cfg(feature = "windows-subsystem-caret")]
pub use winmsg::CreateCaret;

/// `#90` DestroyCaret
///
/// destroys the current caret image
#[cfg(feature = "windows-subsystem-caret")]
pub use winmsg::DestroyCaret;

/// `#91` GetCaretBlinkTime
///
/// returns the length of time required for the caret blink
#[cfg(all(
    feature = "windows-subsystem-caret",
    feature = "windows-subsystem-reflect"
))]
pub use winmsg::GetCaretBlinkTime;

/// `#91` SetCaretBlinkTime
///
/// sets the length of time required for the caret blink
#[cfg(feature = "windows-subsystem-caret")]
pub use winmsg::SetCaretBlinkTime;

/// `#92` GetCaretPos
///
/// queries the current position of the caret
#[cfg(all(
    feature = "windows-subsystem-caret",
    feature = "windows-subsystem-reflect"
))]
pub use winmsg::GetCaretPos;

/// `#92` SetCaretPos
///
/// sets the current caret position
#[cfg(feature = "windows-subsystem-caret")]
pub use winmsg::SetCaretPos;

/// `#93` HideCaret
///
/// removes the caret from the screen if it has been called at least as many
/// times as the `ShowCaret()` function
#[cfg(feature = "windows-subsystem-caret")]
pub use winmsg::HideCaret;

/// `#93` ShowCaret
///
/// displays the caret on the screen if it has been called more times than the
/// `HideCaret()` function
#[cfg(feature = "windows-subsystem-caret")]
pub use winmsg::ShowCaret;

/// `#94` CreateCursor
///
/// creates a new cursor
#[cfg(feature = "windows-subsystem-cursor")]
pub use winmsg::CreateCursor;

/// `#94` DestroyCursor
///
/// destroys a cursor
#[cfg(feature = "windows-subsystem-cursor")]
pub use winmsg::DestroyCursor;

/// `#95` LoadCursor
///
/// loads a cursor from an application or DLL resource script
#[cfg(feature = "windows-subsystem-cursor")]
pub use winmsg::LoadCursorW as LoadCursor;

/// `#96` GetCursorPos
///
/// determines the current position of the cursor
#[cfg(any(
    feature = "windows-subsystem-reflect",
    feature = "windows-subsystem-export"
))]
pub use winmsg::GetCursorPos;

/// `#96` SetCursorPos
///
/// changes the cursor's current position
#[cfg(feature = "windows-subsystem-cursormanagement")]
pub use winmsg::SetCursorPos;

/// `#97` ShowCursor
///
/// shows and hides the cursor
#[cfg(feature = "windows-subsystem-cursor")]
pub use winmsg::ShowCursor;

/// `#98` GetCursor
///
/// returns the handle of the current cursor
#[cfg(all(
    feature = "windows-subsystem-cursor",
    feature = "windows-subsystem-reflect"
))]
pub use winmsg::GetCursor;

/// `#98` SetCursor
///
/// changes the current cursor image
#[cfg(feature = "windows-subsystem-cursor")]
pub use winmsg::SetCursor;

/// `#99` ClipCursor
///
/// constrains the cursor to the specified region on the screen
#[cfg(feature = "windows-subsystem-cursormanagement")]
pub use winmsg::ClipCursor;

/// `#100` GetClipCursor
///
/// returns the screen coordinates of the cursor's bounding rectangle after the
/// previous call to the ClipCursor() function
#[cfg(all(
    feature = "windows-subsystem-cursormanagement",
    feature = "windows-subsystem-reflect"
))]
pub use winmsg::GetClipCursor;

/// `#101` CopyCursor
///
/// makes a copy of the cursor
removed_item!(
    pub use winmsg::CopyCursor;
);

/// `#102` SetProp
///
/// add entries from the property list of the window specified by the `hWnd`
/// parameter
#[cfg(feature = "windows-subsystem-prop")]
pub use winmsg::SetPropW as SetProp;

/// `#102` GetProp
///
/// retrieve entries from the property list of the window specified by the
/// `hWnd` parameter
#[cfg(feature = "windows-subsystem-prop")]
pub use winmsg::GetPropW as GetProp;

/// `#103` RemoveProp
///
/// removes an entry from the property list of the window specified by the
/// `hWnd` parameter
#[cfg(feature = "windows-subsystem-prop")]
pub use winmsg::RemovePropW as RemoveProp;

/// `#104` EnumProps
///
/// enumerates all entries in the property list of the window specified by the
/// `hWnd` parameter
#[cfg(feature = "windows-subsystem-prop")]
pub use winmsg::EnumPropsW as EnumProps;

/// `#105` EnumPropsProc
///
/// an application-defined callback function used by EnumProps()
#[cfg(feature = "windows-subsystem-prop")]
pub type EnumPropsProc = opt_inner_type!(winmsg::PROPENUMPROCW);

/// `#106` GetClipboardViewer
///
/// get the handle of the first window in the clipboard's window chain
#[cfg(feature = "windows-subsystem-clipboard")]
pub use sysdx::GetClipboardViewer;

/// `#107` SetClipboardViewer
///
/// add a window to the clipboard's window chain
#[cfg(feature = "windows-subsystem-clipboard")]
pub use sysdx::SetClipboardViewer;

/// `#108` ChangeClipboardChain
///
/// remove a window from the clipboard's window chain
#[cfg(feature = "windows-subsystem-clipboard")]
pub use sysdx::ChangeClipboardChain;

/// `#109` OpenClipboard
///
/// opens the clipboard and prevents other applications from modifying it until
/// it is closed
#[cfg(feature = "windows-subsystem-clipboard")]
pub use sysdx::OpenClipboard;

/// `#110` GetOpenClipboardWindow
///
/// returns the handle of the window that is associated with an open clipboard
#[cfg(feature = "windows-subsystem-clipboard")]
pub use sysdx::GetOpenClipboardWindow;

/// `#111` CloseClipboard
///
/// closes the clipboard and allows other applications to open the clipboard for
/// their own use
#[cfg(feature = "windows-subsystem-clipboard")]
pub use sysdx::CloseClipboard;

/// `#112` EmptyClipboard
///
/// frees any handle associated with the data in an open clipboard and assigns
/// the ownership of the clipboard to the window that is associated with the
/// open clipboard
#[cfg(feature = "windows-subsystem-clipboard")]
pub use sysdx::EmptyClipboard;

/// `#113` GetClipboardOwner
///
/// returns the handle of the window that owns the clipboard
#[cfg(feature = "windows-subsystem-clipboard")]
pub use sysdx::GetClipboardOwner;

/// `#114` CountClipboardFormats
///
/// returns the number of clipboard formats used by the data in the clipboard
#[cfg(feature = "windows-subsystem-clipboard")]
pub use sysdx::CountClipboardFormats;

/// `#115` EnumClipboardFormats
///
/// returns the format identifiers for data in the clipboard
#[cfg(feature = "windows-subsystem-clipboard")]
pub use sysdx::EnumClipboardFormats;

/// `#116` GetPriorityClipboardFormat
///
/// accepts a list of clipboard format identifiers and returns the identifier of
/// the first clipboard format for which data exists in the clipboard
#[cfg(feature = "windows-subsystem-clipboard")]
pub use sysdx::GetPriorityClipboardFormat;

/// `#117` IsClipboardFormatAvailable
///
/// determines whether the clipboard contains data of a specific clipboard data
/// format
#[cfg(feature = "windows-subsystem-clipboard")]
pub use sysdx::IsClipboardFormatAvailable;

/// `#118` RegisterClipboardFormat
///
/// registers a new clipboard format using the format name supplied in the
/// function's FormatName parameter
#[cfg(feature = "windows-subsystem-clipboard")]
pub use sysdx::RegisterClipboardFormatW as RegisterClipboardFormat;

/// `#118` GetClipboardFormatName
///
/// copies the name of a registered format into a buffer
#[cfg(feature = "windows-subsystem-clipboard")]
pub use sysdx::GetClipboardFormatNameW as GetClipboardFormatName;

/// `#119` GetClipboardData
///
/// returns the handle for clipboard data of a specfic type that is in the
/// clipboard
#[cfg(feature = "windows-subsystem-clipboard")]
pub use sysdx::GetClipboardData;

/// `#119` SetClipboardData
///
/// places clipboard data into an opened clipboard
#[cfg(feature = "windows-subsystem-clipboard")]
pub use sysdx::SetClipboardData;

/// `#120` CallWndProc
///
/// called by the system whenever a SendMessage() function is called
#[cfg(feature = "windows-subsystem-hook")]
pub type CallWndProc = opt_inner_type!(winmsg::HOOKPROC);

/// `#121` GetMsgProc
///
/// called by the system when a GetMessage() function has fetched a message from
/// the application queue
#[cfg(feature = "windows-subsystem-hook")]
pub type GetMsgProc = opt_inner_type!(winmsg::HOOKPROC);

/// `#122` MessageProc
///
/// called by the system after a dialog box, message box, or menu has fetched a
/// message that has not been processed
#[cfg(feature = "windows-subsystem-hook")]
pub type MessageProc = opt_inner_type!(winmsg::HOOKPROC);

/// `#123` SysMsgProc
///
/// called by the system after a dialog box, message box, or menu has fetched a
/// message but before the message has been processed
#[cfg(feature = "windows-subsystem-hook")]
pub type SysMsgProc = opt_inner_type!(winmsg::HOOKPROC);

/// `#124` AddAtom
///
/// add the null-terminated string pointed to by lpcstr to the local and global
/// atom tables respectively
#[cfg(feature = "windows-subsystem-atom")]
pub use sysdx::AddAtomW as AddAtom;

/// `#124` GlobalAddAtom
///
/// add the null-terminated string pointed to by lpcstr to the local and global
/// atom tables respectively
#[cfg(feature = "windows-subsystem-atom")]
pub use sysdx::GlobalAddAtomW as GlobalAddAtom;

/// `#125` DeleteAtom
///
/// decrement the reference count of the atom specified by the value, atm
#[cfg(feature = "windows-subsystem-atom")]
pub use sysdx::DeleteAtom;

/// `#125` GlobalDeleteAtom
///
/// decrement the reference count of the atom specified by the value, atm
#[cfg(feature = "windows-subsystem-atom")]
pub use sysdx::GlobalDeleteAtom;

/// `#126` FindAtom
///
/// search their respective atom tables for the string specified by `lpcstr`
#[cfg(feature = "windows-subsystem-atom")]
pub use sysdx::FindAtomW as FindAtom;

/// `#126` GlobalFindAtom
///
/// search their respective atom tables for the string specified by `lpcstr`
#[cfg(feature = "windows-subsystem-atom")]
pub use sysdx::GlobalFindAtomW as GlobalFindAtom;

/// `#127` GetAtomName
///
/// get a copy of the atom's string, referenced by `atm`, from their respective
/// atom tables
#[cfg(feature = "windows-subsystem-atom")]
pub use sysdx::GetAtomNameW as GetAtomName;

/// `#127` GlobalGetAtomName
///
/// get a copy of the atom's string, referenced by `atm`, from their respective
/// atom tables
#[cfg(feature = "windows-subsystem-atom")]
pub use sysdx::GlobalGetAtomNameW as GlobalGetAtomName;

/// `#128` InitAtomTable
///
/// initializes the local atom table to the number of entries specified by
/// `cTableEntries`
#[cfg(feature = "windows-subsystem-atom")]
pub use sysdx::InitAtomTable;

/// `#129` CheckDlgButton
///
/// set the state of a button control
#[cfg(feature = "windows-subsystem-control-button")]
pub use ctrls::CheckDlgButton;

/// `#130` CheckRadioButton
///
/// checks one radio button from a group and removes check marks from any other
/// radio buttons in the group
#[cfg(feature = "windows-subsystem-control-button")]
pub use ctrls::CheckRadioButton;

/// `#131` CreateDialog
///
/// launch a modeless dialog box
#[cfg(feature = "windows-subsystem-dialogbox")]
pub use winmsg_polyfill::CreateDialogW as CreateDialog;

/// `#131` CreateDialogIndirect
///
/// launch a modeless dialog box
#[cfg(feature = "windows-subsystem-dialogbox")]
pub use winmsg_polyfill::CreateDialogIndirectW as CreateDialogIndirect;

/// `#132` CreateDialogParam
///
/// create a modeless dialog, allowing a value to be passed to the dialog
/// procedure in the WM_INITDIALOG message
#[cfg(feature = "windows-subsystem-dialogbox")]
pub use winmsg::CreateDialogParamW as CreateDialogParam;

/// `#132` CreateDialogIndirectParam
///
/// create a modeless dialog, allowing a value to be passed to the dialog
/// procedure in the WM_INITDIALOG message
#[cfg(feature = "windows-subsystem-dialogbox")]
pub use winmsg::CreateDialogIndirectParamW as CreateDialogIndirectParam;

/// `#133` DialogBox
///
/// create modal dialog boxes
#[cfg(feature = "windows-subsystem-dialogbox")]
pub use winmsg_polyfill::DialogBoxW as DialogBox;

/// `#133` DialogBoxIndirect
///
/// create modal dialog boxes
#[cfg(feature = "windows-subsystem-dialogbox")]
pub use winmsg_polyfill::DialogBoxIndirectW as DialogBoxIndirect;

/// `#134` DialogBoxIndirectParam
///
/// create modal dialog boxes with an initialization parameter
#[cfg(feature = "windows-subsystem-dialogbox")]
pub use winmsg::DialogBoxIndirectParamW as DialogBoxIndirectParam;

/// `#134` DialogBoxParam
///
/// create modal dialog boxes with an initialization parameter
#[cfg(feature = "windows-subsystem-dialogbox")]
pub use winmsg::DialogBoxParamW as DialogBoxParam;

/// `#135` DlgDirList
///
/// fills controls in a dialog box with information about a directory
#[cfg(feature = "windows-subsystem-dialogbox-dirlist")]
pub use ctrls::DlgDirListW as DlgDirList;

/// `#135` DlgDirListComboBox
///
/// fills controls in a dialog box with information on a directory
#[cfg(feature = "windows-subsystem-dialogbox-dirlist")]
pub use ctrls::DlgDirListComboBoxW as DlgDirListComboBox;

/// `#136` DlgDirSelect
///
/// return information on files selected from controls filled with the
/// DlgDirList() function
removed_item!(
    pub use ctrls::DlgDirSelectW as DlgDirSelect;
);

/// `#136` DlgDirSelectComboBox
///
/// return information on files selected from controls filled with the
/// DlgDirListComboBox() function
removed_item!(
    pub use ctrls::DlgDirSelectComboBoxW as DlgDirSelectComboBox;
);

/// `#136a` DlgDirSelectComboBoxEx
///
/// return information on files selected from controls filled with the
/// DlgDirListComboBox() function
#[cfg(feature = "windows-subsystem-dialogbox-dirlist")]
pub use ctrls::DlgDirSelectComboBoxExW as DlgDirSelectComboBoxEx;

/// `#137` EndDialog
///
/// destroys a modal dialog box and causes the DialogBox() function that created
/// it to return
#[cfg(feature = "windows-subsystem-dialogbox")]
pub use winmsg::EndDialog;

/// `#138` GetDialogBaseUnits
///
/// returns information on the current dialog-coordinate units
#[cfg(all(
    feature = "windows-subsystem-dialogbox",
    feature = "windows-subsystem-reflect"
))]
pub use winmsg::GetDialogBaseUnits;

/// `#139` GetDlgCtrlID
///
/// returns the dialog-control identifier of a control in a dialog box or of any
/// child window with an identifier
#[cfg(all(
    feature = "windows-subsystem-dialogbox",
    feature = "windows-subsystem-reflect"
))]
pub use winmsg::GetDlgCtrlID;

/// `#140` GetDlgItem
///
/// returns the window handle of a control in a dialog box, or of another child
/// window
#[cfg(all(
    feature = "windows-subsystem-dialogbox",
    feature = "windows-subsystem-reflect"
))]
pub use winmsg::GetDlgItem;

/// `#141` GetDlgItemInt
///
/// returns the integer value stored in the text of a control
#[cfg(all(
    feature = "windows-subsystem-dialogbox",
    any(
        feature = "windows-subsystem-reflect",
        feature = "windows-subsystem-export"
    )
))]
pub use winmsg::GetDlgItemInt;

/// `#141` SetDlgItemInt
///
/// sets the text of a control to contain an integer value, such as the string
/// "123" from the integer 123
#[cfg(feature = "windows-subsystem-dialogbox")]
pub use winmsg::SetDlgItemInt;

/// `#142` GetDlgItemText
///
/// retrieves text from a control in a dialog box or another child window
#[cfg(all(
    feature = "windows-subsystem-dialogbox",
    any(
        feature = "windows-subsystem-reflect",
        feature = "windows-subsystem-export"
    )
))]
pub use winmsg::GetDlgItemTextW as GetDlgItemText;

/// `#142` SetDlgItemText
///
/// sets the text of a control in a dialog box or another child window
#[cfg(feature = "windows-subsystem-dialogbox")]
pub use winmsg::SetDlgItemTextW as SetDlgItemText;

/// `#143` GetNextDlgGroupItem
///
/// return the next dialog control which is in the current group of dialog
/// controls
#[cfg(all(
    feature = "windows-subsystem-dialogbox",
    feature = "windows-subsystem-reflect"
))]
pub use winmsg::GetNextDlgGroupItem;

/// `#143` GetNextDlgTabItem
///
/// return the next dialog control which is the next control that is a tab-stop
#[cfg(all(
    feature = "windows-subsystem-dialogbox",
    feature = "windows-subsystem-reflect"
))]
pub use winmsg::GetNextDlgTabItem;

/// `#144` IsDialogMessage
///
/// determines whether a message is intended for a modeless dialog box and
/// dispatches it, if it is
#[cfg(all(
    feature = "windows-subsystem-dialogbox",
    feature = "windows-subsystem-message"
))]
pub use winmsg::IsDialogMessageW as IsDialogMessage;

/// `#145` IsDlgButtonChecked
///
/// determines whether a button control, such as a check box or radio button, is
/// checked
#[cfg(all(
    feature = "windows-subsystem-dialogbox",
    any(
        feature = "windows-subsystem-reflect",
        feature = "windows-subsystem-export"
    )
))]
pub use ctrls::IsDlgButtonChecked;

/// `#146` MapDialogRect
///
/// converts dialog units to screen units
#[cfg(all(
    feature = "windows-subsystem-dialogbox",
    feature = "windows-subsystem-reflect"
))]
pub use winmsg::MapDialogRect;

/// `#147` SendDlgItemMessage
///
/// sends a message to a control in a dialog box, or another child window
#[cfg(all(
    feature = "windows-subsystem-dialogbox",
    feature = "windows-subsystem-message"
))]
pub use winmsg::SendDlgItemMessageW as SendDlgItemMessage;

/// `#148` DlgDirSelectEx
///
/// return information on files selected from controls filled with the
/// DlgDirList() function
#[cfg(feature = "windows-subsystem-dialogbox-dirlist")]
pub use ctrls::DlgDirSelectExW as DlgDirSelectEx;

/// `#149` DialogProc
///
/// a callback function, defined by the application, that processes messages
/// that are sent to a modeless dialog box
#[cfg(feature = "windows-subsystem-dialogbox")]
pub type DialogProc = opt_inner_type!(winmsg::DLGPROC);

/// `#150` BeginPaint
///
/// prepares the windows identified by `hwnd` for painting and fills the `lpps`
/// parameter with the necessary information to point to the appropriate
/// PAINTSTRUCT structure.
#[cfg(feature = "windows-subsystem-paint")]
pub use gdi::BeginPaint;

/// `#151` EndPaint
///
/// called at the end of painting to the window specified by `hwnd`
#[cfg(feature = "windows-subsystem-paint")]
pub use gdi::EndPaint;

/// `C.29` PAINTSTRUCT
///
/// contains information that an application can use to paint the client area of
/// a window that it owns
#[cfg(feature = "windows-subsystem-paint")]
pub use gdi::PAINTSTRUCT;

/// `#152` ExcludeUpdateRgn
///
/// prevents a region specified by `hdc` from being updated when the `hwnd`
/// window is redrawn
#[cfg(feature = "windows-subsystem-updateregion")]
pub use gdi::ExcludeUpdateRgn;

/// `#153` GetUpdateRect
///
/// gets the coordinates of the smallest rectangle that completely encloses a
/// region of the `hwnd` window that is updated
#[cfg(all(
    feature = "windows-subsystem-updateregion",
    feature = "windows-subsystem-reflect"
))]
pub use gdi::GetUpdateRect;

/// `#154` GetUpdateRgn
///
/// gets the coordinates of the update region of a window specified by `hwnd`
#[cfg(all(
    feature = "windows-subsystem-updateregion",
    feature = "windows-subsystem-reflect"
))]
pub use gdi::GetUpdateRgn;

/// `#155` InvertRect
///
/// inverts the pixels in a rectangular area of the device-context by performing
/// a logical NOT operation on the each of the pixels' bits
#[cfg(any(
    feature = "windows-subsystem-paint",
    feature = "graphics-subsystem-basic"
))]
pub use gdi::InvertRect;

/// `#156` UpdateWindow
///
/// updates a non-empty window identified by `hwnd`, by sending the WM_PAINT
/// message to it
#[cfg(feature = "windows-subsystem-paint")]
pub use gdi::UpdateWindow;

/// `#157` ValidateRgn
///
/// removes a region of a window's client area from the window's current update
/// region
#[cfg(feature = "windows-subsystem-updateregion")]
pub use gdi::ValidateRgn;

/// `#157` InvalidateRgn
///
/// adds a region of a window's client area to the window's current update
/// region
#[cfg(any(
    feature = "windows-subsystem-updateregion",
    feature = "windows-subsystem-paint"
))]
pub use gdi::InvalidateRgn;

/// `#158` RedrawWindow
///
/// updates the specified region or rectangle in the client area of the given
/// window
#[cfg(feature = "windows-subsystem-paint")]
pub use gdi::RedrawWindow;

/// `#159` LockWindowUpdate
///
/// enables or disables a drawing in the window specified by the `hndlwndLock`
/// parameter
#[cfg(feature = "windows-subsystem-paint")]
pub use gdi::LockWindowUpdate;

/// `#160` GetMapMode
///
/// retrieves the current mapping mode for the specified device-context
#[cfg(all(
    feature = "graphics-subsystem-basic",
    any(
        feature = "windows-subsystem-reflect",
        feature = "graphics-subsystem-reflect"
    )
))]
pub use gdi::GetMapMode;

/// `#160` SetMapMode
///
/// sets the current mapping mode for the specified device-context
///
/// # See also
///   * MS-EMF:v14 2.3.11.19 EMR_SETMAPMODE Record
#[cfg(feature = "graphics-subsystem-basic")]
pub use gdi::SetMapMode;

/// `#161` GetPolyFillMode
///
/// retrieves the current polygon filling mode for the specified device-context
#[cfg(all(
    feature = "graphics-subsystem-basic",
    any(
        feature = "windows-subsystem-reflect",
        feature = "graphics-subsystem-reflect"
    )
))]
pub use gdi::GetPolyFillMode;

/// `#161` SetPolyFillMode
///
/// sets the current polygon filling mode for the specified device-context
///
/// # See also
///   * MS-EMF:v14 2.3.11.22 EMR_SETPOLYFILLMODE Record
#[cfg(feature = "graphics-subsystem-basic")]
pub use gdi::SetPolyFillMode;

/// `#162` GetROP2
///
/// retrieves the current drawing mode for the specified device-context
#[cfg(all(
    feature = "graphics-subsystem-basic",
    any(
        feature = "windows-subsystem-reflect",
        feature = "graphics-subsystem-reflect"
    )
))]
pub use gdi::GetROP2;

/// `#162` SetROP2
///
/// sets the current drawing mode for the specified device-context
///
/// # See also
///   * MS-EMF:v14 2.3.11.23 EMR_SETROP2 Record
#[cfg(feature = "graphics-subsystem-basic")]
pub use gdi::SetROP2;

/// `H` Binary Raster Operations
#[cfg(feature = "graphics-subsystem-basic")]
pub mod binary_raster_ops;

/// `#163` GetBkColor
///
/// returns the current background color for the given device-context
#[cfg(all(
    feature = "graphics-subsystem-basic",
    any(
        feature = "windows-subsystem-reflect",
        feature = "graphics-subsystem-reflect"
    )
))]
pub use gdi::GetBkColor;

/// `#163` SetBkColor
///
/// sets the current background color for the given device-context
///
/// # See also
///   * MS-EMF:v14 2.3.11.10 EMR_SETBKCOLOR Record
#[cfg(feature = "graphics-subsystem-basic")]
pub use gdi::SetBkColor;

/// `#164` GetBkMode
///
/// returns the background mode for the device-context
#[cfg(all(
    feature = "graphics-subsystem-basic",
    any(
        feature = "windows-subsystem-reflect",
        feature = "graphics-subsystem-reflect"
    )
))]
pub use gdi::GetBkMode;

/// `#164` SetBkMode
///
/// sets the background mode for the device-context
///
/// # See also
///   * MS-EMF:v14 2.3.11.11 EMR_SETBKMODE Record
#[cfg(feature = "graphics-subsystem-basic")]
pub use gdi::SetBkMode;

/// `#165` GetBoundsRect
///
/// returns the accumulated bounding rectangle in `lprcBounds` for the given
/// device-context
#[cfg(any(
    feature = "graphics-subsystem-reflect",
    feature = "graphics-subsystem-export"
))]
pub use gdi::GetBoundsRect;

/// `#165` SetBoundsRect
///
/// controls the bounding rectangle accumulation
#[cfg(feature = "graphics-subsystem-basic")]
pub use gdi::SetBoundsRect;

/// `#166` GetCurrentPosition
///
/// retrieve the logical coordinates of the current position
removed_item!(
    pub use gdi::GetCurrentPosition;
);

/// `#166` GetCurrentPositionEx
///
/// retrieve the logical coordinates of the current position
#[cfg(all(
    feature = "graphics-subsystem-basic",
    any(
        feature = "windows-subsystem-reflect",
        feature = "graphics-subsystem-reflect"
    )
))]
pub use gdi::GetCurrentPositionEx;

/// `#167` InvalidateRect
///
/// adds the rectangle, specified by `lprc` parameter, to the window's update
/// region
#[cfg(any(
    feature = "windows-subsystem-updateregion",
    feature = "windows-subsystem-paint"
))]
pub use gdi::InvalidateRect;

/// `#167` ValidateRect
///
/// validates the rectangular part of the client area, specified by `lprc`
/// parameter by removing that rectangle from the window's update region
#[cfg(feature = "windows-subsystem-updateregion")]
pub use gdi::ValidateRect;

#[cfg(any(
    feature = "windows-subsystem-basic",
    feature = "windows-subsystem-dialogbox"
))]
mod winmsg_polyfill {
    #![allow(non_snake_case, missing_docs)]
    #![allow(clippy::missing_safety_doc)]
    use super::winmsg;
    use windows_sys::Win32::Foundation as winsys_foundation;

    #[cfg(feature = "windows-subsystem-basic")]
    #[inline]
    pub unsafe extern "system" fn CreateWindowW(
        lpclassname: windows_sys::core::PCWSTR,
        lpwindowname: windows_sys::core::PCWSTR,
        dwstyle: winmsg::WINDOW_STYLE,
        x: i32,
        y: i32,
        nwidth: i32,
        nheight: i32,
        hwndparent: winsys_foundation::HWND,
        hmenu: winmsg::HMENU,
        hinstance: winsys_foundation::HINSTANCE,
        lpparam: *const core::ffi::c_void,
    ) -> winsys_foundation::HWND {
        unsafe {
            winmsg::CreateWindowExW(
                0,
                lpclassname,
                lpwindowname,
                dwstyle,
                x,
                y,
                nwidth,
                nheight,
                hwndparent,
                hmenu,
                hinstance,
                lpparam,
            )
        }
    }

    #[cfg(feature = "windows-subsystem-dialogbox")]
    pub unsafe extern "system" fn CreateDialogW(
        hinstance: winsys_foundation::HINSTANCE,
        lptemplatename: windows_sys::core::PCWSTR,
        hwndparent: winsys_foundation::HWND,
        lpdialogfunc: winmsg::DLGPROC,
    ) -> winsys_foundation::HWND {
        unsafe {
            winmsg::CreateDialogParamW(hinstance, lptemplatename, hwndparent, lpdialogfunc, 0)
        }
    }

    #[cfg(feature = "windows-subsystem-dialogbox")]
    pub unsafe extern "system" fn CreateDialogIndirectW(
        hinstance: winsys_foundation::HINSTANCE,
        lptemplate: *const winmsg::DLGTEMPLATE,
        hwndparent: winsys_foundation::HWND,
        lpdialogfunc: winmsg::DLGPROC,
    ) -> winsys_foundation::HWND {
        unsafe {
            winmsg::CreateDialogIndirectParamW(hinstance, lptemplate, hwndparent, lpdialogfunc, 0)
        }
    }

    #[cfg(feature = "windows-subsystem-dialogbox")]
    pub unsafe extern "system" fn DialogBoxW(
        hinstance: winsys_foundation::HINSTANCE,
        lptemplatename: windows_sys::core::PCWSTR,
        hwndparent: winsys_foundation::HWND,
        lpdialogfunc: winmsg::DLGPROC,
    ) -> isize {
        unsafe { winmsg::DialogBoxParamW(hinstance, lptemplatename, hwndparent, lpdialogfunc, 0) }
    }

    #[cfg(feature = "windows-subsystem-dialogbox")]
    pub unsafe extern "system" fn DialogBoxIndirectW(
        hinstance: winsys_foundation::HINSTANCE,
        hdialogtemplate: *const winmsg::DLGTEMPLATE,
        hwndparent: winsys_foundation::HWND,
        lpdialogfunc: winmsg::DLGPROC,
    ) -> isize {
        unsafe {
            winmsg::DialogBoxIndirectParamW(hinstance, hdialogtemplate, hwndparent, lpdialogfunc, 0)
        }
    }
}