surfer
驱动牛犊
驱动牛犊
  • 注册日期2001-12-07
  • 最后登录2003-06-11
  • 粉丝0
  • 关注0
  • 积分0分
  • 威望0点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
阅读:1510回复:2

NdisUnChainBufferAtFront的疑问

楼主#
更多 发布于:2001-12-18 11:05
我用NdisChainBufferAtFront(pPacket,pMdl)完毕后想用NdisUnChainBufferAtFront(pPacket,NULL)然后连接新的buffer,为什么执行到NdisUnChainBuffer时SoftIce就提示出错呢。(pMdl为PMDL对象)。  :mad:
新手一个,请多关照!谢谢!*^_^*
surfer
驱动牛犊
驱动牛犊
  • 注册日期2001-12-07
  • 最后登录2003-06-11
  • 粉丝0
  • 关注0
  • 积分0分
  • 威望0点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
沙发#
发布于:2001-12-19 20:25
搞定了,NdisUnchainBufferAtFront第二个参数不能为NULL,必须为PNDIS_BUFFER对象。
新手一个,请多关照!谢谢!*^_^*
Fang
驱动牛犊
驱动牛犊
  • 注册日期2001-06-12
  • 最后登录2010-08-10
  • 粉丝0
  • 关注0
  • 积分2分
  • 威望13点
  • 贡献值0点
  • 好评度2点
  • 原创分0分
  • 专家分0分
板凳#
发布于:2001-12-25 13:16
NdisUnchainBufferAtFront
VOID
  NdisUnchainBufferAtFront(
    IN OUT PNDIS_PACKET  Packet,
    OUT PNDIS_BUFFER  *Buffer
    );
NdisUnchainBufferAtFront removes the buffer descriptor at the head of the chain of buffer descriptors for a given packet.

Parameters
Packet
Points to the packet descriptor.
Buffer
Points to a caller-supplied variable in which this function returns a pointer to the removed buffer descriptor. If no buffer is chained to the given packet, this variable is set to NULL.
Comments
NdisUnchainBufferAtFront returns a pointer to the buffer descriptor it removed from the buffer descriptor chain of the given packet.

It also resets the valid counts for the packet to FALSE, thereby forcing NdisQueryPacket to recalculate information about the given packet if it is called subsequently with that packet.

Callers of NdisUnchainBufferAtFront can run at any IRQL.

See Also
NdisChainBufferAtFront, NdisQueryPacket, NdisUnchainBufferAtBack

游客

返回顶部