Power

Description

Occurs after notification of a power state change on a mobile device.

Event ID

Event ID

Objects

None

Application

Arguments

Argument

Description

petPowerEventType

UnsignedLong by value. The values are:

  • 0 — (petHibernate!) WM_Hibernate request made.

  • 1 — (petTransition!) System power state transition detected.

  • 2 — (petResume!) Resumed from hibernate.

  • 4 — (petStatusChange!) Power switched from AC to DC.

  • 8 — (petInfoChange!) Other power status field change.

  • 256 — (petSuspendKeyPressed!) Suspend key pressed.

psfPowerStateFlags

UnsignedLong by value. The values are:

  • 0 — (psfUnknown!) Unknown or not applicable.

  • 1 — (psfOn!) On state.

  • 2 — (psfOff!) Full off.

  • 4 — (psfCritical!) Critical off.

  • 8 — (psfBoot!) Boot state.

  • 16 — (psfIdle!) Idle state.

  • 32 — (psfSuspend!) Suspend state.

  • 128 — (psfReset!) Reset state.

  • 256 — (psfUserIdle!) User idle state.

  • 4096 — (psfPassword!) Password protected state.

Returns

None.

Usage

This event is not supported on all devices. In particular, it is not supported on any Pocket PC 2002 devices. Other devices might support this event only partially, with the level of support depending on the specific device model.