Partager via


Notification Interface (Windows Embedded CE 6.0)

1/6/2010

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

Function Description

RequestPowerNotifications

Requests that Power Manager send notification of power events.

StopPowerNotifications

Cancels a notification request made with RequestPowerNotifications.

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

Power Manager defines the notifications shown in the following table.

Notification Description

PBT_RESUME

Generated when the system resumes from a suspended state.

PBT_POWERSTATUSCHANGE

Generated when the system transitions to or from AC power.

PBT_TRANSITION

Generated when Power Manager is performing a system power state change.

PBT_POWERINFOCHANGE

Generated when battery information or AC line status changes.

See Also

Concepts

Power Manager Interfaces