PBT_APMSUSPEND  5J17X1 

The PBT_APMSUSPEND is sent immediately before the computer is suspended. This message is typically sent when all applications and installable drivers have returned TRUE to a previous PBT_APMQUERYSUSPEND6WJK0. message. A window receives this message through the WM_POWERBROADCASTGCM3ZP message.

dwData = (DWORD) lParam;
 

 

Parameters

dwData

Reserved; must be 0.

 

Return Values

No return value.

Remarks

An application should process this message by completing all tasks necessary to save data. This message may also be sent, without a prior PBT_APMQUERYSUSPEND message, if an application or device driver uses the SetSystemPowerState function to force suspension.

See Also

PBT_APMQUERYSUSPEND, SetSystemPowerState, WM_POWERBROADCAST