There is a registry value that will disable screenscreener.
The key is located at: HKEY_CURRENT_USER \ Software \ Policies \ Microsoft \ Windows \ Control Panel \ Desktop
His name: ScreenSaveActive
Key Type: REG_DWORD (DWORD Value)
To turn off the screen saver, set the value to 0, when your application is completed, set it to 1
If the key is missing, just create it. To edit the registry via C ++, follow a few steps.
Hope this helps
source share