Jump to content

Is it possible to change the primary monitor through dllcall?


Recommended Posts

I was looking the UDF Screen Resolution Change source, and in MSDN documentation there is this option:

CDS_SET_PRIMARY

This device will become the primary device.

http://msdn.microsoft.com/en-us/library/dd183413%28VS.85%29.aspx

I have no experience calling a dll, how can i change the primary monitor? Do I have to enumerate displays first?

Link to comment
Share on other sites

I was looking the UDF Screen Resolution Change source, and in MSDN documentation there is this option:

CDS_SET_PRIMARY

This device will become the primary device.

http://msdn.microsoft.com/en-us/library/dd183413%28VS.85%29.aspx

I have no experience calling a dll, how can i change the primary monitor? Do I have to enumerate displays first?

Post a link to the particular UDF you are looking at.

You have the right idea to enumerate the displays and get the exact string first. You could possibly hard code that string device name, but it would be less reliable.

>_<

Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...