[wdmaudiodev] Re: DriverUnload and miniport

  • From: Tim Newsham <tim.newsham@xxxxxxxxx>
  • To: wdmaudiodev <wdmaudiodev@xxxxxxxxxxxxx>
  • Date: Thu, 27 Aug 2009 08:10:46 -1000

On Thu, Aug 27, 2009 at 7:59 AM, Tim Newsham <tim.newsham@xxxxxxxxx> wrote:

> I have a driver using MiniPortWaveCyclic.  After initializing the port
> driver (PcInitializeAdapterDriver) I stash a copy of driver->DriverUnload
> and overwrite it with my own unload handler.  I set a watchpoint on the
> field and note that it never gets overwritten.  However, when I unload my
> driver, I notice the subdevices I created getting removed by the port driver
> but my custom DriverUnload function is never executed.  Why is
> driver->DriverUnload not getting called when my driver is unloaded?


Btw, when I say "unload" I mean that I ran "devcon remove".


> -TimN
>

Other related posts: