ReactOS 0.4.16-dev-122-g325d74c
dwmapi_main.c File Reference
#include <stdarg.h>
#include "winternl.h"
#include "windef.h"
#include "winbase.h"
#include "wingdi.h"
#include "winuser.h"
#include "dwmapi.h"
#include "wine/debug.h"
Include dependency graph for dwmapi_main.c:

Go to the source code of this file.

Macros

#define COBJMACROS
 

Functions

 WINE_DEFAULT_DEBUG_CHANNEL (dwmapi)
 
HRESULT WINAPI DwmIsCompositionEnabled (BOOL *enabled)
 
HRESULT WINAPI DwmEnableComposition (UINT uCompositionAction)
 
HRESULT WINAPI DwmExtendFrameIntoClientArea (HWND hwnd, const MARGINS *margins)
 
HRESULT WINAPI DwmGetColorizationColor (DWORD *colorization, BOOL *opaque_blend)
 
HRESULT WINAPI DwmFlush (void)
 
HRESULT WINAPI DwmInvalidateIconicBitmaps (HWND hwnd)
 
HRESULT WINAPI DwmSetWindowAttribute (HWND hwnd, DWORD attributenum, LPCVOID attribute, DWORD size)
 
HRESULT WINAPI DwmGetGraphicsStreamClient (UINT uIndex, UUID *pClientUuid)
 
HRESULT WINAPI DwmGetTransportAttributes (BOOL *pfIsRemoting, BOOL *pfIsConnected, DWORD *pDwGeneration)
 
HRESULT WINAPI DwmUnregisterThumbnail (HTHUMBNAIL thumbnail)
 
HRESULT WINAPI DwmEnableMMCSS (BOOL enableMMCSS)
 
HRESULT WINAPI DwmGetGraphicsStreamTransformHint (UINT uIndex, MilMatrix3x2D *pTransform)
 
HRESULT WINAPI DwmEnableBlurBehindWindow (HWND hWnd, const DWM_BLURBEHIND *pBlurBuf)
 
BOOL WINAPI DwmDefWindowProc (HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam, LRESULT *plResult)
 
HRESULT WINAPI DwmGetWindowAttribute (HWND hwnd, DWORD attribute, PVOID pv_attribute, DWORD size)
 
HRESULT WINAPI DwmRegisterThumbnail (HWND dest, HWND src, PHTHUMBNAIL thumbnail_id)
 
static int get_display_frequency (void)
 
HRESULT WINAPI DwmGetCompositionTimingInfo (HWND hwnd, DWM_TIMING_INFO *info)
 
HRESULT WINAPI DwmAttachMilContent (HWND hwnd)
 
HRESULT WINAPI DwmDetachMilContent (HWND hwnd)
 
HRESULT WINAPI DwmUpdateThumbnailProperties (HTHUMBNAIL thumbnail, const DWM_THUMBNAIL_PROPERTIES *props)
 
HRESULT WINAPI DwmSetPresentParameters (HWND hwnd, DWM_PRESENT_PARAMETERS *params)
 
HRESULT WINAPI DwmSetIconicLivePreviewBitmap (HWND hwnd, HBITMAP hbmp, POINT *pos, DWORD flags)
 
HRESULT WINAPI DwmSetIconicThumbnail (HWND hwnd, HBITMAP hbmp, DWORD flags)
 
HRESULT WINAPI DwmpGetColorizationParameters (void *params)
 

Macro Definition Documentation

◆ COBJMACROS

#define COBJMACROS

Definition at line 30 of file dwmapi_main.c.

Function Documentation

◆ DwmAttachMilContent()

HRESULT WINAPI DwmAttachMilContent ( HWND  hwnd)

Definition at line 280 of file dwmapi_main.c.

281{
282 FIXME("(%p) stub\n", hwnd);
283 return E_NOTIMPL;
284}
#define FIXME(fmt,...)
Definition: precomp.h:53
#define E_NOTIMPL
Definition: ddrawi.h:99
_In_ LONG _In_ HWND hwnd
Definition: winddi.h:4023

◆ DwmDefWindowProc()

