Curtail Background Activities When Running On Batteries

[This is preliminary documentation and subject to change.]

Best Practice   (Designed for Microsoft® Windows® Logo)

Your application should reduce background activities such as background pagination, background recalculation, autosaves and autoformatting when the computer is running on batteries because the hard disk and CPU are the highest power consumers an application affects.

While running on batteries, the following should be done to reduce hard disk and CPU usage:

Applications can determine when the computer is running on batteries by calling GetSystemPowerStatus and by checking for the PBT_APMPOWERSTATUSCHANGE value returned by the WM_POWERBROADCAST message.

See Also

For more information about the OnNow initiative and for OnNow technical specifications, see http://www.microsoft.com/hwdev/onnow.htm.