Say, when a YouTube video is played via Google Chrome browser, or any video/sound in a Windows Media Player, both temporarily disable a screensaver if one is set up in a user's control panel. This happens only for the duration of the video being played or until the playback is paused.
Is there any way to know that screensaver (and power saving) was disabled in such a situation?
PS. I'm coding with C++.