Go to the documentation of this file.
15 #ifndef _INC_SDKDDKVER
16 #define _INC_SDKDDKVER
23 #define _WIN32_WINNT_NT4 0x0400
24 #define _WIN32_WINNT_WIN2K 0x0500
25 #define _WIN32_WINNT_WINXP 0x0501
26 #define _WIN32_WINNT_WS03 0x0502
27 #define _WIN32_WINNT_LONGHORN 0x0600
32 #define _WIN32_IE_IE20 0x0200
33 #define _WIN32_IE_IE30 0x0300
34 #define _WIN32_IE_IE302 0x0302
35 #define _WIN32_IE_IE40 0x0400
36 #define _WIN32_IE_IE401 0x0401
37 #define _WIN32_IE_IE50 0x0500
38 #define _WIN32_IE_IE501 0x0501
39 #define _WIN32_IE_IE55 0x0550
40 #define _WIN32_IE_IE60 0x0600
41 #define _WIN32_IE_IE60SP1 0x0601
42 #define _WIN32_IE_IE60SP2 0x0603
43 #define _WIN32_IE_IE70 0x0700
49 #define _WIN32_IE_NT4 _WIN32_IE_IE20
50 #define _WIN32_IE_NT4SP1 _WIN32_IE_IE20
51 #define _WIN32_IE_NT4SP2 _WIN32_IE_IE20
52 #define _WIN32_IE_NT4SP3 _WIN32_IE_IE302
53 #define _WIN32_IE_NT4SP4 _WIN32_IE_IE401
54 #define _WIN32_IE_NT4SP5 _WIN32_IE_IE401
55 #define _WIN32_IE_NT4SP6 _WIN32_IE_IE50
57 #define _WIN32_IE_WIN98 _WIN32_IE_IE401
59 #define _WIN32_IE_WIN98SE _WIN32_IE_IE50
61 #define _WIN32_IE_WINME _WIN32_IE_IE55
63 #define _WIN32_IE_WIN2K _WIN32_IE_IE501
64 #define _WIN32_IE_WIN2KSP1 _WIN32_IE_IE501
65 #define _WIN32_IE_WIN2KSP2 _WIN32_IE_IE501
66 #define _WIN32_IE_WIN2KSP3 _WIN32_IE_IE501
67 #define _WIN32_IE_WIN2KSP4 _WIN32_IE_IE501
68 #define _WIN32_IE_XP _WIN32_IE_IE60
69 #define _WIN32_IE_XPSP1 _WIN32_IE_IE60SP1
70 #define _WIN32_IE_XPSP2 _WIN32_IE_IE60SP2
71 #define _WIN32_IE_WS03 0x0602
72 #define _WIN32_IE_WS03SP1 _WIN32_IE_IE60SP2
73 #define _WIN32_IE_LONGHORN _WIN32_IE_IE70
79 #define NTDDI_WIN2K 0x05000000
80 #define NTDDI_WIN2KSP1 0x05000100
81 #define NTDDI_WIN2KSP2 0x05000200
82 #define NTDDI_WIN2KSP3 0x05000300
83 #define NTDDI_WIN2KSP4 0x05000400
85 #define NTDDI_WINXP 0x05010000
86 #define NTDDI_WINXPSP1 0x05010100
87 #define NTDDI_WINXPSP2 0x05010200
89 #define NTDDI_WS03 0x05020000
90 #define NTDDI_WS03SP1 0x05020100
92 #define NTDDI_LONGHORN 0x06000000
97 #define OSVERSION_MASK 0xFFFF0000
98 #define SPVERSION_MASK 0x0000FF00
99 #define SUBVERSION_MASK 0x000000FF
105 #define OSVER(Version) ((Version) & OSVERSION_MASK)
106 #define SPVER(Version) (((Version) & SPVERSION_MASK) >> 8)
107 #define SUBVER(Version) (((Version) & SUBVERSION_MASK) )
110 #if defined(DECLSPEC_DEPRECATED_DDK)
113 #if (NTDDI_VERSION >= NTDDI_WIN2K)
114 #define DECLSPEC_DEPRECATED_DDK_WIN2K DECLSPEC_DEPRECATED_DDK
116 #define DECLSPEC_DEPRECATED_DDK_WIN2K
120 #if (NTDDI_VERSION >= NTDDI_WINXP)
121 #define DECLSPEC_DEPRECATED_DDK_WINXP DECLSPEC_DEPRECATED_DDK
123 #define DECLSPEC_DEPRECATED_DDK_WINXP
127 #if (NTDDI_VERSION >= NTDDI_WS03)
128 #define DECLSPEC_DEPRECATED_DDK_WIN2003 DECLSPEC_DEPRECATED_DDK
130 #define DECLSPEC_DEPRECATED_DDK_WIN2003
134 #if (NTDDI_VERSION >= NTDDI_LONGHORN)
135 #define DECLSPEC_DEPRECATED_DDK_LONGHORN DECLSPEC_DEPRECATED_DDK
137 #define DECLSPEC_DEPRECATED_DDK_LONGHORN
140 #endif // defined(DECLSPEC_DEPRECATED_DDK)
147 #define NTDDI_VERSION_FROM_WIN32_WINNT2(ver) ver##0000
148 #define NTDDI_VERSION_FROM_WIN32_WINNT(ver) NTDDI_VERSION_FROM_WIN32_WINNT2(ver)
150 #if !defined(_WIN32_WINNT) && !defined(_CHICAGO_)
151 #define _WIN32_WINNT 0x0600
154 #ifndef NTDDI_VERSION
157 #define NTDDI_VERSION NTDDI_VERSION_FROM_WIN32_WINNT(_WIN32_WINNT)
159 #define NTDDI_VERSION 0x06000000
166 #define WINVER _WIN32_WINNT
168 #define WINVER 0x0600
175 #if (_WIN32_WINNT <= _WIN32_WINNT_NT4)
176 #define _WIN32_IE _WIN32_IE_IE50
177 #elif (_WIN32_WINNT <= _WIN32_WINNT_WIN2K)
178 #define _WIN32_IE _WIN32_IE_IE501
179 #elif (_WIN32_WINNT <= _WIN32_WINNT_WINXP)
180 #define _WIN32_IE _WIN32_IE_IE60
181 #elif (_WIN32_WINNT <= _WIN32_WINNT_WS03)
182 #define _WIN32_IE 0x0602
184 #define _WIN32_IE 0x0700
187 #define _WIN32_IE 0x0700
194 #if defined(_WIN32_WINNT) && !defined(MIDL_PASS) && !defined(RC_INVOKED)
196 #if (defined(WINVER) && (WINVER < 0x0400) && (_WIN32_WINNT > 0x0400))
197 #error WINVER setting conflicts with _WIN32_WINNT setting
200 #if (((OSVERSION_MASK & NTDDI_VERSION) == NTDDI_WIN2K) && (_WIN32_WINNT != _WIN32_WINNT_WIN2K))
201 #error NTDDI_VERSION setting conflicts with _WIN32_WINNT setting
204 #if (((OSVERSION_MASK & NTDDI_VERSION) == NTDDI_WINXP) && (_WIN32_WINNT != _WIN32_WINNT_WINXP))
205 #error NTDDI_VERSION setting conflicts with _WIN32_WINNT setting
208 #if (((OSVERSION_MASK & NTDDI_VERSION) == NTDDI_WS03) && (_WIN32_WINNT != _WIN32_WINNT_WS03))
209 #error NTDDI_VERSION setting conflicts with _WIN32_WINNT setting
212 #if (((OSVERSION_MASK & NTDDI_VERSION) == NTDDI_LONGHORN) && (_WIN32_WINNT != _WIN32_WINNT_LONGHORN))
213 #error NTDDI_VERSION setting conflicts with _WIN32_WINNT setting
216 #if ((_WIN32_WINNT < _WIN32_WINNT_WIN2K) && (_WIN32_IE > _WIN32_IE_IE60SP1))
217 #error _WIN32_WINNT settings conflicts with _WIN32_IE setting
220 #endif // defined(_WIN32_WINNT) && !defined(MIDL_PASS) && !defined(_WINRESRC_)
223 #endif // !_INC_SDKDDKVER