Platform SDK: Hardware

PBT_APMQUERYSUSPENDFAILED

The PBT_APMQUERYSUSPENDFAILED event is broadcast as a notification that permission to suspend the computer was denied. This event is broadcast if any application or driver returned BROADCAST_QUERY_DENY to a previous PBT_APMQUERYSUSPEND event.

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_APMQUERYSUSPENDFAILED.
lParam
Reserved; must be zero.

Return Values

No return value.

Remarks

Applications typically respond to this event by resuming normal operation.

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, PBT_APMQUERYSUSPEND, WM_POWERBROADCAST