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. C#字符串数组排序 C#排序算法大全 C#字符串比较方法 一个.NET通用JSON解析/构建类的实现(c#) C#处理Json文件 asp.net使用Jquery+iframe传值问题

    C#字符串数组排序   //排序只带字符的数组,不带数字的 private   string[]   aa   ={ "a ", "c ", "b & ...

  2. 通过java类文件识别JDK编译版本号

    类文件里第5,6.7,8四个字节是jDK版本信息.当中5,6为小版本:7,8为大版本. 大版本号号相应JDK版本号例如以下: JDK版本 7,8字节 JDK8 52(0x34) JDK7 51(0x3 ...

  3. http ssl

    http ssl

  4. 洛谷 P1131 [ ZJOI 2007 ] 时态同步 —— 树形DP

    题目:https://www.luogu.org/problemnew/show/P1131 记录 x 子树内同步的时间 f[x],同步所需代价 g[x]: 直接转移即可,让该儿子子树与其它儿子同步, ...

  5. bzoj 1619: [Usaco2008 Nov]Guarding the Farm 保卫牧场【bfs】

    不是严格小于是小于等于啊!!!!!不是严格小于是小于等于啊!!!!!不是严格小于是小于等于啊!!!!! 是我看不懂人话还是翻译不说人话= = 把所有格子按值排个序,bfs扩展打标记即可 #includ ...

  6. 10.11NOIP模拟题(2)

    /* string水过 */ #include<bits/stdc++.h> #define N 1001 using namespace std; int n,x,y,m,pre; st ...

  7. SQL 增加, 删除父子级带事务的存储过程

    if (object_id('proc_DeleteFile', 'P') is not null)    drop proc proc_DeleteFile gocreate  PROCEDURE ...

  8. spring 嵌套事务问题

    嵌套事物总结 事物成功总结 1.内外都无try Catch的时候,外部异常,全部回滚. 2.内外都无try Catch的时候,内部异常,全部回滚. 3.外部有try Catch时候,内部异常,全部回滚 ...

  9. C语言小项目-火车票订票系统

    list.h #ifndef __LIST_H__ #define __LIST_H__ #include "stdafx.h" #include <stdio.h> ...

  10. [转]ASP .NET MVC 之Entity Framework- code first

    本文转自:http://www.cnblogs.com/tomin/archive/2012/02/29/MVC_EntityFramework.html 最近,用到了ASP.NET  MVC Ent ...