We have made a virtual secondary display driver (secondary display
device) that becomes active when "Extend my windows desktop to this
monitor" is selected.
Now for this virtual device we want that "Use This Device As Primary
Monitor " should always be disable.
I am stuck at this point.
Now , in my system I also have ATI Radeon display card installed that
supports two display device (monitors) i.e. primary and secondary.
Now for secondary monitor "Use This Device As Primary Monitor" is
always disabled. I also want this functionality for my display device.
What I am thinking is that there may be some flag in DEVMODE structure
or in PDEV that make the device as "secondary only" display device i.e.
a device that can not be set as primary.
Other approach I tried was through ChangeDisplaySettingsEx. But this
API completely disabled my virtual secondary display device.
I also had a look at registry through which I can disable this option
permanently , but to no avail.
I just want "Use This Device As Primary Monitor" always disabled.
Please , if you have any idea about how to address the above problem ,
then kindly do let me know.