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
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
);
47 version
.dwOSVersionInfoSize
= sizeof(OSVERSIONINFOW
);
49 if (!GetVersionExW(&version
))
52 *enabled
= (version
.dwMajorVersion
> 6 || (version
.dwMajorVersion
== 6 && version
.dwMinorVersion
>= 3));
57 /**********************************************************************
58 * DwmEnableComposition (DWMAPI.102)
60 HRESULT WINAPI
DwmEnableComposition(UINT uCompositionAction
)
62 FIXME("(%d) stub\n", uCompositionAction
);
67 /**********************************************************************
68 * DwmExtendFrameIntoClientArea (DWMAPI.@)
70 HRESULT WINAPI
DwmExtendFrameIntoClientArea(HWND hwnd
, const MARGINS
* margins
)
72 FIXME("(%p, %p) stub\n", hwnd
, margins
);
77 /**********************************************************************
78 * DwmGetColorizationColor (DWMAPI.@)
80 HRESULT WINAPI
DwmGetColorizationColor(DWORD
*colorization
, BOOL opaque_blend
)
82 FIXME("(%p, %d) stub\n", colorization
, opaque_blend
);
87 /**********************************************************************
90 HRESULT WINAPI
DwmFlush(void)
94 if (!once
++) FIXME("() stub\n");
99 /**********************************************************************
100 * DwmInvalidateIconicBitmaps (DWMAPI.@)
102 HRESULT WINAPI
DwmInvalidateIconicBitmaps(HWND hwnd
)
106 if (!once
++) FIXME("(%p) stub\n", hwnd
);
111 /**********************************************************************
112 * DwmSetWindowAttribute (DWMAPI.@)
114 HRESULT WINAPI
DwmSetWindowAttribute(HWND hwnd
, DWORD attributenum
, LPCVOID attribute
, DWORD size
)
118 if (!once
++) FIXME("(%p, %x, %p, %x) stub\n", hwnd
, attributenum
, attribute
, size
);
123 /**********************************************************************
124 * DwmGetGraphicsStreamClient (DWMAPI.@)
126 HRESULT WINAPI
DwmGetGraphicsStreamClient(UINT uIndex
, UUID
*pClientUuid
)
128 FIXME("(%d, %p) stub\n", uIndex
, pClientUuid
);
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
);
153 /**********************************************************************
154 * DwmEnableMMCSS (DWMAPI.@)
156 HRESULT WINAPI
DwmEnableMMCSS(BOOL enableMMCSS
)
158 FIXME("(%d) stub\n", enableMMCSS
);
163 /**********************************************************************
164 * DwmGetGraphicsStreamTransformHint (DWMAPI.@)
166 HRESULT WINAPI
DwmGetGraphicsStreamTransformHint(UINT uIndex
, MilMatrix3x2D
*pTransform
)
168 FIXME("(%d, %p) stub\n", uIndex
, pTransform
);
173 /**********************************************************************
174 * DwmEnableBlurBehindWindow (DWMAPI.@)
176 HRESULT WINAPI
DwmEnableBlurBehindWindow(HWND hWnd
, const DWM_BLURBEHIND
*pBlurBuf
)
178 FIXME("%p %p\n", hWnd
, pBlurBuf
);
183 /**********************************************************************
184 * DwmDefWindowProc (DWMAPI.@)
186 BOOL WINAPI
DwmDefWindowProc(HWND hWnd
, UINT Msg
, WPARAM wParam
, LPARAM lParam
, LRESULT
*plResult
)
190 if (!i
++) FIXME("stub\n");
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
);
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
);
215 /**********************************************************************
216 * DwmGetCompositionTimingInfo (DWMAPI.@)
218 HRESULT WINAPI
DwmGetCompositionTimingInfo(HWND hwnd
, DWM_TIMING_INFO
*info
)
222 if(!i
++) FIXME("(%p %p)\n", hwnd
, info
);
227 /**********************************************************************
228 * DwmAttachMilContent (DWMAPI.@)
230 HRESULT WINAPI
DwmAttachMilContent(HWND hwnd
)
232 FIXME("(%p) stub\n", hwnd
);
236 /**********************************************************************
237 * DwmDetachMilContent (DWMAPI.@)
239 HRESULT WINAPI
DwmDetachMilContent(HWND hwnd
)
241 FIXME("(%p) stub\n", hwnd
);
245 /**********************************************************************
246 * DwmUpdateThumbnailProperties (DWMAPI.@)
248 HRESULT WINAPI
DwmUpdateThumbnailProperties(HTHUMBNAIL thumbnail
, const DWM_THUMBNAIL_PROPERTIES
*props
)
250 FIXME("(%p, %p) stub\n", thumbnail
, props
);
254 /**********************************************************************
255 * DwmSetPresentParameters (DWMAPI.@)
257 HRESULT WINAPI
DwmSetPresentParameters(HWND hwnd
, DWM_PRESENT_PARAMETERS
*params
)
259 FIXME("(%p %p) stub\n", hwnd
, params
);
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
);
272 /**********************************************************************
273 * DwmSetIconicThumbnail (DWMAPI.@)
275 HRESULT WINAPI
DwmSetIconicThumbnail(HWND hwnd
, HBITMAP hbmp
, DWORD flags
)
277 FIXME("(%p %p %x) stub\n", hwnd
, hbmp
, flags
);
281 /**********************************************************************
282 * DwmpGetColorizationParameters (DWMAPI.@)
284 HRESULT WINAPI
DwmpGetColorizationParameters(void *params
)
286 FIXME("(%p) stub\n", params
);