Jump to content
Sign in to follow this  
twanvz

nVidia NvGetDisplayInfo

Recommended Posts

twanvz

I'm trying to make an exe file eventually, for doing the following:

1) get both connected monitors cloned

2) set the "analog display" as primary display

the first step is not a problem, I did this:

rundll32.exe NvCpl.dll,dtcfg setdelay pre 5000

rundll32.exe NvCpl.dll,dtcfg setview 2 clone

rundll32.exe NvCpl.dll,dtcfg setview 1 clone

rundll32.exe NvCpl.dll,dtcfg setdelay pre 0

that's not a big problem.

but now i deed the tool to detect which display is called "analog display".

i'm reading nvidia site manual (page 36) and I see I have to use these options:

char szDisplayName[MAX_NVDISPLAYNAME] > to see what are the monitor names.

DWORD dwWindowsMonitorNumber > to see if the analog display is called monitor 1 or 2.

BOOL bDisplayIsPrimary > to see if the analog display is the primary display.

then with DTCFG primary make the analog display primary.

but I don't know how to use these commands.

because the first above 4 lines, I just put it in a batch file and then converted it to an exe.

but how do I get the nvidia tool to tell me which display is the analog display and then set it as primary?

Edited by twanvz

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.