How to invoke the screen saver in Windows in C#?

前端 未结 4 1031
别跟我提以往
别跟我提以往 2021-01-15 04:59

I\'d like to invoke the user\'s screen saver if such is defined, in a Windows environment.

I know it can be done using pure C++ code (and then the wrapping in C# is

4条回答
  •  长发绾君心
    2021-01-15 05:19

    I'm not sure you can use completely managed code to do this.

    This uses Windows API but is still very simple: Launch System Screensaver from C# Windows Form

提交回复
热议问题