Is DriverUnload routine called during system restart or shutdown?

Discussion in 'Windows Vista Drivers' started by Jack Huang, Jun 26, 2008.

  1. Jack Huang

    Jack Huang Guest

    Is DriverUnload routine of WDM driver called during system restart or
    shutdown?
    Recently, I used WDK bulkusb sample codes to try USB device.
    I'm learning the debug skill by Windbg.
    I tried to set breakpoint in DriverUnload routine.
    I can break into this routine when I unplug the USB device.
    However, I cannot break into DriverUnload while target system shutdown or
    restart.
    I also didn't see the debug messages output in DriverUnload routine.

    As my previous experience, DriverUnload routine should be called during
    system shutdown or restart.
    Did I remember the wrong thing?

    Best Regards
    Jack Huang
     
    Jack Huang, Jun 26, 2008
    #1
    1. Advertisements

  2. Is DriverUnload routine of WDM driver called during system restart or
    No.
     
    Maxim S. Shatskih, Jun 26, 2008
    #2
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.