Check if the screensaver is installed

How can I check if the user is installed as a splash screen, or if none are installed:

enter image description here

I'm not talking about launching a screensaver, no, I'm talking about checking if the screensaver is installed or not;) Anyone? Can I do this with P / Invoke?

+4
source share
3 answers

Call SystemParametersInfoskip SPI_GETSCREENSAVEACTIVE. Please note that for some versions of Windows this fails and you need to read the registry as described here: http://support.microsoft.com/kb/318781

+2
source
+1

Check out this project: http://www.codeproject.com/Articles/17067/Controlling-The-Screen-Saver-With-C it provides what you need and more.

0
source

Source: https://habr.com/ru/post/1534537/


All Articles