Compartilhar via


Notification Interface (Windows CE 5.0)

Send Feedback

The Power Manager provides a set of APIs that allow applications to receive notifications of power-related events and to participate in system power status change decisions. These APIs are shown in the following table.

Function Description
RequestPowerNotifications Requests that the Power Manager send notification of power events.
StopPowerNotifications Cancels a notification request made through RequestPowerNotifications.

Notifications are delivered through message queues. To use notifications, applications must create a message queue and pass its handle to Power Manager through the RequestPowerNotifications API. Applications will generally create a thread that waits on the message queue.

The Power Manager defines the following notifications shown in the following table.

Notification Description
PBT_RESUME Generated when the system resumes from a suspend state.
PBT_POWERSTATUSCHANGE Generated when the system transitions to or from AC power.
PBT_TRANSITION Generated when the Power Manager is performing a system power state change.
PBT_POWERINFOCHANGE Generated when battery information or AC line status changes.

See Also

Power Manager Interfaces

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.