PortAudio  2.0
sdkddkver.h
Go to the documentation of this file.
1 /*
2 
3 Copyright (c) Microsoft Corporation. All rights reserved.
4 
5 Module Name:
6 
7  sdkddkver.h
8 
9 Abstract:
10 
11  Master include file for versioning windows SDK/DDK.
12 
13 */
14 
15 #ifndef _INC_SDKDDKVER
16 #define _INC_SDKDDKVER
17 
18 #pragma once
19 
20 //
21 // _WIN32_WINNT version constants
22 //
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
28 
29 //
30 // _WIN32_IE_ version constants
31 //
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
44 
45 //
46 // IE <-> OS version mapping
47 //
48 // NT4 supports IE versions 2.0 -> 6.0 SP1
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
56 // Win98 supports IE versions 4.01 -> 6.0 SP1
57 #define _WIN32_IE_WIN98 _WIN32_IE_IE401
58 // Win98SE supports IE versions 5.0 -> 6.0 SP1
59 #define _WIN32_IE_WIN98SE _WIN32_IE_IE50
60 // WinME supports IE versions 5.5 -> 6.0 SP1
61 #define _WIN32_IE_WINME _WIN32_IE_IE55
62 // Win2k supports IE versions 5.01 -> 6.0 SP1
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
74 
75 
76 //
77 // NTDDI version constants
78 //
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
84 
85 #define NTDDI_WINXP 0x05010000
86 #define NTDDI_WINXPSP1 0x05010100
87 #define NTDDI_WINXPSP2 0x05010200
88 
89 #define NTDDI_WS03 0x05020000
90 #define NTDDI_WS03SP1 0x05020100
91 
92 #define NTDDI_LONGHORN 0x06000000
93 
94 //
95 // masks for version macros
96 //
97 #define OSVERSION_MASK 0xFFFF0000
98 #define SPVERSION_MASK 0x0000FF00
99 #define SUBVERSION_MASK 0x000000FF
100 
101 
102 //
103 // macros to extract various version fields from the NTDDI version
104 //
105 #define OSVER(Version) ((Version) & OSVERSION_MASK)
106 #define SPVER(Version) (((Version) & SPVERSION_MASK) >> 8)
107 #define SUBVER(Version) (((Version) & SUBVERSION_MASK) )
108 
109 
110 #if defined(DECLSPEC_DEPRECATED_DDK)
111 
112 // deprecate in 2k or later
113 #if (NTDDI_VERSION >= NTDDI_WIN2K)
114 #define DECLSPEC_DEPRECATED_DDK_WIN2K DECLSPEC_DEPRECATED_DDK
115 #else
116 #define DECLSPEC_DEPRECATED_DDK_WIN2K
117 #endif
118 
119 // deprecate in XP or later
120 #if (NTDDI_VERSION >= NTDDI_WINXP)
121 #define DECLSPEC_DEPRECATED_DDK_WINXP DECLSPEC_DEPRECATED_DDK
122 #else
123 #define DECLSPEC_DEPRECATED_DDK_WINXP
124 #endif
125 
126 // deprecate in WS03 or later
127 #if (NTDDI_VERSION >= NTDDI_WS03)
128 #define DECLSPEC_DEPRECATED_DDK_WIN2003 DECLSPEC_DEPRECATED_DDK
129 #else
130 #define DECLSPEC_DEPRECATED_DDK_WIN2003
131 #endif
132 
133 // deprecate in WS03 or later
134 #if (NTDDI_VERSION >= NTDDI_LONGHORN)
135 #define DECLSPEC_DEPRECATED_DDK_LONGHORN DECLSPEC_DEPRECATED_DDK
136 #else
137 #define DECLSPEC_DEPRECATED_DDK_LONGHORN
138 #endif
139 
140 #endif // defined(DECLSPEC_DEPRECATED_DDK)
141 
142 
143 //
144 // if versions aren't already defined, default to most current
145 //
146 
147 #define NTDDI_VERSION_FROM_WIN32_WINNT2(ver) ver##0000
148 #define NTDDI_VERSION_FROM_WIN32_WINNT(ver) NTDDI_VERSION_FROM_WIN32_WINNT2(ver)
149 
150 #if !defined(_WIN32_WINNT) && !defined(_CHICAGO_)
151 #define _WIN32_WINNT 0x0600
152 #endif
153 
154 #ifndef NTDDI_VERSION
155 #ifdef _WIN32_WINNT
156 // set NTDDI_VERSION based on _WIN32_WINNT
157 #define NTDDI_VERSION NTDDI_VERSION_FROM_WIN32_WINNT(_WIN32_WINNT)
158 #else
159 #define NTDDI_VERSION 0x06000000
160 #endif
161 #endif
162 
163 #ifndef WINVER
164 #ifdef _WIN32_WINNT
165 // set WINVER based on _WIN32_WINNT
166 #define WINVER _WIN32_WINNT
167 #else
168 #define WINVER 0x0600
169 #endif
170 #endif
171 
172 #ifndef _WIN32_IE
173 #ifdef _WIN32_WINNT
174 // set _WIN32_IE based on _WIN32_WINNT
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
183 #else
184 #define _WIN32_IE 0x0700
185 #endif
186 #else
187 #define _WIN32_IE 0x0700
188 #endif
189 #endif
190 
191 //
192 // Sanity check for compatible versions
193 //
194 #if defined(_WIN32_WINNT) && !defined(MIDL_PASS) && !defined(RC_INVOKED)
195 
196 #if (defined(WINVER) && (WINVER < 0x0400) && (_WIN32_WINNT > 0x0400))
197 #error WINVER setting conflicts with _WIN32_WINNT setting
198 #endif
199 
200 #if (((OSVERSION_MASK & NTDDI_VERSION) == NTDDI_WIN2K) && (_WIN32_WINNT != _WIN32_WINNT_WIN2K))
201 #error NTDDI_VERSION setting conflicts with _WIN32_WINNT setting
202 #endif
203 
204 #if (((OSVERSION_MASK & NTDDI_VERSION) == NTDDI_WINXP) && (_WIN32_WINNT != _WIN32_WINNT_WINXP))
205 #error NTDDI_VERSION setting conflicts with _WIN32_WINNT setting
206 #endif
207 
208 #if (((OSVERSION_MASK & NTDDI_VERSION) == NTDDI_WS03) && (_WIN32_WINNT != _WIN32_WINNT_WS03))
209 #error NTDDI_VERSION setting conflicts with _WIN32_WINNT setting
210 #endif
211 
212 #if (((OSVERSION_MASK & NTDDI_VERSION) == NTDDI_LONGHORN) && (_WIN32_WINNT != _WIN32_WINNT_LONGHORN))
213 #error NTDDI_VERSION setting conflicts with _WIN32_WINNT setting
214 #endif
215 
216 #if ((_WIN32_WINNT < _WIN32_WINNT_WIN2K) && (_WIN32_IE > _WIN32_IE_IE60SP1))
217 #error _WIN32_WINNT settings conflicts with _WIN32_IE setting
218 #endif
219 
220 #endif // defined(_WIN32_WINNT) && !defined(MIDL_PASS) && !defined(_WINRESRC_)
221 
222 
223 #endif // !_INC_SDKDDKVER
224 
225 

Generated for PortAudio by  doxygen1.8.1.1