The MinGW.org Windows System Libraries
Revision | 27dcb2d06f23a6a36b0abc734cbf13a6de4d2b61 (tree) |
---|---|
Time | 2021-02-14 01:37:50 |
Author | Keith Marshall <keith@user...> |
Commiter | Keith Marshall |
Add support for Windows-10 features selection macros.
@@ -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 | + | |
1 | 10 | 2021-02-12 Keith Marshall <keith@users.osdn.me> |
2 | 11 | |
3 | 12 | Make <winperf.h> header effectively self-contained. |
@@ -7,7 +7,7 @@ | ||
7 | 7 | * $Id$ |
8 | 8 | * |
9 | 9 | * 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 | |
11 | 11 | * |
12 | 12 | * |
13 | 13 | * Permission is hereby granted, free of charge, to any person obtaining a |
@@ -75,6 +75,7 @@ | ||
75 | 75 | #define _WIN32_WINNT_WIN7 0x0601 /* Windows 7 */ |
76 | 76 | #define _WIN32_WINNT_WIN8 0x0602 /* Windows 8 */ |
77 | 77 | #define _WIN32_WINNT_WINBLUE 0x0603 /* Windows 8.1 */ |
78 | +#define _WIN32_WINNT_WIN10 0x0A00 /* Windows 10 */ | |
78 | 79 | |
79 | 80 | /* Version constants specifying Internet Explorer versions; also defined at |
80 | 81 | * http://msdn.microsoft.com/en-us/library/windows/desktop/aa383745(v=vs.85).aspx |
@@ -105,12 +106,15 @@ | ||
105 | 106 | #define __NTDDI_WIN61 0x06010000 |
106 | 107 | #define __NTDDI_WIN62 0x06020000 |
107 | 108 | #define __NTDDI_WIN63 0x06030000 |
109 | +#define __NTDDI_WIN10 0x0A000000 | |
108 | 110 | #define __NTDDI_SP0 0x00000000 |
109 | 111 | #define __NTDDI_SP1 0x00000100 |
110 | 112 | #define __NTDDI_SP2 0x00000200 |
111 | 113 | #define __NTDDI_SP3 0x00000300 |
112 | 114 | #define __NTDDI_SP4 0x00000400 |
113 | 115 | |
116 | +#define __NTDDI_SUBVER SUBVER | |
117 | + | |
114 | 118 | #define NTDDI_WIN2K __NTDDI_WIN5 + __NTDDI_SP0 |
115 | 119 | #define NTDDI_WIN2KSP1 __NTDDI_WIN5 + __NTDDI_SP1 |
116 | 120 | #define NTDDI_WIN2KSP2 __NTDDI_WIN5 + __NTDDI_SP2 |
@@ -144,6 +148,16 @@ | ||
144 | 148 | |
145 | 149 | #define NTDDI_WINBLUE __NTDDI_WIN63 + __NTDDI_SP0 |
146 | 150 | |
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 | + | |
147 | 161 | /* Although NTDDI_VERSION is now the preferred designator for the |
148 | 162 | * level of support required from the operating system, legacy code |
149 | 163 | * is likely to have specified WINVER, from which _WIN32_WINNT may |