How can I set my program up so that the app can be notified when the Screensaver gets turned off and then again when it comes on?
Somebody sugggested the following but I don't know how to do it.
>>"In the appliation message loop you can listen to the WM_SYSCOMMAND message with wParam as SC_SCREENSAVE to know when the screen saver is being invoked."<<
>>"System sends this message to all the running applications just before the invocation of ScreenSaver."<<
Can someone please give me a working example of this .
I am using CBuilder and already have a VCL Messagemap defined so if you can give it to me for CBuilder that would be good. But I can probably translate it from C++ it you can give it to me in that.