简体   繁体   English

C#有选择地关闭显示器

[英]C# selectively turn off monitor

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? C#中是否有一种方法可以识别连接到系统的所有监视器,并选择要打开,关闭或低功率的监视器? The previous questions i found on SO just turn off all monitors. 我在SO上发现的先前问题只是关闭所有显示器。

Can you use http://pinvoke.net/default.aspx/user32.EnumDisplayMonitors ? 你能用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 似乎一旦你得到了句柄,那么你可以使用PInvoke就像它在回答以下问题中使用的那样... 打开/关闭监视器

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM