mirror of
https://github.com/reactos/reactos.git
synced 2025-08-02 04:35:53 +00:00
[WINESYNC][SDK][DWMAPI] Import DWMAPI from WINE 8-14 (#5594)
This commit is contained in:
parent
0eecebb1cc
commit
6bbf09b6a5
8 changed files with 548 additions and 2 deletions
|
@ -34,9 +34,52 @@ typedef HTHUMBNAIL *PHTHUMBNAIL;
|
|||
|
||||
#include <pshpack1.h>
|
||||
|
||||
static const UINT c_DwmMaxQueuedBuffers = 8;
|
||||
static const UINT c_DwmMaxMonitors = 16;
|
||||
static const UINT c_DwmMaxAdapters = 16;
|
||||
|
||||
typedef ULONGLONG DWM_FRAME_COUNT;
|
||||
typedef ULONGLONG QPC_TIME;
|
||||
|
||||
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
|
||||
};
|
||||
|
||||
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;
|
||||
|
||||
typedef struct _UNSIGNED_RATIO {
|
||||
UINT32 uiNumerator;
|
||||
UINT32 uiDenominator;
|
||||
|
@ -95,6 +138,11 @@ typedef struct _MilMatrix3x2D
|
|||
DOUBLE DY;
|
||||
} MilMatrix3x2D;
|
||||
|
||||
#define DWM_FRAME_DURATION_DEFAULT -1
|
||||
|
||||
#define DWM_EC_DISABLECOMPOSITION 0
|
||||
#define DWM_EC_ENABLECOMPOSITION 1
|
||||
|
||||
#define DWM_BB_ENABLE 0x00000001
|
||||
#define DWM_BB_BLURREGION 0x00000002
|
||||
#define DWM_BB_TRANSITIONONMAXIMIZED 0x00000004
|
||||
|
@ -107,6 +155,18 @@ typedef struct _DWM_BLURBEHIND
|
|||
BOOL fTransitionOnMaximized;
|
||||
} DWM_BLURBEHIND, *PDWM_BLURBEHIND;
|
||||
|
||||
#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
|
||||
|
||||
typedef struct _DWM_THUMBNAIL_PROPERTIES
|
||||
{
|
||||
DWORD dwFlags;
|
||||
|
@ -117,18 +177,39 @@ typedef struct _DWM_THUMBNAIL_PROPERTIES
|
|||
BOOL fSourceClientAreaOnly;
|
||||
} DWM_THUMBNAIL_PROPERTIES, *PDWM_THUMBNAIL_PROPERTIES;
|
||||
|
||||
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;
|
||||
|
||||
#include <poppack.h>
|
||||
|
||||
DWMAPI DwmDefWindowProc(HWND, UINT, WPARAM, LPARAM, LRESULT*);
|
||||
DWMAPI DwmAttachMilContent(HWND);
|
||||
DWMAPI_(BOOL) DwmDefWindowProc(HWND, UINT, WPARAM, LPARAM, LRESULT*);
|
||||
DWMAPI DwmDetachMilContent(HWND);
|
||||
DWMAPI DwmEnableBlurBehindWindow(HWND, const DWM_BLURBEHIND *);
|
||||
DWMAPI DwmEnableComposition(UINT);
|
||||
DWMAPI DwmEnableMMCSS(BOOL);
|
||||
DWMAPI DwmExtendFrameIntoClientArea(HWND,const MARGINS*);
|
||||
DWMAPI DwmGetColorizationColor(DWORD*,BOOL);
|
||||
DWMAPI DwmFlush(void);
|
||||
DWMAPI DwmGetColorizationColor(DWORD *, BOOL *);
|
||||
DWMAPI DwmGetCompositionTimingInfo(HWND,DWM_TIMING_INFO*);
|
||||
DWMAPI DwmGetGraphicsStreamClient(UINT, UUID *);
|
||||
DWMAPI DwmGetGraphicsStreamTransformHint(UINT, MilMatrix3x2D *);
|
||||
DWMAPI DwmGetTransportAttributes(BOOL*, BOOL*, DWORD*);
|
||||
DWMAPI DwmGetWindowAttribute(HWND, DWORD, PVOID, DWORD);
|
||||
DWMAPI DwmInvalidateIconicBitmaps(HWND);
|
||||
DWMAPI DwmIsCompositionEnabled(BOOL*);
|
||||
DWMAPI DwmRegisterThumbnail(HWND, HWND, PHTHUMBNAIL);
|
||||
DWMAPI DwmSetIconicLivePreviewBitmap(HWND, HBITMAP, POINT*, DWORD);
|
||||
DWMAPI DwmSetIconicThumbnail(HWND, HBITMAP, DWORD);
|
||||
DWMAPI DwmSetPresentParameters(HWND, DWM_PRESENT_PARAMETERS *);
|
||||
DWMAPI DwmSetWindowAttribute(HWND, DWORD, LPCVOID, DWORD);
|
||||
DWMAPI DwmUnregisterThumbnail(HTHUMBNAIL);
|
||||
DWMAPI DwmUpdateThumbnailProperties(HTHUMBNAIL, const DWM_THUMBNAIL_PROPERTIES *);
|
||||
|
|
|
@ -3270,6 +3270,14 @@
|
|||
|
||||
#define WININET_E_NAME_NOT_RESOLVED _HRESULT_TYPEDEF_(0x80072ee7)
|
||||
|
||||
#define ERROR_HUNG_DISPLAY_DRIVER_THREAD _HRESULT_TYPEDEF_(0x80260001)
|
||||
#define DWM_E_COMPOSITIONDISABLED _HRESULT_TYPEDEF_(0x80263001)
|
||||
#define DWM_E_REMOTING_NOT_SUPPORTED _HRESULT_TYPEDEF_(0x80263002)
|
||||
#define DWM_E_NO_REDIRECTION_SURFACE_AVAILABLE _HRESULT_TYPEDEF_(0x80263003)
|
||||
#define DWM_E_NOT_QUEUING_PRESENTS _HRESULT_TYPEDEF_(0x80263004)
|
||||
#define DWM_E_ADAPTER_NOT_FOUND _HRESULT_TYPEDEF_(0x80263005)
|
||||
#define DWM_S_GDI_REDIRECTION_SURFACE _HRESULT_TYPEDEF_(0x00263005)
|
||||
|
||||
#define WINCODEC_ERR_WRONGSTATE _HRESULT_TYPEDEF_(0x88982f04)
|
||||
#define WINCODEC_ERR_VALUEOUTOFRANGE _HRESULT_TYPEDEF_(0x88982f05)
|
||||
#define WINCODEC_ERR_UNKNOWNIMAGEFORMAT _HRESULT_TYPEDEF_(0x88982f07)
|
||||
|
@ -3311,6 +3319,8 @@
|
|||
#define WINCODEC_ERR_WIN32ERROR _HRESULT_TYPEDEF_(0x88982f94)
|
||||
#define WINCODEC_ERR_INVALIDPROGRESSIVELEVEL _HRESULT_TYPEDEF_(0x88982f95)
|
||||
|
||||
#define MILERR_MISMATCHED_SIZE _HRESULT_TYPEDEF_(0x88980090)
|
||||
|
||||
#define ERROR_AUDITING_DISABLED _HRESULT_TYPEDEF_(0xC0090001L)
|
||||
#define ERROR_ALL_SIDS_FILTERED _HRESULT_TYPEDEF_(0xC0090002L)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue