• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

The MinGW.org Windows System Libraries


Commit MetaInfo

Revision27dcb2d06f23a6a36b0abc734cbf13a6de4d2b61 (tree)
Time2021-02-14 01:37:50
AuthorKeith Marshall <keith@user...>
CommiterKeith Marshall

Log Message

Add support for Windows-10 features selection macros.

Change Summary

Incremental Difference

--- a/w32api/ChangeLog
+++ b/w32api/ChangeLog
@@ -1,3 +1,12 @@
1+2021-02-13 Keith Marshall <keith@users.osdn.me>
2+
3+ Add support for Windows-10 features selection macros.
4+
5+ * include/sdkddkver.h (_WIN32_WINNT_WIN10): Define.
6+ (NTDDI_WIN10, NTDDI_WINTHRESHOLD, NTDDI_WIN10_TH2, NTDDI_WIN10_RS1)
7+ (NTDDI_WIN10_RS2, NTDDI_WIN10_RS3, NTDDI_WIN10_RS4, NTDDI_WIN10_RS5)
8+ (NTDDI_WIN10_19H1): Likewise.
9+
110 2021-02-12 Keith Marshall <keith@users.osdn.me>
211
312 Make <winperf.h> header effectively self-contained.
--- a/w32api/include/sdkddkver.h
+++ b/w32api/include/sdkddkver.h
@@ -7,7 +7,7 @@
77 * $Id$
88 *
99 * Written by Earnie Boyd <earnie@users.sourceforge.net>
10- * Copyright (C) 2012, 2013, 2015, MinGW.org Project
10+ * Copyright (C) 2012, 2013, 2015, 2021, MinGW.org Project
1111 *
1212 *
1313 * Permission is hereby granted, free of charge, to any person obtaining a
@@ -75,6 +75,7 @@
7575 #define _WIN32_WINNT_WIN7 0x0601 /* Windows 7 */
7676 #define _WIN32_WINNT_WIN8 0x0602 /* Windows 8 */
7777 #define _WIN32_WINNT_WINBLUE 0x0603 /* Windows 8.1 */
78+#define _WIN32_WINNT_WIN10 0x0A00 /* Windows 10 */
7879
7980 /* Version constants specifying Internet Explorer versions; also defined at
8081 * http://msdn.microsoft.com/en-us/library/windows/desktop/aa383745(v=vs.85).aspx
@@ -105,12 +106,15 @@
105106 #define __NTDDI_WIN61 0x06010000
106107 #define __NTDDI_WIN62 0x06020000
107108 #define __NTDDI_WIN63 0x06030000
109+#define __NTDDI_WIN10 0x0A000000
108110 #define __NTDDI_SP0 0x00000000
109111 #define __NTDDI_SP1 0x00000100
110112 #define __NTDDI_SP2 0x00000200
111113 #define __NTDDI_SP3 0x00000300
112114 #define __NTDDI_SP4 0x00000400
113115
116+#define __NTDDI_SUBVER SUBVER
117+
114118 #define NTDDI_WIN2K __NTDDI_WIN5 + __NTDDI_SP0
115119 #define NTDDI_WIN2KSP1 __NTDDI_WIN5 + __NTDDI_SP1
116120 #define NTDDI_WIN2KSP2 __NTDDI_WIN5 + __NTDDI_SP2
@@ -144,6 +148,16 @@
144148
145149 #define NTDDI_WINBLUE __NTDDI_WIN63 + __NTDDI_SP0
146150
151+#define NTDDI_WIN10 __NTDDI_WIN10 + __NTDDI_SUBVER(0)
152+#define NTDDI_WINTHRESHOLD __NTDDI_WIN10 + __NTDDI_SUBVER(0)
153+#define NTDDI_WIN10_TH2 __NTDDI_WIN10 + __NTDDI_SUBVER(1)
154+#define NTDDI_WIN10_RS1 __NTDDI_WIN10 + __NTDDI_SUBVER(2)
155+#define NTDDI_WIN10_RS2 __NTDDI_WIN10 + __NTDDI_SUBVER(3)
156+#define NTDDI_WIN10_RS3 __NTDDI_WIN10 + __NTDDI_SUBVER(4)
157+#define NTDDI_WIN10_RS4 __NTDDI_WIN10 + __NTDDI_SUBVER(5)
158+#define NTDDI_WIN10_RS5 __NTDDI_WIN10 + __NTDDI_SUBVER(6)
159+#define NTDDI_WIN10_19H1 __NTDDI_WIN10 + __NTDDI_SUBVER(7)
160+
147161 /* Although NTDDI_VERSION is now the preferred designator for the
148162 * level of support required from the operating system, legacy code
149163 * is likely to have specified WINVER, from which _WIN32_WINNT may