我怎么能强迫任何显示分辨率/时间我想要什么? [英] How can I force any display resolution/timing I want?

查看:105
本文介绍了我怎么能强迫任何显示分辨率/时间我想要什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我无法找到一种方法来强制我的C#程序中的任何显示分辨率/时间我想要的。我运行Windows 7用的GeForce 210显卡。我目前的方法来实现这些自定义分辨率是使用驱动程序GUI来手动添加自定义分辨率,然后使用Windows调用来更改这些决议,但我需要一种方法来实时添加新的自定义分辨率。我特地到NVAPI,但我没能找到一个方法来做到这一点。我也看了成图形驱动程序的命令行工具,但我无法得到它的工作。我最后的手段是重写注册表中的值,但我真的想避免这种情况。我愿意,只要我可以通过我的程序的命令行调用它使用不同的编程语言或第三方工具。任何人都可以点我在正确的方向?

I am having trouble finding a way to force any display resolution/timing I want in my C# program. I am running Windows 7 with a GeForce 210 graphics card. My current method to achieve these custom resolutions is to use the driver GUI to manually add the custom resolutions and then use Windows calls to change to those resolutions but I need a way to add new custom resolutions in real time. I have looked into the NVAPI but I was not able to find a way to do this. I also looked into the command line tool for the graphics driver but I was not able to get it to work. My last resort is to rewrite the values in registry but I would really like to avoid that. I am willing to use a different programming language or a third party tool as long as I can invoke it from the command line via my program. Can anyone point me in the right direction?

在此先感谢。

更新(2011/8/16):
我一直在这个问题上与NVIDIA和他们为我提供先进的NVAPI,让我重新创建其驱动程序的功能。他们还证实,NVAPI的基本版本,他们提供的是不会这样做的。

Update (8/16/2011): I have been working on this problem with NVIDIA and they are providing me with an advanced NVAPI that will allow me to recreate the functionality of their driver. They also confirmed that the basic version of NVAPI that they provide will not do this.

推荐答案

我能够通过解决这个问题使用NVAPI的NDA版本。它仍然不是微不足道的,但所有的工具都在那里。

I was able to solve this problem by using the NDA version of the NVAPI. It still was not trivial but all of the tools are there.

这篇关于我怎么能强迫任何显示分辨率/时间我想要什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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