WINVER 和 _WIN32_WINNT 请在WINDOWS.H前定义

从 Visual C++ 2008 开始,Visual C++ 不支持面向 Windows 95、Windows 98、Windows ME 或 Windows NT。
如果您的 WINVER 或 _WIN32_WINNT 宏被指定到这些 Windows 版本之一,则需要修改宏。当升级从 Visual C++ 
的以前版本创建的项目时,如果将 WINVER 或 _WIN32_WINNT 宏指定到不再受支持的 Windows 版本,可能会看到
与这些宏相关的编译错误。

若要修改宏,请在头文件中添加以下行:
#define WINVER 0x0500
#define _WIN32_WINNT 0x0500

=================================== =

Minimum system required                 Macros to define
 Win7                                                      0x601

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

Windows   Me                                    _WIN32_WINDOWS=0x0490

======================================= 
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.01,   5.5               _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

Internet Explorer 5.5                           _WIN32_IE>=0x0550
Internet Explorer 5.01                        _WIN32_IE>=0x0501

#ifndef WINVER  // 指定要求的最低平台是 Windows Vista。
#define WINVER 0x0600    // 将此值更改为相应的值,以适用于 Windows 的其他版本。
#endif 
#ifndef _WIN32_WINNT   // 指定要求的最低平台是 Windows Vista。
#define _WIN32_WINNT 0x0600     // 将此值更改为相应的值,以适用于 Windows 的其他版本。
#endif
//PS:0x0500 表示Windows 2000,0x0501为Windows XP,
0x0502为Windows Server 2003,0x0600 为 Windows Vista。

===================================== 
NTDDI_VERSION

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

=============Shell and Common Controls Versions======= 
Version   DLL    Distribution  Platform 
4.0    All    Microsoft Windows 95/Microsoft Windows NT 4.0. 
4.7    All    Microsoft Internet Explorer 3.x. 
4.71    All    Internet Explorer 4.0. See note 2. 
4.72    All    Internet Explorer 4.01 and Windows 98. See note 2. 
5.0    Shlwapi.dll  Internet Explorer 5. See note 3. 
6.0    Shlwapi.dll  Internet Explorer 6 and Windows XP. 
5.0    Shell32.dll   Windows 2000 and Windows Millennium Edition (Windows Me). See note 3.
6.0    Shell32.dll  Windows XP. 
5.8    Comctl32.dll  Internet Explorer 5. See note 3. 
5.81    Comctl32.dll  Windows 2000 and Windows Me. See note 3. 
6.0    Comctl32.dll  Windows XP. See note 4.

WINVER WIN32 WINNT的更多相关文章

  1. PHPUnit 手册

    PHPUnit 手册 Sebastian Bergmann 版权 © 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015 ...

  2. 20145208 蔡野 《网络对抗》免考项目 MSF学习

    20145208 蔡野 <网络对抗>免考项目 MSF Exploit模块开发 题目:MSF Exploit模块开发 摘要 本免考项目的目标是通过对msf模块的设计语言--ruby和expl ...

  3. PHPUnit 手册(转)

    PHPUnit 手册 PHPUnit 手册 Sebastian Bergmann 版权 © 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, ...

  4. php获取当前操作系统类型

    如何使用 php 获取当前操作系统类型呢? 严格来说这里分两种情况,一种情况是获取 服务器端 的操作系统类型,一种是获取 客户端 的操作系统类型. 下面将对如何使用php获取这两种情况下的操作系统类型 ...

  5. PHP_OS的常见值

    PHP_OS是PHP中的一个预定义常量,表示当前操作系统.那么PHP_OS有哪些值可用呢??PHP_OS的值一般可以为:CYGWIN_NT-5.1,Darwin,FreeBSD,HP-UX,IRIX6 ...

  6. windows下flume 采集如何支持TAILDIR和tail

    一.问题:Windows 下 flume采集配置TAILDIR的时候,会报如下错误: agent.sources.seqGenSrc.type = TAILDIR agent.sources.seqG ...

  7. 深入理解 Win32 PE 文件格式

    深入理解 Win32 PE 文件格式 Matt Pietrek 这篇文章假定你熟悉C++和Win32. 概述 理解可移植可执行文件格式(PE)可以更好地了解操作系统.如果你知道DLL和EXE中都有些什 ...

  8. 探索Win32系统之窗口类(转载)

    Window Classes in Win32 摘要 本文主要介绍win32系统里窗口类的运做和使用机制,探索一些细节问题,使win32窗口类的信息更加明朗化. 在本文中,"类", ...

  9. 深入研究 Win32 结构化异常处理(好多相关文章)

    摘要 就像人们常说的那样,Win32 结构化异常处理(SEH)是一个操作系统提供的服务.你能找到的所有关于 SEH 的文档讲的都是针对某个特定编译器的.建立在操作系统层之上的封装库.我将从 SEH 的 ...

随机推荐

  1. (六)Net Core项目使用Controller之一 c# log4net 不输出日志 .NET Standard库引用导致的FileNotFoundException探究 获取json串里的某个属性值 common.js 如何调用common.js js 筛选数据 Join 具体用法

    (六)Net Core项目使用Controller之一 一.简介 1.当前最流行的开发模式是前后端分离,Controller作为后端的核心输出,是开发人员使用最多的技术点. 2.个人所在的团队已经选择 ...

  2. 12.解决CCScale9Sprite或者CCControlButton无法使用的问题。

    问题: 使用CCScale9Sprite或者CCControlButton等控件的时候,会出现无法识别的情况. 解决方式: 1.include对应的头部,即#include "cocos-e ...

  3. web 开发之js---js 实现文本高亮

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html> <head ...

  4. 阿里电话面试问题----100万个URL怎样找到出现频率最高的前100个?

    内推阿里电话面试中面试官给我出的一个题: 我想的头一个解决方式.就是放到stl 的map里面对出现的频率作为pair的第二个字段进行排序.之后依照排序结果返回: 以下口说无凭,show your co ...

  5. SICP习题练习

    练习1.6 new-if的三个参数会先被执行,这样就会无限循环下去 练习1.7 (define (sqrt-iter last-guess guess x) (if (good-enough? las ...

  6. missing required source folder

    Eclipse 中XXX is missing required source folder 问题的解决 https://blog.csdn.net/itzhangdaopin/article/det ...

  7. python 视频逐帧保存为图片

    import cv2 import os def save_img(): video_path = r'F:\test\video1/' videos = os.listdir(video_path) ...

  8. 洛谷 P1970 花匠 —— DP

    题目:https://www.luogu.org/problemnew/show/P1970 普通的DP,f[i][0/1] 表示 i 处处于较小或较大的长度: 注意:1.树状数组向后 query 时 ...

  9. FastDFS的实现

    FastDFS的实现 环境 centos7.1节点提供tracker和storage服务 centos7.2,centos7.3只提供storage服务 FastDFS的实现 fastdfs-5.0. ...

  10. 07-11 Linux命令操作

    1. 查看当做操作目录位置    > pwd 2. 查看(当前)目录里边的文件内容    > ls                //list    > ls  -l  或ll    ...