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