I’m trying to install my ndis driver skeleton and its failing to execute
its Initialize function after insertion.
First I install my bus driver and enumerate a PDO for the ndis driver.
The bus driver seems to install correctly.
When I insert my ndis driver, it seems to install, my DriverEntry is
called and completes with NDIS_STATUS_SUCCESS. (From my trace msgs)
The only interesting thing that I can find in the setupapi log is:
dvi: {Restarting Devices} 13:57:18.062
dvi: Restart: VBUS\TEST_DEV_10
\4&306CFD90&0&10
dvi: Restart complete.
!!! dvi: Device not started: Device has
problem: 0x1f: CM_PROB_FAILED_ADD.
dvi: {Restarting Devices exit} 13:57:18.156
IOW, the log seems to find things ok and match them up with my bus
driver.
I also know that the ‘unload’ callback was executed from a trace msg as
well.
Now this is (basically) the first time I’ve attempted to install so I
certainly could have a problem with the .inf file, I’m working off the
usbnwifi example, with a little netvmini thrown in for good luck.
The DriverEntry calls WdfDriverCreate(), and then
NdisMRegisterMiniportDriver() with the “Type” set to:
NDIS_OBJECT_TYPE_MINIPORT_DRIVER_CHARACTERISTICS
I set all the struct members the same way as usbnwifi does, with my data
or course…
The .inx I use is a modified version of the one also used by usbnwifi.
Any suggestions? I am starting to miss that lovely shade of blue I get
when I first (somewhat) successfully install a driver… ![]()
Thanks,
-PWM