microsoft / Windows-driver-samples

This repo contains driver samples prepared for use with Microsoft Visual Studio and the Windows Driver Kit (WDK). It contains both Universal Windows Driver and desktop-only driver samples.
Microsoft Public License
6.92k stars 4.93k forks source link

【 Indirect display 】【IddSampleDriver】 The Idd sample driver has a problem in updating the display mode #1184

Open N0exp opened 3 months ago

N0exp commented 3 months ago

For example, add two virtual monitors A+B, and then use IddCxMonitorUpdateModes to modify the display mode of the specified monitor, but only A actually changes, and in no case can it change the display mode of B. The first parameter of IddCxMonitorUpdateModes has no real effect. Passing either IDDCX_MONITOR of A or IDDCX_MONITOR of B will change the display mode of A. If I remove monitor A and use IddCxMonitorUpdateModes to change the display mode of B, The parameter error STATUS_INVALID_PARAMETER is returned

N0exp commented 1 month ago

I execute the above function on win11, can modify the display Settings, but it still fails on win10, how can I modify it to use normally on win10?