Re: Device driver power management

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Setup the registry for the service so the power manager knows it's a
power managed service (see
http://msdn.microsoft.com/en-us/library/aa908529.aspx) and implement the
required IOCTLs so you receive power changes from the PM (see
http://msdn.microsoft.com/en-us/library/ms895438.aspx)

(note that this is a direct copy of a message I wrote yesterday on
microsoft.public.windowsce.embedded; a search in the NG's is really
worth it...)

Good luck,

Michel Verhagen, eMVP
Check out my blog: http://GuruCE.com/blog

GuruCE
Microsoft Embedded Partner
http://GuruCE.com
Consultancy, training and development services.

jking wrote:
Hi,

I've been working on a device driver for CE6.0, and I have it running. I
want to add power management functions to it, so when the system goes
into suspend, it can tell my driver to go to D2 or D4 or whatever. I've
seen that I need to handle IOControl messages from the system. Something
causes the system to query my driver by sending the
IOCTL_POWER_CAPABILITIES, to which I respond telling it what the driver
supports. I've also seen that if I want my driver to change it's own
power level, it can call DevicePowerNotify, which should cause the
system to call back in with a IOCTL_POWER_SET command. What I need is
the first step, so that the system knows my driver it out there and
supports power management functions?

Thanks,
Jeremy

.



Relevant Pages