C# 有选择地关闭监视器

发布于 2024-09-18 20:03:27 字数 71 浏览 0 评论 0原文

C# 有没有办法识别连接到系统的所有监视器并选择打开、关闭或低功耗的监视器?我之前在 SO 上发现的问题只需关闭所有显示器即可。

is there a way in C# to identify all monitors connected to the system and choose which ones to turn on, off or low power? The previous questions i found on SO just turn off all monitors.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

寒冷纷飞旳雪 2024-09-25 20:03:27

您可以使用 http://pinvoke.net/default.aspx/user32.EnumDisplayMonitors ?似乎一旦获得句柄,就可以使用 PInvoke,就像在回答以下问题时使用的那样... 打开/关闭显示器

Can you use http://pinvoke.net/default.aspx/user32.EnumDisplayMonitors? Seems like once you get the handle then you can use PInvoke like it's used in the replies to the following question... Turn on/off monitor

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文