Module: wine Branch: master Commit: 715b9d86f4ecffd81afa87704ff402ca3b0c1595 URL: https://gitlab.winehq.org/wine/wine/-/commit/715b9d86f4ecffd81afa87704ff402c...
Author: Bernhard Übelacker bernhardu@mailbox.org Date: Wed Dec 13 23:23:58 2023 +0100
uxtheme: Add stub for IsDarkModeAllowedForWindow.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=56006
---
dlls/uxtheme/system.c | 10 ++++++++++ dlls/uxtheme/uxtheme.spec | 1 + 2 files changed, 11 insertions(+)
diff --git a/dlls/uxtheme/system.c b/dlls/uxtheme/system.c index adf90a12cfb..3c0eb3c66f4 100644 --- a/dlls/uxtheme/system.c +++ b/dlls/uxtheme/system.c @@ -1315,3 +1315,13 @@ int WINAPI SetPreferredAppMode(int app_mode) FIXME("%d: stub\n", app_mode); return 0; } + +/********************************************************************** + * IsDarkModeAllowedForWindow (UXTHEME.137) + * + */ +BOOL WINAPI IsDarkModeAllowedForWindow(HWND hwnd) +{ + FIXME("%p: stub\n", hwnd); + return FALSE; +} diff --git a/dlls/uxtheme/uxtheme.spec b/dlls/uxtheme/uxtheme.spec index 26dc54d5805..bacc4869e69 100644 --- a/dlls/uxtheme/uxtheme.spec +++ b/dlls/uxtheme/uxtheme.spec @@ -46,6 +46,7 @@ 132 stdcall -noname ShouldAppsUseDarkMode() 133 stdcall -noname AllowDarkModeForWindow(ptr long) 135 stdcall -noname SetPreferredAppMode(long) +137 stdcall -noname IsDarkModeAllowedForWindow(ptr) 138 stdcall -noname ShouldSystemUseDarkMode()
# Standard functions