关于NTDDI_VERSION,_WIN32_WINNT,WINVER的含义
在使用一些新版本的API,或者控件的新特性(比如新版的ComCtl32.dll)的时候,你可能会得到“error C2065: undeclared identifier.“这个错误。原因是这些功能是依赖于你的操作系统的版本的。而你的头文件中的定义并不是最新的。(对于MFC,就是stdafx.h)下面详细列举了每个Windows版本对应的 NTDDI_VERSION, _WIN32_WINNT, WINVER, _WIN32_IE这些宏。
The following table describes the preferred macros in use by the Windows header files.
Minimum system required Macros to define
Windows Server 2008 NTDDI_VERSION >= NTDDI_LONGHORN
Windows Vista NTDDI_VERSION >= NTDDI_VISTA
Windows Server 2003 SP1 NTDDI_VERSION >= NTDDI_WS03SP1
Windows Server 2003 NTDDI_VERSION >= NTDDI_WS03
Windows XP SP2 NTDDI_VERSION >= NTDDI_WINXPSP2
Windows XP SP1 NTDDI_VERSION >= NTDDI_WINXPSP1
Windows XP NTDDI_VERSION >= NTDDI_WINXP
Windows 2000 SP4 NTDDI_VERSION >= NTDDI_WIN2KSP4
Windows 2000 SP3 NTDDI_VERSION >= NTDDI_WIN2KSP3
Windows 2000 SP2 NTDDI_VERSION >= NTDDI_WIN2KSP2
Windows 2000 SP1 NTDDI_VERSION >= NTDDI_WIN2KSP1
Windows 2000 NTDDI_VERSION >= NTDDI_WIN2K
The following table describes the legacy macros in use by the Windows header files.
Minimum system required Macros to define
Windows Server 2008 _WIN32_WINNT>=0x0600
WINVER>=0x0600
Windows Vista _WIN32_WINNT>=0x0600
WINVER>=0x0600
Windows Server 2003 _WIN32_WINNT>=0x0502
WINVER>=0x0502
Windows XP _WIN32_WINNT>=0x0501
WINVER>=0x0501
Windows 2000 _WIN32_WINNT>=0x0500
WINVER>=0x0500
Windows NT 4.0 _WIN32_WINNT>=0x0400
WINVER>=0x0400
Windows Me _WIN32_WINDOWS=0x0500
WINVER>=0x0500
Windows 98 _WIN32_WINDOWS>=0x0410
WINVER>=0x0410
Windows 95 _WIN32_WINDOWS>=0x0400
WINVER>=0x0400
Internet Explorer 7.0 _WIN32_IE>=0x0700
Internet Explorer 6.0 SP2 _WIN32_IE>=0x0603
Internet Explorer 6.0 SP1 _WIN32_IE>=0x0601
Internet Explorer 6.0 _WIN32_IE>=0x0600
Internet Explorer 5.5 _WIN32_IE>=0x0550
Internet Explorer 5.01 _WIN32_IE>=0x0501
Internet Explorer 5.0, 5.0a, 5.0b _WIN32_IE>=0x0500
Internet Explorer 4.01 _WIN32_IE>=0x0401
Internet Explorer 4.0 _WIN32_IE>=0x0400
Internet Explorer 3.0, 3.01, 3.02 _WIN32_IE>=0x0300
关于NTDDI_VERSION,_WIN32_WINNT,WINVER的含义相关推荐
- OSG3.6.3_X64_Collada Dae插件VS2017详细编译步骤
一.源代码下载及CMAKE工具准备 OSG3.6.3源码:https://github.com/openscenegraph/OpenSceneGraph/tree/OpenSceneGraph-3. ...
- windows.h 详解
参考windows.h解构 刚开头的一段注释是对该头文件的描述: /*++ BUILD Version: 0001 Increment this if a change has global effe ...
- windows.h详解
参考 http://blog.csdn.net/fengningning/article/details/2306650?locationNum=1&fps=1 windows.h解构 刚开头 ...
- 关于_WIN32_WINNT的含义
在使用一些新版本的API,或者控件的新特性(比如新版的ComCtl32.dll)的时候,你可能会得到"error C2065: undeclared identifier."这个错 ...
- WINVER 和 _WIN32_WINNT
WINVER 和 _WIN32_WINNT 请在WINDOWS.H前定义 从 Visual C++ 2008 开始,Visual C++ 不支持面向 Windows 95.Windows 98.Win ...
- WINVER和_WIN32_IE等宏的含义
它们是用于定义windows和Internet Explorer版本号的,用于区分不用版本的函数和参数. 在你编译程序时会根据不同的版本系统号,链接不同的函数和参数. Minimum System R ...
- 修改WINVER、_WIN32_WINNT和_MSC_VER
1.WINVER和_WIN32_WINNT Visual C++已经不再支持Windows 95, Windows 98, Windows ME, Windows NT or Wind ...
- 关于关于_WIN32_WINNT的说明
在使用一些新版本的API,或者控件的新特性(比如新版的ComCtl32.dll)的时候,你可能会得到"error C2065: undeclared identifier."这个错 ...
- vc6工程转成vs2008的一个问题【WINVER not defined】
昨天在将一个vc6的mfc dll工程转成vs2008时(使用vs2008进行转换),在编译时提示如下问题: WINVER not defined. Defaulting to 0x0600 (Win ...
最新文章
- zabbix客户端安装二
- 美国国家航空航天局宣布发现地球2.0
- Android 图片压缩、照片选择、裁剪,上传、一整套图片解决方案
- swift 4 字符串截取
- Spring源码解析-实例化bean对象
- python程序设计实验配置_20181235 实验三《Python程序设计》实验报告
- 【滤波器】基于matlab GUI FIR+IIR数字滤波器设计【含Matlab源码 324期】
- 官方代码 Deeplab v3+ resnet101 做backbone
- 极路由php插件开发,极路由3刷机过程
- A 45nm 1.3GHz 16.7 double-precision GFLOPS/W RISC-V processor with vector accelerators
- 分享10个可免费使用的网站CDN加速服务
- 输入PM2.5的值,输出当日的空气质量
- vue scss 换肤
- 工程项目提成标准方案_工程项目提成实施分配方案
- 教你标准音标发音的网站
- 学习记录 重叠网络权威知识——多尺度复杂网络社区发现的链接
- Perforce Can't clobber writable file ************** 解决方法
- 2022-2028年中国汽车转向系统零部件行业发展现状调查及前景战略分析报告
- 以太网无法连接到internet的解决方法
- ‘org.springframework.messaging.simp.SimpMessagingTemplate‘ that could not be found.
热门文章
- linux+离线+搜狗,Ubuntu离线安装Sogou拼音(附老版本安装)
- filco蓝牙不好用_最新黑科技感应式音箱!无需接口不用蓝牙,放上手机 1s畅享动听音乐~...
- everything文件搜索_Everything,闪电搜索,百万文件100%秒搜,真是文件搜索神器!...
- python什么模块动态调用链接库_python如何调用扩展模块
- SQLSERVER 2014 SP1 的服务器 日志文件无法收缩的处理
- 桐花万里python路-基础篇-01-历史及进制
- 代码实现:键盘录入任意一个年份,判断该年是闰年还是平年
- MaxReceivedMessageSize :已超过传入消息(65536)的最大消息大小配额
- lua--面向对象使用middleclass
- (花里胡哨)New Game!(牛客国庆集训派对Day1)