BOOL WINAPI DwmDefWindowProc ( HWND  hWnd,
UINT  Msg,
WPARAM  wParam,
LPARAM  lParam,
LRESULT plResult 
)

Definition at line 195 of file dwmapi_main.c.

196{
197 static int i;
198
199 if (!i++) FIXME("stub\n");
200
201 return FALSE;
202}
#define FALSE
Definition: types.h:117
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
Definition: glfuncs.h:248

◆ DwmDetachMilContent()

HRESULT WINAPI DwmDetachMilContent ( HWND  hwnd)

Definition at line 289 of file dwmapi_main.c.

290{
291 FIXME("(%p) stub\n", hwnd);
292 return E_NOTIMPL;
293}

◆ DwmEnableBlurBehindWindow()

HRESULT WINAPI DwmEnableBlurBehindWindow ( HWND  hWnd,
const DWM_BLURBEHIND pBlurBuf 
)

Definition at line 185 of file dwmapi_main.c.

186{
187 FIXME("%p %p\n", hWnd, pBlurBuf);
188
189 return E_NOTIMPL;
190}
HWND hWnd
Definition: settings.c:17

◆ DwmEnableComposition()

HRESULT WINAPI DwmEnableComposition ( UINT  uCompositionAction)

Definition at line 69 of file dwmapi_main.c.

70{
71 FIXME("(%d) stub\n", uCompositionAction);
72
73 return S_OK;
74}
#define S_OK
Definition: intsafe.h:52

◆ DwmEnableMMCSS()

HRESULT WINAPI DwmEnableMMCSS ( BOOL  enableMMCSS)

Definition at line 165 of file dwmapi_main.c.

166{
167 FIXME("(%d) stub\n", enableMMCSS);
168
169 return S_OK;
170}

◆ DwmExtendFrameIntoClientArea()

HRESULT WINAPI DwmExtendFrameIntoClientArea ( HWND  hwnd,
const MARGINS margins 
)

Definition at line 79 of file dwmapi_main.c.

80{
81 FIXME("(%p, %p) stub\n", hwnd, margins);
82
83 return S_OK;
84}
static RECT margins
Definition: print.c:55

◆ DwmFlush()

HRESULT WINAPI DwmFlush ( void  )

Definition at line 99 of file dwmapi_main.c.

100{
101 static BOOL once;
102
103 if (!once++) FIXME("() stub\n");
104
105 return S_OK;
106}
unsigned int BOOL
Definition: ntddk_ex.h:94

◆ DwmGetColorizationColor()

HRESULT WINAPI DwmGetColorizationColor ( DWORD colorization,
BOOL opaque_blend 
)

Definition at line 89 of file dwmapi_main.c.

90{
91 FIXME("(%p, %p) stub\n", colorization, opaque_blend);
92
93 return E_NOTIMPL;
94}

◆ DwmGetCompositionTimingInfo()

HRESULT WINAPI DwmGetCompositionTimingInfo ( HWND  hwnd,
DWM_TIMING_INFO info 
)

Definition at line 246 of file dwmapi_main.c.

247{
248 LARGE_INTEGER performance_frequency, qpc;
249 static int i, display_frequency;
250
251 if (!info)
252 return E_INVALIDARG;
253
254 if (info->cbSize != sizeof(DWM_TIMING_INFO))
256
257 if(!i++) FIXME("(%p %p)\n", hwnd, info);
258
259 memset(info, 0, info->cbSize);
260 info->cbSize = sizeof(DWM_TIMING_INFO);
261
262 display_frequency = get_display_frequency();
263 info->rateRefresh.uiNumerator = display_frequency;
264 info->rateRefresh.uiDenominator = 1;
265 info->rateCompose.uiNumerator = display_frequency;
266 info->rateCompose.uiDenominator = 1;
267
268 QueryPerformanceFrequency(&performance_frequency);
269 info->qpcRefreshPeriod = performance_frequency.QuadPart / display_frequency;
270
272 info->qpcVBlank = (qpc.QuadPart / info->qpcRefreshPeriod) * info->qpcRefreshPeriod;
273
274 return S_OK;
275}
#define E_INVALIDARG
Definition: ddrawi.h:101
BOOL WINAPI QueryPerformanceFrequency(OUT PLARGE_INTEGER lpFrequency)
Definition: perfcnt.c:45
BOOL WINAPI QueryPerformanceCounter(OUT PLARGE_INTEGER lpPerformanceCount)
Definition: perfcnt.c:23
struct _DWM_TIMING_INFO DWM_TIMING_INFO
static int get_display_frequency(void)
Definition: dwmapi_main.c:224
#define memset(x, y, z)
Definition: compat.h:39
LONGLONG QuadPart
Definition: typedefs.h:114
#define MILERR_MISMATCHED_SIZE
Definition: winerror.h:3322

