How do I change the screensaver programmatically?

前端 未结 2 1129
说谎
说谎 2021-01-17 21:51

I\'d like to change the current Screensaver for a custom one (which I previously loaded as a resource in Visual Studio) using C#. How could that be done? I\'ve looked for it

2条回答
  •  迷失自我
    2021-01-17 22:27

    This is the command that windows executes when installing a new one

    rundll32.exe desk.cpl,InstallScreenSaver %l
    

提交回复
热议问题