youzi
驱动牛犊
驱动牛犊
  • 注册日期2001-09-20
  • 最后登录2004-03-28
  • 粉丝0
  • 关注0
  • 积分0分
  • 威望0点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
阅读:3243回复:1

ask for help: _NDIS_ADAPTER_BLOCK,_NDIS_MINIPORT_BLOCK

楼主#
更多 发布于:2002-11-06 10:03
I am now implemented ndis hooking driver.I found

2000 ndis ddk define
_NDIS_MAC_BLOCK
_NDIS_ADAPTER_BLOCK
_NDIS_PROTOCOL_BLOCK
_NDIS_OPEN_BLOCK
_NDIS_MINIPORT_BLOCK
and the third pointer of _NDIS_OPEN_BLOCK is
PNDIS_ADAPTER_BLOCK AdapterHandle;
// pointer to our adapter

xp ndis ddk define:
_NDIS_MAC_BLOCK
_NDIS_MINIPORT_BLOCK
_NDIS_PROTOCOL_BLOCK
_NDIS_OPEN_BLOCK
and the third pointer of _NDIS_OPEN_BLOCK is
PNDIS_MINIPORT_BLOCK        MiniportHandle;    
// pointer to the miniport

question:
_NDIS_MINIPORT_BLOCK is defined in 2000 ndis ddk, why not use PNDIS_MINIPORT_BLOCK as the third pointer of _NDIS_OPEN_BLOCK.
I am a little confused, who can help explain the difference between NDIS_MINIPORT_BLOCK and _NDIS_ADAPTER_BLOCK and when and how they are used?

Thanks a lot

最新喜欢:

linwnlinwn
gjpland
驱动小牛
驱动小牛
  • 注册日期2001-09-13
  • 最后登录2011-03-22
  • 粉丝0
  • 关注0
  • 积分0分
  • 威望0点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
沙发#
发布于:2002-11-06 19:52
I am now implemented ndis hooking driver.I found

2000 ndis ddk define
_NDIS_MAC_BLOCK
_NDIS_ADAPTER_BLOCK
_NDIS_PROTOCOL_BLOCK
_NDIS_OPEN_BLOCK
_NDIS_MINIPORT_BLOCK
and the third pointer of _NDIS_OPEN_BLOCK is
PNDIS_ADAPTER_BLOCK AdapterHandle;
// pointer to our adapter

xp ndis ddk define:
_NDIS_MAC_BLOCK
_NDIS_MINIPORT_BLOCK
_NDIS_PROTOCOL_BLOCK
_NDIS_OPEN_BLOCK
and the third pointer of _NDIS_OPEN_BLOCK is
PNDIS_MINIPORT_BLOCK        MiniportHandle;    
// pointer to the miniport

question:
_NDIS_MINIPORT_BLOCK is defined in 2000 ndis ddk, why not use PNDIS_MINIPORT_BLOCK as the third pointer of _NDIS_OPEN_BLOCK.
I am a little confused, who can help explain the difference between NDIS_MINIPORT_BLOCK and _NDIS_ADAPTER_BLOCK and when and how they are used?

Thanks a lot
 

NDIS_ADAPTER_BLOCK and NDIS_MAC_BLOCK is used in old ndis version(3.xx).
NDIS_MINIPORT_BLOCK was imported in ndis 4.00

miniport_block is used for handling miniport driver operation,such as handling interrupt,indicating received network data or status to binding protocol, ...., protocol driver use open_block to relate to  miniport driver for querying or setting status of miniport driver or sending network data .

我思故我在,脑袋不会坏.
游客

返回顶部