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
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
)
41 case DLL_WINE_PREATTACH
:
42 return FALSE
; /* prefer native version */
43 case DLL_PROCESS_ATTACH
:
44 DisableThreadLibraryCalls( hInstDLL
);
50 /**********************************************************************
51 * DwmIsCompositionEnabled (DWMAPI.@)
53 HRESULT WINAPI
DwmIsCompositionEnabled(BOOL
*enabled
)
58 FIXME("%p\n", enabled
);
62 TRACE("%p\n", enabled
);
68 /**********************************************************************
69 * DwmEnableComposition (DWMAPI.102)
71 HRESULT WINAPI
DwmEnableComposition(UINT uCompositionAction
)
73 FIXME("(%d) stub\n", uCompositionAction
);
78 /**********************************************************************
79 * DwmExtendFrameIntoClientArea (DWMAPI.@)
81 HRESULT WINAPI
DwmExtendFrameIntoClientArea(HWND hwnd
, const MARGINS
* margins
)
83 FIXME("(%p, %p) stub\n", hwnd
, margins
);
88 /**********************************************************************
89 * DwmGetColorizationColor (DWMAPI.@)
91 HRESULT WINAPI
DwmGetColorizationColor(DWORD
*colorization
, BOOL opaque_blend
)
93 FIXME("(%p, %d) stub\n", colorization
, opaque_blend
);
98 /**********************************************************************
101 HRESULT WINAPI
DwmFlush(void)
108 /**********************************************************************
109 * DwmInvalidateIconicBitmaps (DWMAPI.@)
111 HRESULT WINAPI
DwmInvalidateIconicBitmaps(HWND hwnd
)
115 if (!once
++) FIXME("(%p) stub\n", hwnd
);
120 /**********************************************************************
121 * DwmSetWindowAttribute (DWMAPI.@)
123 HRESULT WINAPI
DwmSetWindowAttribute(HWND hwnd
, DWORD attributenum
, LPCVOID attribute
, DWORD size
)
127 if (!once
++) FIXME("(%p, %x, %p, %x) stub\n", hwnd
, attributenum
, attribute
, size
);
132 /**********************************************************************
133 * DwmGetGraphicsStreamClient (DWMAPI.@)
135 HRESULT WINAPI
DwmGetGraphicsStreamClient(UINT uIndex
, UUID
*pClientUuid
)
137 FIXME("(%d, %p) stub\n", uIndex
, pClientUuid
);
142 /**********************************************************************
143 * DwmGetTransportAttributes (DWMAPI.@)
145 HRESULT WINAPI
DwmGetTransportAttributes(BOOL
*pfIsRemoting
, BOOL
*pfIsConnected
, DWORD
*pDwGeneration
)
147 FIXME("(%p, %p, %p) stub\n", pfIsRemoting
, pfIsConnected
, pDwGeneration
);
152 /**********************************************************************
153 * DwmUnregisterThumbnail (DWMAPI.@)
155 HRESULT WINAPI
DwmUnregisterThumbnail(HTHUMBNAIL thumbnail
)
157 FIXME("(%p) stub\n", thumbnail
);
162 /**********************************************************************
163 * DwmEnableMMCSS (DWMAPI.@)
165 HRESULT WINAPI
DwmEnableMMCSS(BOOL enableMMCSS
)
167 FIXME("(%d) stub\n", enableMMCSS
);
172 /**********************************************************************
173 * DwmGetGraphicsStreamTransformHint (DWMAPI.@)
175 HRESULT WINAPI
DwmGetGraphicsStreamTransformHint(UINT uIndex
, MilMatrix3x2D
*pTransform
)
177 FIXME("(%d, %p) stub\n", uIndex
, pTransform
);
182 /**********************************************************************
183 * DwmEnableBlurBehindWindow (DWMAPI.@)
185 HRESULT WINAPI
DwmEnableBlurBehindWindow(HWND hWnd
, const DWM_BLURBEHIND
*pBlurBuf
)
187 FIXME("%p %p\n", hWnd
, pBlurBuf
);
192 /**********************************************************************
193 * DwmDefWindowProc (DWMAPI.@)
195 BOOL WINAPI
DwmDefWindowProc(HWND hWnd
, UINT Msg
, WPARAM wParam
, LPARAM lParam
, LRESULT
*plResult
)
199 if (!i
++) FIXME("stub\n");
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
);
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
);
224 /**********************************************************************
225 * DwmGetCompositionTimingInfo (DWMAPI.@)
227 HRESULT WINAPI
DwmGetCompositionTimingInfo(HWND hwnd
, DWM_TIMING_INFO
*info
)
231 if(!i
++) FIXME("(%p %p)\n", hwnd
, info
);
236 /**********************************************************************
237 * DwmAttachMilContent (DWMAPI.@)
239 HRESULT WINAPI
DwmAttachMilContent(HWND hwnd
)
241 FIXME("(%p) stub\n", hwnd
);
245 /**********************************************************************
246 * DwmDetachMilContent (DWMAPI.@)
248 HRESULT WINAPI
DwmDetachMilContent(HWND hwnd
)
250 FIXME("(%p) stub\n", hwnd
);
254 /**********************************************************************
255 * DwmUpdateThumbnailProperties (DWMAPI.@)
257 HRESULT WINAPI
DwmUpdateThumbnailProperties(HTHUMBNAIL thumbnail
, const DWM_THUMBNAIL_PROPERTIES
*props
)
259 FIXME("(%p, %p) stub\n", thumbnail
, props
);
263 /**********************************************************************
264 * DwmSetPresentParameters (DWMAPI.@)
266 HRESULT WINAPI
DwmSetPresentParameters(HWND hwnd
, DWM_PRESENT_PARAMETERS
*params
)
268 FIXME("(%p %p) stub\n", hwnd
, params
);