Forget it (Was: Re: I need Pnp guru advice: Win2000 refuses to unload my WDM driver!)

From: “Matt A.”
Sent: Tuesday, April 04, 2000 1:39 PM

Nevermind. My WDM driver was creating an extra “debugging” DEVICE_OBJECT
(non-PnP) during DriverEntry() (which I wasn’t yet using) that was supposed
to get deleted during Unload(). Of course, WDM PnP isn’t smart enough to
realize that unloading a driver will cause some references to go away. This
debugging device was the source of the “extra” references on my

So, looks like I will have to tie to existence of my debugging object to
whether or not I have any WDM PnP devices, rather than driver load and

- Matt