HOOK上ProtocolReceive后,我要对接受的数据进行解密。但是,当PacketSize > LookAheadBufferSize时,要调用NdisTransferData 来去剩余的数据,如下,
VOID  NdisTransferData(
    OUT PNDIS_STATUS  Status,
    IN NDIS_HANDLE  NdisBindingHandle,
    IN NDIS_HANDLE  MacReceiveContext,
    IN UINT  ByteOffset,
    IN UINT  BytesToTransfer,
    IN OUT PNDIS_PACKET  Packet,
    OUT PUINT  BytesTransferred
    );
但是我不知道第二个参数该如何确定,导致我已经死机N次了。高手指点,我可以再加分。救我吧...................
waiting....

解决方案 »

  1.   

    www.driverdevelop.com            驱动开发
    http://www.21icsearch.com/club/listhot.asp?page=6&boardid=34 驱动开发
    去这看看吧
      

  2.   

    问遍了driverdevelop,没有人解决。愿同道高手拔刀相助!!
      

  3.   

    NdisBindingHandle 
    Specifies the handle returned by NdisOpenAdapter that identifies the target NIC or the virtual adapter of the next-lower driver to which the caller is bound.
      

  4.   

    我试过了,用NdisOpenAdapter的NdisProtocolHandle参数,每次都死机。
    高手再点拨点拨........