summaryrefslogtreecommitdiffstats
path: root/src/VBox/Devices/Graphics/shaderlib/wine/include/dwmapi.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/VBox/Devices/Graphics/shaderlib/wine/include/dwmapi.h')
-rw-r--r--src/VBox/Devices/Graphics/shaderlib/wine/include/dwmapi.h137
1 files changed, 137 insertions, 0 deletions
diff --git a/src/VBox/Devices/Graphics/shaderlib/wine/include/dwmapi.h b/src/VBox/Devices/Graphics/shaderlib/wine/include/dwmapi.h
new file mode 100644
index 00000000..48a5e601
--- /dev/null
+++ b/src/VBox/Devices/Graphics/shaderlib/wine/include/dwmapi.h
@@ -0,0 +1,137 @@
+/*
+ * 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
+ */
+
+/*
+ * Oracle LGPL Disclaimer: For the avoidance of doubt, except that if any license choice
+ * other than GPL or LGPL is available it will apply instead, Oracle elects to use only
+ * the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where
+ * a choice of LGPL license versions is made available with the language indicating
+ * that LGPLv2 or any later version may be used, or where a choice of which version
+ * of the LGPL is applied is otherwise unspecified.
+ */
+
+#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
+
+DECLARE_HANDLE(HTHUMBNAIL);
+typedef HTHUMBNAIL *PHTHUMBNAIL;
+
+#include <pshpack1.h>
+
+typedef ULONGLONG DWM_FRAME_COUNT;
+typedef ULONGLONG QPC_TIME;
+
+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;
+
+typedef struct _MilMatrix3x2D
+{
+ DOUBLE S_11;
+ DOUBLE S_12;
+ DOUBLE S_21;
+ DOUBLE S_22;
+ DOUBLE DX;
+ DOUBLE DY;
+} MilMatrix3x2D;
+
+#include <poppack.h>
+
+#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;
+
+DWMAPI DwmDefWindowProc(HWND, UINT, WPARAM, LPARAM, LRESULT*);
+DWMAPI DwmEnableBlurBehindWindow(HWND, const DWM_BLURBEHIND *);
+DWMAPI DwmEnableComposition(UINT);
+DWMAPI DwmEnableMMCSS(BOOL);
+DWMAPI DwmExtendFrameIntoClientArea(HWND,const MARGINS*);
+DWMAPI DwmGetColorizationColor(DWORD*,BOOL);
+DWMAPI DwmGetCompositionTimingInfo(HWND,DWM_TIMING_INFO*);
+DWMAPI DwmIsCompositionEnabled(BOOL*);
+DWMAPI DwmRegisterThumbnail(HWND, HWND, PHTHUMBNAIL);
+DWMAPI DwmSetWindowAttribute(HWND, DWORD, LPCVOID, DWORD);
+DWMAPI DwmUnregisterThumbnail(HTHUMBNAIL);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* __WINE_DWMAPI_H */