iexplore: Set process DPI settings to be system awareness.

iexplore.exe doesn't have DPI awareness settings in its manifest. However, tests show that it has at
least per-monitor DPI awareness on Win10.

Signed-off-by: Zhiyi Zhang <zzhang@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Zhiyi Zhang 2021-09-07 11:10:14 +08:00 committed by Alexandre Julliard
parent 08eaf8f481
commit 8e11db9d55
1 changed files with 2 additions and 0 deletions

View File

@ -68,6 +68,8 @@ static DWORD register_iexplore(BOOL doregister)
int WINAPI wWinMain(HINSTANCE hInstance, HINSTANCE prev, WCHAR *cmdline, int show)
{
SetProcessDpiAwarenessContext(DPI_AWARENESS_CONTEXT_SYSTEM_AWARE);
if(*cmdline == '-' || *cmdline == '/') {
if(!wcsicmp(cmdline+1, L"regserver"))
return register_iexplore(TRUE);