gdi32: Try to parse font names without FreeType.
[wine/zf.git] / dlls / dwmapi / dwmapi_main.c
blob45c33c2169a8f7789a3710982c84542377817dd9
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 /* At process attach */
36 BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD fdwReason, LPVOID lpv)
38 switch(fdwReason)
40 case DLL_WINE_PREATTACH:
41 return FALSE; /* prefer native version */
42 case DLL_PROCESS_ATTACH:
43 DisableThreadLibraryCalls( hInstDLL );
44 break;
46 return TRUE;
49 /**********************************************************************
50 * DwmIsCompositionEnabled (DWMAPI.@)
52 HRESULT WINAPI DwmIsCompositionEnabled(BOOL *enabled)
54 OSVERSIONINFOW version;
56 TRACE("%p\n", enabled);
58 if (!enabled)
59 return E_INVALIDARG;
61 version.dwOSVersionInfoSize = sizeof(OSVERSIONINFOW);
63 if (!GetVersionExW(&version))
64 *enabled = FALSE;
65 else
66 *enabled = (version.dwMajorVersion > 6 || (version.dwMajorVersion == 6 && version.dwMinorVersion >= 3));
68 return S_OK;
71 /**********************************************************************
72 * DwmEnableComposition (DWMAPI.102)
74 HRESULT WINAPI DwmEnableComposition(UINT uCompositionAction)
76 FIXME("(%d) stub\n", uCompositionAction);
78 return S_OK;
81 /**********************************************************************
82 * DwmExtendFrameIntoClientArea (DWMAPI.@)
84 HRESULT WINAPI DwmExtendFrameIntoClientArea(HWND hwnd, const MARGINS* margins)
86 FIXME("(%p, %p) stub\n", hwnd, margins);
88 return S_OK;
91 /**********************************************************************
92 * DwmGetColorizationColor (DWMAPI.@)
94 HRESULT WINAPI DwmGetColorizationColor(DWORD *colorization, BOOL opaque_blend)
96 FIXME("(%p, %d) stub\n", colorization, opaque_blend);
98 return E_NOTIMPL;
101 /**********************************************************************
102 * DwmFlush (DWMAPI.@)
104 HRESULT WINAPI DwmFlush(void)
106 static BOOL once;
108 if (!once++) FIXME("() stub\n");
110 return E_NOTIMPL;
113 /**********************************************************************
114 * DwmInvalidateIconicBitmaps (DWMAPI.@)
116 HRESULT WINAPI DwmInvalidateIconicBitmaps(HWND hwnd)
118 static BOOL once;
120 if (!once++) FIXME("(%p) stub\n", hwnd);
122 return E_NOTIMPL;
125 /**********************************************************************
126 * DwmSetWindowAttribute (DWMAPI.@)
128 HRESULT WINAPI DwmSetWindowAttribute(HWND hwnd, DWORD attributenum, LPCVOID attribute, DWORD size)
130 static BOOL once;
132 if (!once++) FIXME("(%p, %x, %p, %x) stub\n", hwnd, attributenum, attribute, size);
134 return S_OK;
137 /**********************************************************************
138 * DwmGetGraphicsStreamClient (DWMAPI.@)
140 HRESULT WINAPI DwmGetGraphicsStreamClient(UINT uIndex, UUID *pClientUuid)
142 FIXME("(%d, %p) stub\n", uIndex, pClientUuid);
144 return E_NOTIMPL;
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);
164 return E_NOTIMPL;
167 /**********************************************************************
168 * DwmEnableMMCSS (DWMAPI.@)
170 HRESULT WINAPI DwmEnableMMCSS(BOOL enableMMCSS)
172 FIXME("(%d) stub\n", enableMMCSS);
174 return S_OK;
177 /**********************************************************************
178 * DwmGetGraphicsStreamTransformHint (DWMAPI.@)
180 HRESULT WINAPI DwmGetGraphicsStreamTransformHint(UINT uIndex, MilMatrix3x2D *pTransform)
182 FIXME("(%d, %p) stub\n", uIndex, pTransform);
184 return E_NOTIMPL;
187 /**********************************************************************
188 * DwmEnableBlurBehindWindow (DWMAPI.@)
190 HRESULT WINAPI DwmEnableBlurBehindWindow(HWND hWnd, const DWM_BLURBEHIND *pBlurBuf)
192 FIXME("%p %p\n", hWnd, pBlurBuf);
194 return E_NOTIMPL;
197 /**********************************************************************
198 * DwmDefWindowProc (DWMAPI.@)
200 BOOL WINAPI DwmDefWindowProc(HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam, LRESULT *plResult)
202 static int i;
204 if (!i++) FIXME("stub\n");
206 return FALSE;
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);
216 return E_NOTIMPL;
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);
226 return E_NOTIMPL;
229 /**********************************************************************
230 * DwmGetCompositionTimingInfo (DWMAPI.@)
232 HRESULT WINAPI DwmGetCompositionTimingInfo(HWND hwnd, DWM_TIMING_INFO *info)
234 static int i;
236 if(!i++) FIXME("(%p %p)\n", hwnd, info);
238 return E_NOTIMPL;
241 /**********************************************************************
242 * DwmAttachMilContent (DWMAPI.@)
244 HRESULT WINAPI DwmAttachMilContent(HWND hwnd)
246 FIXME("(%p) stub\n", hwnd);
247 return E_NOTIMPL;
250 /**********************************************************************
251 * DwmDetachMilContent (DWMAPI.@)
253 HRESULT WINAPI DwmDetachMilContent(HWND hwnd)
255 FIXME("(%p) stub\n", hwnd);
256 return E_NOTIMPL;
259 /**********************************************************************
260 * DwmUpdateThumbnailProperties (DWMAPI.@)
262 HRESULT WINAPI DwmUpdateThumbnailProperties(HTHUMBNAIL thumbnail, const DWM_THUMBNAIL_PROPERTIES *props)
264 FIXME("(%p, %p) stub\n", thumbnail, props);
265 return E_NOTIMPL;
268 /**********************************************************************
269 * DwmSetPresentParameters (DWMAPI.@)
271 HRESULT WINAPI DwmSetPresentParameters(HWND hwnd, DWM_PRESENT_PARAMETERS *params)
273 FIXME("(%p %p) stub\n", hwnd, params);
274 return S_OK;
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);
283 return S_OK;
286 /**********************************************************************
287 * DwmSetIconicThumbnail (DWMAPI.@)
289 HRESULT WINAPI DwmSetIconicThumbnail(HWND hwnd, HBITMAP hbmp, DWORD flags)
291 FIXME("(%p %p %x) stub\n", hwnd, hbmp, flags);
292 return S_OK;
295 /**********************************************************************
296 * DwmpGetColorizationParameters (DWMAPI.@)
298 HRESULT WINAPI DwmpGetColorizationParameters(void *params)
300 FIXME("(%p) stub\n", params);
301 return E_NOTIMPL;