Re: about NDIS_WDM



On Apr 3, 5:01 am, Jeff <J...@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:

1. I seen the following sentence in the ndiswdm.html.

Remove all the code that are specific to interacting with NDISPROT. You
don't have to open a USB device by calling Zw function .

I don't know what's the mean of the sentice?

Meaning, if your network adapter loads as the function driver for a
USB device, your next lower I/O target will be the USB stack PDO
itself. Therefore, you can do I/O simply by sending URBs down the
stack, rather than opening a remote I/O target.

2. how to config usb device in NICInitAdapterWorker routine?

At a minimum, you'll need to configure and send a SELECT_CONFIGURATION
URB to your device in order to configure it on the bus and also get
handles for any pipes that the device exposes.
.