检测服务器显示分辨率 [英] Detect Server Display Resolution

查看:138
本文介绍了检测服务器显示分辨率的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Windows Server 2008上我可以使用Web服务或者我可以从C#应用程序查询显示属性(分辨率(高度和宽度))。 C#应用程序无法在服务器上运行,因此我无法从应用程序本身检测到它。

On windows server 2008 can I have a web service or something I can query from a C# application as to the display properties (resolution (height & width)). The C# application does not run on the server so I cannot just detect it from the application itself.

除了帮助解释原因外:

我将有一个名为display的用户,将在显示网站(在服务器上)登录,我希望能够从桌面应用程序检查显示,以便用户知道设计模板。分辨率将从不同的显示改变,因此它不能是设定值。

I will have a user named "display" and that will be logged on displaying a website (on the server) and I want to be able to check the display from the desktop application so the user knows what resolution to design a template for. The resolution will change from different displays so it can't be a set value.

推荐答案

我建议只查询服务器使用WMI。检查第三个示例:

I'd recommend just querying the server using WMI. Check the third example here:

http://msdn.microsoft.com/en-us/library/aa394591%28v=vs.85%29.aspx

这篇关于检测服务器显示分辨率的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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