I would like to connect to a wireless miracast display which is already paired with the host. I am able to use EnumDisplayDevices to list the wireless display device. I have tried to use ChangeDisplaySettingsEx but it didn't work, I used CDS_SET_PRIMARY on the miracast display device hoping that it would automatically connect to it and set it as the primary display.
It looks like ChangeDisplaySettingsEx cannot establish a connection on it's own. There should be some kind of API which can connect to the display. I have also tried SetDisplayConfig with SDC_TOPOLOGY_CLONE to change the display configuration to "clone" thinking that it would automatically connect to the display.
Question: What is the proper way to connect to a wireless display device using Windows API?