|
| |||||||||
| Tags: device driver, driver, usb device |
![]() |
| | Thread Tools | Search this Thread |
|
#1
| |||
| |||
| Windows restart notification to device driver
I have a USB device which should be powered down when the Windows system reboots. I have registered for power state change callbacks for doing the same. But the power change callbacks are not getting called on shutdown/restart (I see these callbacks getting called only for Hibernate). And the USB device never gets powered down. This leads to hang when the Windows PC tries to boot after the reboot. Would you please let me know of any callbacks that are available for RESTART notification to device drivers. |
|
#2
| |||
| |||
| Re: Windows restart notification to device driver
the driver itself will receive an IRP_MJ_POWER irp that tells it the intended system power state (or EvtDeviceD0Entry if it is KMDF). handle the IRP correctly and the device will power down |
|
#3
| |||
| |||
| Re: Windows restart notification to device driver
Im using the "WdfDeviceInitSetPnpPowerEventCallbacks" for registering for power state change callbacks. For example, Im registering with the foll: .EvtDevicePrepareHardware, EvtDeviceReleaseHardware, EvtDeviceD0Entry, EvtDeviceD0Exit, EvtDeviceQueryRemove, EvtDeviceQueryStop. And I do get the callbacks called for Hibernate. But not for shutdown or restart. |
|
#4
| |||
| |||
| Re: Windows restart notification to device driver
you will absolutely get D0Exit called for hiber, shutdown AND restart. |
![]() |
|
| Thread Tools | Search this Thread |
| |
Similar Threads for: "Windows restart notification to device driver" | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Error:” Webcam Driver Open Fail. Please Restart Camera or Computer." In windows 7 | Qamar | Portable Devices | 3 | 12-03-2011 08:11 AM |
| Windows 7 device driver management | little-Jacqueline | Operating Systems | 5 | 13-04-2010 02:03 AM |
| No sound device after every restart | neekunj | Hardware Peripherals | 3 | 26-02-2009 12:46 PM |
| Windows cannot load the device driver for this hardware. The driver may be corrupted or missing. (Code 39) | monet | Hardware Peripherals | 3 | 03-02-2009 04:58 PM |
| USB device found, installation failed becasue a function driver was not specified for this device instrance | jywu1@hotmail.com | Window 2000 Help | 2 | 02-02-2006 07:30 AM |