Prev: Hook Windows Events
Next: Detours and Internet Explorer
From: Scherbina Vladimir on 5 Apr 2006 06:15 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 5 Apr 2006 13:50
"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 |