3 ms·
I wrote an F# tool specifically for changing the primary display not too long ago. This is the code that calls the Win32 API to query the displays and set the p
by steinuil 4y ago
I wrote an F# tool specifically for changing the primary display not too long ago. This is the code that calls the Win32 API to query the displays and set the primary one.
https://github.com/steinuil/SatouinDp/blob/master/DisplayDevice.fs https://github.com/steinuil/SatouinDp/blob/master/DisplayDev...
One thing I never figured out was how to map the displays you get from EnumDisplayDevices to the names you see in the display settings, or how to list them in a consistent order.