In W11 22H2, displayswitch..exe doesn't seem to accept arguments.
I don't know if you use this exe, but your application triggers the projector selection interface without using it.
A fix I found if to use an old displayswitch.exe file, from either an old W11 or even a W10 installation.
Maybe you could either embed this old version, or ask the user a path to the exe to use ?
In W11 22H2, displayswitch..exe doesn't seem to accept arguments. I don't know if you use this exe, but your application triggers the projector selection interface without using it.
A fix I found if to use an old displayswitch.exe file, from either an old W11 or even a W10 installation. Maybe you could either embed this old version, or ask the user a path to the exe to use ?