日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

关于NTDDI_VERSION,_WIN32_WINNT,WINVER的含义

發布時間:2025/3/12 编程问答 26 豆豆
生活随笔 收集整理的這篇文章主要介紹了 关于NTDDI_VERSION,_WIN32_WINNT,WINVER的含义 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
在使用一些新版本的API,或者控件的新特性(比如新版的ComCtl32.dll)的時候,你可能會得到“error C2065: undeclared identifier.“這個錯誤。原因是這些功能是依賴于你的操作系統的版本的。而你的頭文件中的定義并不是最新的。(對于MFC,就是stdafx.h)下面詳細列舉了每個Windows版本對應的 NTDDI_VERSION_WIN32_WINNTWINVER_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的含义的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。