2327 lines
78 KiB
C
Raw Normal View History

2018-01-23 23:40:17 +01:00
/* this ALWAYS GENERATED file contains the definitions for the interfaces */
/* File created by MIDL compiler version 8.00.0613 */
/* @@MIDL_FILE_HEADING( ) */
/* verify that the <rpcndr.h> version is high enough to compile this file*/
#ifndef __REQUIRED_RPCNDR_H_VERSION__
#define __REQUIRED_RPCNDR_H_VERSION__ 475
#endif
/* verify that the <rpcsal.h> version is high enough to compile this file*/
#ifndef __REQUIRED_RPCSAL_H_VERSION__
#define __REQUIRED_RPCSAL_H_VERSION__ 100
#endif
#include "rpc.h"
#include "rpcndr.h"
#ifndef __RPCNDR_H_VERSION__
#error this stub requires an updated version of <rpcndr.h>
#endif /* __RPCNDR_H_VERSION__ */
#ifndef COM_NO_WINDOWS_H
#include "windows.h"
#include "ole2.h"
#endif /*COM_NO_WINDOWS_H*/
#ifndef __dxgi1_2_h__
#define __dxgi1_2_h__
#if defined(_MSC_VER) && (_MSC_VER >= 1020)
#pragma once
#endif
2019-02-03 15:49:35 -08:00
/* Forward Declarations */
2018-01-23 23:40:17 +01:00
#ifndef __IDXGIDisplayControl_FWD_DEFINED__
#define __IDXGIDisplayControl_FWD_DEFINED__
typedef interface IDXGIDisplayControl IDXGIDisplayControl;
#endif /* __IDXGIDisplayControl_FWD_DEFINED__ */
#ifndef __IDXGIOutputDuplication_FWD_DEFINED__
#define __IDXGIOutputDuplication_FWD_DEFINED__
typedef interface IDXGIOutputDuplication IDXGIOutputDuplication;
#endif /* __IDXGIOutputDuplication_FWD_DEFINED__ */
#ifndef __IDXGISurface2_FWD_DEFINED__
#define __IDXGISurface2_FWD_DEFINED__
typedef interface IDXGISurface2 IDXGISurface2;
#endif /* __IDXGISurface2_FWD_DEFINED__ */
#ifndef __IDXGIResource1_FWD_DEFINED__
#define __IDXGIResource1_FWD_DEFINED__
typedef interface IDXGIResource1 IDXGIResource1;
#endif /* __IDXGIResource1_FWD_DEFINED__ */
#ifndef __IDXGIDevice2_FWD_DEFINED__
#define __IDXGIDevice2_FWD_DEFINED__
typedef interface IDXGIDevice2 IDXGIDevice2;
#endif /* __IDXGIDevice2_FWD_DEFINED__ */
#ifndef __IDXGISwapChain1_FWD_DEFINED__
#define __IDXGISwapChain1_FWD_DEFINED__
typedef interface IDXGISwapChain1 IDXGISwapChain1;
#endif /* __IDXGISwapChain1_FWD_DEFINED__ */
#ifndef __IDXGIFactory2_FWD_DEFINED__
#define __IDXGIFactory2_FWD_DEFINED__
typedef interface IDXGIFactory2 IDXGIFactory2;
#endif /* __IDXGIFactory2_FWD_DEFINED__ */
#ifndef __IDXGIAdapter2_FWD_DEFINED__
#define __IDXGIAdapter2_FWD_DEFINED__
typedef interface IDXGIAdapter2 IDXGIAdapter2;
#endif /* __IDXGIAdapter2_FWD_DEFINED__ */
#ifndef __IDXGIOutput1_FWD_DEFINED__
#define __IDXGIOutput1_FWD_DEFINED__
typedef interface IDXGIOutput1 IDXGIOutput1;
#endif /* __IDXGIOutput1_FWD_DEFINED__ */
/* header files for imported files */
#include "dxgi.h"
#ifdef __cplusplus
extern "C"{
2019-02-03 15:49:35 -08:00
#endif
2018-01-23 23:40:17 +01:00
/* interface __MIDL_itf_dxgi1_2_0000_0000 */
2019-02-03 15:49:35 -08:00
/* [local] */
2018-01-23 23:40:17 +01:00
/*#include <winapifamily.h>*/
/*#pragma region Desktop Family*/
/*#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)*/
extern RPC_IF_HANDLE __MIDL_itf_dxgi1_2_0000_0000_v0_0_c_ifspec;
extern RPC_IF_HANDLE __MIDL_itf_dxgi1_2_0000_0000_v0_0_s_ifspec;
#ifndef __IDXGIDisplayControl_INTERFACE_DEFINED__
#define __IDXGIDisplayControl_INTERFACE_DEFINED__
/* interface IDXGIDisplayControl */
2019-02-03 15:49:35 -08:00
/* [unique][local][uuid][object] */
2018-01-23 23:40:17 +01:00
EXTERN_C const IID IID_IDXGIDisplayControl;
#if defined(__cplusplus) && !defined(CINTERFACE)
2019-02-03 15:49:35 -08:00
2018-01-23 23:40:17 +01:00
MIDL_INTERFACE("ea9dbf1a-c88e-4486-854a-98aa0138f30c")
IDXGIDisplayControl : public IUnknown
{
public:
virtual BOOL STDMETHODCALLTYPE IsStereoEnabled( void) = 0;
2019-02-03 15:49:35 -08:00
virtual void STDMETHODCALLTYPE SetStereoEnabled(
2018-01-23 23:40:17 +01:00
BOOL enabled) = 0;
2019-02-03 15:49:35 -08:00
2018-01-23 23:40:17 +01:00
};
2019-02-03 15:49:35 -08:00
2018-01-23 23:40:17 +01:00
#else /* C style interface */
typedef struct IDXGIDisplayControlVtbl
{
BEGIN_INTERFACE
2019-02-03 15:49:35 -08:00
HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
2018-01-23 23:40:17 +01:00
IDXGIDisplayControl * This,
/* [in] */ REFIID riid,
2019-02-03 15:49:35 -08:00
/* [annotation][iid_is][out] */
2018-01-23 23:40:17 +01:00
_COM_Outptr_ void **ppvObject);
2019-02-03 15:49:35 -08:00
ULONG ( STDMETHODCALLTYPE *AddRef )(
2018-01-23 23:40:17 +01:00
IDXGIDisplayControl * This);
2019-02-03 15:49:35 -08:00
ULONG ( STDMETHODCALLTYPE *Release )(
2018-01-23 23:40:17 +01:00
IDXGIDisplayControl * This);
2019-02-03 15:49:35 -08:00
BOOL ( STDMETHODCALLTYPE *IsStereoEnabled )(
2018-01-23 23:40:17 +01:00
IDXGIDisplayControl * This);
2019-02-03 15:49:35 -08:00
void ( STDMETHODCALLTYPE *SetStereoEnabled )(
2018-01-23 23:40:17 +01:00
IDXGIDisplayControl * This,
BOOL enabled);
2019-02-03 15:49:35 -08:00
2018-01-23 23:40:17 +01:00
END_INTERFACE
} IDXGIDisplayControlVtbl;
interface IDXGIDisplayControl
{
CONST_VTBL struct IDXGIDisplayControlVtbl *lpVtbl;
};
#ifdef COBJMACROS
#define IDXGIDisplayControl_QueryInterface(This,riid,ppvObject) \
2019-02-03 15:49:35 -08:00
( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
2018-01-23 23:40:17 +01:00
#define IDXGIDisplayControl_AddRef(This) \
2019-02-03 15:49:35 -08:00
( (This)->lpVtbl -> AddRef(This) )
2018-01-23 23:40:17 +01:00
#define IDXGIDisplayControl_Release(This) \
2019-02-03 15:49:35 -08:00
( (This)->lpVtbl -> Release(This) )
2018-01-23 23:40:17 +01:00
#define IDXGIDisplayControl_IsStereoEnabled(This) \
2019-02-03 15:49:35 -08:00
( (This)->lpVtbl -> IsStereoEnabled(This) )
2018-01-23 23:40:17 +01:00
#define IDXGIDisplayControl_SetStereoEnabled(This,enabled) \
2019-02-03 15:49:35 -08:00
( (This)->lpVtbl -> SetStereoEnabled(This,enabled) )
2018-01-23 23:40:17 +01:00
#endif /* COBJMACROS */
#endif /* C style interface */
#endif /* __IDXGIDisplayControl_INTERFACE_DEFINED__ */
/* interface __MIDL_itf_dxgi1_2_0000_0001 */
2019-02-03 15:49:35 -08:00
/* [local] */
2018-01-23 23:40:17 +01:00
typedef struct DXGI_OUTDUPL_MOVE_RECT
{
POINT SourcePoint;
RECT DestinationRect;
} DXGI_OUTDUPL_MOVE_RECT;
typedef struct DXGI_OUTDUPL_DESC
{
DXGI_MODE_DESC ModeDesc;
DXGI_MODE_ROTATION Rotation;
BOOL DesktopImageInSystemMemory;
} DXGI_OUTDUPL_DESC;
typedef struct DXGI_OUTDUPL_POINTER_POSITION
{
POINT Position;
BOOL Visible;
} DXGI_OUTDUPL_POINTER_POSITION;
2019-02-03 15:49:35 -08:00
typedef
2018-01-23 23:40:17 +01:00
enum DXGI_OUTDUPL_POINTER_SHAPE_TYPE
{
DXGI_OUTDUPL_POINTER_SHAPE_TYPE_MONOCHROME = 0x1,
DXGI_OUTDUPL_POINTER_SHAPE_TYPE_COLOR = 0x2,
DXGI_OUTDUPL_POINTER_SHAPE_TYPE_MASKED_COLOR = 0x4
} DXGI_OUTDUPL_POINTER_SHAPE_TYPE;
typedef struct DXGI_OUTDUPL_POINTER_SHAPE_INFO
{
UINT Type;
UINT Width;
UINT Height;
UINT Pitch;
POINT HotSpot;
} DXGI_OUTDUPL_POINTER_SHAPE_INFO;
typedef struct DXGI_OUTDUPL_FRAME_INFO
{
LARGE_INTEGER LastPresentTime;
LARGE_INTEGER LastMouseUpdateTime;
UINT AccumulatedFrames;
BOOL RectsCoalesced;
BOOL ProtectedContentMaskedOut;
DXGI_OUTDUPL_POINTER_POSITION PointerPosition;
UINT TotalMetadataBufferSize;
UINT PointerShapeBufferSize;
} DXGI_OUTDUPL_FRAME_INFO;
extern RPC_IF_HANDLE __MIDL_itf_dxgi1_2_0000_0001_v0_0_c_ifspec;
extern RPC_IF_HANDLE __MIDL_itf_dxgi1_2_0000_0001_v0_0_s_ifspec;
#ifndef __IDXGIOutputDuplication_INTERFACE_DEFINED__
#define __IDXGIOutputDuplication_INTERFACE_DEFINED__
/* interface IDXGIOutputDuplication */
2019-02-03 15:49:35 -08:00
/* [unique][local][uuid][object] */
2018-01-23 23:40:17 +01:00
EXTERN_C const IID IID_IDXGIOutputDuplication;
#if defined(__cplusplus) && !defined(CINTERFACE)
2019-02-03 15:49:35 -08:00
2018-01-23 23:40:17 +01:00
MIDL_INTERFACE("191cfac3-a341-470d-b26e-a864f428319c")
IDXGIOutputDuplication : public IDXGIObject
{
public:
2019-02-03 15:49:35 -08:00
virtual void STDMETHODCALLTYPE GetDesc(
/* [annotation][out] */
2018-01-23 23:40:17 +01:00
_Out_ DXGI_OUTDUPL_DESC *pDesc) = 0;
2019-02-03 15:49:35 -08:00
virtual HRESULT STDMETHODCALLTYPE AcquireNextFrame(
/* [annotation][in] */
2018-01-23 23:40:17 +01:00
_In_ UINT TimeoutInMilliseconds,
2019-02-03 15:49:35 -08:00
/* [annotation][out] */
2018-01-23 23:40:17 +01:00
_Out_ DXGI_OUTDUPL_FRAME_INFO *pFrameInfo,
2019-02-03 15:49:35 -08:00
/* [annotation][out] */
2018-01-23 23:40:17 +01:00
_COM_Outptr_ IDXGIResource **ppDesktopResource) = 0;
2019-02-03 15:49:35 -08:00
virtual HRESULT STDMETHODCALLTYPE GetFrameDirtyRects(
/* [annotation][in] */
2018-01-23 23:40:17 +01:00
_In_ UINT DirtyRectsBufferSize,
2019-02-03 15:49:35 -08:00
/* [annotation][out] */
2018-01-23 23:40:17 +01:00
_Out_writes_bytes_to_(DirtyRectsBufferSize, *pDirtyRectsBufferSizeRequired) RECT *pDirtyRectsBuffer,
2019-02-03 15:49:35 -08:00
/* [annotation][out] */
2018-01-23 23:40:17 +01:00
_Out_ UINT *pDirtyRectsBufferSizeRequired) = 0;
2019-02-03 15:49:35 -08:00
virtual HRESULT STDMETHODCALLTYPE GetFrameMoveRects(
/* [annotation][in] */
2018-01-23 23:40:17 +01:00
_In_ UINT MoveRectsBufferSize,
2019-02-03 15:49:35 -08:00
/* [annotation][out] */
2018-01-23 23:40:17 +01:00
_Out_writes_bytes_to_(MoveRectsBufferSize, *pMoveRectsBufferSizeRequired) DXGI_OUTDUPL_MOVE_RECT *pMoveRectBuffer,
2019-02-03 15:49:35 -08:00
/* [annotation][out] */
2018-01-23 23:40:17 +01:00
_Out_ UINT *pMoveRectsBufferSizeRequired) = 0;
2019-02-03 15:49:35 -08:00
virtual HRESULT STDMETHODCALLTYPE GetFramePointerShape(
/* [annotation][in] */
2018-01-23 23:40:17 +01:00
_In_ UINT PointerShapeBufferSize,
2019-02-03 15:49:35 -08:00
/* [annotation][out] */
2018-01-23 23:40:17 +01:00
_Out_writes_bytes_to_(PointerShapeBufferSize, *pPointerShapeBufferSizeRequired) void *pPointerShapeBuffer,
2019-02-03 15:49:35 -08:00
/* [annotation][out] */
2018-01-23 23:40:17 +01:00
_Out_ UINT *pPointerShapeBufferSizeRequired,
2019-02-03 15:49:35 -08:00
/* [annotation][out] */
2018-01-23 23:40:17 +01:00
_Out_ DXGI_OUTDUPL_POINTER_SHAPE_INFO *pPointerShapeInfo) = 0;
2019-02-03 15:49:35 -08:00
virtual HRESULT STDMETHODCALLTYPE MapDesktopSurface(
/* [annotation][out] */
2018-01-23 23:40:17 +01:00
_Out_ DXGI_MAPPED_RECT *pLockedRect) = 0;
2019-02-03 15:49:35 -08:00
2018-01-23 23:40:17 +01:00
virtual HRESULT STDMETHODCALLTYPE UnMapDesktopSurface( void) = 0;
2019-02-03 15:49:35 -08:00
2018-01-23 23:40:17 +01:00
virtual HRESULT STDMETHODCALLTYPE ReleaseFrame( void) = 0;
2019-02-03 15:49:35 -08:00
2018-01-23 23:40:17 +01:00
};
2019-02-03 15:49:35 -08:00
2018-01-23 23:40:17 +01:00
#else /* C style interface */
typedef struct IDXGIOutputDuplicationVtbl
{
BEGIN_INTERFACE
2019-02-03 15:49:35 -08:00
HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
2018-01-23 23:40:17 +01:00
IDXGIOutputDuplication * This,
/* [in] */ REFIID riid,
2019-02-03 15:49:35 -08:00
/* [annotation][iid_is][out] */
2018-01-23 23:40:17 +01:00
_COM_Outptr_ void **ppvObject);
2019-02-03 15:49:35 -08:00
ULONG ( STDMETHODCALLTYPE *AddRef )(
2018-01-23 23:40:17 +01:00
IDXGIOutputDuplication * This);
2019-02-03 15:49:35 -08:00
ULONG ( STDMETHODCALLTYPE *Release )(
2018-01-23 23:40:17 +01:00
IDXGIOutputDuplication * This);
2019-02-03 15:49:35 -08:00
HRESULT ( STDMETHODCALLTYPE *SetPrivateData )(
2018-01-23 23:40:17 +01:00
IDXGIOutputDuplication * This,
2019-02-03 15:49:35 -08:00
/* [annotation][in] */
2018-01-23 23:40:17 +01:00
_In_ REFGUID Name,
/* [in] */ UINT DataSize,
2019-02-03 15:49:35 -08:00
/* [annotation][in] */
2018-01-23 23:40:17 +01:00
_In_reads_bytes_(DataSize) const void *pData);
2019-02-03 15:49:35 -08:00
HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )(
2018-01-23 23:40:17 +01:00
IDXGIOutputDuplication * This,
2019-02-03 15:49:35 -08:00
/* [annotation][in] */
2018-01-23 23:40:17 +01:00
_In_ REFGUID Name,
2019-02-03 15:49:35 -08:00
/* [annotation][in] */
2018-01-23 23:40:17 +01:00
_In_opt_ const IUnknown *pUnknown);
2019-02-03 15:49:35 -08:00
HRESULT ( STDMETHODCALLTYPE *GetPrivateData )(
2018-01-23 23:40:17 +01:00
IDXGIOutputDuplication * This,
2019-02-03 15:49:35 -08:00
/* [annotation][in] */
2018-01-23 23:40:17 +01:00
_In_ REFGUID Name,
2019-02-03 15:49:35 -08:00
/* [annotation][out][in] */
2018-01-23 23:40:17 +01:00
_Inout_ UINT *pDataSize,
2019-02-03 15:49:35 -08:00
/* [annotation][out] */
2018-01-23 23:40:17 +01:00
_Out_writes_bytes_(*pDataSize) void *pData);
2019-02-03 15:49:35 -08:00
HRESULT ( STDMETHODCALLTYPE *GetParent )(
2018-01-23 23:40:17 +01:00
IDXGIOutputDuplication * This,
2019-02-03 15:49:35 -08:00
/* [annotation][in] */
2018-01-23 23:40:17 +01:00
_In_ REFIID riid,
2019-02-03 15:49:35 -08:00
/* [annotation][retval][out] */
2018-01-23 23:40:17 +01:00
_COM_Outptr_ void **ppParent);
2019-02-03 15:49:35 -08:00
void ( STDMETHODCALLTYPE *GetDesc )(
2018-01-23 23:40:17 +01:00
IDXGIOutputDuplication * This,
2019-02-03 15:49:35 -08:00
/* [annotation][out] */
2018-01-23 23:40:17 +01:00
_Out_ DXGI_OUTDUPL_DESC *pDesc);
2019-02-03 15:49:35 -08:00
HRESULT ( STDMETHODCALLTYPE *AcquireNextFrame )(
2018-01-23 23:40:17 +01:00
IDXGIOutputDuplication * This,
2019-02-03 15:49:35 -08:00
/* [annotation][in] */
2018-01-23 23:40:17 +01:00
_In_ UINT TimeoutInMilliseconds,
2019-02-03 15:49:35 -08:00
/* [annotation][out] */
2018-01-23 23:40:17 +01:00
_Out_ DXGI_OUTDUPL_FRAME_INFO *pFrameInfo,
2019-02-03 15:49:35 -08:00
/* [annotation][out] */
2018-01-23 23:40:17 +01:00
_COM_Outptr_ IDXGIResource **ppDesktopResource);
2019-02-03 15:49:35 -08:00
HRESULT ( STDMETHODCALLTYPE *GetFrameDirtyRects )(
2018-01-23 23:40:17 +01:00
IDXGIOutputDuplication * This,
2019-02-03 15:49:35 -08:00
/* [annotation][in] */
2018-01-23 23:40:17 +01:00
_In_ UINT DirtyRectsBufferSize,
2019-02-03 15:49:35 -08:00
/* [annotation][out] */
2018-01-23 23:40:17 +01:00
_Out_writes_bytes_to_(DirtyRectsBufferSize, *pDirtyRectsBufferSizeRequired) RECT *pDirtyRectsBuffer,
2019-02-03 15:49:35 -08:00
/* [annotation][out] */
2018-01-23 23:40:17 +01:00
_Out_ UINT *pDirtyRectsBufferSizeRequired);
2019-02-03 15:49:35 -08:00
HRESULT ( STDMETHODCALLTYPE *GetFrameMoveRects )(
2018-01-23 23:40:17 +01:00
IDXGIOutputDuplication * This,
2019-02-03 15:49:35 -08:00
/* [annotation][in] */
2018-01-23 23:40:17 +01:00
_In_ UINT MoveRectsBufferSize,
2019-02-03 15:49:35 -08:00
/* [annotation][out] */
2018-01-23 23:40:17 +01:00
_Out_writes_bytes_to_(MoveRectsBufferSize, *pMoveRectsBufferSizeRequired) DXGI_OUTDUPL_MOVE_RECT *pMoveRectBuffer,
2019-02-03 15:49:35 -08:00
/* [annotation][out] */
2018-01-23 23:40:17 +01:00
_Out_ UINT *pMoveRectsBufferSizeRequired);
2019-02-03 15:49:35 -08:00
HRESULT ( STDMETHODCALLTYPE *GetFramePointerShape )(
2018-01-23 23:40:17 +01:00
IDXGIOutputDuplication * This,
2019-02-03 15:49:35 -08:00
/* [annotation][in] */
2018-01-23 23:40:17 +01:00
_In_ UINT PointerShapeBufferSize,
2019-02-03 15:49:35 -08:00
/* [annotation][out] */
2018-01-23 23:40:17 +01:00
_Out_writes_bytes_to_(PointerShapeBufferSize, *pPointerShapeBufferSizeRequired) void *pPointerShapeBuffer,
2019-02-03 15:49:35 -08:00
/* [annotation][out] */
2018-01-23 23:40:17 +01:00
_Out_ UINT *pPointerShapeBufferSizeRequired,
2019-02-03 15:49:35 -08:00
/* [annotation][out] */
2018-01-23 23:40:17 +01:00
_Out_ DXGI_OUTDUPL_POINTER_SHAPE_INFO *pPointerShapeInfo);
2019-02-03 15:49:35 -08:00
HRESULT ( STDMETHODCALLTYPE *MapDesktopSurface )(
2018-01-23 23:40:17 +01:00
IDXGIOutputDuplication * This,
2019-02-03 15:49:35 -08:00
/* [annotation][out] */
2018-01-23 23:40:17 +01:00
_Out_ DXGI_MAPPED_RECT *pLockedRect);
2019-02-03 15:49:35 -08:00
HRESULT ( STDMETHODCALLTYPE *UnMapDesktopSurface )(
2018-01-23 23:40:17 +01:00
IDXGIOutputDuplication * This);
2019-02-03 15:49:35 -08:00
HRESULT ( STDMETHODCALLTYPE *ReleaseFrame )(
2018-01-23 23:40:17 +01:00
IDXGIOutputDuplication * This);
2019-02-03 15:49:35 -08:00
2018-01-23 23:40:17 +01:00
END_INTERFACE
} IDXGIOutputDuplicationVtbl;
interface IDXGIOutputDuplication
{
CONST_VTBL struct IDXGIOutputDuplicationVtbl *lpVtbl;
};
#ifdef COBJMACROS
#define IDXGIOutputDuplication_QueryInterface(This,riid,ppvObject) \
2019-02-03 15:49:35 -08:00
( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
2018-01-23 23:40:17 +01:00
#define IDXGIOutputDuplication_AddRef(This) \
2019-02-03 15:49:35 -08:00
( (This)->lpVtbl -> AddRef(This) )
2018-01-23 23:40:17 +01:00
#define IDXGIOutputDuplication_Release(This) \
2019-02-03 15:49:35 -08:00
( (This)->lpVtbl -> Release(This) )
2018-01-23 23:40:17 +01:00
#define IDXGIOutputDuplication_SetPrivateData(This,Name,DataSize,pData) \
2019-02-03 15:49:35 -08:00
( (This)->lpVtbl -> SetPrivateData(This,Name,DataSize,pData) )
2018-01-23 23:40:17 +01:00
#define IDXGIOutputDuplication_SetPrivateDataInterface(This,Name,pUnknown) \
2019-02-03 15:49:35 -08:00
( (This)->lpVtbl -> SetPrivateDataInterface(This,Name,pUnknown) )
2018-01-23 23:40:17 +01:00
#define IDXGIOutputDuplication_GetPrivateData(This,Name,pDataSize,pData) \
2019-02-03 15:49:35 -08:00
( (This)->lpVtbl -> GetPrivateData(This,Name,pDataSize,pData) )
2018-01-23 23:40:17 +01:00
#define IDXGIOutputDuplication_GetParent(This,riid,ppParent) \
2019-02-03 15:49:35 -08:00
( (This)->lpVtbl -> GetParent(This,riid,ppParent) )
2018-01-23 23:40:17 +01:00
#define IDXGIOutputDuplication_GetDesc(This,pDesc) \
2019-02-03 15:49:35 -08:00
( (This)->lpVtbl -> GetDesc(This,pDesc) )
2018-01-23 23:40:17 +01:00
#define IDXGIOutputDuplication_AcquireNextFrame(This,TimeoutInMilliseconds,pFrameInfo,ppDesktopResource) \
2019-02-03 15:49:35 -08:00
( (This)->lpVtbl -> AcquireNextFrame(This,TimeoutInMilliseconds,pFrameInfo,ppDesktopResource) )
2018-01-23 23:40:17 +01:00
#define IDXGIOutputDuplication_GetFrameDirtyRects(This,DirtyRectsBufferSize,pDirtyRectsBuffer,pDirtyRectsBufferSizeRequired) \
2019-02-03 15:49:35 -08:00
( (This)->lpVtbl -> GetFrameDirtyRects(This,DirtyRectsBufferSize,pDirtyRectsBuffer,pDirtyRectsBufferSizeRequired) )
2018-01-23 23:40:17 +01:00
#define IDXGIOutputDuplication_GetFrameMoveRects(This,MoveRectsBufferSize,pMoveRectBuffer,pMoveRectsBufferSizeRequired) \
2019-02-03 15:49:35 -08:00
( (This)->lpVtbl -> GetFrameMoveRects(This,MoveRectsBufferSize,pMoveRectBuffer,pMoveRectsBufferSizeRequired) )
2018-01-23 23:40:17 +01:00
#define IDXGIOutputDuplication_GetFramePointerShape(This,PointerShapeBufferSize,pPointerShapeBuffer,pPointerShapeBufferSizeRequired,pPointerShapeInfo) \
2019-02-03 15:49:35 -08:00
( (This)->lpVtbl -> GetFramePointerShape(This,PointerShapeBufferSize,pPointerShapeBuffer,pPointerShapeBufferSizeRequired,pPointerShapeInfo) )
2018-01-23 23:40:17 +01:00
#define IDXGIOutputDuplication_MapDesktopSurface(This,pLockedRect) \
2019-02-03 15:49:35 -08:00
( (This)->lpVtbl -> MapDesktopSurface(This,pLockedRect) )
2018-01-23 23:40:17 +01:00
#define IDXGIOutputDuplication_UnMapDesktopSurface(This) \
2019-02-03 15:49:35 -08:00
( (This)->lpVtbl -> UnMapDesktopSurface(This) )
2018-01-23 23:40:17 +01:00
#define IDXGIOutputDuplication_ReleaseFrame(This) \
2019-02-03 15:49:35 -08:00
( (This)->lpVtbl -> ReleaseFrame(This) )
2018-01-23 23:40:17 +01:00
#endif /* COBJMACROS */
#endif /* C style interface */
#endif /* __IDXGIOutputDuplication_INTERFACE_DEFINED__ */
/* interface __MIDL_itf_dxgi1_2_0000_0002 */
2019-02-03 15:49:35 -08:00
/* [local] */
2018-01-23 23:40:17 +01:00
/*#endif*/ /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */
/*#pragma endregion*/
/*#pragma region App Family*/
/*#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP)*/
2019-02-03 15:49:35 -08:00
typedef
2018-01-23 23:40:17 +01:00
enum DXGI_ALPHA_MODE
{
DXGI_ALPHA_MODE_UNSPECIFIED = 0,
DXGI_ALPHA_MODE_PREMULTIPLIED = 1,
DXGI_ALPHA_MODE_STRAIGHT = 2,
DXGI_ALPHA_MODE_IGNORE = 3,
DXGI_ALPHA_MODE_FORCE_DWORD = 0xffffffff
} DXGI_ALPHA_MODE;
extern RPC_IF_HANDLE __MIDL_itf_dxgi1_2_0000_0002_v0_0_c_ifspec;
extern RPC_IF_HANDLE __MIDL_itf_dxgi1_2_0000_0002_v0_0_s_ifspec;
#ifndef __IDXGISurface2_INTERFACE_DEFINED__
#define __IDXGISurface2_INTERFACE_DEFINED__
/* interface IDXGISurface2 */
2019-02-03 15:49:35 -08:00
/* [unique][local][uuid][object] */
2018-01-23 23:40:17 +01:00
EXTERN_C const IID IID_IDXGISurface2;
#if defined(__cplusplus) && !defined(CINTERFACE)
2019-02-03 15:49:35 -08:00
2018-01-23 23:40:17 +01:00
MIDL_INTERFACE("aba496dd-b617-4cb8-a866-bc44d7eb1fa2")
IDXGISurface2 : public IDXGISurface1
{
public:
2019-02-03 15:49:35 -08:00
virtual HRESULT STDMETHODCALLTYPE GetResource(
/* [annotation][in] */
2018-01-23 23:40:17 +01:00
_In_ REFIID riid,
2019-02-03 15:49:35 -08:00
/* [annotation][out] */
2018-01-23 23:40:17 +01:00
_COM_Outptr_ void **ppParentResource,
2019-02-03 15:49:35 -08:00
/* [annotation][out] */
2018-01-23 23:40:17 +01:00
_Out_ UINT *pSubresourceIndex) = 0;
2019-02-03 15:49:35 -08:00
2018-01-23 23:40:17 +01:00
};
2019-02-03 15:49:35 -08:00
2018-01-23 23:40:17 +01:00
#else /* C style interface */
typedef struct IDXGISurface2Vtbl
{
BEGIN_INTERFACE
2019-02-03 15:49:35 -08:00
HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
2018-01-23 23:40:17 +01:00
IDXGISurface2 * This,
/* [in] */ REFIID riid,
2019-02-03 15:49:35 -08:00
/* [annotation][iid_is][out] */
2018-01-23 23:40:17 +01:00
_COM_Outptr_ void **ppvObject);
2019-02-03 15:49:35 -08:00
ULONG ( STDMETHODCALLTYPE *AddRef )(
2018-01-23 23:40:17 +01:00
IDXGISurface2 * This);
2019-02-03 15:49:35 -08:00
ULONG ( STDMETHODCALLTYPE *Release )(
2018-01-23 23:40:17 +01:00
IDXGISurface2 * This);
2019-02-03 15:49:35 -08:00
HRESULT ( STDMETHODCALLTYPE *SetPrivateData )(
2018-01-23 23:40:17 +01:00
IDXGISurface2 * This,
2019-02-03 15:49:35 -08:00
/* [annotation][in] */
2018-01-23 23:40:17 +01:00
_In_ REFGUID Name,
/* [in] */ UINT DataSize,
2019-02-03 15:49:35 -08:00
/* [annotation][in] */
2018-01-23 23:40:17 +01:00
_In_reads_bytes_(DataSize) const void *pData);
2019-02-03 15:49:35 -08:00
HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )(
2018-01-23 23:40:17 +01:00
IDXGISurface2 * This,
2019-02-03 15:49:35 -08:00
/* [annotation][in] */
2018-01-23 23:40:17 +01:00
_In_ REFGUID Name,
2019-02-03 15:49:35 -08:00
/* [annotation][in] */
2018-01-23 23:40:17 +01:00
_In_opt_ const IUnknown *pUnknown);
2019-02-03 15:49:35 -08:00
HRESULT ( STDMETHODCALLTYPE *GetPrivateData )(
2018-01-23 23:40:17 +01:00
IDXGISurface2 * This,
2019-02-03 15:49:35 -08:00
/* [annotation][in] */
2018-01-23 23:40:17 +01:00
_In_ REFGUID Name,
2019-02-03 15:49:35 -08:00
/* [annotation][out][in] */
2018-01-23 23:40:17 +01:00
_Inout_ UINT *pDataSize,
2019-02-03 15:49:35 -08:00
/* [annotation][out] */
2018-01-23 23:40:17 +01:00
_Out_writes_bytes_(*pDataSize) void *pData);
2019-02-03 15:49:35 -08:00
HRESULT ( STDMETHODCALLTYPE *GetParent )(
2018-01-23 23:40:17 +01:00
IDXGISurface2 * This,
2019-02-03 15:49:35 -08:00
/* [annotation][in] */
2018-01-23 23:40:17 +01:00
_In_ REFIID riid,
2019-02-03 15:49:35 -08:00
/* [annotation][retval][out] */
2018-01-23 23:40:17 +01:00
_COM_Outptr_ void **ppParent);
2019-02-03 15:49:35 -08:00
HRESULT ( STDMETHODCALLTYPE *GetDevice )(
2018-01-23 23:40:17 +01:00
IDXGISurface2 * This,
2019-02-03 15:49:35 -08:00
/* [annotation][in] */
2018-01-23 23:40:17 +01:00
_In_ REFIID riid,
2019-02-03 15:49:35 -08:00
/* [annotation][retval][out] */
2018-01-23 23:40:17 +01:00
_COM_Outptr_ void **ppDevice);
2019-02-03 15:49:35 -08:00
HRESULT ( STDMETHODCALLTYPE *GetDesc )(
2018-01-23 23:40:17 +01:00
IDXGISurface2 * This,
2019-02-03 15:49:35 -08:00
/* [annotation][out] */
2018-01-23 23:40:17 +01:00
_Out_ DXGI_SURFACE_DESC *pDesc);
2019-02-03 15:49:35 -08:00
HRESULT ( STDMETHODCALLTYPE *Map )(
2018-01-23 23:40:17 +01:00
IDXGISurface2 * This,
2019-02-03 15:49:35 -08:00
/* [annotation][out] */
2018-01-23 23:40:17 +01:00
_Out_ DXGI_MAPPED_RECT *pLockedRect,
/* [in] */ UINT MapFlags);
2019-02-03 15:49:35 -08:00
HRESULT ( STDMETHODCALLTYPE *Unmap )(
2018-01-23 23:40:17 +01:00
IDXGISurface2 * This);
2019-02-03 15:49:35 -08:00
HRESULT ( STDMETHODCALLTYPE *GetDC )(
2018-01-23 23:40:17 +01:00
IDXGISurface2 * This,
/* [in] */ BOOL Discard,
2019-02-03 15:49:35 -08:00
/* [annotation][out] */
2018-01-23 23:40:17 +01:00
_Out_ HDC *phdc);
2019-02-03 15:49:35 -08:00
HRESULT ( STDMETHODCALLTYPE *ReleaseDC )(
2018-01-23 23:40:17 +01:00
IDXGISurface2 * This,
2019-02-03 15:49:35 -08:00
/* [annotation][in] */
2018-01-23 23:40:17 +01:00
_In_opt_ RECT *pDirtyRect);
2019-02-03 15:49:35 -08:00
HRESULT ( STDMETHODCALLTYPE *GetResource )(
2018-01-23 23:40:17 +01:00
IDXGISurface2 * This,
2019-02-03 15:49:35 -08:00
/* [annotation][in] */
2018-01-23 23:40:17 +01:00
_In_ REFIID riid,
2019-02-03 15:49:35 -08:00
/* [annotation][out] */
2018-01-23 23:40:17 +01:00
_COM_Outptr_ void **ppParentResource,
2019-02-03 15:49:35 -08:00
/* [annotation][out] */
2018-01-23 23:40:17 +01:00
_Out_ UINT *pSubresourceIndex);
2019-02-03 15:49:35 -08:00
2018-01-23 23:40:17 +01:00
END_INTERFACE
} IDXGISurface2Vtbl;
interface IDXGISurface2
{
CONST_VTBL struct IDXGISurface2Vtbl *lpVtbl;
};
#ifdef COBJMACROS
#define IDXGISurface2_QueryInterface(This,riid,ppvObject) \
2019-02-03 15:49:35 -08:00
( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
2018-01-23 23:40:17 +01:00
#define IDXGISurface2_AddRef(This) \
2019-02-03 15:49:35 -08:00
( (This)->lpVtbl -> AddRef(This) )
2018-01-23 23:40:17 +01:00
#define IDXGISurface2_Release(This) \
2019-02-03 15:49:35 -08:00
( (This)->lpVtbl -> Release(This) )
2018-01-23 23:40:17 +01:00
#define IDXGISurface2_SetPrivateData(This,Name,DataSize,pData) \
2019-02-03 15:49:35 -08:00
( (This)->lpVtbl -> SetPrivateData(This,Name,DataSize,pData) )
2018-01-23 23:40:17 +01:00
#define IDXGISurface2_SetPrivateDataInterface(This,Name,pUnknown) \
2019-02-03 15:49:35 -08:00
( (This)->lpVtbl -> SetPrivateDataInterface(This,Name,pUnknown) )
2018-01-23 23:40:17 +01:00
#define IDXGISurface2_GetPrivateData(This,Name,pDataSize,pData) \
2019-02-03 15:49:35 -08:00
( (This)->lpVtbl -> GetPrivateData(This,Name,pDataSize,pData) )
2018-01-23 23:40:17 +01:00
#define IDXGISurface2_GetParent(This,riid,ppParent) \
2019-02-03 15:49:35 -08:00
( (This)->lpVtbl -> GetParent(This,riid,ppParent) )
2018-01-23 23:40:17 +01:00
#define IDXGISurface2_GetDevice(This,riid,ppDevice) \
2019-02-03 15:49:35 -08:00
( (This)->lpVtbl -> GetDevice(This,riid,ppDevice) )
2018-01-23 23:40:17 +01:00
#define IDXGISurface2_GetDesc(This,pDesc) \
2019-02-03 15:49:35 -08:00
( (This)->lpVtbl -> GetDesc(This,pDesc) )
2018-01-23 23:40:17 +01:00
#define IDXGISurface2_Map(This,pLockedRect,MapFlags) \
2019-02-03 15:49:35 -08:00
( (This)->lpVtbl -> Map(This,pLockedRect,MapFlags) )
2018-01-23 23:40:17 +01:00
#define IDXGISurface2_Unmap(This) \
2019-02-03 15:49:35 -08:00
( (This)->lpVtbl -> Unmap(This) )
2018-01-23 23:40:17 +01:00
#define IDXGISurface2_GetDC(This,Discard,phdc) \
2019-02-03 15:49:35 -08:00
( (This)->lpVtbl -> GetDC(This,Discard,phdc) )
2018-01-23 23:40:17 +01:00
#define IDXGISurface2_ReleaseDC(This,pDirtyRect) \
2019-02-03 15:49:35 -08:00
( (This)->lpVtbl -> ReleaseDC(This,pDirtyRect) )
2018-01-23 23:40:17 +01:00
#define IDXGISurface2_GetResource(This,riid,ppParentResource,pSubresourceIndex) \
2019-02-03 15:49:35 -08:00
( (This)->lpVtbl -> GetResource(This,riid,ppParentResource,pSubresourceIndex) )
2018-01-23 23:40:17 +01:00
#endif /* COBJMACROS */
#endif /* C style interface */
#endif /* __IDXGISurface2_INTERFACE_DEFINED__ */
#ifndef __IDXGIResource1_INTERFACE_DEFINED__
#define __IDXGIResource1_INTERFACE_DEFINED__
/* interface IDXGIResource1 */
2019-02-03 15:49:35 -08:00
/* [unique][local][uuid][object] */
2018-01-23 23:40:17 +01:00
EXTERN_C const IID IID_IDXGIResource1;
#if defined(__cplusplus) && !defined(CINTERFACE)
2019-02-03 15:49:35 -08:00
2018-01-23 23:40:17 +01:00
MIDL_INTERFACE("30961379-4609-4a41-998e-54fe567ee0c1")
IDXGIResource1 : public IDXGIResource
{
public:
2019-02-03 15:49:35 -08:00
virtual HRESULT STDMETHODCALLTYPE CreateSubresourceSurface(
2018-01-23 23:40:17 +01:00
UINT index,
2019-02-03 15:49:35 -08:00
/* [annotation][out] */
2018-01-23 23:40:17 +01:00
_COM_Outptr_ IDXGISurface2 **ppSurface) = 0;
2019-02-03 15:49:35 -08:00
virtual HRESULT STDMETHODCALLTYPE CreateSharedHandle(
/* [annotation][in] */
2018-01-23 23:40:17 +01:00
_In_opt_ const SECURITY_ATTRIBUTES *pAttributes,
2019-02-03 15:49:35 -08:00
/* [annotation][in] */
2018-01-23 23:40:17 +01:00
_In_ DWORD dwAccess,
2019-02-03 15:49:35 -08:00
/* [annotation][in] */
2018-01-23 23:40:17 +01:00
_In_opt_ LPCWSTR lpName,
2019-02-03 15:49:35 -08:00
/* [annotation][out] */
2018-01-23 23:40:17 +01:00
_Out_ HANDLE *pHandle) = 0;
2019-02-03 15:49:35 -08:00
2018-01-23 23:40:17 +01:00
};
2019-02-03 15:49:35 -08:00
2018-01-23 23:40:17 +01:00
#else /* C style interface */
typedef struct IDXGIResource1Vtbl
{
BEGIN_INTERFACE
2019-02-03 15:49:35 -08:00
HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
2018-01-23 23:40:17 +01:00
IDXGIResource1 * This,
/* [in] */ REFIID riid,
2019-02-03 15:49:35 -08:00
/* [annotation][iid_is][out] */
2018-01-23 23:40:17 +01:00
_COM_Outptr_ void **ppvObject);
2019-02-03 15:49:35 -08:00
ULONG ( STDMETHODCALLTYPE *AddRef )(
2018-01-23 23:40:17 +01:00
IDXGIResource1 * This);
2019-02-03 15:49:35 -08:00
ULONG ( STDMETHODCALLTYPE *Release )(
2018-01-23 23:40:17 +01:00
IDXGIResource1 * This);
2019-02-03 15:49:35 -08:00
HRESULT ( STDMETHODCALLTYPE *SetPrivateData )(
2018-01-23 23:40:17 +01:00
IDXGIResource1 * This,
2019-02-03 15:49:35 -08:00
/* [annotation][in] */
2018-01-23 23:40:17 +01:00
_In_ REFGUID Name,
/* [in] */ UINT DataSize,
2019-02-03 15:49:35 -08:00
/* [annotation][in] */
2018-01-23 23:40:17 +01:00
_In_reads_bytes_(DataSize) const void *pData);
2019-02-03 15:49:35 -08:00
HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )(
2018-01-23 23:40:17 +01:00
IDXGIResource1 * This,
2019-02-03 15:49:35 -08:00
/* [annotation][in] */
2018-01-23 23:40:17 +01:00
_In_ REFGUID Name,
2019-02-03 15:49:35 -08:00
/* [annotation][in] */
2018-01-23 23:40:17 +01:00
_In_opt_ const IUnknown *pUnknown);
2019-02-03 15:49:35 -08:00
HRESULT ( STDMETHODCALLTYPE *GetPrivateData )(
2018-01-23 23:40:17 +01:00
IDXGIResource1 * This,
2019-02-03 15:49:35 -08:00
/* [annotation][in] */
2018-01-23 23:40:17 +01:00
_In_ REFGUID Name,
2019-02-03 15:49:35 -08:00
/* [annotation][out][in] */
2018-01-23 23:40:17 +01:00
_Inout_ UINT *pDataSize,
2019-02-03 15:49:35 -08:00
/* [annotation][out] */
2018-01-23 23:40:17 +01:00
_Out_writes_bytes_(*pDataSize) void *pData);
2019-02-03 15:49:35 -08:00
HRESULT ( STDMETHODCALLTYPE *GetParent )(
2018-01-23 23:40:17 +01:00
IDXGIResource1 * This,
2019-02-03 15:49:35 -08:00
/* [annotation][in] */
2018-01-23 23:40:17 +01:00
_In_ REFIID riid,
2019-02-03 15:49:35 -08:00
/* [annotation][retval][out] */
2018-01-23 23:40:17 +01:00
_COM_Outptr_ void **ppParent);
2019-02-03 15:49:35 -08:00
HRESULT ( STDMETHODCALLTYPE *GetDevice )(
2018-01-23 23:40:17 +01:00
IDXGIResource1 * This,
2019-02-03 15:49:35 -08:00
/* [annotation][in] */
2018-01-23 23:40:17 +01:00
_In_ REFIID riid,
2019-02-03 15:49:35 -08:00
/* [annotation][retval][out] */
2018-01-23 23:40:17 +01:00
_COM_Outptr_ void **ppDevice);
2019-02-03 15:49:35 -08:00
HRESULT ( STDMETHODCALLTYPE *GetSharedHandle )(
2018-01-23 23:40:17 +01:00
IDXGIResource1 * This,
2019-02-03 15:49:35 -08:00
/* [annotation][out] */
2018-01-23 23:40:17 +01:00
_Out_ HANDLE *pSharedHandle);
2019-02-03 15:49:35 -08:00
HRESULT ( STDMETHODCALLTYPE *GetUsage )(
2018-01-23 23:40:17 +01:00
IDXGIResource1 * This,
/* [out] */ DXGI_USAGE *pUsage);
2019-02-03 15:49:35 -08:00
HRESULT ( STDMETHODCALLTYPE *SetEvictionPriority )(
2018-01-23 23:40:17 +01:00
IDXGIResource1 * This,
/* [in] */ UINT EvictionPriority);
2019-02-03 15:49:35 -08:00
HRESULT ( STDMETHODCALLTYPE *GetEvictionPriority )(
2018-01-23 23:40:17 +01:00
IDXGIResource1 * This,
2019-02-03 15:49:35 -08:00
/* [annotation][retval][out] */
2018-01-23 23:40:17 +01:00
_Out_ UINT *pEvictionPriority);
2019-02-03 15:49:35 -08:00
HRESULT ( STDMETHODCALLTYPE *CreateSubresourceSurface )(
2018-01-23 23:40:17 +01:00
IDXGIResource1 * This,
UINT index,
2019-02-03 15:49:35 -08:00
/* [annotation][out] */
2018-01-23 23:40:17 +01:00
_COM_Outptr_ IDXGISurface2 **ppSurface);
2019-02-03 15:49:35 -08:00
HRESULT ( STDMETHODCALLTYPE *CreateSharedHandle )(
2018-01-23 23:40:17 +01:00
IDXGIResource1 * This,
2019-02-03 15:49:35 -08:00
/* [annotation][in] */
2018-01-23 23:40:17 +01:00
_In_opt_ const SECURITY_ATTRIBUTES *pAttributes,
2019-02-03 15:49:35 -08:00
/* [annotation][in] */
2018-01-23 23:40:17 +01:00
_In_ DWORD dwAccess,
2019-02-03 15:49:35 -08:00
/* [annotation][in] */
2018-01-23 23:40:17 +01:00
_In_opt_ LPCWSTR lpName,
2019-02-03 15:49:35 -08:00
/* [annotation][out] */
2018-01-23 23:40:17 +01:00
_Out_ HANDLE *pHandle);
2019-02-03 15:49:35 -08:00
2018-01-23 23:40:17 +01:00
END_INTERFACE
} IDXGIResource1Vtbl;
interface IDXGIResource1
{
CONST_VTBL struct IDXGIResource1Vtbl *lpVtbl;
};
#ifdef COBJMACROS
#define IDXGIResource1_QueryInterface(This,riid,ppvObject) \
2019-02-03 15:49:35 -08:00
( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
2018-01-23 23:40:17 +01:00
#define IDXGIResource1_AddRef(This) \
2019-02-03 15:49:35 -08:00
( (This)->lpVtbl -> AddRef(This) )
2018-01-23 23:40:17 +01:00
#define IDXGIResource1_Release(This) \
2019-02-03 15:49:35 -08:00
( (This)->lpVtbl -> Release(This) )
2018-01-23 23:40:17 +01:00
#define IDXGIResource1_SetPrivateData(This,Name,DataSize,pData) \
2019-02-03 15:49:35 -08:00
( (This)->lpVtbl -> SetPrivateData(This,Name,DataSize,pData) )
2018-01-23 23:40:17 +01:00
#define IDXGIResource1_SetPrivateDataInterface(This,Name,pUnknown) \
2019-02-03 15:49:35 -08:00
( (This)->lpVtbl -> SetPrivateDataInterface(This,Name,pUnknown) )
2018-01-23 23:40:17 +01:00
#define IDXGIResource1_GetPrivateData(This,Name,pDataSize,pData) \
2019-02-03 15:49:35 -08:00
( (This)->lpVtbl -> GetPrivateData(This,Name,pDataSize,pData) )
2018-01-23 23:40:17 +01:00
#define IDXGIResource1_GetParent(This,riid,ppParent) \
2019-02-03 15:49:35 -08:00
( (This)->lpVtbl -> GetParent(This,riid,ppParent) )
2018-01-23 23:40:17 +01:00
#define IDXGIResource1_GetDevice(This,riid,ppDevice) \
2019-02-03 15:49:35 -08:00
( (This)->lpVtbl -> GetDevice(This,riid,ppDevice) )
2018-01-23 23:40:17 +01:00
#define IDXGIResource1_GetSharedHandle(This,pSharedHandle) \
2019-02-03 15:49:35 -08:00
( (This)->lpVtbl -> GetSharedHandle(This,pSharedHandle) )
2018-01-23 23:40:17 +01:00
#define IDXGIResource1_GetUsage(This,pUsage) \
2019-02-03 15:49:35 -08:00
( (This)->lpVtbl -> GetUsage(This,pUsage) )
2018-01-23 23:40:17 +01:00
#define IDXGIResource1_SetEvictionPriority(This,EvictionPriority) \
2019-02-03 15:49:35 -08:00
( (This)->lpVtbl -> SetEvictionPriority(This,EvictionPriority) )
2018-01-23 23:40:17 +01:00
#define IDXGIResource1_GetEvictionPriority(This,pEvictionPriority) \
2019-02-03 15:49:35 -08:00
( (This)->lpVtbl -> GetEvictionPriority(This,pEvictionPriority) )
2018-01-23 23:40:17 +01:00
#define IDXGIResource1_CreateSubresourceSurface(This,index,ppSurface) \
2019-02-03 15:49:35 -08:00
( (This)->lpVtbl -> CreateSubresourceSurface(This,index,ppSurface) )
2018-01-23 23:40:17 +01:00
#define IDXGIResource1_CreateSharedHandle(This,pAttributes,dwAccess,lpName,pHandle) \
2019-02-03 15:49:35 -08:00
( (This)->lpVtbl -> CreateSharedHandle(This,pAttributes,dwAccess,lpName,pHandle) )
2018-01-23 23:40:17 +01:00
#endif /* COBJMACROS */
#endif /* C style interface */
#endif /* __IDXGIResource1_INTERFACE_DEFINED__ */
/* interface __MIDL_itf_dxgi1_2_0000_0004 */
2019-02-03 15:49:35 -08:00
/* [local] */
2018-01-23 23:40:17 +01:00
2019-02-03 15:49:35 -08:00
typedef
2018-01-23 23:40:17 +01:00
enum _DXGI_OFFER_RESOURCE_PRIORITY
{
DXGI_OFFER_RESOURCE_PRIORITY_LOW = 1,
DXGI_OFFER_RESOURCE_PRIORITY_NORMAL = ( DXGI_OFFER_RESOURCE_PRIORITY_LOW + 1 ) ,
2019-02-03 15:49:35 -08:00
DXGI_OFFER_RESOURCE_PRIORITY_HIGH = ( DXGI_OFFER_RESOURCE_PRIORITY_NORMAL + 1 )
2018-01-23 23:40:17 +01:00
} DXGI_OFFER_RESOURCE_PRIORITY;
extern RPC_IF_HANDLE __MIDL_itf_dxgi1_2_0000_0004_v0_0_c_ifspec;
extern RPC_IF_HANDLE __MIDL_itf_dxgi1_2_0000_0004_v0_0_s_ifspec;
#ifndef __IDXGIDevice2_INTERFACE_DEFINED__
#define __IDXGIDevice2_INTERFACE_DEFINED__
/* interface IDXGIDevice2 */
2019-02-03 15:49:35 -08:00
/* [unique][local][uuid][object] */
2018-01-23 23:40:17 +01:00
EXTERN_C const IID IID_IDXGIDevice2;
#if defined(__cplusplus) && !defined(CINTERFACE)
2019-02-03 15:49:35 -08:00
2018-01-23 23:40:17 +01:00
MIDL_INTERFACE("05008617-fbfd-4051-a790-144884b4f6a9")
IDXGIDevice2 : public IDXGIDevice1
{
public:
2019-02-03 15:49:35 -08:00
virtual HRESULT STDMETHODCALLTYPE OfferResources(
/* [annotation][in] */
2018-01-23 23:40:17 +01:00
_In_ UINT NumResources,
2019-02-03 15:49:35 -08:00
/* [annotation][size_is][in] */
2018-01-23 23:40:17 +01:00
_In_reads_(NumResources) IDXGIResource *const *ppResources,
2019-02-03 15:49:35 -08:00
/* [annotation][in] */
2018-01-23 23:40:17 +01:00
_In_ DXGI_OFFER_RESOURCE_PRIORITY Priority) = 0;
2019-02-03 15:49:35 -08:00
virtual HRESULT STDMETHODCALLTYPE ReclaimResources(
/* [annotation][in] */
2018-01-23 23:40:17 +01:00
_In_ UINT NumResources,
2019-02-03 15:49:35 -08:00
/* [annotation][size_is][in] */
2018-01-23 23:40:17 +01:00
_In_reads_(NumResources) IDXGIResource *const *ppResources,
2019-02-03 15:49:35 -08:00
/* [annotation][size_is][out] */
2018-01-23 23:40:17 +01:00
_Out_writes_all_opt_(NumResources) BOOL *pDiscarded) = 0;
2019-02-03 15:49:35 -08:00
virtual HRESULT STDMETHODCALLTYPE EnqueueSetEvent(
/* [annotation][in] */
2018-01-23 23:40:17 +01:00
_In_ HANDLE hEvent) = 0;
2019-02-03 15:49:35 -08:00
2018-01-23 23:40:17 +01:00
};
2019-02-03 15:49:35 -08:00
2018-01-23 23:40:17 +01:00
#else /* C style interface */
typedef struct IDXGIDevice2Vtbl
{
BEGIN_INTERFACE
2019-02-03 15:49:35 -08:00
HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
2018-01-23 23:40:17 +01:00
IDXGIDevice2 * This,
/* [in] */ REFIID riid,
2019-02-03 15:49:35 -08:00
/* [annotation][iid_is][out] */
2018-01-23 23:40:17 +01:00
_COM_Outptr_ void **ppvObject);
2019-02-03 15:49:35 -08:00
ULONG ( STDMETHODCALLTYPE *AddRef )(
2018-01-23 23:40:17 +01:00
IDXGIDevice2 * This);
2019-02-03 15:49:35 -08:00
ULONG ( STDMETHODCALLTYPE *Release )(
2018-01-23 23:40:17 +01:00
IDXGIDevice2 * This);
2019-02-03 15:49:35 -08:00
HRESULT ( STDMETHODCALLTYPE *SetPrivateData )(
2018-01-23 23:40:17 +01:00
IDXGIDevice2 * This,
2019-02-03 15:49:35 -08:00
/* [annotation][in] */
2018-01-23 23:40:17 +01:00
_In_ REFGUID Name,
/* [in] */ UINT DataSize,
2019-02-03 15:49:35 -08:00
/* [annotation][in] */
2018-01-23 23:40:17 +01:00
_In_reads_bytes_(DataSize) const void *pData);
2019-02-03 15:49:35 -08:00
HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )(
2018-01-23 23:40:17 +01:00
IDXGIDevice2 * This,
2019-02-03 15:49:35 -08:00
/* [annotation][in] */
2018-01-23 23:40:17 +01:00
_In_ REFGUID Name,
2019-02-03 15:49:35 -08:00
/* [annotation][in] */
2018-01-23 23:40:17 +01:00
_In_opt_ const IUnknown *pUnknown);
2019-02-03 15:49:35 -08:00
HRESULT ( STDMETHODCALLTYPE *GetPrivateData )(
2018-01-23 23:40:17 +01:00
IDXGIDevice2 * This,
2019-02-03 15:49:35 -08:00
/* [annotation][in] */
2018-01-23 23:40:17 +01:00
_In_ REFGUID Name,
2019-02-03 15:49:35 -08:00
/* [annotation][out][in] */
2018-01-23 23:40:17 +01:00
_Inout_ UINT *pDataSize,
2019-02-03 15:49:35 -08:00
/* [annotation][out] */
2018-01-23 23:40:17 +01:00
_Out_writes_bytes_(*pDataSize) void *pData);
2019-02-03 15:49:35 -08:00
HRESULT ( STDMETHODCALLTYPE *GetParent )(
2018-01-23 23:40:17 +01:00
IDXGIDevice2 * This,
2019-02-03 15:49:35 -08:00
/* [annotation][in] */
2018-01-23 23:40:17 +01:00
_In_ REFIID riid,
2019-02-03 15:49:35 -08:00
/* [annotation][retval][out] */
2018-01-23 23:40:17 +01:00
_COM_Outptr_ void **ppParent);
2019-02-03 15:49:35 -08:00
HRESULT ( STDMETHODCALLTYPE *GetAdapter )(
2018-01-23 23:40:17 +01:00
IDXGIDevice2 * This,
2019-02-03 15:49:35 -08:00
/* [annotation][out] */
2018-01-23 23:40:17 +01:00
_COM_Outptr_ IDXGIAdapter **pAdapter);
2019-02-03 15:49:35 -08:00
HRESULT ( STDMETHODCALLTYPE *CreateSurface )(
2018-01-23 23:40:17 +01:00
IDXGIDevice2 * This,
2019-02-03 15:49:35 -08:00
/* [annotation][in] */
2018-01-23 23:40:17 +01:00
_In_ const DXGI_SURFACE_DESC *pDesc,
/* [in] */ UINT NumSurfaces,
/* [in] */ DXGI_USAGE Usage,
2019-02-03 15:49:35 -08:00
/* [annotation][in] */
2018-01-23 23:40:17 +01:00
_In_opt_ const DXGI_SHARED_RESOURCE *pSharedResource,
2019-02-03 15:49:35 -08:00
/* [annotation][out] */
2018-01-23 23:40:17 +01:00
_COM_Outptr_ IDXGISurface **ppSurface);
2019-02-03 15:49:35 -08:00
HRESULT ( STDMETHODCALLTYPE *QueryResourceResidency )(
2018-01-23 23:40:17 +01:00
IDXGIDevice2 * This,
2019-02-03 15:49:35 -08:00
/* [annotation][size_is][in] */
2018-01-23 23:40:17 +01:00
_In_reads_(NumResources) IUnknown *const *ppResources,
2019-02-03 15:49:35 -08:00
/* [annotation][size_is][out] */
2018-01-23 23:40:17 +01:00
_Out_writes_(NumResources) DXGI_RESIDENCY *pResidencyStatus,
/* [in] */ UINT NumResources);
2019-02-03 15:49:35 -08:00
HRESULT ( STDMETHODCALLTYPE *SetGPUThreadPriority )(
2018-01-23 23:40:17 +01:00
IDXGIDevice2 * This,
/* [in] */ INT Priority);
2019-02-03 15:49:35 -08:00
HRESULT ( STDMETHODCALLTYPE *GetGPUThreadPriority )(
2018-01-23 23:40:17 +01:00
IDXGIDevice2 * This,
2019-02-03 15:49:35 -08:00
/* [annotation][retval][out] */
2018-01-23 23:40:17 +01:00
_Out_ INT *pPriority);
2019-02-03 15:49:35 -08:00
HRESULT ( STDMETHODCALLTYPE *SetMaximumFrameLatency )(
2018-01-23 23:40:17 +01:00
IDXGIDevice2 * This,
/* [in] */ UINT MaxLatency);
2019-02-03 15:49:35 -08:00
HRESULT ( STDMETHODCALLTYPE *GetMaximumFrameLatency )(
2018-01-23 23:40:17 +01:00
IDXGIDevice2 * This,
2019-02-03 15:49:35 -08:00
/* [annotation][out] */
2018-01-23 23:40:17 +01:00
_Out_ UINT *pMaxLatency);
2019-02-03 15:49:35 -08:00
HRESULT ( STDMETHODCALLTYPE *OfferResources )(
2018-01-23 23:40:17 +01:00
IDXGIDevice2 * This,
2019-02-03 15:49:35 -08:00
/* [annotation][in] */
2018-01-23 23:40:17 +01:00
_In_ UINT NumResources,
2019-02-03 15:49:35 -08:00
/* [annotation][size_is][in] */
2018-01-23 23:40:17 +01:00
_In_reads_(NumResources) IDXGIResource *const *ppResources,
2019-02-03 15:49:35 -08:00
/* [annotation][in] */
2018-01-23 23:40:17 +01:00
_In_ DXGI_OFFER_RESOURCE_PRIORITY Priority);
2019-02-03 15:49:35 -08:00
HRESULT ( STDMETHODCALLTYPE *ReclaimResources )(
2018-01-23 23:40:17 +01:00
IDXGIDevice2 * This,
2019-02-03 15:49:35 -08:00
/* [annotation][in] */
2018-01-23 23:40:17 +01:00
_In_ UINT NumResources,
2019-02-03 15:49:35 -08:00
/* [annotation][size_is][in] */
2018-01-23 23:40:17 +01:00
_In_reads_(NumResources) IDXGIResource *const *ppResources,
2019-02-03 15:49:35 -08:00
/* [annotation][size_is][out] */
2018-01-23 23:40:17 +01:00
_Out_writes_all_opt_(NumResources) BOOL *pDiscarded);
2019-02-03 15:49:35 -08:00
HRESULT ( STDMETHODCALLTYPE *EnqueueSetEvent )(
2018-01-23 23:40:17 +01:00
IDXGIDevice2 * This,
2019-02-03 15:49:35 -08:00
/* [annotation][in] */
2018-01-23 23:40:17 +01:00
_In_ HANDLE hEvent);
2019-02-03 15:49:35 -08:00
2018-01-23 23:40:17 +01:00
END_INTERFACE
} IDXGIDevice2Vtbl;
interface IDXGIDevice2
{
CONST_VTBL struct IDXGIDevice2Vtbl *lpVtbl;
};
#ifdef COBJMACROS
#define IDXGIDevice2_QueryInterface(This,riid,ppvObject) \
2019-02-03 15:49:35 -08:00
( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
2018-01-23 23:40:17 +01:00
#define IDXGIDevice2_AddRef(This) \
2019-02-03 15:49:35 -08:00
( (This)->lpVtbl -> AddRef(This) )
2018-01-23 23:40:17 +01:00
#define IDXGIDevice2_Release(This) \
2019-02-03 15:49:35 -08:00
( (This)->lpVtbl -> Release(This) )
2018-01-23 23:40:17 +01:00
#define IDXGIDevice2_SetPrivateData(This,Name,DataSize,pData) \
2019-02-03 15:49:35 -08:00
( (This)->lpVtbl -> SetPrivateData(This,Name,DataSize,pData) )
2018-01-23 23:40:17 +01:00
#define IDXGIDevice2_SetPrivateDataInterface(This,Name,pUnknown) \
2019-02-03 15:49:35 -08:00
( (This)->lpVtbl -> SetPrivateDataInterface(This,Name,pUnknown) )
2018-01-23 23:40:17 +01:00
#define IDXGIDevice2_GetPrivateData(This,Name,pDataSize,pData) \
2019-02-03 15:49:35 -08:00
( (This)->lpVtbl -> GetPrivateData(This,Name,pDataSize,pData) )
2018-01-23 23:40:17 +01:00
#define IDXGIDevice2_GetParent(This,riid,ppParent) \
2019-02-03 15:49:35 -08:00
( (This)->lpVtbl -> GetParent(This,riid,ppParent) )
2018-01-23 23:40:17 +01:00
#define IDXGIDevice2_GetAdapter(This,pAdapter) \
2019-02-03 15:49:35 -08:00
( (This)->lpVtbl -> GetAdapter(This,pAdapter) )
2018-01-23 23:40:17 +01:00
#define IDXGIDevice2_CreateSurface(This,pDesc,NumSurfaces,Usage,pSharedResource,ppSurface) \
2019-02-03 15:49:35 -08:00
( (This)->lpVtbl -> CreateSurface(This,pDesc,NumSurfaces,Usage,pSharedResource,ppSurface) )
2018-01-23 23:40:17 +01:00
#define IDXGIDevice2_QueryResourceResidency(This,ppResources,pResidencyStatus,NumResources) \
2019-02-03 15:49:35 -08:00
( (This)->lpVtbl -> QueryResourceResidency(This,ppResources,pResidencyStatus,NumResources) )
2018-01-23 23:40:17 +01:00
#define IDXGIDevice2_SetGPUThreadPriority(This,Priority) \
2019-02-03 15:49:35 -08:00
( (This)->lpVtbl -> SetGPUThreadPriority(This,Priority) )
2018-01-23 23:40:17 +01:00
#define IDXGIDevice2_GetGPUThreadPriority(This,pPriority) \
2019-02-03 15:49:35 -08:00
( (This)->lpVtbl -> GetGPUThreadPriority(This,pPriority) )
2018-01-23 23:40:17 +01:00
#define IDXGIDevice2_SetMaximumFrameLatency(This,MaxLatency) \
2019-02-03 15:49:35 -08:00
( (This)->lpVtbl -> SetMaximumFrameLatency(This,MaxLatency) )
2018-01-23 23:40:17 +01:00
#define IDXGIDevice2_GetMaximumFrameLatency(This,pMaxLatency) \
2019-02-03 15:49:35 -08:00
( (This)->lpVtbl -> GetMaximumFrameLatency(This,pMaxLatency) )
2018-01-23 23:40:17 +01:00
#define IDXGIDevice2_OfferResources(This,NumResources,ppResources,Priority) \
2019-02-03 15:49:35 -08:00
( (This)->lpVtbl -> OfferResources(This,NumResources,ppResources,Priority) )
2018-01-23 23:40:17 +01:00
#define IDXGIDevice2_ReclaimResources(This,NumResources,ppResources,pDiscarded) \
2019-02-03 15:49:35 -08:00
( (This)->lpVtbl -> ReclaimResources(This,NumResources,ppResources,pDiscarded) )
2018-01-23 23:40:17 +01:00
#define IDXGIDevice2_EnqueueSetEvent(This,hEvent) \
2019-02-03 15:49:35 -08:00
( (This)->lpVtbl -> EnqueueSetEvent(This,hEvent) )
2018-01-23 23:40:17 +01:00
#endif /* COBJMACROS */
#endif /* C style interface */
#endif /* __IDXGIDevice2_INTERFACE_DEFINED__ */
/* interface __MIDL_itf_dxgi1_2_0000_0005 */
2019-02-03 15:49:35 -08:00
/* [local] */
2018-01-23 23:40:17 +01:00
#define DXGI_ENUM_MODES_STEREO ( 4UL )
#define DXGI_ENUM_MODES_DISABLED_STEREO ( 8UL )
#define DXGI_SHARED_RESOURCE_READ ( 0x80000000L )
#define DXGI_SHARED_RESOURCE_WRITE ( 1 )
typedef struct DXGI_MODE_DESC1
{
UINT Width;
UINT Height;
DXGI_RATIONAL RefreshRate;
DXGI_FORMAT Format;
DXGI_MODE_SCANLINE_ORDER ScanlineOrdering;
DXGI_MODE_SCALING Scaling;
BOOL Stereo;
} DXGI_MODE_DESC1;
2019-02-03 15:49:35 -08:00
typedef
2018-01-23 23:40:17 +01:00
enum DXGI_SCALING
{
DXGI_SCALING_STRETCH = 0,
DXGI_SCALING_NONE = 1,
DXGI_SCALING_ASPECT_RATIO_STRETCH = 2
} DXGI_SCALING;
typedef struct DXGI_SWAP_CHAIN_DESC1
{
UINT Width;
UINT Height;
DXGI_FORMAT Format;
BOOL Stereo;
DXGI_SAMPLE_DESC SampleDesc;
DXGI_USAGE BufferUsage;
UINT BufferCount;
DXGI_SCALING Scaling;
DXGI_SWAP_EFFECT SwapEffect;
DXGI_ALPHA_MODE AlphaMode;
UINT Flags;
} DXGI_SWAP_CHAIN_DESC1;
typedef struct DXGI_SWAP_CHAIN_FULLSCREEN_DESC
{
DXGI_RATIONAL RefreshRate;
DXGI_MODE_SCANLINE_ORDER ScanlineOrdering;
DXGI_MODE_SCALING Scaling;
BOOL Windowed;
} DXGI_SWAP_CHAIN_FULLSCREEN_DESC;
typedef struct DXGI_PRESENT_PARAMETERS
{
UINT DirtyRectsCount;
2019-02-03 15:49:35 -08:00
/* [annotation] */
2018-01-23 23:40:17 +01:00
_Field_size_full_opt_(DirtyRectsCount) RECT *pDirtyRects;
RECT *pScrollRect;
POINT *pScrollOffset;
} DXGI_PRESENT_PARAMETERS;
extern RPC_IF_HANDLE __MIDL_itf_dxgi1_2_0000_0005_v0_0_c_ifspec;
extern RPC_IF_HANDLE __MIDL_itf_dxgi1_2_0000_0005_v0_0_s_ifspec;
#ifndef __IDXGISwapChain1_INTERFACE_DEFINED__
#define __IDXGISwapChain1_INTERFACE_DEFINED__
/* interface IDXGISwapChain1 */
2019-02-03 15:49:35 -08:00
/* [unique][local][uuid][object] */
2018-01-23 23:40:17 +01:00
EXTERN_C const IID IID_IDXGISwapChain1;
#if defined(__cplusplus) && !defined(CINTERFACE)
2019-02-03 15:49:35 -08:00
2018-01-23 23:40:17 +01:00
MIDL_INTERFACE("790a45f7-0d42-4876-983a-0a55cfe6f4aa")
IDXGISwapChain1 : public IDXGISwapChain
{
public:
2019-02-03 15:49:35 -08:00
virtual HRESULT STDMETHODCALLTYPE GetDesc1(
/* [annotation][out] */
2018-01-23 23:40:17 +01:00
_Out_ DXGI_SWAP_CHAIN_DESC1 *pDesc) = 0;
2019-02-03 15:49:35 -08:00
virtual HRESULT STDMETHODCALLTYPE GetFullscreenDesc(
/* [annotation][out] */
2018-01-23 23:40:17 +01:00
_Out_ DXGI_SWAP_CHAIN_FULLSCREEN_DESC *pDesc) = 0;
2019-02-03 15:49:35 -08:00
virtual HRESULT STDMETHODCALLTYPE GetHwnd(
/* [annotation][out] */
2018-01-23 23:40:17 +01:00
_Out_ HWND *pHwnd) = 0;
2019-02-03 15:49:35 -08:00
virtual HRESULT STDMETHODCALLTYPE GetCoreWindow(
/* [annotation][in] */
2018-01-23 23:40:17 +01:00
_In_ REFIID refiid,
2019-02-03 15:49:35 -08:00
/* [annotation][out] */
2018-01-23 23:40:17 +01:00
_COM_Outptr_ void **ppUnk) = 0;
2019-02-03 15:49:35 -08:00
virtual HRESULT STDMETHODCALLTYPE Present1(
2018-01-23 23:40:17 +01:00
/* [in] */ UINT SyncInterval,
/* [in] */ UINT PresentFlags,
2019-02-03 15:49:35 -08:00
/* [annotation][in] */
2018-01-23 23:40:17 +01:00
_In_ const DXGI_PRESENT_PARAMETERS *pPresentParameters) = 0;
2019-02-03 15:49:35 -08:00
2018-01-23 23:40:17 +01:00
virtual BOOL STDMETHODCALLTYPE IsTemporaryMonoSupported( void) = 0;
2019-02-03 15:49:35 -08:00
virtual HRESULT STDMETHODCALLTYPE GetRestrictToOutput(
/* [annotation][out] */
2018-01-23 23:40:17 +01:00
_Out_ IDXGIOutput **ppRestrictToOutput) = 0;
2019-02-03 15:49:35 -08:00
virtual HRESULT STDMETHODCALLTYPE SetBackgroundColor(
/* [annotation][in] */
2018-01-23 23:40:17 +01:00
_In_ const DXGI_RGBA *pColor) = 0;
2019-02-03 15:49:35 -08:00
virtual HRESULT STDMETHODCALLTYPE GetBackgroundColor(
/* [annotation][out] */
2018-01-23 23:40:17 +01:00
_Out_ DXGI_RGBA *pColor) = 0;
2019-02-03 15:49:35 -08:00
virtual HRESULT STDMETHODCALLTYPE SetRotation(
/* [annotation][in] */
2018-01-23 23:40:17 +01:00
_In_ DXGI_MODE_ROTATION Rotation) = 0;
2019-02-03 15:49:35 -08:00
virtual HRESULT STDMETHODCALLTYPE GetRotation(
/* [annotation][out] */
2018-01-23 23:40:17 +01:00
_Out_ DXGI_MODE_ROTATION *pRotation) = 0;
2019-02-03 15:49:35 -08:00
2018-01-23 23:40:17 +01:00
};
2019-02-03 15:49:35 -08:00
2018-01-23 23:40:17 +01:00
#else /* C style interface */
typedef struct IDXGISwapChain1Vtbl
{
BEGIN_INTERFACE
2019-02-03 15:49:35 -08:00
HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
2018-01-23 23:40:17 +01:00
IDXGISwapChain1 * This,
/* [in] */ REFIID riid,
2019-02-03 15:49:35 -08:00
/* [annotation][iid_is][out] */
2018-01-23 23:40:17 +01:00
_COM_Outptr_ void **ppvObject);
2019-02-03 15:49:35 -08:00
ULONG ( STDMETHODCALLTYPE *AddRef )(
2018-01-23 23:40:17 +01:00
IDXGISwapChain1 * This);
2019-02-03 15:49:35 -08:00
ULONG ( STDMETHODCALLTYPE *Release )(
2018-01-23 23:40:17 +01:00
IDXGISwapChain1 * This);
2019-02-03 15:49:35 -08:00
HRESULT ( STDMETHODCALLTYPE *SetPrivateData )(
2018-01-23 23:40:17 +01:00
IDXGISwapChain1 * This,
2019-02-03 15:49:35 -08:00
/* [annotation][in] */
2018-01-23 23:40:17 +01:00
_In_ REFGUID Name,
/* [in] */ UINT DataSize,
2019-02-03 15:49:35 -08:00
/* [annotation][in] */
2018-01-23 23:40:17 +01:00
_In_reads_bytes_(DataSize) const void *pData);
2019-02-03 15:49:35 -08:00
HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )(
2018-01-23 23:40:17 +01:00
IDXGISwapChain1 * This,
2019-02-03 15:49:35 -08:00
/* [annotation][in] */
2018-01-23 23:40:17 +01:00
_In_ REFGUID Name,
2019-02-03 15:49:35 -08:00
/* [annotation][in] */
2018-01-23 23:40:17 +01:00
_In_opt_ const IUnknown *pUnknown);
2019-02-03 15:49:35 -08:00
HRESULT ( STDMETHODCALLTYPE *GetPrivateData )(
2018-01-23 23:40:17 +01:00
IDXGISwapChain1 * This,
2019-02-03 15:49:35 -08:00
/* [annotation][in] */
2018-01-23 23:40:17 +01:00
_In_ REFGUID Name,
2019-02-03 15:49:35 -08:00
/* [annotation][out][in] */
2018-01-23 23:40:17 +01:00
_Inout_ UINT *pDataSize,
2019-02-03 15:49:35 -08:00
/* [annotation][out] */
2018-01-23 23:40:17 +01:00
_Out_writes_bytes_(*pDataSize) void *pData);
2019-02-03 15:49:35 -08:00
HRESULT ( STDMETHODCALLTYPE *GetParent )(
2018-01-23 23:40:17 +01:00
IDXGISwapChain1 * This,
2019-02-03 15:49:35 -08:00
/* [annotation][in] */
2018-01-23 23:40:17 +01:00
_In_ REFIID riid,
2019-02-03 15:49:35 -08:00
/* [annotation][retval][out] */
2018-01-23 23:40:17 +01:00
_COM_Outptr_ void **ppParent);
2019-02-03 15:49:35 -08:00
HRESULT ( STDMETHODCALLTYPE *GetDevice )(
2018-01-23 23:40:17 +01:00
IDXGISwapChain1 * This,
2019-02-03 15:49:35 -08:00
/* [annotation][in] */
2018-01-23 23:40:17 +01:00
_In_ REFIID riid,
2019-02-03 15:49:35 -08:00
/* [annotation][retval][out] */
2018-01-23 23:40:17 +01:00
_COM_Outptr_ void **ppDevice);
2019-02-03 15:49:35 -08:00
HRESULT ( STDMETHODCALLTYPE *Present )(
2018-01-23 23:40:17 +01:00
IDXGISwapChain1 * This,
/* [in] */ UINT SyncInterval,
/* [in] */ UINT Flags);
2019-02-03 15:49:35 -08:00
HRESULT ( STDMETHODCALLTYPE *GetBuffer )(
2018-01-23 23:40:17 +01:00
IDXGISwapChain1 * This,
/* [in] */ UINT Buffer,
2019-02-03 15:49:35 -08:00
/* [annotation][in] */
2018-01-23 23:40:17 +01:00
_In_ REFIID riid,
2019-02-03 15:49:35 -08:00
/* [annotation][out][in] */
2018-01-23 23:40:17 +01:00
_COM_Outptr_ void **ppSurface);
2019-02-03 15:49:35 -08:00
HRESULT ( STDMETHODCALLTYPE *SetFullscreenState )(
2018-01-23 23:40:17 +01:00
IDXGISwapChain1 * This,
/* [in] */ BOOL Fullscreen,
2019-02-03 15:49:35 -08:00
/* [annotation][in] */
2018-01-23 23:40:17 +01:00
_In_opt_ IDXGIOutput *pTarget);
2019-02-03 15:49:35 -08:00
HRESULT ( STDMETHODCALLTYPE *GetFullscreenState )(
2018-01-23 23:40:17 +01:00
IDXGISwapChain1 * This,
2019-02-03 15:49:35 -08:00
/* [annotation][out] */
2018-01-23 23:40:17 +01:00
_Out_opt_ BOOL *pFullscreen,
2019-02-03 15:49:35 -08:00
/* [annotation][out] */
2018-01-23 23:40:17 +01:00
_COM_Outptr_opt_result_maybenull_ IDXGIOutput **ppTarget);
2019-02-03 15:49:35 -08:00
HRESULT ( STDMETHODCALLTYPE *GetDesc )(
2018-01-23 23:40:17 +01:00
IDXGISwapChain1 * This,
2019-02-03 15:49:35 -08:00
/* [annotation][out] */
2018-01-23 23:40:17 +01:00
_Out_ DXGI_SWAP_CHAIN_DESC *pDesc);
2019-02-03 15:49:35 -08:00
HRESULT ( STDMETHODCALLTYPE *ResizeBuffers )(
2018-01-23 23:40:17 +01:00
IDXGISwapChain1 * This,
/* [in] */ UINT BufferCount,
/* [in] */ UINT Width,
/* [in] */ UINT Height,
/* [in] */ DXGI_FORMAT NewFormat,
/* [in] */ UINT SwapChainFlags);
2019-02-03 15:49:35 -08:00
HRESULT ( STDMETHODCALLTYPE *ResizeTarget )(
2018-01-23 23:40:17 +01:00
IDXGISwapChain1 * This,
2019-02-03 15:49:35 -08:00
/* [annotation][in] */
2018-01-23 23:40:17 +01:00
_In_ const DXGI_MODE_DESC *pNewTargetParameters);
2019-02-03 15:49:35 -08:00
HRESULT ( STDMETHODCALLTYPE *GetContainingOutput )(
2018-01-23 23:40:17 +01:00
IDXGISwapChain1 * This,
2019-02-03 15:49:35 -08:00
/* [annotation][out] */
2018-01-23 23:40:17 +01:00
_COM_Outptr_ IDXGIOutput **ppOutput);
2019-02-03 15:49:35 -08:00
HRESULT ( STDMETHODCALLTYPE *GetFrameStatistics )(
2018-01-23 23:40:17 +01:00
IDXGISwapChain1 * This,
2019-02-03 15:49:35 -08:00
/* [annotation][out] */
2018-01-23 23:40:17 +01:00
_Out_ DXGI_FRAME_STATISTICS *pStats);
2019-02-03 15:49:35 -08:00
HRESULT ( STDMETHODCALLTYPE *GetLastPresentCount )(
2018-01-23 23:40:17 +01:00
IDXGISwapChain1 * This,
2019-02-03 15:49:35 -08:00
/* [annotation][out] */
2018-01-23 23:40:17 +01:00
_Out_ UINT *pLastPresentCount);
2019-02-03 15:49:35 -08:00
HRESULT ( STDMETHODCALLTYPE *GetDesc1 )(
2018-01-23 23:40:17 +01:00
IDXGISwapChain1 * This,
2019-02-03 15:49:35 -08:00
/* [annotation][out] */
2018-01-23 23:40:17 +01:00
_Out_ DXGI_SWAP_CHAIN_DESC1 *pDesc);
2019-02-03 15:49:35 -08:00
HRESULT ( STDMETHODCALLTYPE *GetFullscreenDesc )(
2018-01-23 23:40:17 +01:00
IDXGISwapChain1 * This,
2019-02-03 15:49:35 -08:00
/* [annotation][out] */
2018-01-23 23:40:17 +01:00
_Out_ DXGI_SWAP_CHAIN_FULLSCREEN_DESC *pDesc);
2019-02-03 15:49:35 -08:00
HRESULT ( STDMETHODCALLTYPE *GetHwnd )(
2018-01-23 23:40:17 +01:00
IDXGISwapChain1 * This,
2019-02-03 15:49:35 -08:00
/* [annotation][out] */
2018-01-23 23:40:17 +01:00
_Out_ HWND *pHwnd);
2019-02-03 15:49:35 -08:00
HRESULT ( STDMETHODCALLTYPE *GetCoreWindow )(
2018-01-23 23:40:17 +01:00
IDXGISwapChain1 * This,
2019-02-03 15:49:35 -08:00
/* [annotation][in] */
2018-01-23 23:40:17 +01:00
_In_ REFIID refiid,
2019-02-03 15:49:35 -08:00
/* [annotation][out] */
2018-01-23 23:40:17 +01:00
_COM_Outptr_ void **ppUnk);
2019-02-03 15:49:35 -08:00
HRESULT ( STDMETHODCALLTYPE *Present1 )(
2018-01-23 23:40:17 +01:00
IDXGISwapChain1 * This,
/* [in] */ UINT SyncInterval,
/* [in] */ UINT PresentFlags,
2019-02-03 15:49:35 -08:00
/* [annotation][in] */
2018-01-23 23:40:17 +01:00
_In_ const DXGI_PRESENT_PARAMETERS *pPresentParameters);
2019-02-03 15:49:35 -08:00
BOOL ( STDMETHODCALLTYPE *IsTemporaryMonoSupported )(
2018-01-23 23:40:17 +01:00
IDXGISwapChain1 * This);
2019-02-03 15:49:35 -08:00
HRESULT ( STDMETHODCALLTYPE *GetRestrictToOutput )(
2018-01-23 23:40:17 +01:00
IDXGISwapChain1 * This,
2019-02-03 15:49:35 -08:00
/* [annotation][out] */
2018-01-23 23:40:17 +01:00
_Out_ IDXGIOutput **ppRestrictToOutput);
2019-02-03 15:49:35 -08:00
HRESULT ( STDMETHODCALLTYPE *SetBackgroundColor )(
2018-01-23 23:40:17 +01:00
IDXGISwapChain1 * This,
2019-02-03 15:49:35 -08:00
/* [annotation][in] */
2018-01-23 23:40:17 +01:00
_In_ const DXGI_RGBA *pColor);
2019-02-03 15:49:35 -08:00
HRESULT ( STDMETHODCALLTYPE *GetBackgroundColor )(
2018-01-23 23:40:17 +01:00
IDXGISwapChain1 * This,
2019-02-03 15:49:35 -08:00
/* [annotation][out] */
2018-01-23 23:40:17 +01:00
_Out_ DXGI_RGBA *pColor);
2019-02-03 15:49:35 -08:00
HRESULT ( STDMETHODCALLTYPE *SetRotation )(
2018-01-23 23:40:17 +01:00
IDXGISwapChain1 * This,
2019-02-03 15:49:35 -08:00
/* [annotation][in] */
2018-01-23 23:40:17 +01:00
_In_ DXGI_MODE_ROTATION Rotation);
2019-02-03 15:49:35 -08:00
HRESULT ( STDMETHODCALLTYPE *GetRotation )(
2018-01-23 23:40:17 +01:00
IDXGISwapChain1 * This,
2019-02-03 15:49:35 -08:00
/* [annotation][out] */
2018-01-23 23:40:17 +01:00
_Out_ DXGI_MODE_ROTATION *pRotation);
2019-02-03 15:49:35 -08:00
2018-01-23 23:40:17 +01:00
END_INTERFACE
} IDXGISwapChain1Vtbl;
interface IDXGISwapChain1
{
CONST_VTBL struct IDXGISwapChain1Vtbl *lpVtbl;
};
#ifdef COBJMACROS
#define IDXGISwapChain1_QueryInterface(This,riid,ppvObject) \
2019-02-03 15:49:35 -08:00
( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
2018-01-23 23:40:17 +01:00
#define IDXGISwapChain1_AddRef(This) \
2019-02-03 15:49:35 -08:00
( (This)->lpVtbl -> AddRef(This) )
2018-01-23 23:40:17 +01:00
#define IDXGISwapChain1_Release(This) \
2019-02-03 15:49:35 -08:00
( (This)->lpVtbl -> Release(This) )
2018-01-23 23:40:17 +01:00
#define IDXGISwapChain1_SetPrivateData(This,Name,DataSize,pData) \
2019-02-03 15:49:35 -08:00
( (This)->lpVtbl -> SetPrivateData(This,Name,DataSize,pData) )
2018-01-23 23:40:17 +01:00
#define IDXGISwapChain1_SetPrivateDataInterface(This,Name,pUnknown) \
2019-02-03 15:49:35 -08:00
( (This)->lpVtbl -> SetPrivateDataInterface(This,Name,pUnknown) )
2018-01-23 23:40:17 +01:00
#define IDXGISwapChain1_GetPrivateData(This,Name,pDataSize,pData) \
2019-02-03 15:49:35 -08:00
( (This)->lpVtbl -> GetPrivateData(This,Name,pDataSize,pData) )
2018-01-23 23:40:17 +01:00
#define IDXGISwapChain1_GetParent(This,riid,ppParent) \
2019-02-03 15:49:35 -08:00
( (This)->lpVtbl -> GetParent(This,riid,ppParent) )
2018-01-23 23:40:17 +01:00
#define IDXGISwapChain1_GetDevice(This,riid,ppDevice) \
2019-02-03 15:49:35 -08:00
( (This)->lpVtbl -> GetDevice(This,riid,ppDevice) )
2018-01-23 23:40:17 +01:00
#define IDXGISwapChain1_Present(This,SyncInterval,Flags) \
2019-02-03 15:49:35 -08:00
( (This)->lpVtbl -> Present(This,SyncInterval,Flags) )
2018-01-23 23:40:17 +01:00
#define IDXGISwapChain1_GetBuffer(This,Buffer,riid,ppSurface) \
2019-02-03 15:49:35 -08:00
( (This)->lpVtbl -> GetBuffer(This,Buffer,riid,ppSurface) )
2018-01-23 23:40:17 +01:00
#define IDXGISwapChain1_SetFullscreenState(This,Fullscreen,pTarget) \
2019-02-03 15:49:35 -08:00
( (This)->lpVtbl -> SetFullscreenState(This,Fullscreen,pTarget) )
2018-01-23 23:40:17 +01:00
#define IDXGISwapChain1_GetFullscreenState(This,pFullscreen,ppTarget) \
2019-02-03 15:49:35 -08:00
( (This)->lpVtbl -> GetFullscreenState(This,pFullscreen,ppTarget) )
2018-01-23 23:40:17 +01:00
#define IDXGISwapChain1_GetDesc(This,pDesc) \
2019-02-03 15:49:35 -08:00
( (This)->lpVtbl -> GetDesc(This,pDesc) )
2018-01-23 23:40:17 +01:00
#define IDXGISwapChain1_ResizeBuffers(This,BufferCount,Width,Height,NewFormat,SwapChainFlags) \
2019-02-03 15:49:35 -08:00
( (This)->lpVtbl -> ResizeBuffers(This,BufferCount,Width,Height,NewFormat,SwapChainFlags) )
2018-01-23 23:40:17 +01:00
#define IDXGISwapChain1_ResizeTarget(This,pNewTargetParameters) \
2019-02-03 15:49:35 -08:00
( (This)->lpVtbl -> ResizeTarget(This,pNewTargetParameters) )
2018-01-23 23:40:17 +01:00
#define IDXGISwapChain1_GetContainingOutput(This,ppOutput) \
2019-02-03 15:49:35 -08:00
( (This)->lpVtbl -> GetContainingOutput(This,ppOutput) )
2018-01-23 23:40:17 +01:00
#define IDXGISwapChain1_GetFrameStatistics(This,pStats) \
2019-02-03 15:49:35 -08:00
( (This)->lpVtbl -> GetFrameStatistics(This,pStats) )
2018-01-23 23:40:17 +01:00
#define IDXGISwapChain1_GetLastPresentCount(This,pLastPresentCount) \
2019-02-03 15:49:35 -08:00
( (This)->lpVtbl -> GetLastPresentCount(This,pLastPresentCount) )
2018-01-23 23:40:17 +01:00
#define IDXGISwapChain1_GetDesc1(This,pDesc) \
2019-02-03 15:49:35 -08:00
( (This)->lpVtbl -> GetDesc1(This,pDesc) )
2018-01-23 23:40:17 +01:00
#define IDXGISwapChain1_GetFullscreenDesc(This,pDesc) \
2019-02-03 15:49:35 -08:00
( (This)->lpVtbl -> GetFullscreenDesc(This,pDesc) )
2018-01-23 23:40:17 +01:00
#define IDXGISwapChain1_GetHwnd(This,pHwnd) \
2019-02-03 15:49:35 -08:00
( (This)->lpVtbl -> GetHwnd(This,pHwnd) )
2018-01-23 23:40:17 +01:00
#define IDXGISwapChain1_GetCoreWindow(This,refiid,ppUnk) \
2019-02-03 15:49:35 -08:00
( (This)->lpVtbl -> GetCoreWindow(This,refiid,ppUnk) )
2018-01-23 23:40:17 +01:00
#define IDXGISwapChain1_Present1(This,SyncInterval,PresentFlags,pPresentParameters) \
2019-02-03 15:49:35 -08:00
( (This)->lpVtbl -> Present1(This,SyncInterval,PresentFlags,pPresentParameters) )
2018-01-23 23:40:17 +01:00
#define IDXGISwapChain1_IsTemporaryMonoSupported(This) \
2019-02-03 15:49:35 -08:00
( (This)->lpVtbl -> IsTemporaryMonoSupported(This) )
2018-01-23 23:40:17 +01:00
#define IDXGISwapChain1_GetRestrictToOutput(This,ppRestrictToOutput) \
2019-02-03 15:49:35 -08:00
( (This)->lpVtbl -> GetRestrictToOutput(This,ppRestrictToOutput) )
2018-01-23 23:40:17 +01:00
#define IDXGISwapChain1_SetBackgroundColor(This,pColor) \
2019-02-03 15:49:35 -08:00
( (This)->lpVtbl -> SetBackgroundColor(This,pColor) )
2018-01-23 23:40:17 +01:00
#define IDXGISwapChain1_GetBackgroundColor(This,pColor) \
2019-02-03 15:49:35 -08:00
( (This)->lpVtbl -> GetBackgroundColor(This,pColor) )
2018-01-23 23:40:17 +01:00
#define IDXGISwapChain1_SetRotation(This,Rotation) \
2019-02-03 15:49:35 -08:00
( (This)->lpVtbl -> SetRotation(This,Rotation) )
2018-01-23 23:40:17 +01:00
#define IDXGISwapChain1_GetRotation(This,pRotation) \
2019-02-03 15:49:35 -08:00
( (This)->lpVtbl -> GetRotation(This,pRotation) )
2018-01-23 23:40:17 +01:00
#endif /* COBJMACROS */
#endif /* C style interface */
#endif /* __IDXGISwapChain1_INTERFACE_DEFINED__ */
#ifndef __IDXGIFactory2_INTERFACE_DEFINED__
#define __IDXGIFactory2_INTERFACE_DEFINED__
/* interface IDXGIFactory2 */
2019-02-03 15:49:35 -08:00
/* [unique][local][uuid][object] */
2018-01-23 23:40:17 +01:00
EXTERN_C const IID IID_IDXGIFactory2;
#if defined(__cplusplus) && !defined(CINTERFACE)
2019-02-03 15:49:35 -08:00
2018-01-23 23:40:17 +01:00
MIDL_INTERFACE("50c83a1c-e072-4c48-87b0-3630fa36a6d0")
IDXGIFactory2 : public IDXGIFactory1
{
public:
virtual BOOL STDMETHODCALLTYPE IsWindowedStereoEnabled( void) = 0;
2019-02-03 15:49:35 -08:00
virtual HRESULT STDMETHODCALLTYPE CreateSwapChainForHwnd(
/* [annotation][in] */
2018-01-23 23:40:17 +01:00
_In_ IUnknown *pDevice,
2019-02-03 15:49:35 -08:00
/* [annotation][in] */
2018-01-23 23:40:17 +01:00
_In_ HWND hWnd,
2019-02-03 15:49:35 -08:00
/* [annotation][in] */
2018-01-23 23:40:17 +01:00
_In_ const DXGI_SWAP_CHAIN_DESC1 *pDesc,
2019-02-03 15:49:35 -08:00
/* [annotation][in] */
2018-01-23 23:40:17 +01:00
_In_opt_ const DXGI_SWAP_CHAIN_FULLSCREEN_DESC *pFullscreenDesc,
2019-02-03 15:49:35 -08:00
/* [annotation][in] */
2018-01-23 23:40:17 +01:00
_In_opt_ IDXGIOutput *pRestrictToOutput,
2019-02-03 15:49:35 -08:00
/* [annotation][out] */
2018-01-23 23:40:17 +01:00
_COM_Outptr_ IDXGISwapChain1 **ppSwapChain) = 0;
2019-02-03 15:49:35 -08:00
virtual HRESULT STDMETHODCALLTYPE CreateSwapChainForCoreWindow(
/* [annotation][in] */
2018-01-23 23:40:17 +01:00
_In_ IUnknown *pDevice,
2019-02-03 15:49:35 -08:00
/* [annotation][in] */
2018-01-23 23:40:17 +01:00
_In_ IUnknown *pWindow,
2019-02-03 15:49:35 -08:00
/* [annotation][in] */
2018-01-23 23:40:17 +01:00
_In_ const DXGI_SWAP_CHAIN_DESC1 *pDesc,
2019-02-03 15:49:35 -08:00
/* [annotation][in] */
2018-01-23 23:40:17 +01:00
_In_opt_ IDXGIOutput *pRestrictToOutput,
2019-02-03 15:49:35 -08:00
/* [annotation][out] */
2018-01-23 23:40:17 +01:00
_COM_Outptr_ IDXGISwapChain1 **ppSwapChain) = 0;
2019-02-03 15:49:35 -08:00
virtual HRESULT STDMETHODCALLTYPE GetSharedResourceAdapterLuid(
/* [annotation] */
2018-01-23 23:40:17 +01:00
_In_ HANDLE hResource,
2019-02-03 15:49:35 -08:00
/* [annotation] */
2018-01-23 23:40:17 +01:00
_Out_ LUID *pLuid) = 0;
2019-02-03 15:49:35 -08:00
virtual HRESULT STDMETHODCALLTYPE RegisterStereoStatusWindow(
/* [annotation][in] */
2018-01-23 23:40:17 +01:00
_In_ HWND WindowHandle,
2019-02-03 15:49:35 -08:00
/* [annotation][in] */
2018-01-23 23:40:17 +01:00
_In_ UINT wMsg,
2019-02-03 15:49:35 -08:00
/* [annotation][out] */
2018-01-23 23:40:17 +01:00
_Out_ DWORD *pdwCookie) = 0;
2019-02-03 15:49:35 -08:00
virtual HRESULT STDMETHODCALLTYPE RegisterStereoStatusEvent(
/* [annotation][in] */
2018-01-23 23:40:17 +01:00
_In_ HANDLE hEvent,
2019-02-03 15:49:35 -08:00
/* [annotation][out] */
2018-01-23 23:40:17 +01:00
_Out_ DWORD *pdwCookie) = 0;
2019-02-03 15:49:35 -08:00
virtual void STDMETHODCALLTYPE UnregisterStereoStatus(
/* [annotation][in] */
2018-01-23 23:40:17 +01:00
_In_ DWORD dwCookie) = 0;
2019-02-03 15:49:35 -08:00
virtual HRESULT STDMETHODCALLTYPE RegisterOcclusionStatusWindow(
/* [annotation][in] */
2018-01-23 23:40:17 +01:00
_In_ HWND WindowHandle,
2019-02-03 15:49:35 -08:00
/* [annotation][in] */
2018-01-23 23:40:17 +01:00
_In_ UINT wMsg,
2019-02-03 15:49:35 -08:00
/* [annotation][out] */
2018-01-23 23:40:17 +01:00
_Out_ DWORD *pdwCookie) = 0;
2019-02-03 15:49:35 -08:00
virtual HRESULT STDMETHODCALLTYPE RegisterOcclusionStatusEvent(
/* [annotation][in] */
2018-01-23 23:40:17 +01:00
_In_ HANDLE hEvent,
2019-02-03 15:49:35 -08:00
/* [annotation][out] */
2018-01-23 23:40:17 +01:00
_Out_ DWORD *pdwCookie) = 0;
2019-02-03 15:49:35 -08:00
virtual void STDMETHODCALLTYPE UnregisterOcclusionStatus(
/* [annotation][in] */
2018-01-23 23:40:17 +01:00
_In_ DWORD dwCookie) = 0;
2019-02-03 15:49:35 -08:00
virtual HRESULT STDMETHODCALLTYPE CreateSwapChainForComposition(
/* [annotation][in] */
2018-01-23 23:40:17 +01:00
_In_ IUnknown *pDevice,
2019-02-03 15:49:35 -08:00
/* [annotation][in] */
2018-01-23 23:40:17 +01:00
_In_ const DXGI_SWAP_CHAIN_DESC1 *pDesc,
2019-02-03 15:49:35 -08:00
/* [annotation][in] */
2018-01-23 23:40:17 +01:00
_In_opt_ IDXGIOutput *pRestrictToOutput,
2019-02-03 15:49:35 -08:00
/* [annotation][out] */
2018-01-23 23:40:17 +01:00
_COM_Outptr_ IDXGISwapChain1 **ppSwapChain) = 0;
2019-02-03 15:49:35 -08:00
2018-01-23 23:40:17 +01:00
};
2019-02-03 15:49:35 -08:00
2018-01-23 23:40:17 +01:00
#else /* C style interface */
typedef struct IDXGIFactory2Vtbl
{
BEGIN_INTERFACE
2019-02-03 15:49:35 -08:00
HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
2018-01-23 23:40:17 +01:00
IDXGIFactory2 * This,
/* [in] */ REFIID riid,
2019-02-03 15:49:35 -08:00
/* [annotation][iid_is][out] */
2018-01-23 23:40:17 +01:00
_COM_Outptr_ void **ppvObject);
2019-02-03 15:49:35 -08:00
ULONG ( STDMETHODCALLTYPE *AddRef )(
2018-01-23 23:40:17 +01:00
IDXGIFactory2 * This);
2019-02-03 15:49:35 -08:00
ULONG ( STDMETHODCALLTYPE *Release )(
2018-01-23 23:40:17 +01:00
IDXGIFactory2 * This);
2019-02-03 15:49:35 -08:00
HRESULT ( STDMETHODCALLTYPE *SetPrivateData )(
2018-01-23 23:40:17 +01:00
IDXGIFactory2 * This,
2019-02-03 15:49:35 -08:00
/* [annotation][in] */
2018-01-23 23:40:17 +01:00
_In_ REFGUID Name,
/* [in] */ UINT DataSize,
2019-02-03 15:49:35 -08:00
/* [annotation][in] */
2018-01-23 23:40:17 +01:00
_In_reads_bytes_(DataSize) const void *pData);
2019-02-03 15:49:35 -08:00
HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )(
2018-01-23 23:40:17 +01:00
IDXGIFactory2 * This,
2019-02-03 15:49:35 -08:00
/* [annotation][in] */
2018-01-23 23:40:17 +01:00
_In_ REFGUID Name,
2019-02-03 15:49:35 -08:00
/* [annotation][in] */
2018-01-23 23:40:17 +01:00
_In_opt_ const IUnknown *pUnknown);
2019-02-03 15:49:35 -08:00
HRESULT ( STDMETHODCALLTYPE *GetPrivateData )(
2018-01-23 23:40:17 +01:00
IDXGIFactory2 * This,
2019-02-03 15:49:35 -08:00
/* [annotation][in] */
2018-01-23 23:40:17 +01:00
_In_ REFGUID Name,
2019-02-03 15:49:35 -08:00
/* [annotation][out][in] */
2018-01-23 23:40:17 +01:00
_Inout_ UINT *pDataSize,
2019-02-03 15:49:35 -08:00
/* [annotation][out] */
2018-01-23 23:40:17 +01:00
_Out_writes_bytes_(*pDataSize) void *pData);
2019-02-03 15:49:35 -08:00
HRESULT ( STDMETHODCALLTYPE *GetParent )(
2018-01-23 23:40:17 +01:00
IDXGIFactory2 * This,
2019-02-03 15:49:35 -08:00
/* [annotation][in] */
2018-01-23 23:40:17 +01:00
_In_ REFIID riid,
2019-02-03 15:49:35 -08:00
/* [annotation][retval][out] */
2018-01-23 23:40:17 +01:00
_COM_Outptr_ void **ppParent);
2019-02-03 15:49:35 -08:00
HRESULT ( STDMETHODCALLTYPE *EnumAdapters )(
2018-01-23 23:40:17 +01:00
IDXGIFactory2 * This,
/* [in] */ UINT Adapter,
2019-02-03 15:49:35 -08:00
/* [annotation][out] */
2018-01-23 23:40:17 +01:00
_COM_Outptr_ IDXGIAdapter **ppAdapter);
2019-02-03 15:49:35 -08:00
HRESULT ( STDMETHODCALLTYPE *MakeWindowAssociation )(
2018-01-23 23:40:17 +01:00
IDXGIFactory2 * This,
HWND WindowHandle,
UINT Flags);
2019-02-03 15:49:35 -08:00
HRESULT ( STDMETHODCALLTYPE *GetWindowAssociation )(
2018-01-23 23:40:17 +01:00
IDXGIFactory2 * This,
2019-02-03 15:49:35 -08:00
/* [annotation][out] */
2018-01-23 23:40:17 +01:00
_Out_ HWND *pWindowHandle);
2019-02-03 15:49:35 -08:00
HRESULT ( STDMETHODCALLTYPE *CreateSwapChain )(
2018-01-23 23:40:17 +01:00
IDXGIFactory2 * This,
2019-02-03 15:49:35 -08:00
/* [annotation][in] */
2018-01-23 23:40:17 +01:00
_In_ IUnknown *pDevice,
2019-02-03 15:49:35 -08:00
/* [annotation][in] */
2018-01-23 23:40:17 +01:00
_In_ DXGI_SWAP_CHAIN_DESC *pDesc,
2019-02-03 15:49:35 -08:00
/* [annotation][out] */
2018-01-23 23:40:17 +01:00
_COM_Outptr_ IDXGISwapChain **ppSwapChain);
2019-02-03 15:49:35 -08:00
HRESULT ( STDMETHODCALLTYPE *CreateSoftwareAdapter )(
2018-01-23 23:40:17 +01:00
IDXGIFactory2 * This,
/* [in] */ HMODULE Module,
2019-02-03 15:49:35 -08:00
/* [annotation][out] */
2018-01-23 23:40:17 +01:00
_COM_Outptr_ IDXGIAdapter **ppAdapter);
2019-02-03 15:49:35 -08:00
HRESULT ( STDMETHODCALLTYPE *EnumAdapters1 )(
2018-01-23 23:40:17 +01:00
IDXGIFactory2 * This,
/* [in] */ UINT Adapter,
2019-02-03 15:49:35 -08:00
/* [annotation][out] */
2018-01-23 23:40:17 +01:00
_COM_Outptr_ IDXGIAdapter1 **ppAdapter);
2019-02-03 15:49:35 -08:00
BOOL ( STDMETHODCALLTYPE *IsCurrent )(
2018-01-23 23:40:17 +01:00
IDXGIFactory2 * This);
2019-02-03 15:49:35 -08:00
BOOL ( STDMETHODCALLTYPE *IsWindowedStereoEnabled )(
2018-01-23 23:40:17 +01:00
IDXGIFactory2 * This);
2019-02-03 15:49:35 -08:00
HRESULT ( STDMETHODCALLTYPE *CreateSwapChainForHwnd )(
2018-01-23 23:40:17 +01:00
IDXGIFactory2 * This,
2019-02-03 15:49:35 -08:00
/* [annotation][in] */
2018-01-23 23:40:17 +01:00
_In_ IUnknown *pDevice,
2019-02-03 15:49:35 -08:00
/* [annotation][in] */
2018-01-23 23:40:17 +01:00
_In_ HWND hWnd,
2019-02-03 15:49:35 -08:00
/* [annotation][in] */
2018-01-23 23:40:17 +01:00
_In_ const DXGI_SWAP_CHAIN_DESC1 *pDesc,
2019-02-03 15:49:35 -08:00
/* [annotation][in] */
2018-01-23 23:40:17 +01:00
_In_opt_ const DXGI_SWAP_CHAIN_FULLSCREEN_DESC *pFullscreenDesc,
2019-02-03 15:49:35 -08:00
/* [annotation][in] */
2018-01-23 23:40:17 +01:00
_In_opt_ IDXGIOutput *pRestrictToOutput,
2019-02-03 15:49:35 -08:00
/* [annotation][out] */
2018-01-23 23:40:17 +01:00
_COM_Outptr_ IDXGISwapChain1 **ppSwapChain);
2019-02-03 15:49:35 -08:00
HRESULT ( STDMETHODCALLTYPE *CreateSwapChainForCoreWindow )(
2018-01-23 23:40:17 +01:00
IDXGIFactory2 * This,
2019-02-03 15:49:35 -08:00
/* [annotation][in] */
2018-01-23 23:40:17 +01:00
_In_ IUnknown *pDevice,
2019-02-03 15:49:35 -08:00
/* [annotation][in] */
2018-01-23 23:40:17 +01:00
_In_ IUnknown *pWindow,
2019-02-03 15:49:35 -08:00
/* [annotation][in] */
2018-01-23 23:40:17 +01:00
_In_ const DXGI_SWAP_CHAIN_DESC1 *pDesc,
2019-02-03 15:49:35 -08:00
/* [annotation][in] */
2018-01-23 23:40:17 +01:00
_In_opt_ IDXGIOutput *pRestrictToOutput,
2019-02-03 15:49:35 -08:00
/* [annotation][out] */
2018-01-23 23:40:17 +01:00
_COM_Outptr_ IDXGISwapChain1 **ppSwapChain);
2019-02-03 15:49:35 -08:00
HRESULT ( STDMETHODCALLTYPE *GetSharedResourceAdapterLuid )(
2018-01-23 23:40:17 +01:00
IDXGIFactory2 * This,
2019-02-03 15:49:35 -08:00
/* [annotation] */
2018-01-23 23:40:17 +01:00
_In_ HANDLE hResource,
2019-02-03 15:49:35 -08:00
/* [annotation] */
2018-01-23 23:40:17 +01:00
_Out_ LUID *pLuid);
2019-02-03 15:49:35 -08:00
HRESULT ( STDMETHODCALLTYPE *RegisterStereoStatusWindow )(
2018-01-23 23:40:17 +01:00
IDXGIFactory2 * This,
2019-02-03 15:49:35 -08:00
/* [annotation][in] */
2018-01-23 23:40:17 +01:00
_In_ HWND WindowHandle,
2019-02-03 15:49:35 -08:00
/* [annotation][in] */
2018-01-23 23:40:17 +01:00
_In_ UINT wMsg,
2019-02-03 15:49:35 -08:00
/* [annotation][out] */
2018-01-23 23:40:17 +01:00
_Out_ DWORD *pdwCookie);
2019-02-03 15:49:35 -08:00
HRESULT ( STDMETHODCALLTYPE *RegisterStereoStatusEvent )(
2018-01-23 23:40:17 +01:00
IDXGIFactory2 * This,
2019-02-03 15:49:35 -08:00
/* [annotation][in] */
2018-01-23 23:40:17 +01:00
_In_ HANDLE hEvent,
2019-02-03 15:49:35 -08:00
/* [annotation][out] */
2018-01-23 23:40:17 +01:00
_Out_ DWORD *pdwCookie);
2019-02-03 15:49:35 -08:00
void ( STDMETHODCALLTYPE *UnregisterStereoStatus )(
2018-01-23 23:40:17 +01:00
IDXGIFactory2 * This,
2019-02-03 15:49:35 -08:00
/* [annotation][in] */
2018-01-23 23:40:17 +01:00
_In_ DWORD dwCookie);
2019-02-03 15:49:35 -08:00
HRESULT ( STDMETHODCALLTYPE *RegisterOcclusionStatusWindow )(
2018-01-23 23:40:17 +01:00
IDXGIFactory2 * This,
2019-02-03 15:49:35 -08:00
/* [annotation][in] */
2018-01-23 23:40:17 +01:00
_In_ HWND WindowHandle,
2019-02-03 15:49:35 -08:00
/* [annotation][in] */
2018-01-23 23:40:17 +01:00
_In_ UINT wMsg,
2019-02-03 15:49:35 -08:00
/* [annotation][out] */
2018-01-23 23:40:17 +01:00
_Out_ DWORD *pdwCookie);
2019-02-03 15:49:35 -08:00
HRESULT ( STDMETHODCALLTYPE *RegisterOcclusionStatusEvent )(
2018-01-23 23:40:17 +01:00
IDXGIFactory2 * This,
2019-02-03 15:49:35 -08:00
/* [annotation][in] */
2018-01-23 23:40:17 +01:00
_In_ HANDLE hEvent,
2019-02-03 15:49:35 -08:00
/* [annotation][out] */
2018-01-23 23:40:17 +01:00
_Out_ DWORD *pdwCookie);
2019-02-03 15:49:35 -08:00
void ( STDMETHODCALLTYPE *UnregisterOcclusionStatus )(
2018-01-23 23:40:17 +01:00
IDXGIFactory2 * This,
2019-02-03 15:49:35 -08:00
/* [annotation][in] */
2018-01-23 23:40:17 +01:00
_In_ DWORD dwCookie);
2019-02-03 15:49:35 -08:00
HRESULT ( STDMETHODCALLTYPE *CreateSwapChainForComposition )(
2018-01-23 23:40:17 +01:00
IDXGIFactory2 * This,
2019-02-03 15:49:35 -08:00
/* [annotation][in] */
2018-01-23 23:40:17 +01:00
_In_ IUnknown *pDevice,
2019-02-03 15:49:35 -08:00
/* [annotation][in] */
2018-01-23 23:40:17 +01:00
_In_ const DXGI_SWAP_CHAIN_DESC1 *pDesc,
2019-02-03 15:49:35 -08:00
/* [annotation][in] */
2018-01-23 23:40:17 +01:00
_In_opt_ IDXGIOutput *pRestrictToOutput,
2019-02-03 15:49:35 -08:00
/* [annotation][out] */
2018-01-23 23:40:17 +01:00
_COM_Outptr_ IDXGISwapChain1 **ppSwapChain);
2019-02-03 15:49:35 -08:00
2018-01-23 23:40:17 +01:00
END_INTERFACE
} IDXGIFactory2Vtbl;
interface IDXGIFactory2
{
CONST_VTBL struct IDXGIFactory2Vtbl *lpVtbl;
};
#ifdef COBJMACROS
#define IDXGIFactory2_QueryInterface(This,riid,ppvObject) \
2019-02-03 15:49:35 -08:00
( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
2018-01-23 23:40:17 +01:00
#define IDXGIFactory2_AddRef(This) \
2019-02-03 15:49:35 -08:00
( (This)->lpVtbl -> AddRef(This) )
2018-01-23 23:40:17 +01:00
#define IDXGIFactory2_Release(This) \
2019-02-03 15:49:35 -08:00
( (This)->lpVtbl -> Release(This) )
2018-01-23 23:40:17 +01:00
#define IDXGIFactory2_SetPrivateData(This,Name,DataSize,pData) \
2019-02-03 15:49:35 -08:00
( (This)->lpVtbl -> SetPrivateData(This,Name,DataSize,pData) )
2018-01-23 23:40:17 +01:00
#define IDXGIFactory2_SetPrivateDataInterface(This,Name,pUnknown) \
2019-02-03 15:49:35 -08:00
( (This)->lpVtbl -> SetPrivateDataInterface(This,Name,pUnknown) )
2018-01-23 23:40:17 +01:00
#define IDXGIFactory2_GetPrivateData(This,Name,pDataSize,pData) \
2019-02-03 15:49:35 -08:00
( (This)->lpVtbl -> GetPrivateData(This,Name,pDataSize,pData) )
2018-01-23 23:40:17 +01:00
#define IDXGIFactory2_GetParent(This,riid,ppParent) \
2019-02-03 15:49:35 -08:00
( (This)->lpVtbl -> GetParent(This,riid,ppParent) )
2018-01-23 23:40:17 +01:00
#define IDXGIFactory2_EnumAdapters(This,Adapter,ppAdapter) \
2019-02-03 15:49:35 -08:00
( (This)->lpVtbl -> EnumAdapters(This,Adapter,ppAdapter) )
2018-01-23 23:40:17 +01:00
#define IDXGIFactory2_MakeWindowAssociation(This,WindowHandle,Flags) \
2019-02-03 15:49:35 -08:00
( (This)->lpVtbl -> MakeWindowAssociation(This,WindowHandle,Flags) )
2018-01-23 23:40:17 +01:00
#define IDXGIFactory2_GetWindowAssociation(This,pWindowHandle) \
2019-02-03 15:49:35 -08:00
( (This)->lpVtbl -> GetWindowAssociation(This,pWindowHandle) )
2018-01-23 23:40:17 +01:00
#define IDXGIFactory2_CreateSwapChain(This,pDevice,pDesc,ppSwapChain) \
2019-02-03 15:49:35 -08:00
( (This)->lpVtbl -> CreateSwapChain(This,pDevice,pDesc,ppSwapChain) )
2018-01-23 23:40:17 +01:00
#define IDXGIFactory2_CreateSoftwareAdapter(This,Module,ppAdapter) \
2019-02-03 15:49:35 -08:00
( (This)->lpVtbl -> CreateSoftwareAdapter(This,Module,ppAdapter) )
2018-01-23 23:40:17 +01:00
#define IDXGIFactory2_EnumAdapters1(This,Adapter,ppAdapter) \
2019-02-03 15:49:35 -08:00
( (This)->lpVtbl -> EnumAdapters1(This,Adapter,ppAdapter) )
2018-01-23 23:40:17 +01:00
#define IDXGIFactory2_IsCurrent(This) \
2019-02-03 15:49:35 -08:00
( (This)->lpVtbl -> IsCurrent(This) )
2018-01-23 23:40:17 +01:00
#define IDXGIFactory2_IsWindowedStereoEnabled(This) \
2019-02-03 15:49:35 -08:00
( (This)->lpVtbl -> IsWindowedStereoEnabled(This) )
2018-01-23 23:40:17 +01:00
#define IDXGIFactory2_CreateSwapChainForHwnd(This,pDevice,hWnd,pDesc,pFullscreenDesc,pRestrictToOutput,ppSwapChain) \
2019-02-03 15:49:35 -08:00
( (This)->lpVtbl -> CreateSwapChainForHwnd(This,pDevice,hWnd,pDesc,pFullscreenDesc,pRestrictToOutput,ppSwapChain) )
2018-01-23 23:40:17 +01:00
#define IDXGIFactory2_CreateSwapChainForCoreWindow(This,pDevice,pWindow,pDesc,pRestrictToOutput,ppSwapChain) \
2019-02-03 15:49:35 -08:00
( (This)->lpVtbl -> CreateSwapChainForCoreWindow(This,pDevice,pWindow,pDesc,pRestrictToOutput,ppSwapChain) )
2018-01-23 23:40:17 +01:00
#define IDXGIFactory2_GetSharedResourceAdapterLuid(This,hResource,pLuid) \
2019-02-03 15:49:35 -08:00
( (This)->lpVtbl -> GetSharedResourceAdapterLuid(This,hResource,pLuid) )
2018-01-23 23:40:17 +01:00
#define IDXGIFactory2_RegisterStereoStatusWindow(This,WindowHandle,wMsg,pdwCookie) \
2019-02-03 15:49:35 -08:00
( (This)->lpVtbl -> RegisterStereoStatusWindow(This,WindowHandle,wMsg,pdwCookie) )
2018-01-23 23:40:17 +01:00
#define IDXGIFactory2_RegisterStereoStatusEvent(This,hEvent,pdwCookie) \
2019-02-03 15:49:35 -08:00
( (This)->lpVtbl -> RegisterStereoStatusEvent(This,hEvent,pdwCookie) )
2018-01-23 23:40:17 +01:00
#define IDXGIFactory2_UnregisterStereoStatus(This,dwCookie) \
2019-02-03 15:49:35 -08:00
( (This)->lpVtbl -> UnregisterStereoStatus(This,dwCookie) )
2018-01-23 23:40:17 +01:00
#define IDXGIFactory2_RegisterOcclusionStatusWindow(This,WindowHandle,wMsg,pdwCookie) \
2019-02-03 15:49:35 -08:00
( (This)->lpVtbl -> RegisterOcclusionStatusWindow(This,WindowHandle,wMsg,pdwCookie) )
2018-01-23 23:40:17 +01:00
#define IDXGIFactory2_RegisterOcclusionStatusEvent(This,hEvent,pdwCookie) \
2019-02-03 15:49:35 -08:00
( (This)->lpVtbl -> RegisterOcclusionStatusEvent(This,hEvent,pdwCookie) )
2018-01-23 23:40:17 +01:00
#define IDXGIFactory2_UnregisterOcclusionStatus(This,dwCookie) \
2019-02-03 15:49:35 -08:00
( (This)->lpVtbl -> UnregisterOcclusionStatus(This,dwCookie) )
2018-01-23 23:40:17 +01:00
#define IDXGIFactory2_CreateSwapChainForComposition(This,pDevice,pDesc,pRestrictToOutput,ppSwapChain) \
2019-02-03 15:49:35 -08:00
( (This)->lpVtbl -> CreateSwapChainForComposition(This,pDevice,pDesc,pRestrictToOutput,ppSwapChain) )
2018-01-23 23:40:17 +01:00
#endif /* COBJMACROS */
#endif /* C style interface */
#endif /* __IDXGIFactory2_INTERFACE_DEFINED__ */
/* interface __MIDL_itf_dxgi1_2_0000_0007 */
2019-02-03 15:49:35 -08:00
/* [local] */
2018-01-23 23:40:17 +01:00
2019-02-03 15:49:35 -08:00
typedef
2018-01-23 23:40:17 +01:00
enum DXGI_GRAPHICS_PREEMPTION_GRANULARITY
{
DXGI_GRAPHICS_PREEMPTION_DMA_BUFFER_BOUNDARY = 0,
DXGI_GRAPHICS_PREEMPTION_PRIMITIVE_BOUNDARY = 1,
DXGI_GRAPHICS_PREEMPTION_TRIANGLE_BOUNDARY = 2,
DXGI_GRAPHICS_PREEMPTION_PIXEL_BOUNDARY = 3,
DXGI_GRAPHICS_PREEMPTION_INSTRUCTION_BOUNDARY = 4
} DXGI_GRAPHICS_PREEMPTION_GRANULARITY;
2019-02-03 15:49:35 -08:00
typedef
2018-01-23 23:40:17 +01:00
enum DXGI_COMPUTE_PREEMPTION_GRANULARITY
{
DXGI_COMPUTE_PREEMPTION_DMA_BUFFER_BOUNDARY = 0,
DXGI_COMPUTE_PREEMPTION_DISPATCH_BOUNDARY = 1,
DXGI_COMPUTE_PREEMPTION_THREAD_GROUP_BOUNDARY = 2,
DXGI_COMPUTE_PREEMPTION_THREAD_BOUNDARY = 3,
DXGI_COMPUTE_PREEMPTION_INSTRUCTION_BOUNDARY = 4
} DXGI_COMPUTE_PREEMPTION_GRANULARITY;
typedef struct DXGI_ADAPTER_DESC2
{
WCHAR Description[ 128 ];
UINT VendorId;
UINT DeviceId;
UINT SubSysId;
UINT Revision;
SIZE_T DedicatedVideoMemory;
SIZE_T DedicatedSystemMemory;
SIZE_T SharedSystemMemory;
LUID AdapterLuid;
UINT Flags;
DXGI_GRAPHICS_PREEMPTION_GRANULARITY GraphicsPreemptionGranularity;
DXGI_COMPUTE_PREEMPTION_GRANULARITY ComputePreemptionGranularity;
} DXGI_ADAPTER_DESC2;
extern RPC_IF_HANDLE __MIDL_itf_dxgi1_2_0000_0007_v0_0_c_ifspec;
extern RPC_IF_HANDLE __MIDL_itf_dxgi1_2_0000_0007_v0_0_s_ifspec;
#ifndef __IDXGIAdapter2_INTERFACE_DEFINED__
#define __IDXGIAdapter2_INTERFACE_DEFINED__
/* interface IDXGIAdapter2 */
2019-02-03 15:49:35 -08:00
/* [unique][local][uuid][object] */
2018-01-23 23:40:17 +01:00
EXTERN_C const IID IID_IDXGIAdapter2;
#if defined(__cplusplus) && !defined(CINTERFACE)
2019-02-03 15:49:35 -08:00
2018-01-23 23:40:17 +01:00
MIDL_INTERFACE("0AA1AE0A-FA0E-4B84-8644-E05FF8E5ACB5")
IDXGIAdapter2 : public IDXGIAdapter1
{
public:
2019-02-03 15:49:35 -08:00
virtual HRESULT STDMETHODCALLTYPE GetDesc2(
/* [annotation][out] */
2018-01-23 23:40:17 +01:00
_Out_ DXGI_ADAPTER_DESC2 *pDesc) = 0;
2019-02-03 15:49:35 -08:00
2018-01-23 23:40:17 +01:00
};
2019-02-03 15:49:35 -08:00
2018-01-23 23:40:17 +01:00
#else /* C style interface */
typedef struct IDXGIAdapter2Vtbl
{
BEGIN_INTERFACE
2019-02-03 15:49:35 -08:00
HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
2018-01-23 23:40:17 +01:00
IDXGIAdapter2 * This,
/* [in] */ REFIID riid,
2019-02-03 15:49:35 -08:00
/* [annotation][iid_is][out] */
2018-01-23 23:40:17 +01:00
_COM_Outptr_ void **ppvObject);
2019-02-03 15:49:35 -08:00
ULONG ( STDMETHODCALLTYPE *AddRef )(
2018-01-23 23:40:17 +01:00
IDXGIAdapter2 * This);
2019-02-03 15:49:35 -08:00
ULONG ( STDMETHODCALLTYPE *Release )(
2018-01-23 23:40:17 +01:00
IDXGIAdapter2 * This);
2019-02-03 15:49:35 -08:00
HRESULT ( STDMETHODCALLTYPE *SetPrivateData )(
2018-01-23 23:40:17 +01:00
IDXGIAdapter2 * This,
2019-02-03 15:49:35 -08:00
/* [annotation][in] */
2018-01-23 23:40:17 +01:00
_In_ REFGUID Name,
/* [in] */ UINT DataSize,
2019-02-03 15:49:35 -08:00
/* [annotation][in] */
2018-01-23 23:40:17 +01:00
_In_reads_bytes_(DataSize) const void *pData);
2019-02-03 15:49:35 -08:00
HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )(
2018-01-23 23:40:17 +01:00
IDXGIAdapter2 * This,
2019-02-03 15:49:35 -08:00
/* [annotation][in] */
2018-01-23 23:40:17 +01:00
_In_ REFGUID Name,
2019-02-03 15:49:35 -08:00
/* [annotation][in] */
2018-01-23 23:40:17 +01:00
_In_opt_ const IUnknown *pUnknown);
2019-02-03 15:49:35 -08:00
HRESULT ( STDMETHODCALLTYPE *GetPrivateData )(
2018-01-23 23:40:17 +01:00
IDXGIAdapter2 * This,
2019-02-03 15:49:35 -08:00
/* [annotation][in] */
2018-01-23 23:40:17 +01:00
_In_ REFGUID Name,
2019-02-03 15:49:35 -08:00
/* [annotation][out][in] */
2018-01-23 23:40:17 +01:00
_Inout_ UINT *pDataSize,
2019-02-03 15:49:35 -08:00
/* [annotation][out] */
2018-01-23 23:40:17 +01:00
_Out_writes_bytes_(*pDataSize) void *pData);
2019-02-03 15:49:35 -08:00
HRESULT ( STDMETHODCALLTYPE *GetParent )(
2018-01-23 23:40:17 +01:00
IDXGIAdapter2 * This,
2019-02-03 15:49:35 -08:00
/* [annotation][in] */
2018-01-23 23:40:17 +01:00
_In_ REFIID riid,
2019-02-03 15:49:35 -08:00
/* [annotation][retval][out] */
2018-01-23 23:40:17 +01:00
_COM_Outptr_ void **ppParent);
2019-02-03 15:49:35 -08:00
HRESULT ( STDMETHODCALLTYPE *EnumOutputs )(
2018-01-23 23:40:17 +01:00
IDXGIAdapter2 * This,
/* [in] */ UINT Output,
2019-02-03 15:49:35 -08:00
/* [annotation][out][in] */
2018-01-23 23:40:17 +01:00
_COM_Outptr_ IDXGIOutput **ppOutput);
2019-02-03 15:49:35 -08:00
HRESULT ( STDMETHODCALLTYPE *GetDesc )(
2018-01-23 23:40:17 +01:00
IDXGIAdapter2 * This,
2019-02-03 15:49:35 -08:00
/* [annotation][out] */
2018-01-23 23:40:17 +01:00
_Out_ DXGI_ADAPTER_DESC *pDesc);
2019-02-03 15:49:35 -08:00
HRESULT ( STDMETHODCALLTYPE *CheckInterfaceSupport )(
2018-01-23 23:40:17 +01:00
IDXGIAdapter2 * This,
2019-02-03 15:49:35 -08:00
/* [annotation][in] */
2018-01-23 23:40:17 +01:00
_In_ REFGUID InterfaceName,
2019-02-03 15:49:35 -08:00
/* [annotation][out] */
2018-01-23 23:40:17 +01:00
_Out_ LARGE_INTEGER *pUMDVersion);
2019-02-03 15:49:35 -08:00
HRESULT ( STDMETHODCALLTYPE *GetDesc1 )(
2018-01-23 23:40:17 +01:00
IDXGIAdapter2 * This,
2019-02-03 15:49:35 -08:00
/* [annotation][out] */
2018-01-23 23:40:17 +01:00
_Out_ DXGI_ADAPTER_DESC1 *pDesc);
2019-02-03 15:49:35 -08:00
HRESULT ( STDMETHODCALLTYPE *GetDesc2 )(
2018-01-23 23:40:17 +01:00
IDXGIAdapter2 * This,
2019-02-03 15:49:35 -08:00
/* [annotation][out] */
2018-01-23 23:40:17 +01:00
_Out_ DXGI_ADAPTER_DESC2 *pDesc);
2019-02-03 15:49:35 -08:00
2018-01-23 23:40:17 +01:00
END_INTERFACE
} IDXGIAdapter2Vtbl;
interface IDXGIAdapter2
{
CONST_VTBL struct IDXGIAdapter2Vtbl *lpVtbl;
};
#ifdef COBJMACROS
#define IDXGIAdapter2_QueryInterface(This,riid,ppvObject) \
2019-02-03 15:49:35 -08:00
( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
2018-01-23 23:40:17 +01:00
#define IDXGIAdapter2_AddRef(This) \
2019-02-03 15:49:35 -08:00
( (This)->lpVtbl -> AddRef(This) )
2018-01-23 23:40:17 +01:00
#define IDXGIAdapter2_Release(This) \
2019-02-03 15:49:35 -08:00
( (This)->lpVtbl -> Release(This) )
2018-01-23 23:40:17 +01:00
#define IDXGIAdapter2_SetPrivateData(This,Name,DataSize,pData) \
2019-02-03 15:49:35 -08:00
( (This)->lpVtbl -> SetPrivateData(This,Name,DataSize,pData) )
2018-01-23 23:40:17 +01:00
#define IDXGIAdapter2_SetPrivateDataInterface(This,Name,pUnknown) \
2019-02-03 15:49:35 -08:00
( (This)->lpVtbl -> SetPrivateDataInterface(This,Name,pUnknown) )
2018-01-23 23:40:17 +01:00
#define IDXGIAdapter2_GetPrivateData(This,Name,pDataSize,pData) \
2019-02-03 15:49:35 -08:00
( (This)->lpVtbl -> GetPrivateData(This,Name,pDataSize,pData) )
2018-01-23 23:40:17 +01:00
#define IDXGIAdapter2_GetParent(This,riid,ppParent) \
2019-02-03 15:49:35 -08:00
( (This)->lpVtbl -> GetParent(This,riid,ppParent) )
2018-01-23 23:40:17 +01:00
#define IDXGIAdapter2_EnumOutputs(This,Output,ppOutput) \
2019-02-03 15:49:35 -08:00
( (This)->lpVtbl -> EnumOutputs(This,Output,ppOutput) )
2018-01-23 23:40:17 +01:00
#define IDXGIAdapter2_GetDesc(This,pDesc) \
2019-02-03 15:49:35 -08:00
( (This)->lpVtbl -> GetDesc(This,pDesc) )
2018-01-23 23:40:17 +01:00
#define IDXGIAdapter2_CheckInterfaceSupport(This,InterfaceName,pUMDVersion) \
2019-02-03 15:49:35 -08:00
( (This)->lpVtbl -> CheckInterfaceSupport(This,InterfaceName,pUMDVersion) )
2018-01-23 23:40:17 +01:00
#define IDXGIAdapter2_GetDesc1(This,pDesc) \
2019-02-03 15:49:35 -08:00
( (This)->lpVtbl -> GetDesc1(This,pDesc) )
2018-01-23 23:40:17 +01:00
#define IDXGIAdapter2_GetDesc2(This,pDesc) \
2019-02-03 15:49:35 -08:00
( (This)->lpVtbl -> GetDesc2(This,pDesc) )
2018-01-23 23:40:17 +01:00
#endif /* COBJMACROS */
#endif /* C style interface */
#endif /* __IDXGIAdapter2_INTERFACE_DEFINED__ */
#ifndef __IDXGIOutput1_INTERFACE_DEFINED__
#define __IDXGIOutput1_INTERFACE_DEFINED__
/* interface IDXGIOutput1 */
2019-02-03 15:49:35 -08:00
/* [unique][local][uuid][object] */
2018-01-23 23:40:17 +01:00
EXTERN_C const IID IID_IDXGIOutput1;
#if defined(__cplusplus) && !defined(CINTERFACE)
2019-02-03 15:49:35 -08:00
2018-01-23 23:40:17 +01:00
MIDL_INTERFACE("00cddea8-939b-4b83-a340-a685226666cc")
IDXGIOutput1 : public IDXGIOutput
{
public:
2019-02-03 15:49:35 -08:00
virtual HRESULT STDMETHODCALLTYPE GetDisplayModeList1(
2018-01-23 23:40:17 +01:00
/* [in] */ DXGI_FORMAT EnumFormat,
/* [in] */ UINT Flags,
2019-02-03 15:49:35 -08:00
/* [annotation][out][in] */
2018-01-23 23:40:17 +01:00
_Inout_ UINT *pNumModes,
2019-02-03 15:49:35 -08:00
/* [annotation][out] */
2018-01-23 23:40:17 +01:00
_Out_writes_to_opt_(*pNumModes,*pNumModes) DXGI_MODE_DESC1 *pDesc) = 0;
2019-02-03 15:49:35 -08:00
virtual HRESULT STDMETHODCALLTYPE FindClosestMatchingMode1(
/* [annotation][in] */
2018-01-23 23:40:17 +01:00
_In_ const DXGI_MODE_DESC1 *pModeToMatch,
2019-02-03 15:49:35 -08:00
/* [annotation][out] */
2018-01-23 23:40:17 +01:00
_Out_ DXGI_MODE_DESC1 *pClosestMatch,
2019-02-03 15:49:35 -08:00
/* [annotation][in] */
2018-01-23 23:40:17 +01:00
_In_opt_ IUnknown *pConcernedDevice) = 0;
2019-02-03 15:49:35 -08:00
virtual HRESULT STDMETHODCALLTYPE GetDisplaySurfaceData1(
/* [annotation][in] */
2018-01-23 23:40:17 +01:00
_In_ IDXGIResource *pDestination) = 0;
2019-02-03 15:49:35 -08:00
virtual HRESULT STDMETHODCALLTYPE DuplicateOutput(
/* [annotation][in] */
2018-01-23 23:40:17 +01:00
_In_ IUnknown *pDevice,
2019-02-03 15:49:35 -08:00
/* [annotation][out] */
2018-01-23 23:40:17 +01:00
_COM_Outptr_ IDXGIOutputDuplication **ppOutputDuplication) = 0;
2019-02-03 15:49:35 -08:00
2018-01-23 23:40:17 +01:00
};
2019-02-03 15:49:35 -08:00
2018-01-23 23:40:17 +01:00
#else /* C style interface */
typedef struct IDXGIOutput1Vtbl
{
BEGIN_INTERFACE
2019-02-03 15:49:35 -08:00
HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
2018-01-23 23:40:17 +01:00
IDXGIOutput1 * This,
/* [in] */ REFIID riid,
2019-02-03 15:49:35 -08:00
/* [annotation][iid_is][out] */
2018-01-23 23:40:17 +01:00
_COM_Outptr_ void **ppvObject);
2019-02-03 15:49:35 -08:00
ULONG ( STDMETHODCALLTYPE *AddRef )(
2018-01-23 23:40:17 +01:00
IDXGIOutput1 * This);
2019-02-03 15:49:35 -08:00
ULONG ( STDMETHODCALLTYPE *Release )(
2018-01-23 23:40:17 +01:00
IDXGIOutput1 * This);
2019-02-03 15:49:35 -08:00
HRESULT ( STDMETHODCALLTYPE *SetPrivateData )(
2018-01-23 23:40:17 +01:00
IDXGIOutput1 * This,
2019-02-03 15:49:35 -08:00
/* [annotation][in] */
2018-01-23 23:40:17 +01:00
_In_ REFGUID Name,
/* [in] */ UINT DataSize,
2019-02-03 15:49:35 -08:00
/* [annotation][in] */
2018-01-23 23:40:17 +01:00
_In_reads_bytes_(DataSize) const void *pData);
2019-02-03 15:49:35 -08:00
HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )(
2018-01-23 23:40:17 +01:00
IDXGIOutput1 * This,
2019-02-03 15:49:35 -08:00
/* [annotation][in] */
2018-01-23 23:40:17 +01:00
_In_ REFGUID Name,
2019-02-03 15:49:35 -08:00
/* [annotation][in] */
2018-01-23 23:40:17 +01:00
_In_opt_ const IUnknown *pUnknown);
2019-02-03 15:49:35 -08:00
HRESULT ( STDMETHODCALLTYPE *GetPrivateData )(
2018-01-23 23:40:17 +01:00
IDXGIOutput1 * This,
2019-02-03 15:49:35 -08:00
/* [annotation][in] */
2018-01-23 23:40:17 +01:00
_In_ REFGUID Name,
2019-02-03 15:49:35 -08:00
/* [annotation][out][in] */
2018-01-23 23:40:17 +01:00
_Inout_ UINT *pDataSize,
2019-02-03 15:49:35 -08:00
/* [annotation][out] */
2018-01-23 23:40:17 +01:00
_Out_writes_bytes_(*pDataSize) void *pData);
2019-02-03 15:49:35 -08:00
HRESULT ( STDMETHODCALLTYPE *GetParent )(
2018-01-23 23:40:17 +01:00
IDXGIOutput1 * This,
2019-02-03 15:49:35 -08:00
/* [annotation][in] */
2018-01-23 23:40:17 +01:00
_In_ REFIID riid,
2019-02-03 15:49:35 -08:00
/* [annotation][retval][out] */
2018-01-23 23:40:17 +01:00
_COM_Outptr_ void **ppParent);
2019-02-03 15:49:35 -08:00
HRESULT ( STDMETHODCALLTYPE *GetDesc )(
2018-01-23 23:40:17 +01:00
IDXGIOutput1 * This,
2019-02-03 15:49:35 -08:00
/* [annotation][out] */
2018-01-23 23:40:17 +01:00
_Out_ DXGI_OUTPUT_DESC *pDesc);
2019-02-03 15:49:35 -08:00
HRESULT ( STDMETHODCALLTYPE *GetDisplayModeList )(
2018-01-23 23:40:17 +01:00
IDXGIOutput1 * This,
/* [in] */ DXGI_FORMAT EnumFormat,
/* [in] */ UINT Flags,
2019-02-03 15:49:35 -08:00
/* [annotation][out][in] */
2018-01-23 23:40:17 +01:00
_Inout_ UINT *pNumModes,
2019-02-03 15:49:35 -08:00
/* [annotation][out] */
2018-01-23 23:40:17 +01:00
_Out_writes_to_opt_(*pNumModes,*pNumModes) DXGI_MODE_DESC *pDesc);
2019-02-03 15:49:35 -08:00
HRESULT ( STDMETHODCALLTYPE *FindClosestMatchingMode )(
2018-01-23 23:40:17 +01:00
IDXGIOutput1 * This,
2019-02-03 15:49:35 -08:00
/* [annotation][in] */
2018-01-23 23:40:17 +01:00
_In_ const DXGI_MODE_DESC *pModeToMatch,
2019-02-03 15:49:35 -08:00
/* [annotation][out] */
2018-01-23 23:40:17 +01:00
_Out_ DXGI_MODE_DESC *pClosestMatch,
2019-02-03 15:49:35 -08:00
/* [annotation][in] */
2018-01-23 23:40:17 +01:00
_In_opt_ IUnknown *pConcernedDevice);
2019-02-03 15:49:35 -08:00
HRESULT ( STDMETHODCALLTYPE *WaitForVBlank )(
2018-01-23 23:40:17 +01:00
IDXGIOutput1 * This);
2019-02-03 15:49:35 -08:00
HRESULT ( STDMETHODCALLTYPE *TakeOwnership )(
2018-01-23 23:40:17 +01:00
IDXGIOutput1 * This,
2019-02-03 15:49:35 -08:00
/* [annotation][in] */
2018-01-23 23:40:17 +01:00
_In_ IUnknown *pDevice,
BOOL Exclusive);
2019-02-03 15:49:35 -08:00
void ( STDMETHODCALLTYPE *ReleaseOwnership )(
2018-01-23 23:40:17 +01:00
IDXGIOutput1 * This);
2019-02-03 15:49:35 -08:00
HRESULT ( STDMETHODCALLTYPE *GetGammaControlCapabilities )(
2018-01-23 23:40:17 +01:00
IDXGIOutput1 * This,
2019-02-03 15:49:35 -08:00
/* [annotation][out] */
2018-01-23 23:40:17 +01:00
_Out_ DXGI_GAMMA_CONTROL_CAPABILITIES *pGammaCaps);
2019-02-03 15:49:35 -08:00
HRESULT ( STDMETHODCALLTYPE *SetGammaControl )(
2018-01-23 23:40:17 +01:00
IDXGIOutput1 * This,
2019-02-03 15:49:35 -08:00
/* [annotation][in] */
2018-01-23 23:40:17 +01:00
_In_ const DXGI_GAMMA_CONTROL *pArray);
2019-02-03 15:49:35 -08:00
HRESULT ( STDMETHODCALLTYPE *GetGammaControl )(
2018-01-23 23:40:17 +01:00
IDXGIOutput1 * This,
2019-02-03 15:49:35 -08:00
/* [annotation][out] */
2018-01-23 23:40:17 +01:00
_Out_ DXGI_GAMMA_CONTROL *pArray);
2019-02-03 15:49:35 -08:00
HRESULT ( STDMETHODCALLTYPE *SetDisplaySurface )(
2018-01-23 23:40:17 +01:00
IDXGIOutput1 * This,
2019-02-03 15:49:35 -08:00
/* [annotation][in] */
2018-01-23 23:40:17 +01:00
_In_ IDXGISurface *pScanoutSurface);
2019-02-03 15:49:35 -08:00
HRESULT ( STDMETHODCALLTYPE *GetDisplaySurfaceData )(
2018-01-23 23:40:17 +01:00
IDXGIOutput1 * This,
2019-02-03 15:49:35 -08:00
/* [annotation][in] */
2018-01-23 23:40:17 +01:00
_In_ IDXGISurface *pDestination);
2019-02-03 15:49:35 -08:00
HRESULT ( STDMETHODCALLTYPE *GetFrameStatistics )(
2018-01-23 23:40:17 +01:00
IDXGIOutput1 * This,
2019-02-03 15:49:35 -08:00
/* [annotation][out] */
2018-01-23 23:40:17 +01:00
_Out_ DXGI_FRAME_STATISTICS *pStats);
2019-02-03 15:49:35 -08:00
HRESULT ( STDMETHODCALLTYPE *GetDisplayModeList1 )(
2018-01-23 23:40:17 +01:00
IDXGIOutput1 * This,
/* [in] */ DXGI_FORMAT EnumFormat,
/* [in] */ UINT Flags,
2019-02-03 15:49:35 -08:00
/* [annotation][out][in] */
2018-01-23 23:40:17 +01:00
_Inout_ UINT *pNumModes,
2019-02-03 15:49:35 -08:00
/* [annotation][out] */
2018-01-23 23:40:17 +01:00
_Out_writes_to_opt_(*pNumModes,*pNumModes) DXGI_MODE_DESC1 *pDesc);
2019-02-03 15:49:35 -08:00
HRESULT ( STDMETHODCALLTYPE *FindClosestMatchingMode1 )(
2018-01-23 23:40:17 +01:00
IDXGIOutput1 * This,
2019-02-03 15:49:35 -08:00
/* [annotation][in] */
2018-01-23 23:40:17 +01:00
_In_ const DXGI_MODE_DESC1 *pModeToMatch,
2019-02-03 15:49:35 -08:00
/* [annotation][out] */
2018-01-23 23:40:17 +01:00
_Out_ DXGI_MODE_DESC1 *pClosestMatch,
2019-02-03 15:49:35 -08:00
/* [annotation][in] */
2018-01-23 23:40:17 +01:00
_In_opt_ IUnknown *pConcernedDevice);
2019-02-03 15:49:35 -08:00
HRESULT ( STDMETHODCALLTYPE *GetDisplaySurfaceData1 )(
2018-01-23 23:40:17 +01:00
IDXGIOutput1 * This,
2019-02-03 15:49:35 -08:00
/* [annotation][in] */
2018-01-23 23:40:17 +01:00
_In_ IDXGIResource *pDestination);
2019-02-03 15:49:35 -08:00
HRESULT ( STDMETHODCALLTYPE *DuplicateOutput )(
2018-01-23 23:40:17 +01:00
IDXGIOutput1 * This,
2019-02-03 15:49:35 -08:00
/* [annotation][in] */
2018-01-23 23:40:17 +01:00
_In_ IUnknown *pDevice,
2019-02-03 15:49:35 -08:00
/* [annotation][out] */
2018-01-23 23:40:17 +01:00
_COM_Outptr_ IDXGIOutputDuplication **ppOutputDuplication);
2019-02-03 15:49:35 -08:00
2018-01-23 23:40:17 +01:00
END_INTERFACE
} IDXGIOutput1Vtbl;
interface IDXGIOutput1
{
CONST_VTBL struct IDXGIOutput1Vtbl *lpVtbl;
};
#ifdef COBJMACROS
#define IDXGIOutput1_QueryInterface(This,riid,ppvObject) \
2019-02-03 15:49:35 -08:00
( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
2018-01-23 23:40:17 +01:00
#define IDXGIOutput1_AddRef(This) \
2019-02-03 15:49:35 -08:00
( (This)->lpVtbl -> AddRef(This) )
2018-01-23 23:40:17 +01:00
#define IDXGIOutput1_Release(This) \
2019-02-03 15:49:35 -08:00
( (This)->lpVtbl -> Release(This) )
2018-01-23 23:40:17 +01:00
#define IDXGIOutput1_SetPrivateData(This,Name,DataSize,pData) \
2019-02-03 15:49:35 -08:00
( (This)->lpVtbl -> SetPrivateData(This,Name,DataSize,pData) )
2018-01-23 23:40:17 +01:00
#define IDXGIOutput1_SetPrivateDataInterface(This,Name,pUnknown) \
2019-02-03 15:49:35 -08:00
( (This)->lpVtbl -> SetPrivateDataInterface(This,Name,pUnknown) )
2018-01-23 23:40:17 +01:00
#define IDXGIOutput1_GetPrivateData(This,Name,pDataSize,pData) \
2019-02-03 15:49:35 -08:00
( (This)->lpVtbl -> GetPrivateData(This,Name,pDataSize,pData) )
2018-01-23 23:40:17 +01:00
#define IDXGIOutput1_GetParent(This,riid,ppParent) \
2019-02-03 15:49:35 -08:00
( (This)->lpVtbl -> GetParent(This,riid,ppParent) )
2018-01-23 23:40:17 +01:00
#define IDXGIOutput1_GetDesc(This,pDesc) \
2019-02-03 15:49:35 -08:00
( (This)->lpVtbl -> GetDesc(This,pDesc) )
2018-01-23 23:40:17 +01:00
#define IDXGIOutput1_GetDisplayModeList(This,EnumFormat,Flags,pNumModes,pDesc) \
2019-02-03 15:49:35 -08:00
( (This)->lpVtbl -> GetDisplayModeList(This,EnumFormat,Flags,pNumModes,pDesc) )
2018-01-23 23:40:17 +01:00
#define IDXGIOutput1_FindClosestMatchingMode(This,pModeToMatch,pClosestMatch,pConcernedDevice) \
2019-02-03 15:49:35 -08:00
( (This)->lpVtbl -> FindClosestMatchingMode(This,pModeToMatch,pClosestMatch,pConcernedDevice) )
2018-01-23 23:40:17 +01:00
#define IDXGIOutput1_WaitForVBlank(This) \
2019-02-03 15:49:35 -08:00
( (This)->lpVtbl -> WaitForVBlank(This) )
2018-01-23 23:40:17 +01:00
#define IDXGIOutput1_TakeOwnership(This,pDevice,Exclusive) \
2019-02-03 15:49:35 -08:00
( (This)->lpVtbl -> TakeOwnership(This,pDevice,Exclusive) )
2018-01-23 23:40:17 +01:00
#define IDXGIOutput1_ReleaseOwnership(This) \
2019-02-03 15:49:35 -08:00
( (This)->lpVtbl -> ReleaseOwnership(This) )
2018-01-23 23:40:17 +01:00
#define IDXGIOutput1_GetGammaControlCapabilities(This,pGammaCaps) \
2019-02-03 15:49:35 -08:00
( (This)->lpVtbl -> GetGammaControlCapabilities(This,pGammaCaps) )
2018-01-23 23:40:17 +01:00
#define IDXGIOutput1_SetGammaControl(This,pArray) \
2019-02-03 15:49:35 -08:00
( (This)->lpVtbl -> SetGammaControl(This,pArray) )
2018-01-23 23:40:17 +01:00
#define IDXGIOutput1_GetGammaControl(This,pArray) \
2019-02-03 15:49:35 -08:00
( (This)->lpVtbl -> GetGammaControl(This,pArray) )
2018-01-23 23:40:17 +01:00
#define IDXGIOutput1_SetDisplaySurface(This,pScanoutSurface) \
2019-02-03 15:49:35 -08:00
( (This)->lpVtbl -> SetDisplaySurface(This,pScanoutSurface) )
2018-01-23 23:40:17 +01:00
#define IDXGIOutput1_GetDisplaySurfaceData(This,pDestination) \
2019-02-03 15:49:35 -08:00
( (This)->lpVtbl -> GetDisplaySurfaceData(This,pDestination) )
2018-01-23 23:40:17 +01:00
#define IDXGIOutput1_GetFrameStatistics(This,pStats) \
2019-02-03 15:49:35 -08:00
( (This)->lpVtbl -> GetFrameStatistics(This,pStats) )
2018-01-23 23:40:17 +01:00
#define IDXGIOutput1_GetDisplayModeList1(This,EnumFormat,Flags,pNumModes,pDesc) \
2019-02-03 15:49:35 -08:00
( (This)->lpVtbl -> GetDisplayModeList1(This,EnumFormat,Flags,pNumModes,pDesc) )
2018-01-23 23:40:17 +01:00
#define IDXGIOutput1_FindClosestMatchingMode1(This,pModeToMatch,pClosestMatch,pConcernedDevice) \
2019-02-03 15:49:35 -08:00
( (This)->lpVtbl -> FindClosestMatchingMode1(This,pModeToMatch,pClosestMatch,pConcernedDevice) )
2018-01-23 23:40:17 +01:00
#define IDXGIOutput1_GetDisplaySurfaceData1(This,pDestination) \
2019-02-03 15:49:35 -08:00
( (This)->lpVtbl -> GetDisplaySurfaceData1(This,pDestination) )
2018-01-23 23:40:17 +01:00
#define IDXGIOutput1_DuplicateOutput(This,pDevice,ppOutputDuplication) \
2019-02-03 15:49:35 -08:00
( (This)->lpVtbl -> DuplicateOutput(This,pDevice,ppOutputDuplication) )
2018-01-23 23:40:17 +01:00
#endif /* COBJMACROS */
#endif /* C style interface */
#endif /* __IDXGIOutput1_INTERFACE_DEFINED__ */
/* interface __MIDL_itf_dxgi1_2_0000_0009 */
2019-02-03 15:49:35 -08:00
/* [local] */
2018-01-23 23:40:17 +01:00
/*#endif*/ /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) */
/*#pragma endregion*/
DEFINE_GUID(IID_IDXGIDisplayControl,0xea9dbf1a,0xc88e,0x4486,0x85,0x4a,0x98,0xaa,0x01,0x38,0xf3,0x0c);
DEFINE_GUID(IID_IDXGIOutputDuplication,0x191cfac3,0xa341,0x470d,0xb2,0x6e,0xa8,0x64,0xf4,0x28,0x31,0x9c);
DEFINE_GUID(IID_IDXGISurface2,0xaba496dd,0xb617,0x4cb8,0xa8,0x66,0xbc,0x44,0xd7,0xeb,0x1f,0xa2);
DEFINE_GUID(IID_IDXGIResource1,0x30961379,0x4609,0x4a41,0x99,0x8e,0x54,0xfe,0x56,0x7e,0xe0,0xc1);
DEFINE_GUID(IID_IDXGIDevice2,0x05008617,0xfbfd,0x4051,0xa7,0x90,0x14,0x48,0x84,0xb4,0xf6,0xa9);
DEFINE_GUID(IID_IDXGISwapChain1,0x790a45f7,0x0d42,0x4876,0x98,0x3a,0x0a,0x55,0xcf,0xe6,0xf4,0xaa);
DEFINE_GUID(IID_IDXGIFactory2,0x50c83a1c,0xe072,0x4c48,0x87,0xb0,0x36,0x30,0xfa,0x36,0xa6,0xd0);
DEFINE_GUID(IID_IDXGIAdapter2,0x0AA1AE0A,0xFA0E,0x4B84,0x86,0x44,0xE0,0x5F,0xF8,0xE5,0xAC,0xB5);
DEFINE_GUID(IID_IDXGIOutput1,0x00cddea8,0x939b,0x4b83,0xa3,0x40,0xa6,0x85,0x22,0x66,0x66,0xcc);
extern RPC_IF_HANDLE __MIDL_itf_dxgi1_2_0000_0009_v0_0_c_ifspec;
extern RPC_IF_HANDLE __MIDL_itf_dxgi1_2_0000_0009_v0_0_s_ifspec;
/* Additional Prototypes for ALL interfaces */
/* end of Additional Prototypes */
#ifdef __cplusplus
}
#endif
#endif