dwmapi: Add stub for DwmDefWindowProc

André Hentschel nerv at dawncrow.de
Mon Aug 9 11:50:12 CDT 2010


Fix for Bug 20443
---
 dlls/dwmapi/dwmapi.spec   |    2 +-
 dlls/dwmapi/dwmapi_main.c |   12 ++++++++++++
 include/dwmapi.h          |    1 +
 3 files changed, 14 insertions(+), 1 deletions(-)

diff --git a/dlls/dwmapi/dwmapi.spec b/dlls/dwmapi/dwmapi.spec
index ea41e0c..be854f5 100644
--- a/dlls/dwmapi/dwmapi.spec
+++ b/dlls/dwmapi/dwmapi.spec
@@ -21,7 +21,7 @@
 120 stub @
 
 @ stub DwmAttachMilContent
-@ stub DwmDefWindowProc
+@ stdcall DwmDefWindowProc(ptr long long long)
 @ stub DwmDetachMilContent
 @ stdcall DwmEnableBlurBehindWindow(ptr ptr)
 @ stdcall DwmEnableMMCSS(long)
diff --git a/dlls/dwmapi/dwmapi_main.c b/dlls/dwmapi/dwmapi_main.c
index fcc52c3..fc0a792 100644
--- a/dlls/dwmapi/dwmapi_main.c
+++ b/dlls/dwmapi/dwmapi_main.c
@@ -176,3 +176,15 @@ HRESULT WINAPI DwmEnableBlurBehindWindow(HWND hWnd, const DWM_BLURBEHIND *pBlurB
 
     return E_NOTIMPL;
 }
+
+/**********************************************************************
+ *           DwmDefWindowProc         (DWMAPI.@)
+ */
+BOOL WINAPI DwmDefWindowProc(HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam, LRESULT *plResult)
+{
+    static int i;
+
+    if (!i++) FIXME("stub\n");
+
+    return FALSE;
+}
diff --git a/include/dwmapi.h b/include/dwmapi.h
index 2cf5d6d..ecc515c 100644
--- a/include/dwmapi.h
+++ b/include/dwmapi.h
@@ -53,6 +53,7 @@ typedef struct _DWM_BLURBEHIND
     BOOL fTransitionOnMaximized;
 } DWM_BLURBEHIND, *PDWM_BLURBEHIND;
 
+DWMAPI DwmDefWindowProc(HWND, UINT, WPARAM, LPARAM, LRESULT*);
 DWMAPI DwmEnableBlurBehindWindow(HWND, const DWM_BLURBEHIND *);
 DWMAPI DwmEnableComposition(UINT);
 DWMAPI DwmEnableMMCSS(BOOL);
-- 

Best Regards, André Hentschel



More information about the wine-patches mailing list