lovehunterboy
驱动小牛
驱动小牛
  • 注册日期2008-05-29
  • 最后登录2010-04-16
  • 粉丝2
  • 关注0
  • 积分67分
  • 威望463点
  • 贡献值1点
  • 好评度0点
  • 原创分0分
  • 专家分0分
阅读:3020回复:1

我的_NDIS_OPEN_BLOCK怎么没有MacBindingHandle???

楼主#
更多 发布于:2008-10-27 09:23
下了个NDIS的过滤驱动来学习,可是编译的时候说: 'MacBindingHandle' : is not a member of '_NDIS_OPEN_BLOCK',于是我找到NDIS.H一看,还真没有它,在网上找了一下_NDIS_OPEN_BLOCK,发现这个,但我的NDIS.H里为什么没有这个(我用的是XP的):
struct _NDIS_OPEN_BLOCK
  {
  PNDIS_MAC_BLOCK MacHandle; // pointer to our MAC
  NDIS_HANDLE MacBindingHandle; // context when calling MacXX funcs
  PNDIS_ADAPTER_BLOCK AdapterHandle; // pointer to our adapter
  PNDIS_PROTOCOL_BLOCK ProtocolHandle; // pointer to our protocol
  NDIS_HANDLE ProtocolBindingContext;// context when calling ProtXX funcs
  PNDIS_OPEN_BLOCK AdapterNextOpen; // used by adapter\''''s OpenQueue
  PNDIS_OPEN_BLOCK ProtocolNextOpen; // used by protocol\''''s OpenQueue
  PFILE_OBJECT FileObject; // created by operating system
  BOOLEAN Closing; // TRUE when removing this struct
  BOOLEAN Unloading; // TRUE when processing unload
  BOOLEAN NoProtRsvdOnRcvPkt; // Reflect the protocol_options
  NDIS_HANDLE CloseRequestHandle; // 0 indicates an internal close
  KSPIN_LOCK SpinLock; // guards Closing
  PNDIS_OPEN_BLOCK NextGlobalOpen;
  //
  // These are optimizations for getting to MAC routines. They are not
  // necessary, but are here to save a dereference through the MAC block.
  //
  SEND_HANDLER SendHandler;
  TRANSFER_DATA_HANDLER TransferDataHandler;
  //
  // These are optimizations for getting to PROTOCOL routines. They are not
  // necessary, but are here to save a dereference through the PROTOCOL block.
  //
  SEND_COMPLETE_HANDLER SendCompleteHandler;
  TRANSFER_DATA_COMPLETE_HANDLER TransferDataCompleteHandler;
  RECEIVE_HANDLER ReceiveHandler;
  RECEIVE_COMPLETE_HANDLER ReceiveCompleteHandler;
  //
  // Extentions to the OPEN_BLOCK since Product 1.
  //
  RECEIVE_HANDLER PostNt31ReceiveHandler;
  RECEIVE_COMPLETE_HANDLER PostNt31ReceiveCompleteHandler;
  //
  // NDIS 4.0 extensions
  //
  RECEIVE_PACKET_HANDLER ReceivePacketHandler;
  SEND_PACKETS_HANDLER SendPacketsHandler;
  //
  // More NDIS 3.0 Cached Handlers
  //
  RESET_HANDLER ResetHandler;
  REQUEST_HANDLER RequestHandler;
  //
  // Needed for PnP
  //
  UNICODE_STRING AdapterName; // Upcased name of the adapter we are bound to
  };
feekee
驱动牛犊
驱动牛犊
  • 注册日期2014-06-09
  • 最后登录2014-06-09
  • 粉丝0
  • 关注0
  • 积分1分
  • 威望11点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
沙发#
发布于:2014-06-09 11:41
你找一下你的DDK库里自带的NDIS.H,我的只找到MacHandle,把MacBindingHandle换成MacHandle,编译也通过了,且实现的功能和其他人编译成功具备的功能一样 不知道是不是MacHandle是MacBindingHandle之前的实现版本?
游客

返回顶部