I'm doing some changes to a video player application which disables the windows screen saver while playing video. I have some code which prevents the screensaver from activating. But when the video stops and my code stops preventing the screen saver from activating, the screen saver immediately kicks in.
I'm basically capturing the WM_SYSCOMMAND SC_SCREENSAVE event and returning 0 while video plays. Which successfully blocks the screen saver. But when the video stops and I stop capturing this event, the screen saver immediately kicks in.
So is there any way I can reset the screen saver timer?