- Merge aicom-network-fixes up to r36740
[reactos.git] / reactos / include / psdk / sdkddkver.h
1 #ifndef _INC_SDKDDKVER
2 #define _INC_SDKDDKVER
3
4 /* Version constants */
5 #define _WIN32_WINNT_NT4 0x0400
6 #define _WIN32_WINNT_WIN2K 0x0500
7 #define _WIN32_WINNT_WINXP 0x0501
8 #define _WIN32_WINNT_WS03 0x0502
9 #define _WIN32_WINNT_LONGHORN 0x0600
10 #define _WIN32_IE_IE20 0x0200
11 #define _WIN32_IE_IE30 0x0300
12 #define _WIN32_IE_IE302 0x0302
13 #define _WIN32_IE_IE40 0x0400
14 #define _WIN32_IE_IE401 0x0401
15 #define _WIN32_IE_IE50 0x0500
16 #define _WIN32_IE_IE501 0x0501
17 #define _WIN32_IE_IE55 0x0550
18 #define _WIN32_IE_IE60 0x0600
19 #define _WIN32_IE_IE60SP1 0x0601
20 #define _WIN32_IE_IE60SP2 0x0603
21 #define _WIN32_IE_IE70 0x0700
22 #define _WIN32_IE_NT4 _WIN32_IE_IE20
23 #define _WIN32_IE_NT4SP1 _WIN32_IE_IE20
24 #define _WIN32_IE_NT4SP2 _WIN32_IE_IE20
25 #define _WIN32_IE_NT4SP3 _WIN32_IE_IE302
26 #define _WIN32_IE_NT4SP4 _WIN32_IE_IE401
27 #define _WIN32_IE_NT4SP5 _WIN32_IE_IE401
28 #define _WIN32_IE_NT4SP6 _WIN32_IE_IE50
29 #define _WIN32_IE_WIN98 _WIN32_IE_IE401
30 #define _WIN32_IE_WIN98SE _WIN32_IE_IE50
31 #define _WIN32_IE_WINME _WIN32_IE_IE55
32 #define _WIN32_IE_WIN2K _WIN32_IE_IE501
33 #define _WIN32_IE_WIN2KSP1 _WIN32_IE_IE501
34 #define _WIN32_IE_WIN2KSP2 _WIN32_IE_IE501
35 #define _WIN32_IE_WIN2KSP3 _WIN32_IE_IE501
36 #define _WIN32_IE_WIN2KSP4 _WIN32_IE_IE501
37 #define _WIN32_IE_XP _WIN32_IE_IE60
38 #define _WIN32_IE_XPSP1 _WIN32_IE_IE60SP1
39 #define _WIN32_IE_XPSP2 _WIN32_IE_IE60SP2
40 #define _WIN32_IE_WS03 0x0602
41 #define _WIN32_IE_WS03SP1 _WIN32_IE_IE60SP2
42 #define _WIN32_IE_LONGHORN _WIN32_IE_IE70
43 #define NTDDI_WIN2K 0x05000000
44 #define NTDDI_WIN2KSP1 0x05000100
45 #define NTDDI_WIN2KSP2 0x05000200
46 #define NTDDI_WIN2KSP3 0x05000300
47 #define NTDDI_WIN2KSP4 0x05000400
48 #define NTDDI_WINXP 0x05010000
49 #define NTDDI_WINXPSP1 0x05010100
50 #define NTDDI_WINXPSP2 0x05010200
51 #define NTDDI_WINXPSP3 0x05010300
52 #define NTDDI_WINXPSP4 0x05010400
53 #define NTDDI_WS03 0x05020000
54 #define NTDDI_WS03SP1 0x05020100
55 #define NTDDI_WS03SP2 0x05020200
56 #define NTDDI_WS03SP3 0x05020300
57 #define NTDDI_WS03SP4 0x05020400
58 #define NTDDI_WIN6 0x06000000
59 #define NTDDI_WIN6SP1 0x06000100
60 #define NTDDI_WIN6SP2 0x06000200
61 #define NTDDI_WIN6SP3 0x06000300
62 #define NTDDI_WIN6SP4 0x06000400
63 #define NTDDI_LONGHORN NTDDI_WIN6
64 #define NTDDI_VISTA NTDDI_WIN6
65 #define NTDDI_VISTASP1 NTDDI_WIN6SP1
66 #define NTDDI_VISTASP2 NTDDI_WIN6SP2
67 #define NTDDI_VISTASP3 NTDDI_WIN6SP3
68 #define NTDDI_VISTASP4 NTDDI_WIN6SP4
69 #define NTDDI_WS08 NTDDI_WIN6SP1
70 #define NTDDI_WS08SP2 NTDDI_WIN6SP2
71 #define NTDDI_WS08SP3 NTDDI_WIN6SP3
72 #define NTDDI_WS08SP4 NTDDI_WIN6SP4
73
74 /* Macros to get the NTDDI for a given WIN32 */
75 #define NTDDI_VERSION_FROM_WIN32_WINNT2(ver) ver##0000
76 #define NTDDI_VERSION_FROM_WIN32_WINNT(ver) NTDDI_VERSION_FROM_WIN32_WINNT2(ver)
77
78 /* Select Default WIN32_WINNT Value */
79 #if !defined(_WIN32_WINNT) && !defined(_CHICAGO_)
80 #define _WIN32_WINNT 0x0600
81 #endif
82
83 /* Choose NTDDI Version */
84 #ifndef NTDDI_VERSION
85 #ifdef _WIN32_WINNT
86 #define NTDDI_VERSION NTDDI_VERSION_FROM_WIN32_WINNT(_WIN32_WINNT)
87 #else
88 #define NTDDI_VERSION 0x06000000
89 #endif
90 #endif
91
92 /* Choose WINVER Value */
93 #ifndef WINVER
94 #ifdef _WIN32_WINNT
95 #define WINVER _WIN32_WINNT
96 #else
97 #define WINVER 0x0600
98 #endif
99 #endif
100
101 /* Choose IE Version */
102 #ifndef _WIN32_IE
103 #ifdef _WIN32_WINNT
104 #if (_WIN32_WINNT <= _WIN32_WINNT_NT4)
105 #define _WIN32_IE _WIN32_IE_IE50
106 #elif (_WIN32_WINNT <= _WIN32_WINNT_WIN2K)
107 #define _WIN32_IE _WIN32_IE_IE501
108 #elif (_WIN32_WINNT <= _WIN32_WINNT_WINXP)
109 #define _WIN32_IE _WIN32_IE_IE60
110 #elif (_WIN32_WINNT <= _WIN32_WINNT_WS03)
111 #define _WIN32_IE 0x0602
112 #else
113 #define _WIN32_IE 0x0700
114 #endif
115 #else
116 #define _WIN32_IE 0x0700
117 #endif
118 #endif
119
120 #endif