00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015 #ifndef _INC_SDKDDKVER
00016 #define _INC_SDKDDKVER
00017
00018 #pragma once
00019
00020
00021
00022
00023 #define _WIN32_WINNT_NT4 0x0400
00024 #define _WIN32_WINNT_WIN2K 0x0500
00025 #define _WIN32_WINNT_WINXP 0x0501
00026 #define _WIN32_WINNT_WS03 0x0502
00027 #define _WIN32_WINNT_LONGHORN 0x0600
00028
00029
00030
00031
00032 #define _WIN32_IE_IE20 0x0200
00033 #define _WIN32_IE_IE30 0x0300
00034 #define _WIN32_IE_IE302 0x0302
00035 #define _WIN32_IE_IE40 0x0400
00036 #define _WIN32_IE_IE401 0x0401
00037 #define _WIN32_IE_IE50 0x0500
00038 #define _WIN32_IE_IE501 0x0501
00039 #define _WIN32_IE_IE55 0x0550
00040 #define _WIN32_IE_IE60 0x0600
00041 #define _WIN32_IE_IE60SP1 0x0601
00042 #define _WIN32_IE_IE60SP2 0x0603
00043 #define _WIN32_IE_IE70 0x0700
00044
00045
00046
00047
00048
00049 #define _WIN32_IE_NT4 _WIN32_IE_IE20
00050 #define _WIN32_IE_NT4SP1 _WIN32_IE_IE20
00051 #define _WIN32_IE_NT4SP2 _WIN32_IE_IE20
00052 #define _WIN32_IE_NT4SP3 _WIN32_IE_IE302
00053 #define _WIN32_IE_NT4SP4 _WIN32_IE_IE401
00054 #define _WIN32_IE_NT4SP5 _WIN32_IE_IE401
00055 #define _WIN32_IE_NT4SP6 _WIN32_IE_IE50
00056
00057 #define _WIN32_IE_WIN98 _WIN32_IE_IE401
00058
00059 #define _WIN32_IE_WIN98SE _WIN32_IE_IE50
00060
00061 #define _WIN32_IE_WINME _WIN32_IE_IE55
00062
00063 #define _WIN32_IE_WIN2K _WIN32_IE_IE501
00064 #define _WIN32_IE_WIN2KSP1 _WIN32_IE_IE501
00065 #define _WIN32_IE_WIN2KSP2 _WIN32_IE_IE501
00066 #define _WIN32_IE_WIN2KSP3 _WIN32_IE_IE501
00067 #define _WIN32_IE_WIN2KSP4 _WIN32_IE_IE501
00068 #define _WIN32_IE_XP _WIN32_IE_IE60
00069 #define _WIN32_IE_XPSP1 _WIN32_IE_IE60SP1
00070 #define _WIN32_IE_XPSP2 _WIN32_IE_IE60SP2
00071 #define _WIN32_IE_WS03 0x0602
00072 #define _WIN32_IE_WS03SP1 _WIN32_IE_IE60SP2
00073 #define _WIN32_IE_LONGHORN _WIN32_IE_IE70
00074
00075
00076
00077
00078
00079 #define NTDDI_WIN2K 0x05000000
00080 #define NTDDI_WIN2KSP1 0x05000100
00081 #define NTDDI_WIN2KSP2 0x05000200
00082 #define NTDDI_WIN2KSP3 0x05000300
00083 #define NTDDI_WIN2KSP4 0x05000400
00084
00085 #define NTDDI_WINXP 0x05010000
00086 #define NTDDI_WINXPSP1 0x05010100
00087 #define NTDDI_WINXPSP2 0x05010200
00088
00089 #define NTDDI_WS03 0x05020000
00090 #define NTDDI_WS03SP1 0x05020100
00091
00092 #define NTDDI_LONGHORN 0x06000000
00093
00094
00095
00096
00097 #define OSVERSION_MASK 0xFFFF0000
00098 #define SPVERSION_MASK 0x0000FF00
00099 #define SUBVERSION_MASK 0x000000FF
00100
00101
00102
00103
00104
00105 #define OSVER(Version) ((Version) & OSVERSION_MASK)
00106 #define SPVER(Version) (((Version) & SPVERSION_MASK) >> 8)
00107 #define SUBVER(Version) (((Version) & SUBVERSION_MASK) )
00108
00109
00110 #if defined(DECLSPEC_DEPRECATED_DDK)
00111
00112
00113 #if (NTDDI_VERSION >= NTDDI_WIN2K)
00114 #define DECLSPEC_DEPRECATED_DDK_WIN2K DECLSPEC_DEPRECATED_DDK
00115 #else
00116 #define DECLSPEC_DEPRECATED_DDK_WIN2K
00117 #endif
00118
00119
00120 #if (NTDDI_VERSION >= NTDDI_WINXP)
00121 #define DECLSPEC_DEPRECATED_DDK_WINXP DECLSPEC_DEPRECATED_DDK
00122 #else
00123 #define DECLSPEC_DEPRECATED_DDK_WINXP
00124 #endif
00125
00126
00127 #if (NTDDI_VERSION >= NTDDI_WS03)
00128 #define DECLSPEC_DEPRECATED_DDK_WIN2003 DECLSPEC_DEPRECATED_DDK
00129 #else
00130 #define DECLSPEC_DEPRECATED_DDK_WIN2003
00131 #endif
00132
00133
00134 #if (NTDDI_VERSION >= NTDDI_LONGHORN)
00135 #define DECLSPEC_DEPRECATED_DDK_LONGHORN DECLSPEC_DEPRECATED_DDK
00136 #else
00137 #define DECLSPEC_DEPRECATED_DDK_LONGHORN
00138 #endif
00139
00140 #endif // defined(DECLSPEC_DEPRECATED_DDK)
00141
00142
00143
00144
00145
00146
00147 #define NTDDI_VERSION_FROM_WIN32_WINNT2(ver) ver##0000
00148 #define NTDDI_VERSION_FROM_WIN32_WINNT(ver) NTDDI_VERSION_FROM_WIN32_WINNT2(ver)
00149
00150 #if !defined(_WIN32_WINNT) && !defined(_CHICAGO_)
00151 #define _WIN32_WINNT 0x0600
00152 #endif
00153
00154 #ifndef NTDDI_VERSION
00155 #ifdef _WIN32_WINNT
00156
00157 #define NTDDI_VERSION NTDDI_VERSION_FROM_WIN32_WINNT(_WIN32_WINNT)
00158 #else
00159 #define NTDDI_VERSION 0x06000000
00160 #endif
00161 #endif
00162
00163 #ifndef WINVER
00164 #ifdef _WIN32_WINNT
00165
00166 #define WINVER _WIN32_WINNT
00167 #else
00168 #define WINVER 0x0600
00169 #endif
00170 #endif
00171
00172 #ifndef _WIN32_IE
00173 #ifdef _WIN32_WINNT
00174
00175 #if (_WIN32_WINNT <= _WIN32_WINNT_NT4)
00176 #define _WIN32_IE _WIN32_IE_IE50
00177 #elif (_WIN32_WINNT <= _WIN32_WINNT_WIN2K)
00178 #define _WIN32_IE _WIN32_IE_IE501
00179 #elif (_WIN32_WINNT <= _WIN32_WINNT_WINXP)
00180 #define _WIN32_IE _WIN32_IE_IE60
00181 #elif (_WIN32_WINNT <= _WIN32_WINNT_WS03)
00182 #define _WIN32_IE 0x0602
00183 #else
00184 #define _WIN32_IE 0x0700
00185 #endif
00186 #else
00187 #define _WIN32_IE 0x0700
00188 #endif
00189 #endif
00190
00191
00192
00193
00194 #if defined(_WIN32_WINNT) && !defined(MIDL_PASS) && !defined(RC_INVOKED)
00195
00196 #if (defined(WINVER) && (WINVER < 0x0400) && (_WIN32_WINNT > 0x0400))
00197 #error WINVER setting conflicts with _WIN32_WINNT setting
00198 #endif
00199
00200 #if (((OSVERSION_MASK & NTDDI_VERSION) == NTDDI_WIN2K) && (_WIN32_WINNT != _WIN32_WINNT_WIN2K))
00201 #error NTDDI_VERSION setting conflicts with _WIN32_WINNT setting
00202 #endif
00203
00204 #if (((OSVERSION_MASK & NTDDI_VERSION) == NTDDI_WINXP) && (_WIN32_WINNT != _WIN32_WINNT_WINXP))
00205 #error NTDDI_VERSION setting conflicts with _WIN32_WINNT setting
00206 #endif
00207
00208 #if (((OSVERSION_MASK & NTDDI_VERSION) == NTDDI_WS03) && (_WIN32_WINNT != _WIN32_WINNT_WS03))
00209 #error NTDDI_VERSION setting conflicts with _WIN32_WINNT setting
00210 #endif
00211
00212 #if (((OSVERSION_MASK & NTDDI_VERSION) == NTDDI_LONGHORN) && (_WIN32_WINNT != _WIN32_WINNT_LONGHORN))
00213 #error NTDDI_VERSION setting conflicts with _WIN32_WINNT setting
00214 #endif
00215
00216 #if ((_WIN32_WINNT < _WIN32_WINNT_WIN2K) && (_WIN32_IE > _WIN32_IE_IE60SP1))
00217 #error _WIN32_WINNT settings conflicts with _WIN32_IE setting
00218 #endif
00219
00220 #endif // defined(_WIN32_WINNT) && !defined(MIDL_PASS) && !defined(_WINRESRC_)
00221
00222
00223 #endif // !_INC_SDKDDKVER
00224
00225