Juan Martinez
Juan Martinez

Reputation: 111

How do I find the actual values referred to in this MSDN documentation?

I'm using C# to marshall/pinvoke code in user32.dll

I have a specific question and learning the answer should help me a great deal.

Question: Referring to the below MSDN documentation, it mentions one of the input parameters for the GetDisplayConfigBufferSizes, "Flags", could accept one of three values. One of these, for example, is called QDC_ALL_PATHS. However, it's obvious that "Flags" is a UINT32 and therefore there should be an actual defined integer value for "QDC_ALL_PATHS".

Where do I get this information? I.e., where is the actual defined integer value of "QDC_ALL_PATHS" as per User32.dll so that I can implement it in my code?

https://msdn.microsoft.com/en-us/library/windows/hardware/ff566772(v=vs.85).aspx

Upvotes: 3

Views: 348

Answers (2)

Serj-Tm
Serj-Tm

Reputation: 16981

Windows SDK -> Find "QDC_ALL_PATHS" in *.h

WinGdi.h:

#define QDC_ALL_PATHS                   0x00000001
#define QDC_ONLY_ACTIVE_PATHS           0x00000002
#define QDC_DATABASE_CURRENT            0x00000004

Upvotes: 2

AlexD
AlexD

Reputation: 32576

Make a simple Windows C++ project, type somewhere in the code QDC_ALL_PATHS, press F12 (or right click and "Go To Definition"):

#define QDC_ALL_PATHS                   0x00000001
#define QDC_ONLY_ACTIVE_PATHS           0x00000002
#define QDC_DATABASE_CURRENT            0x00000004

Upvotes: 3

Related Questions