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
7.01k stars 4.94k forks source link

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

Open N0exp opened 5 months ago

N0exp commented 5 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 3 months 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?

Rickylss commented 1 month ago

Check your win10 version with winver.exe.

The build number of your win10 version should greater than 19044, if not, do upgrade.

There may have some bugs in previous win10. But I'm not sure. I did a lot tests before I found this conclusion.