BDRichardson
Programmer
Does anyone know if there is a problem with re-enabling the Screen Saver after it has been disabled programmatically.
I am using the SystemParametersInfo function within User32.dll, and have been successful in disabling the Screen Saver, but it does not work for re-enabling. The only way I can re-activate it is to re-apply the settings through the Display properties in the Control Panel.
Sample lines of code, in simplest form:
I have discovered there may be problems with retrieving the Active status, but have not found any information relating to re-activation.
Your assistance would be much appreciated.
I am using the SystemParametersInfo function within User32.dll, and have been successful in disabling the Screen Saver, but it does not work for re-enabling. The only way I can re-activate it is to re-apply the settings through the Display properties in the Control Panel.
Sample lines of code, in simplest form:
Code:
// Screen Saver disable
SystemParametersInfo( 17, 0, 0, 0);
// Screen Saver enable
SystemParametersInfo( 17, 1, 0, 0);
I have discovered there may be problems with retrieving the Active status, but have not found any information relating to re-activation.
Your assistance would be much appreciated.