Hi All,
Now, I am working with Network USB Driver too. I am trying to make NDISEDGE sample driver to interface with USB driver. Beside using usbnwifi sample driver as a reference, I am also using usbsamp and osrusbfx2 as the references. I got confused with some code…
In usbsamp and osrusbfx2, it use this lines of code to initialize pnp powercallback structure:
WDF_PNPPOWER_EVENT_CALLBACKS_INIT(&pnpPowerCallbac ks);
pnpPowerCallbacks.EvtDevicePrepareHardware = UsbSamp_EvtDevicePrepareHardware;
pnpPowerCallbacks.EvtDeviceReleaseHardware = UsbSamp_EvtDeviceReleaseHardware;
WdfDeviceInitSetPnpPowerEventCallbacks(DeviceInit, &pnpPowerCallbacks);
Yet, in usbnwifi sample, I can’t find this pnp Power Callback for the usb device.
Can someone help me how to make plug and play event for usb device with ndisedge 50 sample (I am using Windows XP).
Thanks