diff --git a/dlls/shcore/main.c b/dlls/shcore/main.c index 653694a04dc..a64b6661d23 100644 --- a/dlls/shcore/main.c +++ b/dlls/shcore/main.c @@ -2531,6 +2531,18 @@ HRESULT WINAPI RegisterScaleChangeEvent(HANDLE handle, DWORD_PTR *cookie) return E_NOTIMPL; } +/************************************************************************* + * RegisterScaleChangeNotifications [SHCORE.@] + */ +HRESULT WINAPI RegisterScaleChangeNotifications(DISPLAY_DEVICE_TYPE display_device, HWND hwnd, UINT msg, DWORD *cookie) +{ + FIXME("(%d, %p, %u, %p) stub\n", display_device, hwnd, msg, cookie); + + if (cookie) *cookie = 0; + + return E_NOTIMPL; +} + /************************************************************************* * CreateRandomAccessStreamOverStream [SHCORE.@] */ diff --git a/dlls/shcore/shcore.spec b/dlls/shcore/shcore.spec index fc265d8215a..102e3014bce 100644 --- a/dlls/shcore/shcore.spec +++ b/dlls/shcore/shcore.spec @@ -33,7 +33,7 @@ # @ stub RecordFeatureError # @ stub RecordFeatureUsage @ stdcall RegisterScaleChangeEvent(ptr ptr) -@ stub RegisterScaleChangeNotifications +@ stdcall RegisterScaleChangeNotifications(long ptr long ptr) @ stub RevokeScaleChangeNotifications @ stdcall SHAnsiToAnsi(str ptr long) @ stdcall SHAnsiToUnicode(str ptr long) diff --git a/include/shellscalingapi.h b/include/shellscalingapi.h index 4689d83e7d9..147195d2cba 100644 --- a/include/shellscalingapi.h +++ b/include/shellscalingapi.h @@ -46,6 +46,7 @@ HRESULT WINAPI GetDpiForMonitor(HMONITOR,MONITOR_DPI_TYPE,UINT*,UINT*); HRESULT WINAPI GetProcessDpiAwareness(HANDLE,PROCESS_DPI_AWARENESS*); DEVICE_SCALE_FACTOR WINAPI GetScaleFactorForDevice(DISPLAY_DEVICE_TYPE device_type); HRESULT WINAPI GetScaleFactorForMonitor(HMONITOR,DEVICE_SCALE_FACTOR*); +HRESULT WINAPI RegisterScaleChangeNotifications(DISPLAY_DEVICE_TYPE,HWND,UINT,DWORD*); HRESULT WINAPI SetProcessDpiAwareness(PROCESS_DPI_AWARENESS); #endif /* __WINE_SHELLSCALINGAPI_H */