How can I force any screen resolution / time I want?

I am having trouble finding a way to force any screen resolution / time I want in my C # program. I am running Windows 7 with a GeForce 210 graphics card. My current method to achieve these user permissions is to use a GUI driver to manually add user permissions, and then use Windows calls to change these permissions, but I need a way to add new user permissions in real time. I looked at NVAPI, but I could not find a way to do this. I also learned the command line tool for the graphics driver, but I could not get it to work. The last resort is to rewrite the values ​​in the registry, but I would really like to avoid this. I am ready to use another programming language or a third-party tool if I can call it from the command line through my program. Can someone point me in the right direction?

Thanks in advance.

Update (8/16/2011): I am working on this issue with NVIDIA, and they provide me with an advanced NVAPI that will allow me to recreate the functionality of my driver. They also confirmed that the basic version of NVAPI they provide will not do this.

+1
source share
2 answers

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

+1
source

You can try using ChangeDisplaySettings

I'm not sure that he will have all the options provided by the nvidia panel, but, of course, the basics, such as resolution, refresh rate, screen orientation, etc. I myself used this in the past to dynamically change the screen orientation (rotate to landscape / portrait) with the click of a button.

+1
source

All Articles