Go Back   TechArena Community > Technical Support > Computer Help > Windows XP > Windows XP Support
Become a Member!
Forgot your username/password?
Register Tags Active Topics RSS Search Mark Forums Read SiteMap

Tags: , ,

Sponsored Links



Windows restart notification to device driver

Windows XP Support


Reply
 
Thread Tools Search this Thread
  #1  
Old 06-08-2009
Member
 
Join Date: Aug 2009
Posts: 2
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.
Reply With Quote
  #2  
Old 07-08-2009
Doron Holan [MSFT]
 
Posts: n/a
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
Reply With Quote
  #3  
Old 09-08-2009
Member
 
Join Date: Aug 2009
Posts: 2
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.
Reply With Quote
  #4  
Old 18-08-2009
Doron Holan [MSFT]
 
Posts: n/a
Re: Windows restart notification to device driver

you will absolutely get D0Exit called for hiber, shutdown AND restart.
Reply With Quote
Reply

  TechArena Community > Technical Support > Computer Help > Windows XP > Windows XP Support


Thread Tools Search this Thread
Search this Thread:

Advanced Search


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


All times are GMT +5.5. The time now is 09:01 AM.