Hello,

Is there any sample available in XPDDK/2KDKK that can give a startup for
implementing Kernel mode Power Management? Please let me know good sources
for this.

Thanks
Suchrithaa

Re: Help - Kernel mode Power Management Samples by Eliyas

Eliyas
Fri Feb 06 12:00:52 CST 2004

Follow the toaster function driver power management code from Server 2003
DDK.

Almost 99% of the code in power.c file is template. You just have to add
little bit code in HandleDeviceSetPower callback to do any device specific
work.


If you have Server 2003 SP1 beta ddk, see how I used the template code from
toaster in PCIDRV sample to do power management for a real PCI device.

--
-Eliyas
This posting is provided "AS IS" with no warranties, and confers no rights.
http://www.microsoft.com/whdc/hwdev/driver/kb-drv.mspx


"Suchrithaa Rajkumar" <suchritharajkumar02@hotmail.com> wrote in message
news:%23mePIWM7DHA.2752@TK2MSFTNGP09.phx.gbl...
> Hello,
>
> Is there any sample available in XPDDK/2KDKK that can give a startup for
> implementing Kernel mode Power Management? Please let me know good
sources
> for this.
>
> Thanks
> Suchrithaa
>
>



Re: Help - Kernel mode Power Management Samples by Walter

Walter
Fri Feb 06 14:09:11 CST 2004

Suchrithaa Rajkumar wrote:
> Is there any sample available in XPDDK/2KDKK that can give a startup for
> implementing Kernel mode Power Management? Please let me know good sources
> for this.

I won't gainsay Eliyas' suggestion -- after all, he wrote Toaster with
lots of help from the rest of the kernel team. I recommend to my
students that they simply plan to rename and ship the GENERIC.SYS
library that comes with my book, though. That way, your power management
code is two lines long unless you need to modify the behavior by adding
some optional callbacks. Power management, Plug and Play, and IRP
queueing are all intimately tied together. GENERIC handles all of that
more or less transparently, relying on you to write just the
device-specific code that you actually need. WDF employs a similar
concept, although it obviously differs in detail. Plus it runs on 98/Me,
which still matters to a bunch of vendors.

--
Walter Oney, Consulting and Training
Basic and Advanced Driver Programming Seminars
Check out our schedule at http://www.oneysoft.com