◆ DwmGetGraphicsStreamClient()

HRESULT WINAPI DwmGetGraphicsStreamClient ( UINT  uIndex,
UUID pClientUuid 
)

Definition at line 135 of file dwmapi_main.c.

136{
137 FIXME("(%d, %p) stub\n", uIndex, pClientUuid);
138
139 return E_NOTIMPL;
140}

◆ DwmGetGraphicsStreamTransformHint()

HRESULT WINAPI DwmGetGraphicsStreamTransformHint ( UINT  uIndex,
MilMatrix3x2D pTransform 
)

Definition at line 175 of file dwmapi_main.c.

176{
177 FIXME("(%d, %p) stub\n", uIndex, pTransform);
178
179 return E_NOTIMPL;
180}

◆ DwmGetTransportAttributes()

HRESULT WINAPI DwmGetTransportAttributes ( BOOL pfIsRemoting,
BOOL pfIsConnected,
DWORD pDwGeneration 
)

Definition at line 145 of file dwmapi_main.c.

146{
147 FIXME("(%p, %p, %p) stub\n", pfIsRemoting, pfIsConnected, pDwGeneration);
148
150}
#define DWM_E_COMPOSITIONDISABLED
Definition: winerror.h:3274

◆ DwmGetWindowAttribute()

HRESULT WINAPI DwmGetWindowAttribute ( HWND  hwnd,
DWORD  attribute,
PVOID  pv_attribute,
DWORD  size 
)

Definition at line 207 of file dwmapi_main.c.

208{
209 FIXME("(%p %ld %p %ld) stub\n", hwnd, attribute, pv_attribute, size);
210
211 return E_NOTIMPL;
212}
GLsizeiptr size
Definition: glext.h:5919

◆ DwmInvalidateIconicBitmaps()

HRESULT WINAPI DwmInvalidateIconicBitmaps ( HWND  hwnd)

Definition at line 111 of file dwmapi_main.c.

112{
113 static BOOL once;
114
115 if (!once++) FIXME("(%p) stub\n", hwnd);
116
117 return E_NOTIMPL;
118}

◆ DwmIsCompositionEnabled()

HRESULT WINAPI DwmIsCompositionEnabled ( BOOL enabled)

Definition at line 44 of file dwmapi_main.c.

45{
46
47#ifdef __REACTOS__
49#else
51#endif
52
53 TRACE("%p\n", enabled);
54
55 if (!enabled)
56 return E_INVALIDARG;
57
58 *enabled = FALSE;
59 version.dwOSVersionInfoSize = sizeof(version);
61 *enabled = (version.dwMajorVersion > 6 || (version.dwMajorVersion == 6 && version.dwMinorVersion >= 3));
62
63 return S_OK;
64}
NTSTATUS NTAPI RtlGetVersion(IN OUT PRTL_OSVERSIONINFOW lpVersionInformation)
Definition: version.c:158
static const WCHAR version[]
Definition: asmname.c:66
GLenum GLenum GLsizei const GLuint GLboolean enabled
Definition: glext.h:7750
#define TRACE(s)
Definition: solgame.cpp:4

◆ DwmpGetColorizationParameters()

HRESULT WINAPI DwmpGetColorizationParameters ( void params)

Definition at line 334 of file dwmapi_main.c.

335{
336 FIXME("(%p) stub\n", params);
337 return E_NOTIMPL;
338}
GLenum const GLfloat * params
Definition: glext.h:5645

◆ DwmRegisterThumbnail()

