2007-08-04 01:21:06 +00:00
|
|
|
/*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with this library; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __WINE_DWMAPI_H
|
|
|
|
#define __WINE_DWMAPI_H
|
|
|
|
|
|
|
|
#include "wtypes.h"
|
|
|
|
#include "uxtheme.h"
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef DWMAPI
|
|
|
|
# define DWMAPI STDAPI
|
|
|
|
# define DWMAPI_(type) STDAPI_(type)
|
|
|
|
#endif
|
|
|
|
|
2008-01-06 15:14:56 +00:00
|
|
|
DECLARE_HANDLE(HTHUMBNAIL);
|
2011-09-30 10:30:10 +00:00
|
|
|
typedef HTHUMBNAIL *PHTHUMBNAIL;
|
2008-01-06 15:14:56 +00:00
|
|
|
|
2013-06-20 13:28:59 +00:00
|
|
|
#include <pshpack1.h>
|
|
|
|
|
2019-05-02 12:49:13 +00:00
|
|
|
static const UINT c_DwmMaxQueuedBuffers = 8;
|
|
|
|
static const UINT c_DwmMaxMonitors = 16;
|
|
|
|
static const UINT c_DwmMaxAdapters = 16;
|
|
|
|
|
2013-06-20 13:28:59 +00:00
|
|
|
typedef ULONGLONG DWM_FRAME_COUNT;
|
|
|
|
typedef ULONGLONG QPC_TIME;
|
|
|
|
|
2019-05-02 12:49:13 +00:00
|
|
|
enum DWMWINDOWATTRIBUTE {
|
|
|
|
DWMWA_NCRENDERING_ENABLED = 1,
|
|
|
|
DWMWA_NCRENDERING_POLICY,
|
|
|
|
DWMWA_TRANSITIONS_FORCEDISABLED,
|
|
|
|
DWMWA_ALLOW_NCPAINT,
|
|
|
|
DWMWA_CAPTION_BUTTON_BOUNDS,
|
|
|
|
DWMWA_NONCLIENT_RTL_LAYOUT,
|
|
|
|
DWMWA_FORCE_ICONIC_REPRESENTATION,
|
|
|
|
DWMWA_FLIP3D_POLICY,
|
|
|
|
DWMWA_EXTENDED_FRAME_BOUNDS,
|
|
|
|
DWMWA_HAS_ICONIC_BITMAP,
|
|
|
|
DWMWA_DISALLOW_PEEK,
|
|
|
|
DWMWA_EXCLUDED_FROM_PEEK,
|
|
|
|
DWMWA_CLOAK,
|
|
|
|
DWMWA_CLOAKED,
|
|
|
|
DWMWA_FREEZE_REPRESENTATION,
|
|
|
|
DWMWA_LAST
|
|
|
|
};
|
|
|
|
|
|
|
|
enum DWMNCRENDERINGPOLICY {
|
|
|
|
DWMNCRP_USEWINDOWSTYLE,
|
|
|
|
DWMNCRP_DISABLED,
|
|
|
|
DWMNCRP_ENABLED,
|
|
|
|
DWMNCRP_LAST
|
|
|
|
};
|
|
|
|
|
|
|
|
enum DWMFLIP3DWINDOWPOLICY {
|
|
|
|
DWMFLIP3D_DEFAULT,
|
|
|
|
DWMFLIP3D_EXCLUDEBELOW,
|
|
|
|
DWMFLIP3D_EXCLUDEABOVE,
|
|
|
|
DWMFLIP3D_LAST
|
|
|
|
};
|
|
|
|
|
2016-01-28 23:45:17 +00:00
|
|
|
typedef enum _DWM_SOURCE_FRAME_SAMPLING {
|
|
|
|
DWM_SOURCE_FRAME_SAMPLING_POINT,
|
|
|
|
DWM_SOURCE_FRAME_SAMPLING_COVERAGE,
|
|
|
|
DWM_SOURCE_FRAME_SAMPLING_LAST
|
|
|
|
} DWM_SOURCE_FRAME_SAMPLING;
|
|
|
|
|
2013-06-20 13:28:59 +00:00
|
|
|
typedef struct _UNSIGNED_RATIO {
|
|
|
|
UINT32 uiNumerator;
|
|
|
|
UINT32 uiDenominator;
|
|
|
|
} UNSIGNED_RATIO;
|
|
|
|
|
|
|
|
typedef struct _DWM_TIMING_INFO {
|
|
|
|
UINT32 cbSize;
|
|
|
|
UNSIGNED_RATIO rateRefresh;
|
|
|
|
QPC_TIME qpcRefreshPeriod;
|
|
|
|
UNSIGNED_RATIO rateCompose;
|
|
|
|
QPC_TIME qpcVBlank;
|
|
|
|
DWM_FRAME_COUNT cRefresh;
|
|
|
|
UINT cDXRefresh;
|
|
|
|
QPC_TIME qpcCompose;
|
|
|
|
DWM_FRAME_COUNT cFrame;
|
|
|
|
UINT cDXPresent;
|
|
|
|
DWM_FRAME_COUNT cRefreshFrame;
|
|
|
|
DWM_FRAME_COUNT cFrameSubmitted;
|
|
|
|
UINT cDXPresentSubmitted;
|
|
|
|
DWM_FRAME_COUNT cFrameConfirmed;
|
|
|
|
UINT cDXPresentConfirmed;
|
|
|
|
DWM_FRAME_COUNT cRefreshConfirmed;
|
|
|
|
UINT cDXRefreshConfirmed;
|
|
|
|
DWM_FRAME_COUNT cFramesLate;
|
|
|
|
UINT cFramesOutstanding;
|
|
|
|
DWM_FRAME_COUNT cFrameDisplayed;
|
|
|
|
QPC_TIME qpcFrameDisplayed;
|
|
|
|
DWM_FRAME_COUNT cRefreshFrameDisplayed;
|
|
|
|
DWM_FRAME_COUNT cFrameComplete;
|
|
|
|
QPC_TIME qpcFrameComplete;
|
|
|
|
DWM_FRAME_COUNT cFramePending;
|
|
|
|
QPC_TIME qpcFramePending;
|
|
|
|
DWM_FRAME_COUNT cFramesDisplayed;
|
|
|
|
DWM_FRAME_COUNT cFramesComplete;
|
|
|
|
DWM_FRAME_COUNT cFramesPending;
|
|
|
|
DWM_FRAME_COUNT cFramesAvailable;
|
|
|
|
DWM_FRAME_COUNT cFramesDropped;
|
|
|
|
DWM_FRAME_COUNT cFramesMissed;
|
|
|
|
DWM_FRAME_COUNT cRefreshNextDisplayed;
|
|
|
|
DWM_FRAME_COUNT cRefreshNextPresented;
|
|
|
|
DWM_FRAME_COUNT cRefreshesDisplayed;
|
|
|
|
DWM_FRAME_COUNT cRefreshesPresented;
|
|
|
|
DWM_FRAME_COUNT cRefreshStarted;
|
|
|
|
ULONGLONG cPixelsReceived;
|
|
|
|
ULONGLONG cPixelsDrawn;
|
|
|
|
DWM_FRAME_COUNT cBuffersEmpty;
|
|
|
|
} DWM_TIMING_INFO;
|
|
|
|
|
2009-10-11 21:02:27 +00:00
|
|
|
typedef struct _MilMatrix3x2D
|
|
|
|
{
|
|
|
|
DOUBLE S_11;
|
|
|
|
DOUBLE S_12;
|
|
|
|
DOUBLE S_21;
|
|
|
|
DOUBLE S_22;
|
|
|
|
DOUBLE DX;
|
|
|
|
DOUBLE DY;
|
|
|
|
} MilMatrix3x2D;
|
|
|
|
|
2019-05-02 12:49:13 +00:00
|
|
|
#define DWM_FRAME_DURATION_DEFAULT -1
|
|
|
|
|
|
|
|
#define DWM_EC_DISABLECOMPOSITION 0
|
|
|
|
#define DWM_EC_ENABLECOMPOSITION 1
|
|
|
|
|
2010-07-23 09:53:02 +00:00
|
|
|
#define DWM_BB_ENABLE 0x00000001
|
|
|
|
#define DWM_BB_BLURREGION 0x00000002
|
|
|
|
#define DWM_BB_TRANSITIONONMAXIMIZED 0x00000004
|
|
|
|
|
|
|
|
typedef struct _DWM_BLURBEHIND
|
|
|
|
{
|
|
|
|
DWORD dwFlags;
|
|
|
|
BOOL fEnable;
|
|
|
|
HRGN hRgnBlur;
|
|
|
|
BOOL fTransitionOnMaximized;
|
|
|
|
} DWM_BLURBEHIND, *PDWM_BLURBEHIND;
|
|
|
|
|
2019-05-02 12:49:13 +00:00
|
|
|
#define DWM_SIT_DISPLAYFRAME 0x00000001
|
|
|
|
|
|
|
|
#define DWM_CLOAKED_APP 0x00000001
|
|
|
|
#define DWM_CLOAKED_SHELL 0x00000002
|
|
|
|
#define DWM_CLOAKED_INHERITED 0x00000004
|
|
|
|
|
|
|
|
#define DWM_TNP_RECTDESTINATION 0x00000001
|
|
|
|
#define DWM_TNP_RECTSOURCE 0x00000002
|
|
|
|
#define DWM_TNP_OPACITY 0x00000004
|
|
|
|
#define DWM_TNP_VISIBLE 0x00000008
|
|
|
|
#define DWM_TNP_SOURCECLIENTAREAONLY 0x00000010
|
|
|
|
|
2015-09-02 01:20:24 +00:00
|
|
|
typedef struct _DWM_THUMBNAIL_PROPERTIES
|
|
|
|
{
|
|
|
|
DWORD dwFlags;
|
|
|
|
RECT rcDestination;
|
|
|
|
RECT rcSource;
|
|
|
|
BYTE opacity;
|
|
|
|
BOOL fVisible;
|
|
|
|
BOOL fSourceClientAreaOnly;
|
|
|
|
} DWM_THUMBNAIL_PROPERTIES, *PDWM_THUMBNAIL_PROPERTIES;
|
|
|
|
|
2016-01-28 23:45:17 +00:00
|
|
|
typedef struct _DWM_PRESENT_PARAMETERS {
|
|
|
|
UINT32 cbSize;
|
|
|
|
BOOL fQueue;
|
|
|
|
DWM_FRAME_COUNT cRefreshStart;
|
|
|
|
UINT cBuffer;
|
|
|
|
BOOL fUseSourceRate;
|
|
|
|
UNSIGNED_RATIO rateSource;
|
|
|
|
UINT cRefreshesPerFrame;
|
|
|
|
DWM_SOURCE_FRAME_SAMPLING eSampling;
|
|
|
|
} DWM_PRESENT_PARAMETERS;
|
|
|
|
|
2015-02-26 15:15:17 +00:00
|
|
|
#include <poppack.h>
|
|
|
|
|
2019-05-02 12:49:13 +00:00
|
|
|
DWMAPI DwmAttachMilContent(HWND);
|
2016-09-13 21:16:44 +00:00
|
|
|
DWMAPI_(BOOL) DwmDefWindowProc(HWND, UINT, WPARAM, LPARAM, LRESULT*);
|
2019-05-02 12:49:13 +00:00
|
|
|
DWMAPI DwmDetachMilContent(HWND);
|
2010-07-23 09:53:02 +00:00
|
|
|
DWMAPI DwmEnableBlurBehindWindow(HWND, const DWM_BLURBEHIND *);
|
2007-08-04 01:21:06 +00:00
|
|
|
DWMAPI DwmEnableComposition(UINT);
|
2009-01-24 19:35:54 +00:00
|
|
|
DWMAPI DwmEnableMMCSS(BOOL);
|
2008-10-01 15:53:23 +00:00
|
|
|
DWMAPI DwmExtendFrameIntoClientArea(HWND,const MARGINS*);
|
2019-05-02 12:49:13 +00:00
|
|
|
DWMAPI DwmFlush(void);
|
2022-02-01 16:30:20 +00:00
|
|
|
DWMAPI DwmGetColorizationColor(DWORD *, BOOL *);
|
2013-06-20 13:28:59 +00:00
|
|
|
DWMAPI DwmGetCompositionTimingInfo(HWND,DWM_TIMING_INFO*);
|
2019-05-02 12:49:13 +00:00
|
|
|
DWMAPI DwmGetGraphicsStreamClient(UINT, UUID *);
|
|
|
|
DWMAPI DwmGetGraphicsStreamTransformHint(UINT, MilMatrix3x2D *);
|
|
|
|
DWMAPI DwmGetTransportAttributes(BOOL*, BOOL*, DWORD*);
|
|
|
|
DWMAPI DwmGetWindowAttribute(HWND, DWORD, PVOID, DWORD);
|
2014-08-09 22:30:53 +00:00
|
|
|
DWMAPI DwmInvalidateIconicBitmaps(HWND);
|
2007-08-04 01:21:06 +00:00
|
|
|
DWMAPI DwmIsCompositionEnabled(BOOL*);
|
2011-09-30 10:30:10 +00:00
|
|
|
DWMAPI DwmRegisterThumbnail(HWND, HWND, PHTHUMBNAIL);
|
2019-05-02 12:49:13 +00:00
|
|
|
DWMAPI DwmSetIconicLivePreviewBitmap(HWND, HBITMAP, POINT*, DWORD);
|
|
|
|
DWMAPI DwmSetIconicThumbnail(HWND, HBITMAP, DWORD);
|
2016-01-28 23:45:17 +00:00
|
|
|
DWMAPI DwmSetPresentParameters(HWND, DWM_PRESENT_PARAMETERS *);
|
2008-01-06 15:14:56 +00:00
|
|
|
DWMAPI DwmSetWindowAttribute(HWND, DWORD, LPCVOID, DWORD);
|
|
|
|
DWMAPI DwmUnregisterThumbnail(HTHUMBNAIL);
|
2015-09-02 01:20:24 +00:00
|
|
|
DWMAPI DwmUpdateThumbnailProperties(HTHUMBNAIL, const DWM_THUMBNAIL_PROPERTIES *);
|
2007-08-04 01:21:06 +00:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif /* __WINE_DWMAPI_H */
|