user32: Implement GetDpiAwarenessContextForProcess.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=57169
This commit is contained in:
Alistair Leslie-Hughes 2024-11-12 17:05:46 +11:00 committed by Alexandre Julliard
parent 194901b592
commit a93623eced
Notes: Alexandre Julliard 2024-11-13 22:29:26 +01:00
Approved-by: Alexandre Julliard (@julliard)
Merge-Request: https://gitlab.winehq.org/wine/wine/merge_requests/6802
2 changed files with 8 additions and 1 deletions

View file

@ -558,7 +558,7 @@
@ stdcall GetDlgItemTextA(long long ptr long)
@ stdcall GetDlgItemTextW(long long ptr long)
@ stdcall GetDoubleClickTime() NtUserGetDoubleClickTime
# @ stub GetDpiAwarenessContextForProcess
@ stdcall GetDpiAwarenessContextForProcess(ptr)
@ stdcall GetDpiForMonitorInternal(long long ptr ptr) NtUserGetDpiForMonitor
@ stdcall GetDpiForSystem()
@ stdcall GetDpiForWindow(long)

View file

@ -615,6 +615,13 @@ DPI_AWARENESS_CONTEXT WINAPI GetWindowDpiAwarenessContext( HWND hwnd )
return LongToHandle( NtUserGetWindowDpiAwarenessContext( hwnd ) );
}
/***********************************************************************
* GetDpiAwarenessContextForProcess (USER32.@)
*/
DPI_AWARENESS_CONTEXT WINAPI GetDpiAwarenessContextForProcess(HANDLE process)
{
return LongToHandle( NtUserGetProcessDpiAwarenessContext( process ) );
}
/***********************************************************************
* GetWindowDpiHostingBehavior (USER32.@)