HRESULT WINAPI DwmRegisterThumbnail ( HWND  dest,
HWND  src,
PHTHUMBNAIL  thumbnail_id 
)

Definition at line 217 of file dwmapi_main.c.

218{
219 FIXME("(%p %p %p) stub\n", dest, src, thumbnail_id);
220
221 return E_NOTIMPL;
222}
GLenum src
Definition: glext.h:6340
static char * dest
Definition: rtl.c:135

◆ DwmSetIconicLivePreviewBitmap()

HRESULT WINAPI DwmSetIconicLivePreviewBitmap ( HWND  hwnd,
HBITMAP  hbmp,
POINT pos,
DWORD  flags 
)

Definition at line 316 of file dwmapi_main.c.

317{
318 FIXME("(%p %p %p %lx) stub\n", hwnd, hbmp, pos, flags);
319 return S_OK;
320};
HBITMAP hbmp
GLbitfield flags
Definition: glext.h:7161

◆ DwmSetIconicThumbnail()

HRESULT WINAPI DwmSetIconicThumbnail ( HWND  hwnd,
HBITMAP  hbmp,
DWORD  flags 
)

Definition at line 325 of file dwmapi_main.c.

326{
327 FIXME("(%p %p %lx) stub\n", hwnd, hbmp, flags);
328 return S_OK;
329};

◆ DwmSetPresentParameters()

HRESULT WINAPI DwmSetPresentParameters ( HWND  hwnd,
DWM_PRESENT_PARAMETERS params 
)

Definition at line 307 of file dwmapi_main.c.

308{
309 FIXME("(%p %p) stub\n", hwnd, params);
310 return S_OK;
311};

◆ DwmSetWindowAttribute()

HRESULT WINAPI DwmSetWindowAttribute ( HWND  hwnd,
DWORD  attributenum,
LPCVOID  attribute,
DWORD  size 
)

Definition at line 123 of file dwmapi_main.c.

124{
125 static BOOL once;
126
127 if (!once++) FIXME("(%p, %lx, %p, %lx) stub\n", hwnd, attributenum, attribute, size);
128
129 return S_OK;
130}

◆ DwmUnregisterThumbnail()

HRESULT WINAPI DwmUnregisterThumbnail ( HTHUMBNAIL  thumbnail)

Definition at line 155 of file dwmapi_main.c.

156{
157 FIXME("(%p) stub\n", thumbnail);
158
159 return E_NOTIMPL;
160}

◆ DwmUpdateThumbnailProperties()

HRESULT WINAPI DwmUpdateThumbnailProperties ( HTHUMBNAIL  thumbnail,
const DWM_THUMBNAIL_PROPERTIES props 
)

Definition at line 298 of file dwmapi_main.c.

299{
300 FIXME("(%p, %p) stub\n", thumbnail, props);
301 return E_NOTIMPL;
302}
static const WCHAR props[]
Definition: wbemdisp.c:288

◆ get_display_frequency()

static int get_display_frequency ( void  )
static

Definition at line 224 of file dwmapi_main.c.

225{
227 BOOL ret;
228
229 memset(&mode, 0, sizeof(mode));
230 mode.dmSize = sizeof(mode);
232 if (ret && mode.dmFields & DM_DISPLAYFREQUENCY && mode.dmDisplayFrequency)
233 {
234 return mode.dmDisplayFrequency;
235 }
236 else
237 {
238 WARN("Failed to query display frequency, returning a fallback value.\n");
239 return 60;
240 }
241}
#define WARN(fmt,...)
Definition: precomp.h:61
#define NULL
Definition: types.h:112
GLenum mode
Definition: glext.h:6217
int ret
BOOL WINAPI EnumDisplaySettingsExW(LPCWSTR lpszDeviceName, DWORD iModeNum, LPDEVMODEW lpDevMode, DWORD dwFlags)
Definition: display.c:330
#define DM_DISPLAYFREQUENCY
Definition: wingdi.h:1272
#define ENUM_CURRENT_SETTINGS
Definition: winuser.h:179

Referenced by DwmGetCompositionTimingInfo().

◆ WINE_DEFAULT_DEBUG_CHANNEL()

WINE_DEFAULT_DEBUG_CHANNEL ( dwmapi  )