widl: Silence a gcc warning.
[wine.git] / dlls / dwmapi / dwmapi_main.c
blob0e6ba3bed1c5494dd060164ccd7a28d30b8b0208
1 /*
2 * Dwmapi
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 #include "config.h"
23 #include <stdarg.h>
25 #define COBJMACROS
26 #include "windef.h"
27 #include "winbase.h"
28 #include "wingdi.h"
29 #include "winuser.h"
30 #include "dwmapi.h"
31 #include "wine/debug.h"
33 WINE_DEFAULT_DEBUG_CHANNEL(dwmapi);
36 /* At process attach */
37 BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD fdwReason, LPVOID lpv)
39 switch(fdwReason)
41 case DLL_WINE_PREATTACH:
42 return FALSE; /* prefer native version */
43 case DLL_PROCESS_ATTACH:
44 DisableThreadLibraryCalls( hInstDLL );
45 break;
47 return TRUE;
50 /**********************************************************************
51 * DwmIsCompositionEnabled (DWMAPI.@)
53 HRESULT WINAPI DwmIsCompositionEnabled(BOOL *enabled)
55 static int once;
56 if (!once)
58 FIXME("%p\n", enabled);
59 once = 1;
61 else
62 TRACE("%p\n", enabled);
64 *enabled = FALSE;
65 return S_OK;
68 /**********************************************************************
69 * DwmEnableComposition (DWMAPI.102)
71 HRESULT WINAPI DwmEnableComposition(UINT uCompositionAction)
73 FIXME("(%d) stub\n", uCompositionAction);
75 return S_OK;
78 /**********************************************************************
79 * DwmExtendFrameIntoClientArea (DWMAPI.@)
81 HRESULT WINAPI DwmExtendFrameIntoClientArea(HWND hwnd, const MARGINS* margins)
83 FIXME("(%p, %p) stub\n", hwnd, margins);
85 return E_NOTIMPL;
88 /**********************************************************************
89 * DwmGetColorizationColor (DWMAPI.@)
91 HRESULT WINAPI DwmGetColorizationColor(DWORD *colorization, BOOL opaque_blend)
93 FIXME("(%p, %d) stub\n", colorization, opaque_blend);
95 return E_NOTIMPL;
98 /**********************************************************************
99 * DwmFlush (DWMAPI.@)
101 HRESULT WINAPI DwmFlush(void)
103 FIXME("() stub\n");
105 return E_NOTIMPL;
108 /**********************************************************************
109 * DwmInvalidateIconicBitmaps (DWMAPI.@)
111 HRESULT WINAPI DwmInvalidateIconicBitmaps(HWND hwnd)
113 static BOOL once;
115 if (!once++) FIXME("(%p) stub\n", hwnd);
117 return E_NOTIMPL;
120 /**********************************************************************
121 * DwmSetWindowAttribute (DWMAPI.@)
123 HRESULT WINAPI DwmSetWindowAttribute(HWND hwnd, DWORD attributenum, LPCVOID attribute, DWORD size)
125 static BOOL once;
127 if (!once++) FIXME("(%p, %x, %p, %x) stub\n", hwnd, attributenum, attribute, size);
129 return S_OK;
132 /**********************************************************************
133 * DwmGetGraphicsStreamClient (DWMAPI.@)
135 HRESULT WINAPI DwmGetGraphicsStreamClient(UINT uIndex, UUID *pClientUuid)
137 FIXME("(%d, %p) stub\n", uIndex, pClientUuid);
139 return E_NOTIMPL;
142 /**********************************************************************
143 * DwmGetTransportAttributes (DWMAPI.@)
145 HRESULT WINAPI DwmGetTransportAttributes(BOOL *pfIsRemoting, BOOL *pfIsConnected, DWORD *pDwGeneration)
147 FIXME("(%p, %p, %p) stub\n", pfIsRemoting, pfIsConnected, pDwGeneration);
149 return E_NOTIMPL;
152 /**********************************************************************
153 * DwmUnregisterThumbnail (DWMAPI.@)
155 HRESULT WINAPI DwmUnregisterThumbnail(HTHUMBNAIL thumbnail)
157 FIXME("(%p) stub\n", thumbnail);
159 return E_NOTIMPL;
162 /**********************************************************************
163 * DwmEnableMMCSS (DWMAPI.@)
165 HRESULT WINAPI DwmEnableMMCSS(BOOL enableMMCSS)
167 FIXME("(%d) stub\n", enableMMCSS);
169 return S_OK;
172 /**********************************************************************
173 * DwmGetGraphicsStreamTransformHint (DWMAPI.@)
175 HRESULT WINAPI DwmGetGraphicsStreamTransformHint(UINT uIndex, MilMatrix3x2D *pTransform)
177 FIXME("(%d, %p) stub\n", uIndex, pTransform);
179 return E_NOTIMPL;
182 /**********************************************************************
183 * DwmEnableBlurBehindWindow (DWMAPI.@)
185 HRESULT WINAPI DwmEnableBlurBehindWindow(HWND hWnd, const DWM_BLURBEHIND *pBlurBuf)
187 FIXME("%p %p\n", hWnd, pBlurBuf);
189 return E_NOTIMPL;
192 /**********************************************************************
193 * DwmDefWindowProc (DWMAPI.@)
195 BOOL WINAPI DwmDefWindowProc(HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam, LRESULT *plResult)
197 static int i;
199 if (!i++) FIXME("stub\n");
201 return FALSE;
204 /**********************************************************************
205 * DwmGetWindowAttribute (DWMAPI.@)
207 HRESULT WINAPI DwmGetWindowAttribute(HWND hwnd, DWORD attribute, PVOID pv_attribute, DWORD size)
209 FIXME("(%p %d %p %d) stub\n", hwnd, attribute, pv_attribute, size);
211 return E_NOTIMPL;
214 /**********************************************************************
215 * DwmRegisterThumbnail (DWMAPI.@)
217 HRESULT WINAPI DwmRegisterThumbnail(HWND dest, HWND src, PHTHUMBNAIL thumbnail_id)
219 FIXME("(%p %p %p) stub\n", dest, src, thumbnail_id);
221 return E_NOTIMPL;
224 /**********************************************************************
225 * DwmGetCompositionTimingInfo (DWMAPI.@)
227 HRESULT WINAPI DwmGetCompositionTimingInfo(HWND hwnd, DWM_TIMING_INFO *info)
229 static int i;
231 if(!i++) FIXME("(%p %p)\n", hwnd, info);
233 return E_NOTIMPL;
236 /**********************************************************************
237 * DwmAttachMilContent (DWMAPI.@)
239 HRESULT WINAPI DwmAttachMilContent(HWND hwnd)
241 FIXME("(%p) stub\n", hwnd);
242 return E_NOTIMPL;
245 /**********************************************************************
246 * DwmDetachMilContent (DWMAPI.@)
248 HRESULT WINAPI DwmDetachMilContent(HWND hwnd)
250 FIXME("(%p) stub\n", hwnd);
251 return E_NOTIMPL;
254 /**********************************************************************
255 * DwmUpdateThumbnailProperties (DWMAPI.@)
257 HRESULT WINAPI DwmUpdateThumbnailProperties(HTHUMBNAIL thumbnail, const DWM_THUMBNAIL_PROPERTIES *props)
259 FIXME("(%p, %p) stub\n", thumbnail, props);
260 return E_NOTIMPL;
263 /**********************************************************************
264 * DwmSetPresentParameters (DWMAPI.@)
266 HRESULT WINAPI DwmSetPresentParameters(HWND hwnd, DWM_PRESENT_PARAMETERS *params)
268 FIXME("(%p %p) stub\n", hwnd, params);
269 return S_OK;
272 /**********************************************************************
273 * DwmSetIconicLivePreviewBitmap (DWMAPI.@)
275 HRESULT WINAPI DwmSetIconicLivePreviewBitmap(HWND hwnd, HBITMAP hbmp, POINT *pos, DWORD flags)
277 FIXME("(%p %p %p %x) stub\n", hwnd, hbmp, pos, flags);
278 return S_OK;
281 /**********************************************************************
282 * DwmSetIconicThumbnail (DWMAPI.@)
284 HRESULT WINAPI DwmSetIconicThumbnail(HWND hwnd, HBITMAP hbmp, DWORD flags)
286 FIXME("(%p %p %x) stub\n", hwnd, hbmp, flags);
287 return S_OK;