Fix for https://bugs.winehq.org/show_bug.cgi?id=43177 Classic Shell uses this undocumented api, some tests are in last patch
Signed-off-by: Louis Lenders xerox.xerox2000x@gmail.com --- dlls/dwmapi/dwmapi.spec | 2 +- dlls/dwmapi/dwmapi_main.c | 23 +++++++++++++++++++++++ 2 files changed, 24 insertions(+), 1 deletion(-)
diff --git a/dlls/dwmapi/dwmapi.spec b/dlls/dwmapi/dwmapi.spec index 37447195b3..efddf2bf9a 100644 --- a/dlls/dwmapi/dwmapi.spec +++ b/dlls/dwmapi/dwmapi.spec @@ -20,7 +20,7 @@ 124 stub @ 125 stub DwmpDxBindSwapChain 126 stub DwmpDxUnbindSwapChain -127 stub @ +127 stdcall DwmpGetColorizationParameters(ptr) 128 stub DwmpDxgiIsThreadDesktopComposited 129 stub @ 130 stub @ diff --git a/dlls/dwmapi/dwmapi_main.c b/dlls/dwmapi/dwmapi_main.c index 76e225f791..e11b0fcaf1 100644 --- a/dlls/dwmapi/dwmapi_main.c +++ b/dlls/dwmapi/dwmapi_main.c @@ -286,3 +286,26 @@ HRESULT WINAPI DwmSetIconicThumbnail(HWND hwnd, HBITMAP hbmp, DWORD flags) FIXME("(%p %p %x) stub\n", hwnd, hbmp, flags); return S_OK; }; + +typedef struct _DWMCOLORIZATIONPARAMS { + DWORD color; + DWORD glow; + DWORD color_int; + DWORD glow_int; + DWORD blur_int; + DWORD refl_int; + DWORD opaque; +} DWMCOLORIZATIONPARAMS; + +/********************************************************************** + * DwmpGetColorizationParameters (DWMAPI.127) + */ +HRESULT WINAPI DwmpGetColorizationParameters(DWMCOLORIZATIONPARAMS *param) +{ + if (!param) + return E_INVALIDARG; + + memset(param, 0, sizeof(DWMCOLORIZATIONPARAMS)); + FIXME("(%p)\n", param); + return DWM_E_COMPOSITIONDISABLED; +}