I am working on a plugin that is able to turn my TV on and off when the PC is going into / coming out of standby.
This does allready work.. sort of.
If I press the power button when the PC is in standby, I get a WM_POWERBROADCAST: 18, followed by a WM_POWERBROADCAST: 7
The latter has this constant: PBT_APMRESUMESUSPEND
I cant seem to find a constant for the first one, does anyone know the meaning of it ?
Also, I want to be able to distinct between when the PC wakes because it need to record a program (I use PVR scheduler) or when it is started manually.
The only difference I have found so far is that the WM_POWERBROADCAST: 7 is not fired when PVR scheduler wakes the PC.
Any thoughts ?
This does allready work.. sort of.
If I press the power button when the PC is in standby, I get a WM_POWERBROADCAST: 18, followed by a WM_POWERBROADCAST: 7
The latter has this constant: PBT_APMRESUMESUSPEND
I cant seem to find a constant for the first one, does anyone know the meaning of it ?
Also, I want to be able to distinct between when the PC wakes because it need to record a program (I use PVR scheduler) or when it is started manually.
The only difference I have found so far is that the WM_POWERBROADCAST: 7 is not fired when PVR scheduler wakes the PC.
Any thoughts ?