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. iOS CMSampleBuffer deep copy

    extension CVPixelBuffer { func copy() -> CVPixelBuffer { precondition(CFGetTypeID(self) == CVPixe ...

  2. nohup 程序在后台运营 避免 xshell 卡死 通过 nohup.out分析调取系统命令时的异常分析

    nohup  程序在后台运营 避免 xshell  卡死 [root@admin1 after_fc_distributed]# nohup /root/anaconda3/bin/python da ...

  3. 编译Ruby2.0 问题解决

    compiling readline.creadline.c: In function ‘Init_readline’:readline.c:1886:26: error: ‘Function’ un ...

  4. codevs1297 硬币(背包dp,方案数)

    1297 硬币  时间限制: 1 s  空间限制: 128000 KB  题目等级 : 黄金 Gold   题目描述 Description 我们知道即使是同一种面值的硬币,它们的重量也有可能不一样, ...

  5. 获取openid [微信小程序]

    public function wxapi(){ $data=$this->requestdata(); if(!$data['code']) exit(json_encode(array('s ...

  6. 基于ASP.Net Core开发一套通用后台框架记录-(总述)

    写在前面 本系列博客是本人在学习的过程中搭建学习的记录,如果对你有所帮助那再好不过.如果您有发现错误,请告知我,我会第一时间修改. 前期我不会公开源码,我想是一点点敲代码,不然复制.粘贴那就没意思了. ...

  7. 计算几何值平面扫面poj2932 Coneology

    Coneology Time Limit: 5000MS   Memory Limit: 65536K Total Submissions: 4097   Accepted: 859 Descript ...

  8. Too many open files故障解决一例

    Linux环境WebSphere输出日志: [// ::: EDT] 000090b7 SystemErr R Caused by: java.io.FileNotFoundException: /o ...

  9. Python Turtle绘图

    1. 画布(canvas) 画布就是turtle为我们展开用于绘图区域, 我们可以设置它的大小和初始位置 1.1 设置画布大小 turtle.screensize(canvwidth=None, ca ...

  10. pycharm但多行注释快捷键

    pycharm中同时注释多行代码快捷键: 代码选中的条件下,同时按住 Ctrl+/,被选中行被注释,再次按下Ctrl+/,注释被取消