Erm, thanks Timo...
[reactos.git] / reactos / include / psdk / sdkddkver.h
1 /* ReactOS PSDK/DDK
2
3 This file is in the public domain.
4
5 Header Name:
6
7 sdkddkver.h
8
9 Abstract:
10
11 Version definitions for SDK and DDK.
12
13 --*/
14
15 #ifndef _INC_SDKDDKVER
16 #define _INC_SDKDDKVER
17
18 /* _WIN32_WINNT */
19 #define _WIN32_WINNT_NT4 0x0400
20 #define _WIN32_WINNT_WIN2K 0x0500
21 #define _WIN32_WINNT_WINXP 0x0501
22 #define _WIN32_WINNT_WS03 0x0502
23 #define _WIN32_WINNT_WIN6 0x0600
24 #define _WIN32_WINNT_VISTA 0x0600
25 #define _WIN32_WINNT_WS08 0x0600
26 #define _WIN32_WINNT_LONGHORN 0x0600
27
28 /* _WIN32_IE */
29 #define _WIN32_IE_IE20 0x0200
30 #define _WIN32_IE_IE30 0x0300
31 #define _WIN32_IE_IE302 0x0302
32 #define _WIN32_IE_IE40 0x0400
33 #define _WIN32_IE_IE401 0x0401
34 #define _WIN32_IE_IE50 0x0500
35 #define _WIN32_IE_IE501 0x0501
36 #define _WIN32_IE_IE55 0x0550
37 #define _WIN32_IE_IE60 0x0600
38 #define _WIN32_IE_IE60SP1 0x0601
39 #define _WIN32_IE_IE60SP2 0x0603
40 #define _WIN32_IE_IE70 0x0700
41
42 /* Mappings Between IE Version and Windows Version */
43 #define _WIN32_IE_NT4 _WIN32_IE_IE20
44 #define _WIN32_IE_NT4SP1 _WIN32_IE_IE20
45 #define _WIN32_IE_NT4SP2 _WIN32_IE_IE20
46 #define _WIN32_IE_NT4SP3 _WIN32_IE_IE302
47 #define _WIN32_IE_NT4SP4 _WIN32_IE_IE401
48 #define _WIN32_IE_NT4SP5 _WIN32_IE_IE401
49 #define _WIN32_IE_NT4SP6 _WIN32_IE_IE50
50 #define _WIN32_IE_WIN98 _WIN32_IE_IE401
51 #define _WIN32_IE_WIN98SE _WIN32_IE_IE50
52 #define _WIN32_IE_WINME _WIN32_IE_IE55
53 #define _WIN32_IE_WIN2K _WIN32_IE_IE501
54 #define _WIN32_IE_WIN2KSP1 _WIN32_IE_IE501
55 #define _WIN32_IE_WIN2KSP2 _WIN32_IE_IE501
56 #define _WIN32_IE_WIN2KSP3 _WIN32_IE_IE501
57 #define _WIN32_IE_WIN2KSP4 _WIN32_IE_IE501
58 #define _WIN32_IE_XP _WIN32_IE_IE60
59 #define _WIN32_IE_XPSP1 _WIN32_IE_IE60SP1
60 #define _WIN32_IE_XPSP2 _WIN32_IE_IE60SP2
61 #define _WIN32_IE_WS03 0x0602
62 #define _WIN32_IE_WS03SP1 _WIN32_IE_IE60SP2
63 #define _WIN32_IE_WIN6 _WIN32_IE_IE70
64 #define _WIN32_IE_LONGHORN _WIN32_IE_IE70
65
66 /* NTDDI_VERSION */
67 #define NTDDI_WIN2K 0x05000000
68 #define NTDDI_WIN2KSP1 0x05000100
69 #define NTDDI_WIN2KSP2 0x05000200
70 #define NTDDI_WIN2KSP3 0x05000300
71 #define NTDDI_WIN2KSP4 0x05000400
72 #define NTDDI_WINXP 0x05010000
73 #define NTDDI_WINXPSP1 0x05010100
74 #define NTDDI_WINXPSP2 0x05010200
75 #define NTDDI_WINXPSP3 0x05010300
76 #define NTDDI_WINXPSP4 0x05010400
77 #define NTDDI_WS03 0x05020000
78 #define NTDDI_WS03SP1 0x05020100
79 #define NTDDI_WS03SP2 0x05020200
80 #define NTDDI_WS03SP3 0x05020300
81 #define NTDDI_WS03SP4 0x05020400
82 #define NTDDI_WIN6 0x06000000
83 #define NTDDI_WIN6SP1 0x06000100
84 #define NTDDI_WIN6SP2 0x06000200
85 #define NTDDI_WIN6SP3 0x06000300
86 #define NTDDI_WIN6SP4 0x06000400
87 #define NTDDI_LONGHORN NTDDI_WIN6
88 #define NTDDI_VISTA NTDDI_WIN6
89 #define NTDDI_VISTASP1 NTDDI_WIN6SP1
90 #define NTDDI_VISTASP2 NTDDI_WIN6SP2
91 #define NTDDI_VISTASP3 NTDDI_WIN6SP3
92 #define NTDDI_VISTASP4 NTDDI_WIN6SP4
93 #define NTDDI_WS08 NTDDI_WIN6SP1
94 #define NTDDI_WS08SP2 NTDDI_WIN6SP2
95 #define NTDDI_WS08SP3 NTDDI_WIN6SP3
96 #define NTDDI_WS08SP4 NTDDI_WIN6SP4
97
98 /* Version Fields in NTDDI_VERSION */
99 #define OSVERSION_MASK 0xFFFF0000
100 #define SPVERSION_MASK 0x0000FF00
101 #define SUBVERSION_MASK 0x000000FF
102
103 /* Macros to Extract Version Fields From NTDDI_VERSION */
104 #define OSVER(Version) ((Version) & OSVERSION_MASK)
105 #define SPVER(Version) (((Version) & SPVERSION_MASK) >> 8)
106 #define SUBVER(Version) (((Version) & SUBVERSION_MASK))
107
108 /* Macros to get the NTDDI for a given WIN32 */
109 #define NTDDI_VERSION_FROM_WIN32_WINNT2(Version) Version##0000
110 #define NTDDI_VERSION_FROM_WIN32_WINNT(Version) NTDDI_VERSION_FROM_WIN32_WINNT2(Version)
111
112 /* Select Default WIN32_WINNT Value */
113 #if !defined(_WIN32_WINNT) && !defined(_CHICAGO_)
114 #define _WIN32_WINNT 0x0600
115 #endif
116
117 /* Choose NTDDI Version */
118 #ifndef NTDDI_VERSION
119 #ifdef _WIN32_WINNT
120 #define NTDDI_VERSION NTDDI_VERSION_FROM_WIN32_WINNT(_WIN32_WINNT)
121 #else
122 #define NTDDI_VERSION 0x06000000
123 #endif
124 #endif
125
126 /* Choose WINVER Value */
127 #ifndef WINVER
128 #ifdef _WIN32_WINNT
129 #define WINVER _WIN32_WINNT
130 #else
131 #define WINVER 0x0600
132 #endif
133 #endif
134
135 /* Choose IE Version */
136 #ifndef _WIN32_IE
137 #ifdef _WIN32_WINNT
138 #if (_WIN32_WINNT <= _WIN32_WINNT_NT4)
139 #define _WIN32_IE _WIN32_IE_IE50
140 #elif (_WIN32_WINNT <= _WIN32_WINNT_WIN2K)
141 #define _WIN32_IE _WIN32_IE_IE501
142 #elif (_WIN32_WINNT <= _WIN32_WINNT_WINXP)
143 #define _WIN32_IE _WIN32_IE_IE60
144 #elif (_WIN32_WINNT <= _WIN32_WINNT_WS03)
145 #define _WIN32_IE 0x0602
146 #else
147 #define _WIN32_IE 0x0700
148 #endif
149 #else
150 #define _WIN32_IE 0x0700
151 #endif
152 #endif
153
154 /* Make Sure NTDDI_VERSION and _WIN32_WINNT Match */
155 #if ((OSVER(NTDDI_VERSION) == NTDDI_WIN2K) && (_WIN32_WINNT != _WIN32_WINNT_WIN2K)) || \
156 ((OSVER(NTDDI_VERSION) == NTDDI_WINXP) && (_WIN32_WINNT != _WIN32_WINNT_WINXP)) || \
157 ((OSVER(NTDDI_VERSION) == NTDDI_WS03) && (_WIN32_WINNT != _WIN32_WINNT_WS03)) || \
158 ((OSVER(NTDDI_VERSION) == NTDDI_WINXP) && (_WIN32_WINNT != _WIN32_WINNT_WINXP))
159 #error NTDDI_VERSION and _WIN32_WINNT mismatch!
160 #endif
161
162 #endif