I want to disable a screen saver to another user. How it can be done?
I have administrative privileges. I have an application that can't be interrupted by the screen saver.
I want to disable a screen saver to another user. How it can be done?
I have administrative privileges. I have an application that can't be interrupted by the screen saver.
On
If you're writing the application yourself, look into calling the unmanaged API SetThreadExecutionState (PInvoke reference). Copying from my answer to how do i prevent screen-savers and sleeps during my program execution?:
Don't mess with the screensaver settings, use SetThreadExecutionState. This is the API for informing windows on the fact that your application is active:
Enables an application to inform the system that it is in use, thereby preventing the system from entering sleep or turning off the display while the application is running.
, and
Multimedia applications, such as video players and presentation applications, must use ES_DISPLAY_REQUIRED when they display video for long periods of time without user input
If you don't have control over the application, but the screen saver kicking in causes problems, then push this information back to the developers.
Disabling the screensaver is almost always the wrong solution to the problem, since it affects the users whole experience, not just when the application is running.
Controlling The Screen Saver With C#
KillScreenSaver( )