且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何知道屏幕保护程序何时结束? (解决了)

更新时间:2023-11-14 12:48:52

有一种方法可以检查屏幕保护程序是否仍在运行。请参阅MSDN上的讨论:屏幕保护程序通知 [ ^ ]。 nobugz [ ^ ]答案显示如何消除 SystemParametersInfo 轮询屏幕保护程序的当前状态。



谷歌搜索:C#屏幕保护程序运行



问候,



- Manfred
There is a way of checking if the screensaver is still running. See the discussion on MSDN: Screen Saver notifications[^]. nobugz[^] answer shows how to pinvoke SystemParametersInfo to poll the current status of the screensaver.

Google search: "C# screen saver running"

Regards,

— Manfred