Sign up using Email and Password. Do I not need to check already existing configuration and so on? That would be the first step before resorting to black magic. The value for the Flags parameter must be one of the following values. Stack Overflow for Teams is a private, secure spot for you and your coworkers to find and share information. I would highly appreciate some code sample and an explanation.
Uploader: | Kagalabar |
Date Added: | 16 January 2009 |
File Size: | 44.26 Mb |
Operating Systems: | Windows NT/2000/XP/2003/2003/7/8/10 MacOS 10/X |
Downloads: | 10831 |
Price: | Free* [*Free Regsitration Required] |
I am guessing the registry is not "ready" yet, which is why I have put in my workaround, which keeps calling QueryDisplayConfig every ms until it returns a valid result.
I had to do something like this, and it worked like a charm; gave me the correct current display setting. After than I could use your code to change display settings and it worked just fine. Vijay Vijay 1, 3 3 gold badges 17 17 silver badges 33 33 bronze badges. Unicorn Meta Zoo 9: Sign up or log in Sign up using Querydisplaycondig.
Proposed as answer by tykky Saturday, March 20, I am very new at this and haven't really done any Windows scripting other than simple bat scripts. Remove From My Forums.
How to determine if multiple monitors/displays are running in "CLONED" mode? - CodeProject
Asked 3 years, 8 months ago. Stack Overflow for Teams is a private, secure spot for you and your coworkers to find and share information. The value for the Flags parameter must be one of the following values.
The 2nd, 3rd, 4th, and 5th arguments may be NULL, because they are about paths, which is something not very interesting unless you want to install or uninstall monitors. Thanks for all the info.

Active 6 years, 8 months ago. Sign up using Facebook. It's interesting but somehow it fixes things.

You may have to register or Login before you can post: The reason I don't know the value cause it happens querydixplayconfig the system is turned on the first time after being dashed in the factory and I don't do the dashing.
Work out what value it's returning. All times are GMT As per the documentation, it takes the following parameters: Querydisplayconfog does not return any of its documented values Ask Question. Unfortunately they don't really explain anything. Windows Desktop SDK https: My environment is Windows 7. Unicorn Meta Zoo 9: By using our site, you acknowledge that you have read and understand our Cookie PolicyPrivacy Policyand our Terms of Service.
C# (CSharp) DisplayConfigPathInfo Examples
I querydisplayconfit to understand what information these structures contain, how to interpret it, and how to change various values so that I can get the desired results like cloning, extending, attaching and unattaching displays.
Then code that into your program.
Quegydisplayconfig I know for a fact that if there is a 4 second delay it querydisolayconfig fixed and I'd rather be stuck in an infinite loop which will force the user restart the system rather than continue with that configuration. Sunday, June 7, 1: Based on Windows Internals the registry is operated on in memory.
QuinStreet does not include all companies or all types of products available in the marketplace. Do I not need to check already existing configuration and so on?
Results 1 to 7 of 7.
Comments
Post a Comment