How do I turn off the windows screen saver if it is running using C#?

前端 未结 4 718
无人共我
无人共我 2021-01-19 20:21

Ok, so I found some code to check if a screensaver is running and kill it if I want to. This doesn\'t seem to work on Windows 7 PCs. Does anyone know how this code can be mo

4条回答
  •  野趣味
    野趣味 (楼主)
    2021-01-19 20:54

    The following question may provide some insight:

    How to turn screensaver on (windows 7) by a code (in cmd)?

    However, what if the machine is locked? I don't think you'll be able to display any application on top of the lock screen unless it is actually a screensaver (and even then it may not be possible)

提交回复
热议问题