[This is preliminary documentation and subject to change.]
Requirement (Designed for Microsoft® Windows® Logo)
Applications should handle system sleep/wake transitions by monitoring WM_POWERBROADCAST messages. When applications receive sleep messages (WM_POWERBROADCAST PBT_APMSUSPEND), they must:
When applications receive wake messages (WM_POWERBROADCAST PBT_APMRESUMESUSPEND), they must:
Applications must avoid destabilizing or crashing the system as a result of sleep/wake transitions.
For a description of pretesting you can do to ensure that your application provides proper ACPI/OnNow support, see Pretesting ACPI/OnNow support.
For more information about the OnNow initiative and for OnNow technical specifications, see http://www.microsoft.com/hwdev/onnow.htm.