This allows access to the in-process cached monitor list and reduces the number of registry calls issued for QueryDisplayConfig (in case of no change) from `4 x monitors` to `1`.
--
v7: win32u: Cleanup naming and log messages for QueryDisplayConfig.
win32u: Move QueryDisplayConfig from user32.
https://gitlab.winehq.org/wine/wine/-/merge_requests/2957
On Sun Jun 11 02:48:44 2023 +0000, Fabian Maurer wrote:
> There is exception handling:
> ```
> #include "wine/exception.h"
> __TRY
> {
> }
> __EXCEPT_PAGE_FAULT
> {
> }
> __ENDTRY
> ```
> Though maybe there is a reason that is not used in tests, maybe one of
> the devs can chime in.
It needs compiler support. I don't think you will be able to write a test for this easily, manually checking that it actually crashes on Windows is enough.
--
https://gitlab.winehq.org/wine/wine/-/merge_requests/3030#note_35373