none
Issuing Oid requests from NDIS 6.0 LWF RRS feed

  • Question

  • I have an NDIS 6.0 LWF running on Win 7 from which I would like to issue an NdisOidRequest() to characterize the underlying miniport driver's large segment offload capabilities. Can anyone point me to sample code showing how to query an underlying miniport driver's capabilities from an LWF? The DDK's samples look like they only show a protocol driver invoking NdisOidRequest.

    If there's no sample code, can you confirm whether NdisOidRequest only accepts a handle from NdisOpenAdapterEx or if I can use the binding handle that's passed in from the Attach indication to my LWF? My experiments with using the binding handle from Attach tend towards failure, with Ndis  dereferencing a NULL pointer from the binding handle's contents.

    thank you

    Friday, January 14, 2011 9:36 PM

Answers

  • Use NdisFOidRequest. It is used in the FilterOidRequest routine in the filter.c module in the WDK filter sample.

    You would use your own input data and handle the completion separatly from passthru requests.

    Good Luck!

    Thomas F. Divine

    http://www.pcausa.com

     


    Thomas F. Divine http://www.pcausa.com
    • Marked as answer by b_creane Friday, January 14, 2011 10:30 PM
    Friday, January 14, 2011 10:11 PM

All replies

  • Use NdisFOidRequest. It is used in the FilterOidRequest routine in the filter.c module in the WDK filter sample.

    You would use your own input data and handle the completion separatly from passthru requests.

    Good Luck!

    Thomas F. Divine

    http://www.pcausa.com

     


    Thomas F. Divine http://www.pcausa.com
    • Marked as answer by b_creane Friday, January 14, 2011 10:30 PM
    Friday, January 14, 2011 10:11 PM
  • Thank you for your kind reply -- I should have explored the msdn library a little further. The OID request is working now.
    Friday, January 14, 2011 10:31 PM