I need a WM_POWERBROADCAST wParam

dear coders,

I have seen that WM_POWERBROADCAST has many wParam like
Value
Meaning

PBT_APMBATTERYLOW
Battery power is low.

PBT_APMOEMEVENT
OEM-defined event occurred.

PBT_APMPOWERSTATUSCHANGE
Power status has changed.

PBT_APMQUERYSUSPEND
Request for permission to suspend.

PBT_APMQUERYSUSPENDFAILED
Suspension request denied.

PBT_APMRESUMECRITICAL
Operation resuming after critical suspension.

PBT_APMRESUMESUSPEND
Operation resuming after suspension.

PBT_APMSUSPEND
System is suspending operation.

But there are not wParam to detect automatic "standby" when windows put the screen saver. I am speaking about the event triggered when the time you chose for the screen saver is collapsed (Control panel->Display->Screen saver)

Regards

Rabah
Last edited on
It's an api FAQ.
You can ask on specialized Win32 api newsgroup :
news://194.177.96.26/comp.os.ms-windows.programmer.win32
wParam can have this:
SC_SCREENSAVE or SC_MONITORPOWER.the first is screensaver,the second is monitor powersave
Topic archived. No new replies allowed.