4 * Copyright 2007 Andras Kovacs
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
22 #define WIN32_NO_STATUS
24 #define COM_NO_WINDOWS_H
29 #define NONAMELESSUNION
30 #define NONAMELESSSTRUCT
37 #include <wine/debug.h>
39 WINE_DEFAULT_DEBUG_CHANNEL(dwmapi
);
42 /* At process attach */
43 BOOL WINAPI
DllMain(HINSTANCE hInstDLL
, DWORD fdwReason
, LPVOID lpv
)
47 case DLL_WINE_PREATTACH
:
48 return FALSE
; /* prefer native version */
49 case DLL_PROCESS_ATTACH
:
50 DisableThreadLibraryCalls( hInstDLL
);
56 /**********************************************************************
57 * DwmIsCompositionEnabled (DWMAPI.@)
59 HRESULT WINAPI
DwmIsCompositionEnabled(BOOL
*enabled
)
64 FIXME("%p\n", enabled
);
68 TRACE("%p\n", enabled
);
74 /**********************************************************************
75 * DwmEnableComposition (DWMAPI.102)
77 HRESULT WINAPI
DwmEnableComposition(UINT uCompositionAction
)
79 FIXME("(%d) stub\n", uCompositionAction
);
84 /**********************************************************************
85 * DwmExtendFrameIntoClientArea (DWMAPI.@)
87 HRESULT WINAPI
DwmExtendFrameIntoClientArea(HWND hwnd
, const MARGINS
* margins
)
89 FIXME("(%p, %p) stub\n", hwnd
, margins
);
94 /**********************************************************************
95 * DwmGetColorizationColor (DWMAPI.@)
97 HRESULT WINAPI
DwmGetColorizationColor(DWORD
*colorization
, BOOL opaque_blend
)
99 FIXME("(%p, %d) stub\n", colorization
, opaque_blend
);
104 /**********************************************************************
105 * DwmFlush (DWMAPI.@)
107 HRESULT WINAPI
DwmFlush(void)
114 /**********************************************************************
115 * DwmInvalidateIconicBitmaps (DWMAPI.@)
117 HRESULT WINAPI
DwmInvalidateIconicBitmaps(HWND hwnd
)
121 if (!once
++) FIXME("(%p) stub\n", hwnd
);
126 /**********************************************************************
127 * DwmSetWindowAttribute (DWMAPI.@)
129 HRESULT WINAPI
DwmSetWindowAttribute(HWND hwnd
, DWORD attributenum
, LPCVOID attribute
, DWORD size
)
133 if (!once
++) FIXME("(%p, %x, %p, %x) stub\n", hwnd
, attributenum
, attribute
, size
);
138 /**********************************************************************
139 * DwmGetGraphicsStreamClient (DWMAPI.@)
141 HRESULT WINAPI
DwmGetGraphicsStreamClient(UINT uIndex
, UUID
*pClientUuid
)
143 FIXME("(%d, %p) stub\n", uIndex
, pClientUuid
);
148 /**********************************************************************
149 * DwmGetTransportAttributes (DWMAPI.@)
151 HRESULT WINAPI
DwmGetTransportAttributes(BOOL
*pfIsRemoting
, BOOL
*pfIsConnected
, DWORD
*pDwGeneration
)
153 FIXME("(%p, %p, %p) stub\n", pfIsRemoting
, pfIsConnected
, pDwGeneration
);
158 /**********************************************************************
159 * DwmUnregisterThumbnail (DWMAPI.@)
161 HRESULT WINAPI
DwmUnregisterThumbnail(HTHUMBNAIL thumbnail
)
163 FIXME("(%p) stub\n", thumbnail
);
168 /**********************************************************************
169 * DwmEnableMMCSS (DWMAPI.@)
171 HRESULT WINAPI
DwmEnableMMCSS(BOOL enableMMCSS
)
173 FIXME("(%d) stub\n", enableMMCSS
);
178 /**********************************************************************
179 * DwmGetGraphicsStreamTransformHint (DWMAPI.@)
181 HRESULT WINAPI
DwmGetGraphicsStreamTransformHint(UINT uIndex
, MilMatrix3x2D
*pTransform
)
183 FIXME("(%d, %p) stub\n", uIndex
, pTransform
);
188 /**********************************************************************
189 * DwmEnableBlurBehindWindow (DWMAPI.@)
191 HRESULT WINAPI
DwmEnableBlurBehindWindow(HWND hWnd
, const DWM_BLURBEHIND
*pBlurBuf
)
193 FIXME("%p %p\n", hWnd
, pBlurBuf
);
198 /**********************************************************************
199 * DwmDefWindowProc (DWMAPI.@)
201 BOOL WINAPI
DwmDefWindowProc(HWND hWnd
, UINT Msg
, WPARAM wParam
, LPARAM lParam
, LRESULT
*plResult
)
205 if (!i
++) FIXME("stub\n");
210 /**********************************************************************
211 * DwmGetWindowAttribute (DWMAPI.@)
213 HRESULT WINAPI
DwmGetWindowAttribute(HWND hwnd
, DWORD attribute
, PVOID pv_attribute
, DWORD size
)
215 FIXME("(%p %d %p %d) stub\n", hwnd
, attribute
, pv_attribute
, size
);
220 /**********************************************************************
221 * DwmRegisterThumbnail (DWMAPI.@)
223 HRESULT WINAPI
DwmRegisterThumbnail(HWND dest
, HWND src
, PHTHUMBNAIL thumbnail_id
)
225 FIXME("(%p %p %p) stub\n", dest
, src
, thumbnail_id
);
230 /**********************************************************************
231 * DwmGetCompositionTimingInfo (DWMAPI.@)
233 HRESULT WINAPI
DwmGetCompositionTimingInfo(HWND hwnd
, DWM_TIMING_INFO
*info
)
237 if(!i
++) FIXME("(%p %p)\n", hwnd
, info
);