关于ndis.h中的_NDIS_OPEN_BLOCK结构 [英] About the struct _NDIS_OPEN_BLOCK in ndis.h

查看:122
本文介绍了关于ndis.h中的_NDIS_OPEN_BLOCK结构的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

错误C2039:``ProtocolNextOpen'':不是WinDDK 7600.16385.1中ndis.h中的``_NDIS_OPEN_BLOCK的成员.
为什么?

但在XP SP3中
> dt NDIS!_NDIS_OPEN_BLOCK
+ 0x000 MacHandle:Ptr32虚空
+ 0x004 BindingHandle:Ptr32虚空
+ 0x008 MiniportHandle:Ptr32 _NDIS_MINIPORT_BLO
+ 0x00c ProtocolHandle:Ptr32 _NDIS_PROTOCOL_BLO
+ 0x010 ProtocolBindingContext:Ptr32无效
+ 0x014 MiniportNextOpen:Ptr32 _NDIS_OPEN_BLOCK
+ 0x018 ProtocolNextOpen:Ptr32 _NDIS_OPEN_BLOCK
...............................

error C2039: ''ProtocolNextOpen'' : is not a member of ''_NDIS_OPEN_BLOCK in ndis.h from WinDDK 7600.16385.1.

Why?

but in XP SP3
>dt NDIS!_NDIS_OPEN_BLOCK
+0x000 MacHandle : Ptr32 Void
+0x004 BindingHandle : Ptr32 Void
+0x008 MiniportHandle : Ptr32 _NDIS_MINIPORT_BLO
+0x00c ProtocolHandle : Ptr32 _NDIS_PROTOCOL_BLO
+0x010 ProtocolBindingContext : Ptr32 Void
+0x014 MiniportNextOpen : Ptr32 _NDIS_OPEN_BLOCK
+0x018 ProtocolNextOpen : Ptr32 _NDIS_OPEN_BLOCK
......................

推荐答案



Microsoft经常更改DDK标头中定义的内部结构.看起来这些字段已重命名为Reserved *,并且NDIS_OPEN_BLOCK结构现在需要定义NDIS_LEGACY_PROTOCOL.看起来偏移量0x18现在指向_NDIS_OPEN_BLOCK.Reserved10.

最好的祝福,
-大卫·德劳恩(David Delaune)
Hi,

Microsoft quite often changes the internal structures defined within the DDK headers. It looks like those fields have been renamed to Reserved* and the NDIS_OPEN_BLOCK struct now requires NDIS_LEGACY_PROTOCOL to be defined. Looks like offset 0x18 now points to _NDIS_OPEN_BLOCK.Reserved10.

Best Wishes,
-David Delaune


这篇关于关于ndis.h中的_NDIS_OPEN_BLOCK结构的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