[This is preliminary documentation and subject to change.]
The PBT_APMQUERYSUSPENDFAILED message is sent as a notification that permission to suspend the computer was denied. This message is sent if any application or driver returned BROADCAST_QUERY_DENY to a previous PBT_APMQUERYSUSPEND message. A window receives this message through the WM_POWERBROADCAST message.
dwData = (DWORD) lParam;
No return value.
Applications typically respond to this message by resuming normal operation.
Windows NT: Requires version 5.0 or later.
Windows: Requires Windows 95 or later.
Windows CE: Unsupported.
Header: Declared in pbt.h.
Power Management Overview, Power Management Messages, PBT_APMQUERYSUSPEND, WM_POWERBROADCAST