ws2_32: Add support for hints in GetAddrInfoExW.
[wine.git] / dlls / dwmapi / dwmapi_main.c
blobb6c89f3a7f86999c3eba91436e4fda1349ce412c
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 <stdarg.h>
24 #define COBJMACROS
25 #include "windef.h"
26 #include "winbase.h"
27 #include "wingdi.h"
28 #include "winuser.h"
29 #include "dwmapi.h"
30 #include "wine/debug.h"
32 WINE_DEFAULT_DEBUG_CHANNEL(dwmapi);
35 /**********************************************************************
36 * DwmIsCompositionEnabled (DWMAPI.@)
38 HRESULT WINAPI DwmIsCompositionEnabled(BOOL *enabled)
40 OSVERSIONINFOW version;
42 TRACE("%p\n", enabled);
44 if (!enabled)
45 return E_INVALIDARG;
47 version.dwOSVersionInfoSize = sizeof(OSVERSIONINFOW);
49 if (!GetVersionExW(&version))
50 *enabled = FALSE;
51 else
52 *enabled = (version.dwMajorVersion > 6 || (version.dwMajorVersion == 6 && version.dwMinorVersion >= 3));
54 return S_OK;
57 /**********************************************************************
58 * DwmEnableComposition (DWMAPI.102)
60 HRESULT WINAPI DwmEnableComposition(UINT uCompositionAction)
62 FIXME("(%d) stub\n", uCompositionAction);
64 return S_OK;
67 /**********************************************************************
68 * DwmExtendFrameIntoClientArea (DWMAPI.@)
70 HRESULT WINAPI DwmExtendFrameIntoClientArea(HWND hwnd, const MARGINS* margins)
72 FIXME("(%p, %p) stub\n", hwnd, margins);
74 return S_OK;
77 /**********************************************************************
78 * DwmGetColorizationColor (DWMAPI.@)
80 HRESULT WINAPI DwmGetColorizationColor(DWORD *colorization, BOOL opaque_blend)
82 FIXME("(%p, %d) stub\n", colorization, opaque_blend);
84 return E_NOTIMPL;
87 /**********************************************************************
88 * DwmFlush (DWMAPI.@)
90 HRESULT WINAPI DwmFlush(void)
92 static BOOL once;
94 if (!once++) FIXME("() stub\n");
96 return E_NOTIMPL;
99 /**********************************************************************
100 * DwmInvalidateIconicBitmaps (DWMAPI.@)
102 HRESULT WINAPI DwmInvalidateIconicBitmaps(HWND hwnd)
104 static BOOL once;
106 if (!once++) FIXME("(%p) stub\n", hwnd);
108 return E_NOTIMPL;
111 /**********************************************************************
112 * DwmSetWindowAttribute (DWMAPI.@)
114 HRESULT WINAPI DwmSetWindowAttribute(HWND hwnd, DWORD attributenum, LPCVOID attribute, DWORD size)
116 static BOOL once;
118 if (!once++) FIXME("(%p, %x, %p, %x) stub\n", hwnd, attributenum, attribute, size);
120 return S_OK;
123 /**********************************************************************
124 * DwmGetGraphicsStreamClient (DWMAPI.@)
126 HRESULT WINAPI DwmGetGraphicsStreamClient(UINT uIndex, UUID *pClientUuid)
128 FIXME("(%d, %p) stub\n", uIndex, pClientUuid);
130 return E_NOTIMPL;
133 /**********************************************************************
134 * DwmGetTransportAttributes (DWMAPI.@)
136 HRESULT WINAPI DwmGetTransportAttributes(BOOL *pfIsRemoting, BOOL *pfIsConnected, DWORD *pDwGeneration)
138 FIXME("(%p, %p, %p) stub\n", pfIsRemoting, pfIsConnected, pDwGeneration);
140 return DWM_E_COMPOSITIONDISABLED;
143 /**********************************************************************
144 * DwmUnregisterThumbnail (DWMAPI.@)
146 HRESULT WINAPI DwmUnregisterThumbnail(HTHUMBNAIL thumbnail)
148 FIXME("(%p) stub\n", thumbnail);
150 return E_NOTIMPL;
153 /**********************************************************************
154 * DwmEnableMMCSS (DWMAPI.@)
156 HRESULT WINAPI DwmEnableMMCSS(BOOL enableMMCSS)
158 FIXME("(%d) stub\n", enableMMCSS);
160 return S_OK;
163 /**********************************************************************
164 * DwmGetGraphicsStreamTransformHint (DWMAPI.@)
166 HRESULT WINAPI DwmGetGraphicsStreamTransformHint(UINT uIndex, MilMatrix3x2D *pTransform)
168 FIXME("(%d, %p) stub\n", uIndex, pTransform);
170 return E_NOTIMPL;
173 /**********************************************************************
174 * DwmEnableBlurBehindWindow (DWMAPI.@)
176 HRESULT WINAPI DwmEnableBlurBehindWindow(HWND hWnd, const DWM_BLURBEHIND *pBlurBuf)
178 FIXME("%p %p\n", hWnd, pBlurBuf);
180 return E_NOTIMPL;
183 /**********************************************************************
184 * DwmDefWindowProc (DWMAPI.@)
186 BOOL WINAPI DwmDefWindowProc(HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam, LRESULT *plResult)
188 static int i;
190 if (!i++) FIXME("stub\n");
192 return FALSE;
195 /**********************************************************************
196 * DwmGetWindowAttribute (DWMAPI.@)
198 HRESULT WINAPI DwmGetWindowAttribute(HWND hwnd, DWORD attribute, PVOID pv_attribute, DWORD size)
200 FIXME("(%p %d %p %d) stub\n", hwnd, attribute, pv_attribute, size);
202 return E_NOTIMPL;
205 /**********************************************************************
206 * DwmRegisterThumbnail (DWMAPI.@)
208 HRESULT WINAPI DwmRegisterThumbnail(HWND dest, HWND src, PHTHUMBNAIL thumbnail_id)
210 FIXME("(%p %p %p) stub\n", dest, src, thumbnail_id);
212 return E_NOTIMPL;
215 /**********************************************************************
216 * DwmGetCompositionTimingInfo (DWMAPI.@)
218 HRESULT WINAPI DwmGetCompositionTimingInfo(HWND hwnd, DWM_TIMING_INFO *info)
220 static int i;
222 if(!i++) FIXME("(%p %p)\n", hwnd, info);
224 return E_NOTIMPL;
227 /**********************************************************************
228 * DwmAttachMilContent (DWMAPI.@)
230 HRESULT WINAPI DwmAttachMilContent(HWND hwnd)
232 FIXME("(%p) stub\n", hwnd);
233 return E_NOTIMPL;
236 /**********************************************************************
237 * DwmDetachMilContent (DWMAPI.@)
239 HRESULT WINAPI DwmDetachMilContent(HWND hwnd)
241 FIXME("(%p) stub\n", hwnd);
242 return E_NOTIMPL;
245 /**********************************************************************
246 * DwmUpdateThumbnailProperties (DWMAPI.@)
248 HRESULT WINAPI DwmUpdateThumbnailProperties(HTHUMBNAIL thumbnail, const DWM_THUMBNAIL_PROPERTIES *props)
250 FIXME("(%p, %p) stub\n", thumbnail, props);
251 return E_NOTIMPL;
254 /**********************************************************************
255 * DwmSetPresentParameters (DWMAPI.@)
257 HRESULT WINAPI DwmSetPresentParameters(HWND hwnd, DWM_PRESENT_PARAMETERS *params)
259 FIXME("(%p %p) stub\n", hwnd, params);
260 return S_OK;
263 /**********************************************************************
264 * DwmSetIconicLivePreviewBitmap (DWMAPI.@)
266 HRESULT WINAPI DwmSetIconicLivePreviewBitmap(HWND hwnd, HBITMAP hbmp, POINT *pos, DWORD flags)
268 FIXME("(%p %p %p %x) stub\n", hwnd, hbmp, pos, flags);
269 return S_OK;
272 /**********************************************************************
273 * DwmSetIconicThumbnail (DWMAPI.@)
275 HRESULT WINAPI DwmSetIconicThumbnail(HWND hwnd, HBITMAP hbmp, DWORD flags)
277 FIXME("(%p %p %x) stub\n", hwnd, hbmp, flags);
278 return S_OK;
281 /**********************************************************************
282 * DwmpGetColorizationParameters (DWMAPI.@)
284 HRESULT WINAPI DwmpGetColorizationParameters(void *params)
286 FIXME("(%p) stub\n", params);
287 return E_NOTIMPL;