shadow play change monitor code example
Example: geforce experience wrong monitor
#Create a file named "Monitor Persistence.reg" with this content:
Windows Registry Editor Version 5.00
[-HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\GraphicsDrivers\Configuration]
[-HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\GraphicsDrivers\Connectivity]
#now reboot with only the monitor to capture plugged in, and after booting
# plug in the second monitor