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 /* At process attach */
36 BOOL WINAPI
DllMain(HINSTANCE hInstDLL
, DWORD fdwReason
, LPVOID lpv
)
40 case DLL_WINE_PREATTACH
:
41 return FALSE
; /* prefer native version */
42 case DLL_PROCESS_ATTACH
:
43 DisableThreadLibraryCalls( hInstDLL
);
49 /**********************************************************************
50 * DwmIsCompositionEnabled (DWMAPI.@)
52 HRESULT WINAPI
DwmIsCompositionEnabled(BOOL
*enabled
)
54 OSVERSIONINFOW version
;
56 TRACE("%p\n", enabled
);
61 version
.dwOSVersionInfoSize
= sizeof(OSVERSIONINFOW
);
63 if (!GetVersionExW(&version
))
66 *enabled
= (version
.dwMajorVersion
> 6 || (version
.dwMajorVersion
== 6 && version
.dwMinorVersion
>= 3));
71 /**********************************************************************
72 * DwmEnableComposition (DWMAPI.102)
74 HRESULT WINAPI
DwmEnableComposition(UINT uCompositionAction
)
76 FIXME("(%d) stub\n", uCompositionAction
);
81 /**********************************************************************
82 * DwmExtendFrameIntoClientArea (DWMAPI.@)
84 HRESULT WINAPI
DwmExtendFrameIntoClientArea(HWND hwnd
, const MARGINS
* margins
)
86 FIXME("(%p, %p) stub\n", hwnd
, margins
);
91 /**********************************************************************
92 * DwmGetColorizationColor (DWMAPI.@)
94 HRESULT WINAPI
DwmGetColorizationColor(DWORD
*colorization
, BOOL opaque_blend
)
96 FIXME("(%p, %d) stub\n", colorization
, opaque_blend
);
101 /**********************************************************************
102 * DwmFlush (DWMAPI.@)
104 HRESULT WINAPI
DwmFlush(void)
108 if (!once
++) FIXME("() stub\n");
113 /**********************************************************************
114 * DwmInvalidateIconicBitmaps (DWMAPI.@)
116 HRESULT WINAPI
DwmInvalidateIconicBitmaps(HWND hwnd
)
120 if (!once
++) FIXME("(%p) stub\n", hwnd
);
125 /**********************************************************************
126 * DwmSetWindowAttribute (DWMAPI.@)
128 HRESULT WINAPI
DwmSetWindowAttribute(HWND hwnd
, DWORD attributenum
, LPCVOID attribute
, DWORD size
)
132 if (!once
++) FIXME("(%p, %x, %p, %x) stub\n", hwnd
, attributenum
, attribute
, size
);
137 /**********************************************************************
138 * DwmGetGraphicsStreamClient (DWMAPI.@)
140 HRESULT WINAPI
DwmGetGraphicsStreamClient(UINT uIndex
, UUID
*pClientUuid
)
142 FIXME("(%d, %p) stub\n", uIndex
, pClientUuid
);
147 /**********************************************************************
148 * DwmGetTransportAttributes (DWMAPI.@)
150 HRESULT WINAPI
DwmGetTransportAttributes(BOOL
*pfIsRemoting
, BOOL
*pfIsConnected
, DWORD
*pDwGeneration
)
152 FIXME("(%p, %p, %p) stub\n", pfIsRemoting
, pfIsConnected
, pDwGeneration
);
154 return DWM_E_COMPOSITIONDISABLED
;
157 /**********************************************************************
158 * DwmUnregisterThumbnail (DWMAPI.@)
160 HRESULT WINAPI
DwmUnregisterThumbnail(HTHUMBNAIL thumbnail
)
162 FIXME("(%p) stub\n", thumbnail
);
167 /**********************************************************************
168 * DwmEnableMMCSS (DWMAPI.@)
170 HRESULT WINAPI
DwmEnableMMCSS(BOOL enableMMCSS
)
172 FIXME("(%d) stub\n", enableMMCSS
);
177 /**********************************************************************
178 * DwmGetGraphicsStreamTransformHint (DWMAPI.@)
180 HRESULT WINAPI
DwmGetGraphicsStreamTransformHint(UINT uIndex
, MilMatrix3x2D
*pTransform
)
182 FIXME("(%d, %p) stub\n", uIndex
, pTransform
);
187 /**********************************************************************
188 * DwmEnableBlurBehindWindow (DWMAPI.@)
190 HRESULT WINAPI
DwmEnableBlurBehindWindow(HWND hWnd
, const DWM_BLURBEHIND
*pBlurBuf
)
192 FIXME("%p %p\n", hWnd
, pBlurBuf
);
197 /**********************************************************************
198 * DwmDefWindowProc (DWMAPI.@)
200 BOOL WINAPI
DwmDefWindowProc(HWND hWnd
, UINT Msg
, WPARAM wParam
, LPARAM lParam
, LRESULT
*plResult
)
204 if (!i
++) FIXME("stub\n");
209 /**********************************************************************
210 * DwmGetWindowAttribute (DWMAPI.@)
212 HRESULT WINAPI
DwmGetWindowAttribute(HWND hwnd
, DWORD attribute
, PVOID pv_attribute
, DWORD size
)
214 FIXME("(%p %d %p %d) stub\n", hwnd
, attribute
, pv_attribute
, size
);
219 /**********************************************************************
220 * DwmRegisterThumbnail (DWMAPI.@)
222 HRESULT WINAPI
DwmRegisterThumbnail(HWND dest
, HWND src
, PHTHUMBNAIL thumbnail_id
)
224 FIXME("(%p %p %p) stub\n", dest
, src
, thumbnail_id
);
229 /**********************************************************************
230 * DwmGetCompositionTimingInfo (DWMAPI.@)
232 HRESULT WINAPI
DwmGetCompositionTimingInfo(HWND hwnd
, DWM_TIMING_INFO
*info
)
236 if(!i
++) FIXME("(%p %p)\n", hwnd
, info
);
241 /**********************************************************************
242 * DwmAttachMilContent (DWMAPI.@)
244 HRESULT WINAPI
DwmAttachMilContent(HWND hwnd
)
246 FIXME("(%p) stub\n", hwnd
);
250 /**********************************************************************
251 * DwmDetachMilContent (DWMAPI.@)
253 HRESULT WINAPI
DwmDetachMilContent(HWND hwnd
)
255 FIXME("(%p) stub\n", hwnd
);
259 /**********************************************************************
260 * DwmUpdateThumbnailProperties (DWMAPI.@)
262 HRESULT WINAPI
DwmUpdateThumbnailProperties(HTHUMBNAIL thumbnail
, const DWM_THUMBNAIL_PROPERTIES
*props
)
264 FIXME("(%p, %p) stub\n", thumbnail
, props
);
268 /**********************************************************************
269 * DwmSetPresentParameters (DWMAPI.@)
271 HRESULT WINAPI
DwmSetPresentParameters(HWND hwnd
, DWM_PRESENT_PARAMETERS
*params
)
273 FIXME("(%p %p) stub\n", hwnd
, params
);
277 /**********************************************************************
278 * DwmSetIconicLivePreviewBitmap (DWMAPI.@)
280 HRESULT WINAPI
DwmSetIconicLivePreviewBitmap(HWND hwnd
, HBITMAP hbmp
, POINT
*pos
, DWORD flags
)
282 FIXME("(%p %p %p %x) stub\n", hwnd
, hbmp
, pos
, flags
);
286 /**********************************************************************
287 * DwmSetIconicThumbnail (DWMAPI.@)
289 HRESULT WINAPI
DwmSetIconicThumbnail(HWND hwnd
, HBITMAP hbmp
, DWORD flags
)
291 FIXME("(%p %p %x) stub\n", hwnd
, hbmp
, flags
);
295 /**********************************************************************
296 * DwmpGetColorizationParameters (DWMAPI.@)
298 HRESULT WINAPI
DwmpGetColorizationParameters(void *params
)
300 FIXME("(%p) stub\n", params
);