I searched on Google for hours and couldn't find anything useful.
Thank you for any reply.

Recommended Answers

All 3 Replies

Thank you.
One problem is that this function is available only on Vista and 7.
But I need my program to work in XP also.

Anyway I tried in Windows 7.
The program recieves WM_POWERBROADCAST when the monitor is going on standby but is not receiving when is "waking".

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.