From: Scherbina Vladimir on
IIRC (I can be wrong) an application can response with BROADCAST_QUERY_DENY
when WM_POWERBROADCAST is recieved to delay the hebirnation process.

--
Vladimir
http://spaces.msn.com/vladimir-scherbina/


From: Pavel A. on
"Scherbina Vladimir" wrote:
> IIRC (I can be wrong) an application can response with BROADCAST_QUERY_DENY
> when WM_POWERBROADCAST is recieved to delay the hebirnation process.

DENY is deny. From MSDN: "To deny the request, return BROADCAST_QUERY_DENY".

Then, "After it removes the message from the message queue, an application
can take as much time as needed to perform any required operations before
entering the sleep state. Any operations that could take longer then 20
seconds should be performed at this time"

However, while performing these operations, the app needs to check
the message queue to avoid timeout of the following PBT_APMSUSPEND.

Regards,
--PA