On Fri Jul 1 07:46:55 2022 +0000, Zhiyi Zhang wrote:
I think you can remove CDS_UPDATEREGISTRY here. Otherwise, user_driver->pChangeDisplaySettingsEx() will try to find the full mode again.
Yes, though as you spotted below we'd need to keep the driver extra data around in that case.
Ultimately I intend to store the driver extra in registry blob as well, and cache it in win32u. The first `pChangeDisplaySettingsEx` call would be replaced by a win32u-side full mode lookup, then passed to the actual `pChangeDisplaySettingsEx` call. But we don't have the mode list there yet.