Windows版本对应的NTDDI_VERSION

每个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

typedef _Struct_size_bytes_(UrbHeader.Length) struct _URB { union { struct _URB_HEADER UrbHeader; struct _URB_SELECT_INTERFACE UrbSelectInterface; struct _URB_SELECT_CONFIGURATION UrbSelectConfiguration; struct _URB_PIPE_REQUEST UrbPipeRequest; struct _URB_FRAME_LENGTH_CONTROL UrbFrameLengthControl; struct _URB_GET_FRAME_LENGTH UrbGetFrameLength; struct _URB_SET_FRAME_LENGTH UrbSetFrameLength; struct _URB_GET_CURRENT_FRAME_NUMBER UrbGetCurrentFrameNumber; struct _URB_CONTROL_TRANSFER UrbControlTransfer; #if (_WIN32_WINNT >= 0x0600) struct _URB_CONTROL_TRANSFER_EX UrbControlTransferEx; #endif struct _URB_BULK_OR_INTERRUPT_TRANSFER UrbBulkOrInterruptTransfer; struct _URB_ISOCH_TRANSFER UrbIsochronousTransfer; struct _URB_CONTROL_DESCRIPTOR_REQUEST UrbControlDescriptorRequest; struct _URB_CONTROL_GET_STATUS_REQUEST UrbControlGetStatusRequest; struct _URB_CONTROL_FEATURE_REQUEST UrbControlFeatureRequest; struct _URB_CONTROL_VENDOR_OR_CLASS_REQUEST UrbControlVendorClassRequest; struct _URB_CONTROL_GET_INTERFACE_REQUEST UrbControlGetInterfaceRequest; struct _URB_CONTROL_GET_CONFIGURATION_REQUEST UrbControlGetConfigurationRequest; #if (_WIN32_WINNT >= 0x0501) struct _URB_OS_FEATURE_DESCRIPTOR_REQUEST UrbOSFeatureDescriptorRequest; #endif #if (NTDDI_VERSION >= NTDDI_WIN8) struct _URB_OPEN_STATIC_STREAMS UrbOpenStaticStreams; #endif #if (NTDDI_VERSION >= NTDDI_WIN10_RS3) struct _URB_GET_ISOCH_PIPE_TRANSFER_PATH_DELAYS UrbGetIsochPipeTransferPathDelays; #endif }; } URB, *PURB; #if _MSC_VER >= 1200 #pragma wa
最新发布
03-19
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值