[USER32] Introduce user32_vista and stubplement GetDpiForWindow() (#6208)

Add user32_vista.dll to introduce new NT6+ User32 features without changing the existing User32.dll when compiled as NT5.x. Also implements a stub for GetDpiForWindow(). The GetDpiForWindow() function will be required to Wine-sync common controls to modern Wine versions.

Changes:
Expose GetDpiForWindow() function and USER_DEFAULT_SCREEN_DPI to appropriate versions in winuser.h
Introduce a basic user32_vista library that can be expanded as needed.
This commit is contained in:
Carl J. Bialorucki 2024-06-04 10:19:32 -06:00 committed by GitHub
parent 063997f2e0
commit ad73e17418
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 89 additions and 1 deletions

View file

@ -4924,6 +4924,15 @@ BOOL WINAPI GetWindowInfo(_In_ HWND, _Inout_ PWINDOWINFO);
BOOL WINAPI GetMonitorInfoA(_In_ HMONITOR, _Inout_ LPMONITORINFO);
BOOL WINAPI GetMonitorInfoW(_In_ HMONITOR, _Inout_ LPMONITORINFO);
#if (_WIN32_WINNT >= _WIN32_WINNT_VISTA)
#define USER_DEFAULT_SCREEN_DPI 96
#endif /* _WIN32_WINNT >= _WIN32_WINNT_VISTA */
#if (_WIN32_WINNT >= 0x0605) /* Windows 10 pre-Threshold */
UINT WINAPI GetDpiForSystem(VOID);
UINT WINAPI GetDpiForWindow(_In_ HWND hwnd);
#endif /* _WIN32_WINNT >= 0x0605 */
UINT
WINAPI
GetWindowModuleFileNameA(