Platform SDK: Hardware

PBT_APMRESUMECRITICAL

The PBT_APMRESUMECRITICAL event is broadcast as a notification that the system has resumed operation after a critical suspension caused by a failing battery.

A window receives this event through the WM_POWERBROADCAST message. The wParam and lParam parameters are set as described following.

Parameters

wParam
Set to PBT_APMRESUMECRITICAL.
lParam
Reserved; must be 0.

Return Values

No return value.

Remarks

Because a critical suspension occurs without prior notification, resources and data previously available may not be present when the application receives this event. The application should attempt to restore its state to the best of its ability. While in a critical suspension, the system maintains the state of the DRAM and local hard disks, but may not maintain net connections. An application may need to take action with respect to files that were open on the network before critical suspension.

Requirements

  Windows NT/2000: Requires Windows 2000.
  Windows 95/98: Requires Windows 95 or later.
  Header: Declared in Pbt.h.

See Also

Power Management Overview, Power Management Events, WM_POWERBROADCAST