C#有选择地关闭显示器 [英] C# selectively turn off monitor

查看:126
本文介绍了C#有选择地关闭显示器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有在C#的方式来识别连接到系统的所有监视器,并选择开启哪些,关闭或低功耗? 。以前的问题我发现所以才关闭所有监视器

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.

推荐答案

可以使用的 http://pinvoke.net/default.aspx/user32.EnumDisplayMonitors ?好像一旦你的手柄,那么你可以使用的PInvoke像它在答复用于以下问题......的 http://stackoverflow.com/questions/713498/turn-on-off-monitor

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... http://stackoverflow.com/questions/713498/turn-on-off-monitor

这篇关于C#有选择地关闭显示器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