dxtrans.h
上传用户:hylc_2004
上传日期:2014-01-23
资源大小:46800k
文件大小:155k
- #pragma warning( disable: 4049 ) /* more than 64k source lines */
- /* this ALWAYS GENERATED file contains the definitions for the interfaces */
- /* File created by MIDL compiler version 6.00.0357 */
- /* Compiler settings for dxtrans.idl:
- Oicf, W1, Zp8, env=Win32 (32b run)
- protocol : dce , ms_ext, c_ext
- error checks: allocation ref bounds_check enum stub_data
- VC __declspec() decoration level:
- __declspec(uuid()), __declspec(selectany), __declspec(novtable)
- DECLSPEC_UUID(), MIDL_INTERFACE()
- */
- //@@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__ 440
- #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 __dxtrans_h__
- #define __dxtrans_h__
- #if defined(_MSC_VER) && (_MSC_VER >= 1020)
- #pragma once
- #endif
- /* Forward Declarations */
- #ifndef __IDXBaseObject_FWD_DEFINED__
- #define __IDXBaseObject_FWD_DEFINED__
- typedef interface IDXBaseObject IDXBaseObject;
- #endif /* __IDXBaseObject_FWD_DEFINED__ */
- #ifndef __IDXTransformFactory_FWD_DEFINED__
- #define __IDXTransformFactory_FWD_DEFINED__
- typedef interface IDXTransformFactory IDXTransformFactory;
- #endif /* __IDXTransformFactory_FWD_DEFINED__ */
- #ifndef __IDXTransform_FWD_DEFINED__
- #define __IDXTransform_FWD_DEFINED__
- typedef interface IDXTransform IDXTransform;
- #endif /* __IDXTransform_FWD_DEFINED__ */
- #ifndef __IDXSurfacePick_FWD_DEFINED__
- #define __IDXSurfacePick_FWD_DEFINED__
- typedef interface IDXSurfacePick IDXSurfacePick;
- #endif /* __IDXSurfacePick_FWD_DEFINED__ */
- #ifndef __IDXTBindHost_FWD_DEFINED__
- #define __IDXTBindHost_FWD_DEFINED__
- typedef interface IDXTBindHost IDXTBindHost;
- #endif /* __IDXTBindHost_FWD_DEFINED__ */
- #ifndef __IDXTaskManager_FWD_DEFINED__
- #define __IDXTaskManager_FWD_DEFINED__
- typedef interface IDXTaskManager IDXTaskManager;
- #endif /* __IDXTaskManager_FWD_DEFINED__ */
- #ifndef __IDXSurfaceFactory_FWD_DEFINED__
- #define __IDXSurfaceFactory_FWD_DEFINED__
- typedef interface IDXSurfaceFactory IDXSurfaceFactory;
- #endif /* __IDXSurfaceFactory_FWD_DEFINED__ */
- #ifndef __IDXSurfaceModifier_FWD_DEFINED__
- #define __IDXSurfaceModifier_FWD_DEFINED__
- typedef interface IDXSurfaceModifier IDXSurfaceModifier;
- #endif /* __IDXSurfaceModifier_FWD_DEFINED__ */
- #ifndef __IDXSurface_FWD_DEFINED__
- #define __IDXSurface_FWD_DEFINED__
- typedef interface IDXSurface IDXSurface;
- #endif /* __IDXSurface_FWD_DEFINED__ */
- #ifndef __IDXSurfaceInit_FWD_DEFINED__
- #define __IDXSurfaceInit_FWD_DEFINED__
- typedef interface IDXSurfaceInit IDXSurfaceInit;
- #endif /* __IDXSurfaceInit_FWD_DEFINED__ */
- #ifndef __IDXARGBSurfaceInit_FWD_DEFINED__
- #define __IDXARGBSurfaceInit_FWD_DEFINED__
- typedef interface IDXARGBSurfaceInit IDXARGBSurfaceInit;
- #endif /* __IDXARGBSurfaceInit_FWD_DEFINED__ */
- #ifndef __IDXARGBReadPtr_FWD_DEFINED__
- #define __IDXARGBReadPtr_FWD_DEFINED__
- typedef interface IDXARGBReadPtr IDXARGBReadPtr;
- #endif /* __IDXARGBReadPtr_FWD_DEFINED__ */
- #ifndef __IDXARGBReadWritePtr_FWD_DEFINED__
- #define __IDXARGBReadWritePtr_FWD_DEFINED__
- typedef interface IDXARGBReadWritePtr IDXARGBReadWritePtr;
- #endif /* __IDXARGBReadWritePtr_FWD_DEFINED__ */
- #ifndef __IDXDCLock_FWD_DEFINED__
- #define __IDXDCLock_FWD_DEFINED__
- typedef interface IDXDCLock IDXDCLock;
- #endif /* __IDXDCLock_FWD_DEFINED__ */
- #ifndef __IDXTScaleOutput_FWD_DEFINED__
- #define __IDXTScaleOutput_FWD_DEFINED__
- typedef interface IDXTScaleOutput IDXTScaleOutput;
- #endif /* __IDXTScaleOutput_FWD_DEFINED__ */
- #ifndef __IDXGradient_FWD_DEFINED__
- #define __IDXGradient_FWD_DEFINED__
- typedef interface IDXGradient IDXGradient;
- #endif /* __IDXGradient_FWD_DEFINED__ */
- #ifndef __IDXTScale_FWD_DEFINED__
- #define __IDXTScale_FWD_DEFINED__
- typedef interface IDXTScale IDXTScale;
- #endif /* __IDXTScale_FWD_DEFINED__ */
- #ifndef __IDXEffect_FWD_DEFINED__
- #define __IDXEffect_FWD_DEFINED__
- typedef interface IDXEffect IDXEffect;
- #endif /* __IDXEffect_FWD_DEFINED__ */
- #ifndef __IDXLookupTable_FWD_DEFINED__
- #define __IDXLookupTable_FWD_DEFINED__
- typedef interface IDXLookupTable IDXLookupTable;
- #endif /* __IDXLookupTable_FWD_DEFINED__ */
- #ifndef __IDXRawSurface_FWD_DEFINED__
- #define __IDXRawSurface_FWD_DEFINED__
- typedef interface IDXRawSurface IDXRawSurface;
- #endif /* __IDXRawSurface_FWD_DEFINED__ */
- #ifndef __IHTMLDXTransform_FWD_DEFINED__
- #define __IHTMLDXTransform_FWD_DEFINED__
- typedef interface IHTMLDXTransform IHTMLDXTransform;
- #endif /* __IHTMLDXTransform_FWD_DEFINED__ */
- #ifndef __ICSSFilterDispatch_FWD_DEFINED__
- #define __ICSSFilterDispatch_FWD_DEFINED__
- typedef interface ICSSFilterDispatch ICSSFilterDispatch;
- #endif /* __ICSSFilterDispatch_FWD_DEFINED__ */
- #ifndef __DXTransformFactory_FWD_DEFINED__
- #define __DXTransformFactory_FWD_DEFINED__
- #ifdef __cplusplus
- typedef class DXTransformFactory DXTransformFactory;
- #else
- typedef struct DXTransformFactory DXTransformFactory;
- #endif /* __cplusplus */
- #endif /* __DXTransformFactory_FWD_DEFINED__ */
- #ifndef __DXTaskManager_FWD_DEFINED__
- #define __DXTaskManager_FWD_DEFINED__
- #ifdef __cplusplus
- typedef class DXTaskManager DXTaskManager;
- #else
- typedef struct DXTaskManager DXTaskManager;
- #endif /* __cplusplus */
- #endif /* __DXTaskManager_FWD_DEFINED__ */
- #ifndef __DXTScale_FWD_DEFINED__
- #define __DXTScale_FWD_DEFINED__
- #ifdef __cplusplus
- typedef class DXTScale DXTScale;
- #else
- typedef struct DXTScale DXTScale;
- #endif /* __cplusplus */
- #endif /* __DXTScale_FWD_DEFINED__ */
- #ifndef __DXSurface_FWD_DEFINED__
- #define __DXSurface_FWD_DEFINED__
- #ifdef __cplusplus
- typedef class DXSurface DXSurface;
- #else
- typedef struct DXSurface DXSurface;
- #endif /* __cplusplus */
- #endif /* __DXSurface_FWD_DEFINED__ */
- #ifndef __DXSurfaceModifier_FWD_DEFINED__
- #define __DXSurfaceModifier_FWD_DEFINED__
- #ifdef __cplusplus
- typedef class DXSurfaceModifier DXSurfaceModifier;
- #else
- typedef struct DXSurfaceModifier DXSurfaceModifier;
- #endif /* __cplusplus */
- #endif /* __DXSurfaceModifier_FWD_DEFINED__ */
- #ifndef __DXGradient_FWD_DEFINED__
- #define __DXGradient_FWD_DEFINED__
- #ifdef __cplusplus
- typedef class DXGradient DXGradient;
- #else
- typedef struct DXGradient DXGradient;
- #endif /* __cplusplus */
- #endif /* __DXGradient_FWD_DEFINED__ */
- #ifndef __DXTFilter_FWD_DEFINED__
- #define __DXTFilter_FWD_DEFINED__
- #ifdef __cplusplus
- typedef class DXTFilter DXTFilter;
- #else
- typedef struct DXTFilter DXTFilter;
- #endif /* __cplusplus */
- #endif /* __DXTFilter_FWD_DEFINED__ */
- /* header files for imported files */
- #include "oaidl.h"
- #include "ocidl.h"
- #include "comcat.h"
- #ifdef __cplusplus
- extern "C"{
- #endif
- void * __RPC_USER MIDL_user_allocate(size_t);
- void __RPC_USER MIDL_user_free( void * );
- /* interface __MIDL_itf_dxtrans_0000 */
- /* [local] */
- #include <servprov.h>
- #include <ddraw.h>
- //#include <d3d.h>
- //#include <d3drm.h>
- #include <urlmon.h>
- #if 0
- // Bogus definition used to make MIDL compiler happy
- typedef void DDSURFACEDESC;
- typedef void D3DRMBOX;
- typedef void D3DVECTOR;
- typedef void D3DRMMATRIX4D;
- typedef void *LPSECURITY_ATTRIBUTES;
- #endif
- #ifdef _DXTRANSIMPL
- #define _DXTRANS_IMPL_EXT _declspec(dllexport)
- #else
- #define _DXTRANS_IMPL_EXT _declspec(dllimport)
- #endif
- //
- // All GUIDs for DXTransform are declared in DXTGUID.C in the SDK include directory
- //
- EXTERN_C const GUID DDPF_RGB1;
- EXTERN_C const GUID DDPF_RGB2;
- EXTERN_C const GUID DDPF_RGB4;
- EXTERN_C const GUID DDPF_RGB8;
- EXTERN_C const GUID DDPF_RGB332;
- EXTERN_C const GUID DDPF_ARGB4444;
- EXTERN_C const GUID DDPF_RGB565;
- EXTERN_C const GUID DDPF_BGR565;
- EXTERN_C const GUID DDPF_RGB555;
- EXTERN_C const GUID DDPF_ARGB1555;
- EXTERN_C const GUID DDPF_RGB24;
- EXTERN_C const GUID DDPF_BGR24;
- EXTERN_C const GUID DDPF_RGB32;
- EXTERN_C const GUID DDPF_BGR32;
- EXTERN_C const GUID DDPF_ABGR32;
- EXTERN_C const GUID DDPF_ARGB32;
- EXTERN_C const GUID DDPF_PMARGB32;
- EXTERN_C const GUID DDPF_A1;
- EXTERN_C const GUID DDPF_A2;
- EXTERN_C const GUID DDPF_A4;
- EXTERN_C const GUID DDPF_A8;
- EXTERN_C const GUID DDPF_Z8;
- EXTERN_C const GUID DDPF_Z16;
- EXTERN_C const GUID DDPF_Z24;
- EXTERN_C const GUID DDPF_Z32;
- //
- // Component categories
- //
- EXTERN_C const GUID CATID_DXImageTransform;
- EXTERN_C const GUID CATID_DX3DTransform;
- EXTERN_C const GUID CATID_DXAuthoringTransform;
- EXTERN_C const GUID CATID_DXSurface;
- //
- // Service IDs
- //
- EXTERN_C const GUID SID_SDirectDraw;
- EXTERN_C const GUID SID_SDirect3DRM;
- #define SID_SDXTaskManager CLSID_DXTaskManager
- #define SID_SDXSurfaceFactory IID_IDXSurfaceFactory
- #define SID_SDXTransformFactory IID_IDXTransformFactory
- //
- // DXTransforms Core Type Library Version Info
- //
- #define DXTRANS_TLB_MAJOR_VER 1
- #define DXTRANS_TLB_MINOR_VER 1
- extern RPC_IF_HANDLE __MIDL_itf_dxtrans_0000_v0_0_c_ifspec;
- extern RPC_IF_HANDLE __MIDL_itf_dxtrans_0000_v0_0_s_ifspec;
- #ifndef __IDXBaseObject_INTERFACE_DEFINED__
- #define __IDXBaseObject_INTERFACE_DEFINED__
- /* interface IDXBaseObject */
- /* [local][unique][helpstring][uuid][object] */
- EXTERN_C const IID IID_IDXBaseObject;
- #if defined(__cplusplus) && !defined(CINTERFACE)
-
- MIDL_INTERFACE("17B59B2B-9CC8-11d1-9053-00C04FD9189D")
- IDXBaseObject : public IUnknown
- {
- public:
- virtual HRESULT STDMETHODCALLTYPE GetGenerationId(
- /* [out] */ ULONG *pID) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE IncrementGenerationId(
- /* [in] */ BOOL bRefresh) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE GetObjectSize(
- /* [out] */ ULONG *pcbSize) = 0;
-
- };
-
- #else /* C style interface */
- typedef struct IDXBaseObjectVtbl
- {
- BEGIN_INTERFACE
-
- HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
- IDXBaseObject * This,
- /* [in] */ REFIID riid,
- /* [iid_is][out] */ void **ppvObject);
-
- ULONG ( STDMETHODCALLTYPE *AddRef )(
- IDXBaseObject * This);
-
- ULONG ( STDMETHODCALLTYPE *Release )(
- IDXBaseObject * This);
-
- HRESULT ( STDMETHODCALLTYPE *GetGenerationId )(
- IDXBaseObject * This,
- /* [out] */ ULONG *pID);
-
- HRESULT ( STDMETHODCALLTYPE *IncrementGenerationId )(
- IDXBaseObject * This,
- /* [in] */ BOOL bRefresh);
-
- HRESULT ( STDMETHODCALLTYPE *GetObjectSize )(
- IDXBaseObject * This,
- /* [out] */ ULONG *pcbSize);
-
- END_INTERFACE
- } IDXBaseObjectVtbl;
- interface IDXBaseObject
- {
- CONST_VTBL struct IDXBaseObjectVtbl *lpVtbl;
- };
-
- #ifdef COBJMACROS
- #define IDXBaseObject_QueryInterface(This,riid,ppvObject)
- (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
- #define IDXBaseObject_AddRef(This)
- (This)->lpVtbl -> AddRef(This)
- #define IDXBaseObject_Release(This)
- (This)->lpVtbl -> Release(This)
- #define IDXBaseObject_GetGenerationId(This,pID)
- (This)->lpVtbl -> GetGenerationId(This,pID)
- #define IDXBaseObject_IncrementGenerationId(This,bRefresh)
- (This)->lpVtbl -> IncrementGenerationId(This,bRefresh)
- #define IDXBaseObject_GetObjectSize(This,pcbSize)
- (This)->lpVtbl -> GetObjectSize(This,pcbSize)
- #endif /* COBJMACROS */
- #endif /* C style interface */
- HRESULT STDMETHODCALLTYPE IDXBaseObject_GetGenerationId_Proxy(
- IDXBaseObject * This,
- /* [out] */ ULONG *pID);
- void __RPC_STUB IDXBaseObject_GetGenerationId_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE IDXBaseObject_IncrementGenerationId_Proxy(
- IDXBaseObject * This,
- /* [in] */ BOOL bRefresh);
- void __RPC_STUB IDXBaseObject_IncrementGenerationId_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE IDXBaseObject_GetObjectSize_Proxy(
- IDXBaseObject * This,
- /* [out] */ ULONG *pcbSize);
- void __RPC_STUB IDXBaseObject_GetObjectSize_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- #endif /* __IDXBaseObject_INTERFACE_DEFINED__ */
- /* interface __MIDL_itf_dxtrans_0260 */
- /* [local] */
- typedef
- enum DXBNDID
- { DXB_X = 0,
- DXB_Y = 1,
- DXB_Z = 2,
- DXB_T = 3
- } DXBNDID;
- typedef
- enum DXBNDTYPE
- { DXBT_DISCRETE = 0,
- DXBT_DISCRETE64 = DXBT_DISCRETE + 1,
- DXBT_CONTINUOUS = DXBT_DISCRETE64 + 1,
- DXBT_CONTINUOUS64 = DXBT_CONTINUOUS + 1
- } DXBNDTYPE;
- typedef struct DXDBND
- {
- long Min;
- long Max;
- } DXDBND;
- typedef DXDBND DXDBNDS[ 4 ];
- typedef struct DXDBND64
- {
- LONGLONG Min;
- LONGLONG Max;
- } DXDBND64;
- typedef DXDBND64 DXDBNDS64[ 4 ];
- typedef struct DXCBND
- {
- float Min;
- float Max;
- } DXCBND;
- typedef DXCBND DXCBNDS[ 4 ];
- typedef struct DXCBND64
- {
- double Min;
- double Max;
- } DXCBND64;
- typedef DXCBND64 DXCBNDS64[ 4 ];
- typedef struct DXBNDS
- {
- DXBNDTYPE eType;
- /* [switch_is] */ /* [switch_type] */ union __MIDL___MIDL_itf_dxtrans_0260_0001
- {
- /* [case()] */ DXDBND D[ 4 ];
- /* [case()] */ DXDBND64 LD[ 4 ];
- /* [case()] */ DXCBND C[ 4 ];
- /* [case()] */ DXCBND64 LC[ 4 ];
- } u;
- } DXBNDS;
- typedef long DXDVEC[ 4 ];
- typedef LONGLONG DXDVEC64[ 4 ];
- typedef float DXCVEC[ 4 ];
- typedef double DXCVEC64[ 4 ];
- typedef struct DXVEC
- {
- DXBNDTYPE eType;
- /* [switch_is] */ /* [switch_type] */ union __MIDL___MIDL_itf_dxtrans_0260_0002
- {
- /* [case()] */ long D[ 4 ];
- /* [case()] */ LONGLONG LD[ 4 ];
- /* [case()] */ float C[ 4 ];
- /* [case()] */ double LC[ 4 ];
- } u;
- } DXVEC;
- extern RPC_IF_HANDLE __MIDL_itf_dxtrans_0260_v0_0_c_ifspec;
- extern RPC_IF_HANDLE __MIDL_itf_dxtrans_0260_v0_0_s_ifspec;
- #ifndef __IDXTransformFactory_INTERFACE_DEFINED__
- #define __IDXTransformFactory_INTERFACE_DEFINED__
- /* interface IDXTransformFactory */
- /* [local][unique][helpstring][uuid][object] */
- EXTERN_C const IID IID_IDXTransformFactory;
- #if defined(__cplusplus) && !defined(CINTERFACE)
-
- MIDL_INTERFACE("6A950B2B-A971-11d1-81C8-0000F87557DB")
- IDXTransformFactory : public IServiceProvider
- {
- public:
- virtual HRESULT STDMETHODCALLTYPE SetService(
- /* [in] */ REFGUID guidService,
- /* [in] */ IUnknown *pUnkService,
- /* [in] */ BOOL bWeakReference) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE CreateTransform(
- /* [size_is][in] */ IUnknown **punkInputs,
- /* [in] */ ULONG ulNumInputs,
- /* [size_is][in] */ IUnknown **punkOutputs,
- /* [in] */ ULONG ulNumOutputs,
- /* [in] */ IPropertyBag *pInitProps,
- /* [in] */ IErrorLog *pErrLog,
- /* [in] */ REFCLSID TransCLSID,
- /* [in] */ REFIID TransIID,
- /* [iid_is][out] */ void **ppTransform) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE InitializeTransform(
- /* [in] */ IDXTransform *pTransform,
- /* [size_is][in] */ IUnknown **punkInputs,
- /* [in] */ ULONG ulNumInputs,
- /* [size_is][in] */ IUnknown **punkOutputs,
- /* [in] */ ULONG ulNumOutputs,
- /* [in] */ IPropertyBag *pInitProps,
- /* [in] */ IErrorLog *pErrLog) = 0;
-
- };
-
- #else /* C style interface */
- typedef struct IDXTransformFactoryVtbl
- {
- BEGIN_INTERFACE
-
- HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
- IDXTransformFactory * This,
- /* [in] */ REFIID riid,
- /* [iid_is][out] */ void **ppvObject);
-
- ULONG ( STDMETHODCALLTYPE *AddRef )(
- IDXTransformFactory * This);
-
- ULONG ( STDMETHODCALLTYPE *Release )(
- IDXTransformFactory * This);
-
- /* [local] */ HRESULT ( STDMETHODCALLTYPE *QueryService )(
- IDXTransformFactory * This,
- /* [in] */ REFGUID guidService,
- /* [in] */ REFIID riid,
- /* [out] */ void **ppvObject);
-
- HRESULT ( STDMETHODCALLTYPE *SetService )(
- IDXTransformFactory * This,
- /* [in] */ REFGUID guidService,
- /* [in] */ IUnknown *pUnkService,
- /* [in] */ BOOL bWeakReference);
-
- HRESULT ( STDMETHODCALLTYPE *CreateTransform )(
- IDXTransformFactory * This,
- /* [size_is][in] */ IUnknown **punkInputs,
- /* [in] */ ULONG ulNumInputs,
- /* [size_is][in] */ IUnknown **punkOutputs,
- /* [in] */ ULONG ulNumOutputs,
- /* [in] */ IPropertyBag *pInitProps,
- /* [in] */ IErrorLog *pErrLog,
- /* [in] */ REFCLSID TransCLSID,
- /* [in] */ REFIID TransIID,
- /* [iid_is][out] */ void **ppTransform);
-
- HRESULT ( STDMETHODCALLTYPE *InitializeTransform )(
- IDXTransformFactory * This,
- /* [in] */ IDXTransform *pTransform,
- /* [size_is][in] */ IUnknown **punkInputs,
- /* [in] */ ULONG ulNumInputs,
- /* [size_is][in] */ IUnknown **punkOutputs,
- /* [in] */ ULONG ulNumOutputs,
- /* [in] */ IPropertyBag *pInitProps,
- /* [in] */ IErrorLog *pErrLog);
-
- END_INTERFACE
- } IDXTransformFactoryVtbl;
- interface IDXTransformFactory
- {
- CONST_VTBL struct IDXTransformFactoryVtbl *lpVtbl;
- };
-
- #ifdef COBJMACROS
- #define IDXTransformFactory_QueryInterface(This,riid,ppvObject)
- (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
- #define IDXTransformFactory_AddRef(This)
- (This)->lpVtbl -> AddRef(This)
- #define IDXTransformFactory_Release(This)
- (This)->lpVtbl -> Release(This)
- #define IDXTransformFactory_QueryService(This,guidService,riid,ppvObject)
- (This)->lpVtbl -> QueryService(This,guidService,riid,ppvObject)
- #define IDXTransformFactory_SetService(This,guidService,pUnkService,bWeakReference)
- (This)->lpVtbl -> SetService(This,guidService,pUnkService,bWeakReference)
- #define IDXTransformFactory_CreateTransform(This,punkInputs,ulNumInputs,punkOutputs,ulNumOutputs,pInitProps,pErrLog,TransCLSID,TransIID,ppTransform)
- (This)->lpVtbl -> CreateTransform(This,punkInputs,ulNumInputs,punkOutputs,ulNumOutputs,pInitProps,pErrLog,TransCLSID,TransIID,ppTransform)
- #define IDXTransformFactory_InitializeTransform(This,pTransform,punkInputs,ulNumInputs,punkOutputs,ulNumOutputs,pInitProps,pErrLog)
- (This)->lpVtbl -> InitializeTransform(This,pTransform,punkInputs,ulNumInputs,punkOutputs,ulNumOutputs,pInitProps,pErrLog)
- #endif /* COBJMACROS */
- #endif /* C style interface */
- HRESULT STDMETHODCALLTYPE IDXTransformFactory_SetService_Proxy(
- IDXTransformFactory * This,
- /* [in] */ REFGUID guidService,
- /* [in] */ IUnknown *pUnkService,
- /* [in] */ BOOL bWeakReference);
- void __RPC_STUB IDXTransformFactory_SetService_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE IDXTransformFactory_CreateTransform_Proxy(
- IDXTransformFactory * This,
- /* [size_is][in] */ IUnknown **punkInputs,
- /* [in] */ ULONG ulNumInputs,
- /* [size_is][in] */ IUnknown **punkOutputs,
- /* [in] */ ULONG ulNumOutputs,
- /* [in] */ IPropertyBag *pInitProps,
- /* [in] */ IErrorLog *pErrLog,
- /* [in] */ REFCLSID TransCLSID,
- /* [in] */ REFIID TransIID,
- /* [iid_is][out] */ void **ppTransform);
- void __RPC_STUB IDXTransformFactory_CreateTransform_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE IDXTransformFactory_InitializeTransform_Proxy(
- IDXTransformFactory * This,
- /* [in] */ IDXTransform *pTransform,
- /* [size_is][in] */ IUnknown **punkInputs,
- /* [in] */ ULONG ulNumInputs,
- /* [size_is][in] */ IUnknown **punkOutputs,
- /* [in] */ ULONG ulNumOutputs,
- /* [in] */ IPropertyBag *pInitProps,
- /* [in] */ IErrorLog *pErrLog);
- void __RPC_STUB IDXTransformFactory_InitializeTransform_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- #endif /* __IDXTransformFactory_INTERFACE_DEFINED__ */
- /* interface __MIDL_itf_dxtrans_0261 */
- /* [local] */
- typedef
- enum DXTMISCFLAGS
- { DXTMF_BLEND_WITH_OUTPUT = 1L << 0,
- DXTMF_DITHER_OUTPUT = 1L << 1,
- DXTMF_OPTION_MASK = 0xffff,
- DXTMF_VALID_OPTIONS = DXTMF_BLEND_WITH_OUTPUT | DXTMF_DITHER_OUTPUT,
- DXTMF_BLEND_SUPPORTED = 1L << 16,
- DXTMF_DITHER_SUPPORTED = 1L << 17,
- DXTMF_INPLACE_OPERATION = 1L << 24,
- DXTMF_BOUNDS_SUPPORTED = 1L << 25,
- DXTMF_PLACEMENT_SUPPORTED = 1L << 26,
- DXTMF_QUALITY_SUPPORTED = 1L << 27,
- DXTMF_OPAQUE_RESULT = 1L << 28
- } DXTMISCFLAGS;
- typedef
- enum DXINOUTINFOFLAGS
- { DXINOUTF_OPTIONAL = 1L << 0
- } DXINOUTINFOFLAGS;
- extern RPC_IF_HANDLE __MIDL_itf_dxtrans_0261_v0_0_c_ifspec;
- extern RPC_IF_HANDLE __MIDL_itf_dxtrans_0261_v0_0_s_ifspec;
- #ifndef __IDXTransform_INTERFACE_DEFINED__
- #define __IDXTransform_INTERFACE_DEFINED__
- /* interface IDXTransform */
- /* [local][unique][helpstring][uuid][object] */
- EXTERN_C const IID IID_IDXTransform;
- #if defined(__cplusplus) && !defined(CINTERFACE)
-
- MIDL_INTERFACE("30A5FB78-E11F-11d1-9064-00C04FD9189D")
- IDXTransform : public IDXBaseObject
- {
- public:
- virtual HRESULT STDMETHODCALLTYPE Setup(
- /* [size_is][in] */ IUnknown *const *punkInputs,
- /* [in] */ ULONG ulNumInputs,
- /* [size_is][in] */ IUnknown *const *punkOutputs,
- /* [in] */ ULONG ulNumOutputs,
- /* [in] */ DWORD dwFlags) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE Execute(
- /* [in] */ const GUID *pRequestID,
- /* [in] */ const DXBNDS *pClipBnds,
- /* [in] */ const DXVEC *pPlacement) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE MapBoundsIn2Out(
- /* [in] */ const DXBNDS *pInBounds,
- /* [in] */ ULONG ulNumInBnds,
- /* [in] */ ULONG ulOutIndex,
- /* [out] */ DXBNDS *pOutBounds) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE MapBoundsOut2In(
- /* [in] */ ULONG ulOutIndex,
- /* [in] */ const DXBNDS *pOutBounds,
- /* [in] */ ULONG ulInIndex,
- /* [out] */ DXBNDS *pInBounds) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE SetMiscFlags(
- /* [in] */ DWORD dwMiscFlags) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE GetMiscFlags(
- /* [out] */ DWORD *pdwMiscFlags) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE GetInOutInfo(
- /* [in] */ BOOL bIsOutput,
- /* [in] */ ULONG ulIndex,
- /* [out] */ DWORD *pdwFlags,
- /* [size_is][out] */ GUID *pIDs,
- /* [out][in] */ ULONG *pcIDs,
- /* [out] */ IUnknown **ppUnkCurrentObject) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE SetQuality(
- /* [in] */ float fQuality) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE GetQuality(
- /* [out] */ float *fQuality) = 0;
-
- };
-
- #else /* C style interface */
- typedef struct IDXTransformVtbl
- {
- BEGIN_INTERFACE
-
- HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
- IDXTransform * This,
- /* [in] */ REFIID riid,
- /* [iid_is][out] */ void **ppvObject);
-
- ULONG ( STDMETHODCALLTYPE *AddRef )(
- IDXTransform * This);
-
- ULONG ( STDMETHODCALLTYPE *Release )(
- IDXTransform * This);
-
- HRESULT ( STDMETHODCALLTYPE *GetGenerationId )(
- IDXTransform * This,
- /* [out] */ ULONG *pID);
-
- HRESULT ( STDMETHODCALLTYPE *IncrementGenerationId )(
- IDXTransform * This,
- /* [in] */ BOOL bRefresh);
-
- HRESULT ( STDMETHODCALLTYPE *GetObjectSize )(
- IDXTransform * This,
- /* [out] */ ULONG *pcbSize);
-
- HRESULT ( STDMETHODCALLTYPE *Setup )(
- IDXTransform * This,
- /* [size_is][in] */ IUnknown *const *punkInputs,
- /* [in] */ ULONG ulNumInputs,
- /* [size_is][in] */ IUnknown *const *punkOutputs,
- /* [in] */ ULONG ulNumOutputs,
- /* [in] */ DWORD dwFlags);
-
- HRESULT ( STDMETHODCALLTYPE *Execute )(
- IDXTransform * This,
- /* [in] */ const GUID *pRequestID,
- /* [in] */ const DXBNDS *pClipBnds,
- /* [in] */ const DXVEC *pPlacement);
-
- HRESULT ( STDMETHODCALLTYPE *MapBoundsIn2Out )(
- IDXTransform * This,
- /* [in] */ const DXBNDS *pInBounds,
- /* [in] */ ULONG ulNumInBnds,
- /* [in] */ ULONG ulOutIndex,
- /* [out] */ DXBNDS *pOutBounds);
-
- HRESULT ( STDMETHODCALLTYPE *MapBoundsOut2In )(
- IDXTransform * This,
- /* [in] */ ULONG ulOutIndex,
- /* [in] */ const DXBNDS *pOutBounds,
- /* [in] */ ULONG ulInIndex,
- /* [out] */ DXBNDS *pInBounds);
-
- HRESULT ( STDMETHODCALLTYPE *SetMiscFlags )(
- IDXTransform * This,
- /* [in] */ DWORD dwMiscFlags);
-
- HRESULT ( STDMETHODCALLTYPE *GetMiscFlags )(
- IDXTransform * This,
- /* [out] */ DWORD *pdwMiscFlags);
-
- HRESULT ( STDMETHODCALLTYPE *GetInOutInfo )(
- IDXTransform * This,
- /* [in] */ BOOL bIsOutput,
- /* [in] */ ULONG ulIndex,
- /* [out] */ DWORD *pdwFlags,
- /* [size_is][out] */ GUID *pIDs,
- /* [out][in] */ ULONG *pcIDs,
- /* [out] */ IUnknown **ppUnkCurrentObject);
-
- HRESULT ( STDMETHODCALLTYPE *SetQuality )(
- IDXTransform * This,
- /* [in] */ float fQuality);
-
- HRESULT ( STDMETHODCALLTYPE *GetQuality )(
- IDXTransform * This,
- /* [out] */ float *fQuality);
-
- END_INTERFACE
- } IDXTransformVtbl;
- interface IDXTransform
- {
- CONST_VTBL struct IDXTransformVtbl *lpVtbl;
- };
-
- #ifdef COBJMACROS
- #define IDXTransform_QueryInterface(This,riid,ppvObject)
- (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
- #define IDXTransform_AddRef(This)
- (This)->lpVtbl -> AddRef(This)
- #define IDXTransform_Release(This)
- (This)->lpVtbl -> Release(This)
- #define IDXTransform_GetGenerationId(This,pID)
- (This)->lpVtbl -> GetGenerationId(This,pID)
- #define IDXTransform_IncrementGenerationId(This,bRefresh)
- (This)->lpVtbl -> IncrementGenerationId(This,bRefresh)
- #define IDXTransform_GetObjectSize(This,pcbSize)
- (This)->lpVtbl -> GetObjectSize(This,pcbSize)
- #define IDXTransform_Setup(This,punkInputs,ulNumInputs,punkOutputs,ulNumOutputs,dwFlags)
- (This)->lpVtbl -> Setup(This,punkInputs,ulNumInputs,punkOutputs,ulNumOutputs,dwFlags)
- #define IDXTransform_Execute(This,pRequestID,pClipBnds,pPlacement)
- (This)->lpVtbl -> Execute(This,pRequestID,pClipBnds,pPlacement)
- #define IDXTransform_MapBoundsIn2Out(This,pInBounds,ulNumInBnds,ulOutIndex,pOutBounds)
- (This)->lpVtbl -> MapBoundsIn2Out(This,pInBounds,ulNumInBnds,ulOutIndex,pOutBounds)
- #define IDXTransform_MapBoundsOut2In(This,ulOutIndex,pOutBounds,ulInIndex,pInBounds)
- (This)->lpVtbl -> MapBoundsOut2In(This,ulOutIndex,pOutBounds,ulInIndex,pInBounds)
- #define IDXTransform_SetMiscFlags(This,dwMiscFlags)
- (This)->lpVtbl -> SetMiscFlags(This,dwMiscFlags)
- #define IDXTransform_GetMiscFlags(This,pdwMiscFlags)
- (This)->lpVtbl -> GetMiscFlags(This,pdwMiscFlags)
- #define IDXTransform_GetInOutInfo(This,bIsOutput,ulIndex,pdwFlags,pIDs,pcIDs,ppUnkCurrentObject)
- (This)->lpVtbl -> GetInOutInfo(This,bIsOutput,ulIndex,pdwFlags,pIDs,pcIDs,ppUnkCurrentObject)
- #define IDXTransform_SetQuality(This,fQuality)
- (This)->lpVtbl -> SetQuality(This,fQuality)
- #define IDXTransform_GetQuality(This,fQuality)
- (This)->lpVtbl -> GetQuality(This,fQuality)
- #endif /* COBJMACROS */
- #endif /* C style interface */
- HRESULT STDMETHODCALLTYPE IDXTransform_Setup_Proxy(
- IDXTransform * This,
- /* [size_is][in] */ IUnknown *const *punkInputs,
- /* [in] */ ULONG ulNumInputs,
- /* [size_is][in] */ IUnknown *const *punkOutputs,
- /* [in] */ ULONG ulNumOutputs,
- /* [in] */ DWORD dwFlags);
- void __RPC_STUB IDXTransform_Setup_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE IDXTransform_Execute_Proxy(
- IDXTransform * This,
- /* [in] */ const GUID *pRequestID,
- /* [in] */ const DXBNDS *pClipBnds,
- /* [in] */ const DXVEC *pPlacement);
- void __RPC_STUB IDXTransform_Execute_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE IDXTransform_MapBoundsIn2Out_Proxy(
- IDXTransform * This,
- /* [in] */ const DXBNDS *pInBounds,
- /* [in] */ ULONG ulNumInBnds,
- /* [in] */ ULONG ulOutIndex,
- /* [out] */ DXBNDS *pOutBounds);
- void __RPC_STUB IDXTransform_MapBoundsIn2Out_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE IDXTransform_MapBoundsOut2In_Proxy(
- IDXTransform * This,
- /* [in] */ ULONG ulOutIndex,
- /* [in] */ const DXBNDS *pOutBounds,
- /* [in] */ ULONG ulInIndex,
- /* [out] */ DXBNDS *pInBounds);
- void __RPC_STUB IDXTransform_MapBoundsOut2In_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE IDXTransform_SetMiscFlags_Proxy(
- IDXTransform * This,
- /* [in] */ DWORD dwMiscFlags);
- void __RPC_STUB IDXTransform_SetMiscFlags_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE IDXTransform_GetMiscFlags_Proxy(
- IDXTransform * This,
- /* [out] */ DWORD *pdwMiscFlags);
- void __RPC_STUB IDXTransform_GetMiscFlags_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE IDXTransform_GetInOutInfo_Proxy(
- IDXTransform * This,
- /* [in] */ BOOL bIsOutput,
- /* [in] */ ULONG ulIndex,
- /* [out] */ DWORD *pdwFlags,
- /* [size_is][out] */ GUID *pIDs,
- /* [out][in] */ ULONG *pcIDs,
- /* [out] */ IUnknown **ppUnkCurrentObject);
- void __RPC_STUB IDXTransform_GetInOutInfo_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE IDXTransform_SetQuality_Proxy(
- IDXTransform * This,
- /* [in] */ float fQuality);
- void __RPC_STUB IDXTransform_SetQuality_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE IDXTransform_GetQuality_Proxy(
- IDXTransform * This,
- /* [out] */ float *fQuality);
- void __RPC_STUB IDXTransform_GetQuality_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- #endif /* __IDXTransform_INTERFACE_DEFINED__ */
- #ifndef __IDXSurfacePick_INTERFACE_DEFINED__
- #define __IDXSurfacePick_INTERFACE_DEFINED__
- /* interface IDXSurfacePick */
- /* [local][unique][helpstring][uuid][object] */
- EXTERN_C const IID IID_IDXSurfacePick;
- #if defined(__cplusplus) && !defined(CINTERFACE)
-
- MIDL_INTERFACE("30A5FB79-E11F-11d1-9064-00C04FD9189D")
- IDXSurfacePick : public IUnknown
- {
- public:
- virtual HRESULT STDMETHODCALLTYPE PointPick(
- /* [in] */ const DXVEC *pPoint,
- /* [out] */ ULONG *pulInputSurfaceIndex,
- /* [out] */ DXVEC *pInputPoint) = 0;
-
- };
-
- #else /* C style interface */
- typedef struct IDXSurfacePickVtbl
- {
- BEGIN_INTERFACE
-
- HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
- IDXSurfacePick * This,
- /* [in] */ REFIID riid,
- /* [iid_is][out] */ void **ppvObject);
-
- ULONG ( STDMETHODCALLTYPE *AddRef )(
- IDXSurfacePick * This);
-
- ULONG ( STDMETHODCALLTYPE *Release )(
- IDXSurfacePick * This);
-
- HRESULT ( STDMETHODCALLTYPE *PointPick )(
- IDXSurfacePick * This,
- /* [in] */ const DXVEC *pPoint,
- /* [out] */ ULONG *pulInputSurfaceIndex,
- /* [out] */ DXVEC *pInputPoint);
-
- END_INTERFACE
- } IDXSurfacePickVtbl;
- interface IDXSurfacePick
- {
- CONST_VTBL struct IDXSurfacePickVtbl *lpVtbl;
- };
-
- #ifdef COBJMACROS
- #define IDXSurfacePick_QueryInterface(This,riid,ppvObject)
- (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
- #define IDXSurfacePick_AddRef(This)
- (This)->lpVtbl -> AddRef(This)
- #define IDXSurfacePick_Release(This)
- (This)->lpVtbl -> Release(This)
- #define IDXSurfacePick_PointPick(This,pPoint,pulInputSurfaceIndex,pInputPoint)
- (This)->lpVtbl -> PointPick(This,pPoint,pulInputSurfaceIndex,pInputPoint)
- #endif /* COBJMACROS */
- #endif /* C style interface */
- HRESULT STDMETHODCALLTYPE IDXSurfacePick_PointPick_Proxy(
- IDXSurfacePick * This,
- /* [in] */ const DXVEC *pPoint,
- /* [out] */ ULONG *pulInputSurfaceIndex,
- /* [out] */ DXVEC *pInputPoint);
- void __RPC_STUB IDXSurfacePick_PointPick_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- #endif /* __IDXSurfacePick_INTERFACE_DEFINED__ */
- #ifndef __IDXTBindHost_INTERFACE_DEFINED__
- #define __IDXTBindHost_INTERFACE_DEFINED__
- /* interface IDXTBindHost */
- /* [local][unique][helpstring][uuid][object] */
- EXTERN_C const IID IID_IDXTBindHost;
- #if defined(__cplusplus) && !defined(CINTERFACE)
-
- MIDL_INTERFACE("D26BCE55-E9DC-11d1-9066-00C04FD9189D")
- IDXTBindHost : public IUnknown
- {
- public:
- virtual HRESULT STDMETHODCALLTYPE SetBindHost(
- /* [in] */ IBindHost *pBindHost) = 0;
-
- };
-
- #else /* C style interface */
- typedef struct IDXTBindHostVtbl
- {
- BEGIN_INTERFACE
-
- HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
- IDXTBindHost * This,
- /* [in] */ REFIID riid,
- /* [iid_is][out] */ void **ppvObject);
-
- ULONG ( STDMETHODCALLTYPE *AddRef )(
- IDXTBindHost * This);
-
- ULONG ( STDMETHODCALLTYPE *Release )(
- IDXTBindHost * This);
-
- HRESULT ( STDMETHODCALLTYPE *SetBindHost )(
- IDXTBindHost * This,
- /* [in] */ IBindHost *pBindHost);
-
- END_INTERFACE
- } IDXTBindHostVtbl;
- interface IDXTBindHost
- {
- CONST_VTBL struct IDXTBindHostVtbl *lpVtbl;
- };
-
- #ifdef COBJMACROS
- #define IDXTBindHost_QueryInterface(This,riid,ppvObject)
- (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
- #define IDXTBindHost_AddRef(This)
- (This)->lpVtbl -> AddRef(This)
- #define IDXTBindHost_Release(This)
- (This)->lpVtbl -> Release(This)
- #define IDXTBindHost_SetBindHost(This,pBindHost)
- (This)->lpVtbl -> SetBindHost(This,pBindHost)
- #endif /* COBJMACROS */
- #endif /* C style interface */
- HRESULT STDMETHODCALLTYPE IDXTBindHost_SetBindHost_Proxy(
- IDXTBindHost * This,
- /* [in] */ IBindHost *pBindHost);
- void __RPC_STUB IDXTBindHost_SetBindHost_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- #endif /* __IDXTBindHost_INTERFACE_DEFINED__ */
- /* interface __MIDL_itf_dxtrans_0264 */
- /* [local] */
- typedef void __stdcall __stdcall DXTASKPROC(
- void *pTaskData,
- BOOL *pbContinueProcessing);
- typedef DXTASKPROC *PFNDXTASKPROC;
- typedef void __stdcall __stdcall DXAPCPROC(
- DWORD dwData);
- typedef DXAPCPROC *PFNDXAPCPROC;
- #ifdef __cplusplus
- typedef struct DXTMTASKINFO
- {
- PFNDXTASKPROC pfnTaskProc; // Pointer to function to execute
- PVOID pTaskData; // Pointer to argument data
- PFNDXAPCPROC pfnCompletionAPC; // Pointer to completion APC proc
- DWORD dwCompletionData; // Pointer to APC proc data
- const GUID* pRequestID; // Used to identify groups of tasks
- } DXTMTASKINFO;
- #else
- typedef struct DXTMTASKINFO
- {
- PVOID pfnTaskProc;
- PVOID pTaskData;
- PVOID pfnCompletionAPC;
- DWORD dwCompletionData;
- const GUID *pRequestID;
- } DXTMTASKINFO;
- #endif
- extern RPC_IF_HANDLE __MIDL_itf_dxtrans_0264_v0_0_c_ifspec;
- extern RPC_IF_HANDLE __MIDL_itf_dxtrans_0264_v0_0_s_ifspec;
- #ifndef __IDXTaskManager_INTERFACE_DEFINED__
- #define __IDXTaskManager_INTERFACE_DEFINED__
- /* interface IDXTaskManager */
- /* [local][unique][helpstring][uuid][object] */
- EXTERN_C const IID IID_IDXTaskManager;
- #if defined(__cplusplus) && !defined(CINTERFACE)
-
- MIDL_INTERFACE("254DBBC1-F922-11d0-883A-3C8B00C10000")
- IDXTaskManager : public IUnknown
- {
- public:
- virtual HRESULT STDMETHODCALLTYPE QueryNumProcessors(
- /* [out] */ ULONG *pulNumProc) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE SetThreadPoolSize(
- /* [in] */ ULONG ulNumThreads) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE GetThreadPoolSize(
- /* [out] */ ULONG *pulNumThreads) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE SetConcurrencyLimit(
- /* [in] */ ULONG ulNumThreads) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE GetConcurrencyLimit(
- /* [out] */ ULONG *pulNumThreads) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE ScheduleTasks(
- /* [in] */ DXTMTASKINFO TaskInfo[ ],
- /* [in] */ HANDLE Events[ ],
- /* [out] */ DWORD TaskIDs[ ],
- /* [in] */ ULONG ulNumTasks,
- /* [in] */ ULONG ulWaitPeriod) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE TerminateTasks(
- /* [in] */ DWORD TaskIDs[ ],
- /* [in] */ ULONG ulCount,
- /* [in] */ ULONG ulTimeOut) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE TerminateRequest(
- /* [in] */ REFIID RequestID,
- /* [in] */ ULONG ulTimeOut) = 0;
-
- };
-
- #else /* C style interface */
- typedef struct IDXTaskManagerVtbl
- {
- BEGIN_INTERFACE
-
- HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
- IDXTaskManager * This,
- /* [in] */ REFIID riid,
- /* [iid_is][out] */ void **ppvObject);
-
- ULONG ( STDMETHODCALLTYPE *AddRef )(
- IDXTaskManager * This);
-
- ULONG ( STDMETHODCALLTYPE *Release )(
- IDXTaskManager * This);
-
- HRESULT ( STDMETHODCALLTYPE *QueryNumProcessors )(
- IDXTaskManager * This,
- /* [out] */ ULONG *pulNumProc);
-
- HRESULT ( STDMETHODCALLTYPE *SetThreadPoolSize )(
- IDXTaskManager * This,
- /* [in] */ ULONG ulNumThreads);
-
- HRESULT ( STDMETHODCALLTYPE *GetThreadPoolSize )(
- IDXTaskManager * This,
- /* [out] */ ULONG *pulNumThreads);
-
- HRESULT ( STDMETHODCALLTYPE *SetConcurrencyLimit )(
- IDXTaskManager * This,
- /* [in] */ ULONG ulNumThreads);
-
- HRESULT ( STDMETHODCALLTYPE *GetConcurrencyLimit )(
- IDXTaskManager * This,
- /* [out] */ ULONG *pulNumThreads);
-
- HRESULT ( STDMETHODCALLTYPE *ScheduleTasks )(
- IDXTaskManager * This,
- /* [in] */ DXTMTASKINFO TaskInfo[ ],
- /* [in] */ HANDLE Events[ ],
- /* [out] */ DWORD TaskIDs[ ],
- /* [in] */ ULONG ulNumTasks,
- /* [in] */ ULONG ulWaitPeriod);
-
- HRESULT ( STDMETHODCALLTYPE *TerminateTasks )(
- IDXTaskManager * This,
- /* [in] */ DWORD TaskIDs[ ],
- /* [in] */ ULONG ulCount,
- /* [in] */ ULONG ulTimeOut);
-
- HRESULT ( STDMETHODCALLTYPE *TerminateRequest )(
- IDXTaskManager * This,
- /* [in] */ REFIID RequestID,
- /* [in] */ ULONG ulTimeOut);
-
- END_INTERFACE
- } IDXTaskManagerVtbl;
- interface IDXTaskManager
- {
- CONST_VTBL struct IDXTaskManagerVtbl *lpVtbl;
- };
-
- #ifdef COBJMACROS
- #define IDXTaskManager_QueryInterface(This,riid,ppvObject)
- (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
- #define IDXTaskManager_AddRef(This)
- (This)->lpVtbl -> AddRef(This)
- #define IDXTaskManager_Release(This)
- (This)->lpVtbl -> Release(This)
- #define IDXTaskManager_QueryNumProcessors(This,pulNumProc)
- (This)->lpVtbl -> QueryNumProcessors(This,pulNumProc)
- #define IDXTaskManager_SetThreadPoolSize(This,ulNumThreads)
- (This)->lpVtbl -> SetThreadPoolSize(This,ulNumThreads)
- #define IDXTaskManager_GetThreadPoolSize(This,pulNumThreads)
- (This)->lpVtbl -> GetThreadPoolSize(This,pulNumThreads)
- #define IDXTaskManager_SetConcurrencyLimit(This,ulNumThreads)
- (This)->lpVtbl -> SetConcurrencyLimit(This,ulNumThreads)
- #define IDXTaskManager_GetConcurrencyLimit(This,pulNumThreads)
- (This)->lpVtbl -> GetConcurrencyLimit(This,pulNumThreads)
- #define IDXTaskManager_ScheduleTasks(This,TaskInfo,Events,TaskIDs,ulNumTasks,ulWaitPeriod)
- (This)->lpVtbl -> ScheduleTasks(This,TaskInfo,Events,TaskIDs,ulNumTasks,ulWaitPeriod)
- #define IDXTaskManager_TerminateTasks(This,TaskIDs,ulCount,ulTimeOut)
- (This)->lpVtbl -> TerminateTasks(This,TaskIDs,ulCount,ulTimeOut)
- #define IDXTaskManager_TerminateRequest(This,RequestID,ulTimeOut)
- (This)->lpVtbl -> TerminateRequest(This,RequestID,ulTimeOut)
- #endif /* COBJMACROS */
- #endif /* C style interface */
- HRESULT STDMETHODCALLTYPE IDXTaskManager_QueryNumProcessors_Proxy(
- IDXTaskManager * This,
- /* [out] */ ULONG *pulNumProc);
- void __RPC_STUB IDXTaskManager_QueryNumProcessors_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE IDXTaskManager_SetThreadPoolSize_Proxy(
- IDXTaskManager * This,
- /* [in] */ ULONG ulNumThreads);
- void __RPC_STUB IDXTaskManager_SetThreadPoolSize_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE IDXTaskManager_GetThreadPoolSize_Proxy(
- IDXTaskManager * This,
- /* [out] */ ULONG *pulNumThreads);
- void __RPC_STUB IDXTaskManager_GetThreadPoolSize_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE IDXTaskManager_SetConcurrencyLimit_Proxy(
- IDXTaskManager * This,
- /* [in] */ ULONG ulNumThreads);
- void __RPC_STUB IDXTaskManager_SetConcurrencyLimit_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE IDXTaskManager_GetConcurrencyLimit_Proxy(
- IDXTaskManager * This,
- /* [out] */ ULONG *pulNumThreads);
- void __RPC_STUB IDXTaskManager_GetConcurrencyLimit_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE IDXTaskManager_ScheduleTasks_Proxy(
- IDXTaskManager * This,
- /* [in] */ DXTMTASKINFO TaskInfo[ ],
- /* [in] */ HANDLE Events[ ],
- /* [out] */ DWORD TaskIDs[ ],
- /* [in] */ ULONG ulNumTasks,
- /* [in] */ ULONG ulWaitPeriod);
- void __RPC_STUB IDXTaskManager_ScheduleTasks_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE IDXTaskManager_TerminateTasks_Proxy(
- IDXTaskManager * This,
- /* [in] */ DWORD TaskIDs[ ],
- /* [in] */ ULONG ulCount,
- /* [in] */ ULONG ulTimeOut);
- void __RPC_STUB IDXTaskManager_TerminateTasks_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE IDXTaskManager_TerminateRequest_Proxy(
- IDXTaskManager * This,
- /* [in] */ REFIID RequestID,
- /* [in] */ ULONG ulTimeOut);
- void __RPC_STUB IDXTaskManager_TerminateRequest_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- #endif /* __IDXTaskManager_INTERFACE_DEFINED__ */
- /* interface __MIDL_itf_dxtrans_0265 */
- /* [local] */
- #ifdef __cplusplus
- /////////////////////////////////////////////////////
- class DXBASESAMPLE;
- class DXSAMPLE;
- class DXPMSAMPLE;
- /////////////////////////////////////////////////////
- class DXBASESAMPLE
- {
- public:
- BYTE Blue;
- BYTE Green;
- BYTE Red;
- BYTE Alpha;
- DXBASESAMPLE() {}
- DXBASESAMPLE(const BYTE alpha, const BYTE red, const BYTE green, const BYTE blue) :
- Alpha(alpha),
- Red(red),
- Green(green),
- Blue(blue) {}
- DXBASESAMPLE(const DWORD val) { *this = (*(DXBASESAMPLE *)&val); }
- operator DWORD () const {return *((DWORD *)this); }
- DWORD operator=(const DWORD val) { return *this = *((DXBASESAMPLE *)&val); }
- }; // DXBASESAMPLE
- /////////////////////////////////////////////////////
- class DXSAMPLE : public DXBASESAMPLE
- {
- public:
- DXSAMPLE() {}
- DXSAMPLE(const BYTE alpha, const BYTE red, const BYTE green, const BYTE blue) :
- DXBASESAMPLE(alpha, red, green, blue) {}
- DXSAMPLE(const DWORD val) { *this = (*(DXSAMPLE *)&val); }
- operator DWORD () const {return *((DWORD *)this); }
- DWORD operator=(const DWORD val) { return *this = *((DXSAMPLE *)&val); }
- operator DXPMSAMPLE() const;
- }; // DXSAMPLE
- /////////////////////////////////////////////////////
- class DXPMSAMPLE : public DXBASESAMPLE
- {
- public:
- DXPMSAMPLE() {}
- DXPMSAMPLE(const BYTE alpha, const BYTE red, const BYTE green, const BYTE blue) :
- DXBASESAMPLE(alpha, red, green, blue) {}
- DXPMSAMPLE(const DWORD val) { *this = (*(DXPMSAMPLE *)&val); }
- operator DWORD () const {return *((DWORD *)this); }
- DWORD operator=(const DWORD val) { return *this = *((DXPMSAMPLE *)&val); }
- operator DXSAMPLE() const;
- }; // DXPMSAMPLE
- //
- // The following cast operators are to prevent a direct assignment of a DXSAMPLE to a DXPMSAMPLE
- //
- inline DXSAMPLE::operator DXPMSAMPLE() const { return *((DXPMSAMPLE *)this); }
- inline DXPMSAMPLE::operator DXSAMPLE() const { return *((DXSAMPLE *)this); }
- #else // !__cplusplus
- typedef struct DXBASESAMPLE
- {
- BYTE Blue;
- BYTE Green;
- BYTE Red;
- BYTE Alpha;
- } DXBASESAMPLE;
- typedef struct DXSAMPLE
- {
- BYTE Blue;
- BYTE Green;
- BYTE Red;
- BYTE Alpha;
- } DXSAMPLE;
- typedef struct DXPMSAMPLE
- {
- BYTE Blue;
- BYTE Green;
- BYTE Red;
- BYTE Alpha;
- } DXPMSAMPLE;
- #endif // !__cplusplus
- typedef
- enum DXRUNTYPE
- { DXRUNTYPE_CLEAR = 0,
- DXRUNTYPE_OPAQUE = 1,
- DXRUNTYPE_TRANS = 2,
- DXRUNTYPE_UNKNOWN = 3
- } DXRUNTYPE;
- #define DX_MAX_RUN_INFO_COUNT ( 128 )
- // Ignore the definition used by MIDL for TLB generation
- #if 0
- typedef struct DXRUNINFO
- {
- ULONG Bitfields;
- } DXRUNINFO;
- #endif // 0
- typedef struct DXRUNINFO
- {
- ULONG Type : 2; // Type
- ULONG Count : 30; // Number of samples in run
- } DXRUNINFO;
- typedef
- enum DXSFCREATE
- { DXSF_FORMAT_IS_CLSID = 1L << 0,
- DXSF_NO_LAZY_DDRAW_LOCK = 1L << 1
- } DXSFCREATE;
- typedef
- enum DXBLTOPTIONS
- { DXBOF_DO_OVER = 1L << 0,
- DXBOF_DITHER = 1L << 1
- } DXBLTOPTIONS;
- extern RPC_IF_HANDLE __MIDL_itf_dxtrans_0265_v0_0_c_ifspec;
- extern RPC_IF_HANDLE __MIDL_itf_dxtrans_0265_v0_0_s_ifspec;
- #ifndef __IDXSurfaceFactory_INTERFACE_DEFINED__
- #define __IDXSurfaceFactory_INTERFACE_DEFINED__
- /* interface IDXSurfaceFactory */
- /* [local][unique][helpstring][uuid][object] */
- EXTERN_C const IID IID_IDXSurfaceFactory;
- #if defined(__cplusplus) && !defined(CINTERFACE)
-
- MIDL_INTERFACE("144946F5-C4D4-11d1-81D1-0000F87557DB")
- IDXSurfaceFactory : public IUnknown
- {
- public:
- virtual HRESULT STDMETHODCALLTYPE CreateSurface(
- /* [in] */ IUnknown *pDirectDraw,
- /* [in] */ const DDSURFACEDESC *pDDSurfaceDesc,
- /* [in] */ const GUID *pFormatID,
- /* [in] */ const DXBNDS *pBounds,
- /* [in] */ DWORD dwFlags,
- /* [in] */ IUnknown *punkOuter,
- /* [in] */ REFIID riid,
- /* [iid_is][out] */ void **ppDXSurface) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE CreateFromDDSurface(
- /* [in] */ IUnknown *pDDrawSurface,
- /* [in] */ const GUID *pFormatID,
- /* [in] */ DWORD dwFlags,
- /* [in] */ IUnknown *punkOuter,
- /* [in] */ REFIID riid,
- /* [iid_is][out] */ void **ppDXSurface) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE LoadImage(
- /* [in] */ const LPWSTR pszFileName,
- /* [in] */ IUnknown *pDirectDraw,
- /* [in] */ const DDSURFACEDESC *pDDSurfaceDesc,
- /* [in] */ const GUID *pFormatID,
- /* [in] */ REFIID riid,
- /* [iid_is][out] */ void **ppDXSurface) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE LoadImageFromStream(
- /* [in] */ IStream *pStream,
- /* [in] */ IUnknown *pDirectDraw,
- /* [in] */ const DDSURFACEDESC *pDDSurfaceDesc,
- /* [in] */ const GUID *pFormatID,
- /* [in] */ REFIID riid,
- /* [iid_is][out] */ void **ppDXSurface) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE CopySurfaceToNewFormat(
- /* [in] */ IDXSurface *pSrc,
- /* [in] */ IUnknown *pDirectDraw,
- /* [in] */ const DDSURFACEDESC *pDDSurfaceDesc,
- /* [in] */ const GUID *pDestFormatID,
- /* [out] */ IDXSurface **ppNewSurface) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE CreateD3DRMTexture(
- /* [in] */ IDXSurface *pSrc,
- /* [in] */ IUnknown *pDirectDraw,
- /* [in] */ IUnknown *pD3DRM3,
- /* [in] */ REFIID riid,
- /* [iid_is][out] */ void **ppTexture3) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE BitBlt(
- /* [in] */ IDXSurface *pDest,
- /* [in] */ const DXVEC *pPlacement,
- /* [in] */ IDXSurface *pSrc,
- /* [in] */ const DXBNDS *pClipBounds,
- /* [in] */ DWORD dwFlags) = 0;
-
- };
-
- #else /* C style interface */
- typedef struct IDXSurfaceFactoryVtbl
- {
- BEGIN_INTERFACE
-
- HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
- IDXSurfaceFactory * This,
- /* [in] */ REFIID riid,
- /* [iid_is][out] */ void **ppvObject);
-
- ULONG ( STDMETHODCALLTYPE *AddRef )(
- IDXSurfaceFactory * This);
-
- ULONG ( STDMETHODCALLTYPE *Release )(
- IDXSurfaceFactory * This);
-
- HRESULT ( STDMETHODCALLTYPE *CreateSurface )(
- IDXSurfaceFactory * This,
- /* [in] */ IUnknown *pDirectDraw,
- /* [in] */ const DDSURFACEDESC *pDDSurfaceDesc,
- /* [in] */ const GUID *pFormatID,
- /* [in] */ const DXBNDS *pBounds,
- /* [in] */ DWORD dwFlags,
- /* [in] */ IUnknown *punkOuter,
- /* [in] */ REFIID riid,
- /* [iid_is][out] */ void **ppDXSurface);
-
- HRESULT ( STDMETHODCALLTYPE *CreateFromDDSurface )(
- IDXSurfaceFactory * This,
- /* [in] */ IUnknown *pDDrawSurface,
- /* [in] */ const GUID *pFormatID,
- /* [in] */ DWORD dwFlags,
- /* [in] */ IUnknown *punkOuter,
- /* [in] */ REFIID riid,
- /* [iid_is][out] */ void **ppDXSurface);
-
- HRESULT ( STDMETHODCALLTYPE *LoadImage )(
- IDXSurfaceFactory * This,
- /* [in] */ const LPWSTR pszFileName,
- /* [in] */ IUnknown *pDirectDraw,
- /* [in] */ const DDSURFACEDESC *pDDSurfaceDesc,
- /* [in] */ const GUID *pFormatID,
- /* [in] */ REFIID riid,
- /* [iid_is][out] */ void **ppDXSurface);
-
- HRESULT ( STDMETHODCALLTYPE *LoadImageFromStream )(
- IDXSurfaceFactory * This,
- /* [in] */ IStream *pStream,
- /* [in] */ IUnknown *pDirectDraw,
- /* [in] */ const DDSURFACEDESC *pDDSurfaceDesc,
- /* [in] */ const GUID *pFormatID,
- /* [in] */ REFIID riid,
- /* [iid_is][out] */ void **ppDXSurface);
-
- HRESULT ( STDMETHODCALLTYPE *CopySurfaceToNewFormat )(
- IDXSurfaceFactory * This,
- /* [in] */ IDXSurface *pSrc,
- /* [in] */ IUnknown *pDirectDraw,
- /* [in] */ const DDSURFACEDESC *pDDSurfaceDesc,
- /* [in] */ const GUID *pDestFormatID,
- /* [out] */ IDXSurface **ppNewSurface);
-
- HRESULT ( STDMETHODCALLTYPE *CreateD3DRMTexture )(
- IDXSurfaceFactory * This,
- /* [in] */ IDXSurface *pSrc,
- /* [in] */ IUnknown *pDirectDraw,
- /* [in] */ IUnknown *pD3DRM3,
- /* [in] */ REFIID riid,
- /* [iid_is][out] */ void **ppTexture3);
-
- HRESULT ( STDMETHODCALLTYPE *BitBlt )(
- IDXSurfaceFactory * This,
- /* [in] */ IDXSurface *pDest,
- /* [in] */ const DXVEC *pPlacement,
- /* [in] */ IDXSurface *pSrc,
- /* [in] */ const DXBNDS *pClipBounds,
- /* [in] */ DWORD dwFlags);
-
- END_INTERFACE
- } IDXSurfaceFactoryVtbl;
- interface IDXSurfaceFactory
- {
- CONST_VTBL struct IDXSurfaceFactoryVtbl *lpVtbl;
- };
-
- #ifdef COBJMACROS
- #define IDXSurfaceFactory_QueryInterface(This,riid,ppvObject)
- (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
- #define IDXSurfaceFactory_AddRef(This)
- (This)->lpVtbl -> AddRef(This)
- #define IDXSurfaceFactory_Release(This)
- (This)->lpVtbl -> Release(This)
- #define IDXSurfaceFactory_CreateSurface(This,pDirectDraw,pDDSurfaceDesc,pFormatID,pBounds,dwFlags,punkOuter,riid,ppDXSurface)
- (This)->lpVtbl -> CreateSurface(This,pDirectDraw,pDDSurfaceDesc,pFormatID,pBounds,dwFlags,punkOuter,riid,ppDXSurface)
- #define IDXSurfaceFactory_CreateFromDDSurface(This,pDDrawSurface,pFormatID,dwFlags,punkOuter,riid,ppDXSurface)
- (This)->lpVtbl -> CreateFromDDSurface(This,pDDrawSurface,pFormatID,dwFlags,punkOuter,riid,ppDXSurface)
- #define IDXSurfaceFactory_LoadImage(This,pszFileName,pDirectDraw,pDDSurfaceDesc,pFormatID,riid,ppDXSurface)
- (This)->lpVtbl -> LoadImage(This,pszFileName,pDirectDraw,pDDSurfaceDesc,pFormatID,riid,ppDXSurface)
- #define IDXSurfaceFactory_LoadImageFromStream(This,pStream,pDirectDraw,pDDSurfaceDesc,pFormatID,riid,ppDXSurface)
- (This)->lpVtbl -> LoadImageFromStream(This,pStream,pDirectDraw,pDDSurfaceDesc,pFormatID,riid,ppDXSurface)
- #define IDXSurfaceFactory_CopySurfaceToNewFormat(This,pSrc,pDirectDraw,pDDSurfaceDesc,pDestFormatID,ppNewSurface)
- (This)->lpVtbl -> CopySurfaceToNewFormat(This,pSrc,pDirectDraw,pDDSurfaceDesc,pDestFormatID,ppNewSurface)
- #define IDXSurfaceFactory_CreateD3DRMTexture(This,pSrc,pDirectDraw,pD3DRM3,riid,ppTexture3)
- (This)->lpVtbl -> CreateD3DRMTexture(This,pSrc,pDirectDraw,pD3DRM3,riid,ppTexture3)
- #define IDXSurfaceFactory_BitBlt(This,pDest,pPlacement,pSrc,pClipBounds,dwFlags)
- (This)->lpVtbl -> BitBlt(This,pDest,pPlacement,pSrc,pClipBounds,dwFlags)
- #endif /* COBJMACROS */
- #endif /* C style interface */
- HRESULT STDMETHODCALLTYPE IDXSurfaceFactory_CreateSurface_Proxy(
- IDXSurfaceFactory * This,
- /* [in] */ IUnknown *pDirectDraw,
- /* [in] */ const DDSURFACEDESC *pDDSurfaceDesc,
- /* [in] */ const GUID *pFormatID,
- /* [in] */ const DXBNDS *pBounds,
- /* [in] */ DWORD dwFlags,
- /* [in] */ IUnknown *punkOuter,
- /* [in] */ REFIID riid,
- /* [iid_is][out] */ void **ppDXSurface);
- void __RPC_STUB IDXSurfaceFactory_CreateSurface_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE IDXSurfaceFactory_CreateFromDDSurface_Proxy(
- IDXSurfaceFactory * This,
- /* [in] */ IUnknown *pDDrawSurface,
- /* [in] */ const GUID *pFormatID,
- /* [in] */ DWORD dwFlags,
- /* [in] */ IUnknown *punkOuter,
- /* [in] */ REFIID riid,
- /* [iid_is][out] */ void **ppDXSurface);
- void __RPC_STUB IDXSurfaceFactory_CreateFromDDSurface_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE IDXSurfaceFactory_LoadImage_Proxy(
- IDXSurfaceFactory * This,
- /* [in] */ const LPWSTR pszFileName,
- /* [in] */ IUnknown *pDirectDraw,
- /* [in] */ const DDSURFACEDESC *pDDSurfaceDesc,
- /* [in] */ const GUID *pFormatID,
- /* [in] */ REFIID riid,
- /* [iid_is][out] */ void **ppDXSurface);
- void __RPC_STUB IDXSurfaceFactory_LoadImage_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE IDXSurfaceFactory_LoadImageFromStream_Proxy(
- IDXSurfaceFactory * This,
- /* [in] */ IStream *pStream,
- /* [in] */ IUnknown *pDirectDraw,
- /* [in] */ const DDSURFACEDESC *pDDSurfaceDesc,
- /* [in] */ const GUID *pFormatID,
- /* [in] */ REFIID riid,
- /* [iid_is][out] */ void **ppDXSurface);
- void __RPC_STUB IDXSurfaceFactory_LoadImageFromStream_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE IDXSurfaceFactory_CopySurfaceToNewFormat_Proxy(
- IDXSurfaceFactory * This,
- /* [in] */ IDXSurface *pSrc,
- /* [in] */ IUnknown *pDirectDraw,
- /* [in] */ const DDSURFACEDESC *pDDSurfaceDesc,
- /* [in] */ const GUID *pDestFormatID,
- /* [out] */ IDXSurface **ppNewSurface);
- void __RPC_STUB IDXSurfaceFactory_CopySurfaceToNewFormat_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE IDXSurfaceFactory_CreateD3DRMTexture_Proxy(
- IDXSurfaceFactory * This,
- /* [in] */ IDXSurface *pSrc,
- /* [in] */ IUnknown *pDirectDraw,
- /* [in] */ IUnknown *pD3DRM3,
- /* [in] */ REFIID riid,
- /* [iid_is][out] */ void **ppTexture3);
- void __RPC_STUB IDXSurfaceFactory_CreateD3DRMTexture_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE IDXSurfaceFactory_BitBlt_Proxy(
- IDXSurfaceFactory * This,
- /* [in] */ IDXSurface *pDest,
- /* [in] */ const DXVEC *pPlacement,
- /* [in] */ IDXSurface *pSrc,
- /* [in] */ const DXBNDS *pClipBounds,
- /* [in] */ DWORD dwFlags);
- void __RPC_STUB IDXSurfaceFactory_BitBlt_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- #endif /* __IDXSurfaceFactory_INTERFACE_DEFINED__ */
- /* interface __MIDL_itf_dxtrans_0266 */
- /* [local] */
- typedef
- enum DXSURFMODCOMPOP
- { DXSURFMOD_COMP_OVER = 0,
- DXSURFMOD_COMP_ALPHA_MASK = 1,
- DXSURFMOD_COMP_MAX_VALID = 1
- } DXSURFMODCOMPOP;
- extern RPC_IF_HANDLE __MIDL_itf_dxtrans_0266_v0_0_c_ifspec;
- extern RPC_IF_HANDLE __MIDL_itf_dxtrans_0266_v0_0_s_ifspec;
- #ifndef __IDXSurfaceModifier_INTERFACE_DEFINED__
- #define __IDXSurfaceModifier_INTERFACE_DEFINED__
- /* interface IDXSurfaceModifier */
- /* [local][unique][helpstring][uuid][object] */
- EXTERN_C const IID IID_IDXSurfaceModifier;
- #if defined(__cplusplus) && !defined(CINTERFACE)
-
- MIDL_INTERFACE("9EA3B637-C37D-11d1-905E-00C04FD9189D")
- IDXSurfaceModifier : public IUnknown
- {
- public:
- virtual HRESULT STDMETHODCALLTYPE SetFillColor(
- /* [in] */ DXSAMPLE Color) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE GetFillColor(
- /* [out] */ DXSAMPLE *pColor) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE SetBounds(
- /* [in] */ const DXBNDS *pBounds) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE SetBackground(
- /* [in] */ IDXSurface *pSurface) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE GetBackground(
- /* [out] */ IDXSurface **ppSurface) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE SetCompositeOperation(
- /* [in] */ DXSURFMODCOMPOP CompOp) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE GetCompositeOperation(
- /* [out] */ DXSURFMODCOMPOP *pCompOp) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE SetForeground(
- /* [in] */ IDXSurface *pSurface,
- /* [in] */ BOOL bTile,
- /* [in] */ const POINT *pOrigin) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE GetForeground(
- /* [out] */ IDXSurface **ppSurface,
- /* [out] */ BOOL *pbTile,
- /* [out] */ POINT *pOrigin) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE SetOpacity(
- /* [in] */ float Opacity) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE GetOpacity(
- /* [out] */ float *pOpacity) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE SetLookup(
- /* [in] */ IDXLookupTable *pLookupTable) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE GetLookup(
- /* [out] */ IDXLookupTable **ppLookupTable) = 0;
-
- };
-
- #else /* C style interface */
- typedef struct IDXSurfaceModifierVtbl
- {
- BEGIN_INTERFACE
-
- HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
- IDXSurfaceModifier * This,
- /* [in] */ REFIID riid,
- /* [iid_is][out] */ void **ppvObject);
-
- ULONG ( STDMETHODCALLTYPE *AddRef )(
- IDXSurfaceModifier * This);
-
- ULONG ( STDMETHODCALLTYPE *Release )(
- IDXSurfaceModifier * This);
-
- HRESULT ( STDMETHODCALLTYPE *SetFillColor )(
- IDXSurfaceModifier * This,
- /* [in] */ DXSAMPLE Color);
-
- HRESULT ( STDMETHODCALLTYPE *GetFillColor )(
- IDXSurfaceModifier * This,
- /* [out] */ DXSAMPLE *pColor);
-
- HRESULT ( STDMETHODCALLTYPE *SetBounds )(
- IDXSurfaceModifier * This,
- /* [in] */ const DXBNDS *pBounds);
-
- HRESULT ( STDMETHODCALLTYPE *SetBackground )(
- IDXSurfaceModifier * This,
- /* [in] */ IDXSurface *pSurface);
-
- HRESULT ( STDMETHODCALLTYPE *GetBackground )(
- IDXSurfaceModifier * This,
- /* [out] */ IDXSurface **ppSurface);
-
- HRESULT ( STDMETHODCALLTYPE *SetCompositeOperation )(
- IDXSurfaceModifier * This,
- /* [in] */ DXSURFMODCOMPOP CompOp);
-
- HRESULT ( STDMETHODCALLTYPE *GetCompositeOperation )(
- IDXSurfaceModifier * This,
- /* [out] */ DXSURFMODCOMPOP *pCompOp);
-
- HRESULT ( STDMETHODCALLTYPE *SetForeground )(
- IDXSurfaceModifier * This,
- /* [in] */ IDXSurface *pSurface,
- /* [in] */ BOOL bTile,
- /* [in] */ const POINT *pOrigin);
-
- HRESULT ( STDMETHODCALLTYPE *GetForeground )(
- IDXSurfaceModifier * This,
- /* [out] */ IDXSurface **ppSurface,
- /* [out] */ BOOL *pbTile,
- /* [out] */ POINT *pOrigin);
-
- HRESULT ( STDMETHODCALLTYPE *SetOpacity )(
- IDXSurfaceModifier * This,
- /* [in] */ float Opacity);
-
- HRESULT ( STDMETHODCALLTYPE *GetOpacity )(
- IDXSurfaceModifier * This,
- /* [out] */ float *pOpacity);
-
- HRESULT ( STDMETHODCALLTYPE *SetLookup )(
- IDXSurfaceModifier * This,
- /* [in] */ IDXLookupTable *pLookupTable);
-
- HRESULT ( STDMETHODCALLTYPE *GetLookup )(
- IDXSurfaceModifier * This,
- /* [out] */ IDXLookupTable **ppLookupTable);
-
- END_INTERFACE
- } IDXSurfaceModifierVtbl;
- interface IDXSurfaceModifier
- {
- CONST_VTBL struct IDXSurfaceModifierVtbl *lpVtbl;
- };
-
- #ifdef COBJMACROS
- #define IDXSurfaceModifier_QueryInterface(This,riid,ppvObject)
- (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
- #define IDXSurfaceModifier_AddRef(This)
- (This)->lpVtbl -> AddRef(This)
- #define IDXSurfaceModifier_Release(This)
- (This)->lpVtbl -> Release(This)
- #define IDXSurfaceModifier_SetFillColor(This,Color)
- (This)->lpVtbl -> SetFillColor(This,Color)
- #define IDXSurfaceModifier_GetFillColor(This,pColor)
- (This)->lpVtbl -> GetFillColor(This,pColor)
- #define IDXSurfaceModifier_SetBounds(This,pBounds)
- (This)->lpVtbl -> SetBounds(This,pBounds)
- #define IDXSurfaceModifier_SetBackground(This,pSurface)
- (This)->lpVtbl -> SetBackground(This,pSurface)
- #define IDXSurfaceModifier_GetBackground(This,ppSurface)
- (This)->lpVtbl -> GetBackground(This,ppSurface)
- #define IDXSurfaceModifier_SetCompositeOperation(This,CompOp)
- (This)->lpVtbl -> SetCompositeOperation(This,CompOp)
- #define IDXSurfaceModifier_GetCompositeOperation(This,pCompOp)
- (This)->lpVtbl -> GetCompositeOperation(This,pCompOp)
- #define IDXSurfaceModifier_SetForeground(This,pSurface,bTile,pOrigin)
- (This)->lpVtbl -> SetForeground(This,pSurface,bTile,pOrigin)
- #define IDXSurfaceModifier_GetForeground(This,ppSurface,pbTile,pOrigin)
- (This)->lpVtbl -> GetForeground(This,ppSurface,pbTile,pOrigin)
- #define IDXSurfaceModifier_SetOpacity(This,Opacity)
- (This)->lpVtbl -> SetOpacity(This,Opacity)
- #define IDXSurfaceModifier_GetOpacity(This,pOpacity)
- (This)->lpVtbl -> GetOpacity(This,pOpacity)
- #define IDXSurfaceModifier_SetLookup(This,pLookupTable)
- (This)->lpVtbl -> SetLookup(This,pLookupTable)
- #define IDXSurfaceModifier_GetLookup(This,ppLookupTable)
- (This)->lpVtbl -> GetLookup(This,ppLookupTable)
- #endif /* COBJMACROS */
- #endif /* C style interface */
- HRESULT STDMETHODCALLTYPE IDXSurfaceModifier_SetFillColor_Proxy(
- IDXSurfaceModifier * This,
- /* [in] */ DXSAMPLE Color);
- void __RPC_STUB IDXSurfaceModifier_SetFillColor_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE IDXSurfaceModifier_GetFillColor_Proxy(
- IDXSurfaceModifier * This,
- /* [out] */ DXSAMPLE *pColor);
- void __RPC_STUB IDXSurfaceModifier_GetFillColor_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE IDXSurfaceModifier_SetBounds_Proxy(
- IDXSurfaceModifier * This,
- /* [in] */ const DXBNDS *pBounds);
- void __RPC_STUB IDXSurfaceModifier_SetBounds_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE IDXSurfaceModifier_SetBackground_Proxy(
- IDXSurfaceModifier * This,
- /* [in] */ IDXSurface *pSurface);
- void __RPC_STUB IDXSurfaceModifier_SetBackground_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE IDXSurfaceModifier_GetBackground_Proxy(
- IDXSurfaceModifier * This,
- /* [out] */ IDXSurface **ppSurface);
- void __RPC_STUB IDXSurfaceModifier_GetBackground_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE IDXSurfaceModifier_SetCompositeOperation_Proxy(
- IDXSurfaceModifier * This,
- /* [in] */ DXSURFMODCOMPOP CompOp);
- void __RPC_STUB IDXSurfaceModifier_SetCompositeOperation_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE IDXSurfaceModifier_GetCompositeOperation_Proxy(
- IDXSurfaceModifier * This,
- /* [out] */ DXSURFMODCOMPOP *pCompOp);
- void __RPC_STUB IDXSurfaceModifier_GetCompositeOperation_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE IDXSurfaceModifier_SetForeground_Proxy(
- IDXSurfaceModifier * This,
- /* [in] */ IDXSurface *pSurface,
- /* [in] */ BOOL bTile,
- /* [in] */ const POINT *pOrigin);
- void __RPC_STUB IDXSurfaceModifier_SetForeground_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE IDXSurfaceModifier_GetForeground_Proxy(
- IDXSurfaceModifier * This,
- /* [out] */ IDXSurface **ppSurface,
- /* [out] */ BOOL *pbTile,
- /* [out] */ POINT *pOrigin);
- void __RPC_STUB IDXSurfaceModifier_GetForeground_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE IDXSurfaceModifier_SetOpacity_Proxy(
- IDXSurfaceModifier * This,
- /* [in] */ float Opacity);
- void __RPC_STUB IDXSurfaceModifier_SetOpacity_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE IDXSurfaceModifier_GetOpacity_Proxy(
- IDXSurfaceModifier * This,
- /* [out] */ float *pOpacity);
- void __RPC_STUB IDXSurfaceModifier_GetOpacity_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE IDXSurfaceModifier_SetLookup_Proxy(
- IDXSurfaceModifier * This,
- /* [in] */ IDXLookupTable *pLookupTable);
- void __RPC_STUB IDXSurfaceModifier_SetLookup_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE IDXSurfaceModifier_GetLookup_Proxy(
- IDXSurfaceModifier * This,
- /* [out] */ IDXLookupTable **ppLookupTable);
- void __RPC_STUB IDXSurfaceModifier_GetLookup_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- #endif /* __IDXSurfaceModifier_INTERFACE_DEFINED__ */
- /* interface __MIDL_itf_dxtrans_0267 */
- /* [local] */
- typedef
- enum DXSAMPLEFORMATENUM
- { DXPF_FLAGSMASK = 0xffff0000,
- DXPF_NONPREMULT = 0x10000,
- DXPF_TRANSPARENCY = 0x20000,
- DXPF_TRANSLUCENCY = 0x40000,
- DXPF_2BITERROR = 0x200000,
- DXPF_3BITERROR = 0x300000,
- DXPF_4BITERROR = 0x400000,
- DXPF_5BITERROR = 0x500000,
- DXPF_ERRORMASK = 0x700000,
- DXPF_NONSTANDARD = 0,
- DXPF_PMARGB32 = 1 | DXPF_TRANSPARENCY | DXPF_TRANSLUCENCY,
- DXPF_ARGB32 = 2 | DXPF_NONPREMULT | DXPF_TRANSPARENCY | DXPF_TRANSLUCENCY,
- DXPF_ARGB4444 = 3 | DXPF_NONPREMULT | DXPF_TRANSPARENCY | DXPF_TRANSLUCENCY | DXPF_4BITERROR,
- DXPF_A8 = 4 | DXPF_TRANSPARENCY | DXPF_TRANSLUCENCY,
- DXPF_RGB32 = 5,
- DXPF_RGB24 = 6,
- DXPF_RGB565 = 7 | DXPF_3BITERROR,
- DXPF_RGB555 = 8 | DXPF_3BITERROR,
- DXPF_RGB8 = 9 | DXPF_5BITERROR,
- DXPF_ARGB1555 = 10 | DXPF_TRANSPARENCY | DXPF_3BITERROR,
- DXPF_RGB32_CK = DXPF_RGB32 | DXPF_TRANSPARENCY,
- DXPF_RGB24_CK = DXPF_RGB24 | DXPF_TRANSPARENCY,
- DXPF_RGB555_CK = DXPF_RGB555 | DXPF_TRANSPARENCY,
- DXPF_RGB565_CK = DXPF_RGB565 | DXPF_TRANSPARENCY,
- DXPF_RGB8_CK = DXPF_RGB8 | DXPF_TRANSPARENCY
- } DXSAMPLEFORMATENUM;
- typedef
- enum DXLOCKSURF
- { DXLOCKF_READ = 0,
- DXLOCKF_READWRITE = 1 << 0,
- DXLOCKF_EXISTINGINFOONLY = 1 << 1,
- DXLOCKF_WANTRUNINFO = 1 << 2,
- DXLOCKF_NONPREMULT = 1 << 16,
- DXLOCKF_VALIDFLAGS = DXLOCKF_READWRITE | DXLOCKF_EXISTINGINFOONLY | DXLOCKF_WANTRUNINFO | DXLOCKF_NONPREMULT
- } DXLOCKSURF;
- typedef
- enum DXSURFSTATUS
- { DXSURF_TRANSIENT = 1 << 0,
- DXSURF_READONLY = 1 << 1,
- DXSURF_VALIDFLAGS = DXSURF_TRANSIENT | DXSURF_READONLY
- } DXSURFSTATUS;
- extern RPC_IF_HANDLE __MIDL_itf_dxtrans_0267_v0_0_c_ifspec;
- extern RPC_IF_HANDLE __MIDL_itf_dxtrans_0267_v0_0_s_ifspec;
- #ifndef __IDXSurface_INTERFACE_DEFINED__
- #define __IDXSurface_INTERFACE_DEFINED__
- /* interface IDXSurface */
- /* [local][unique][helpstring][uuid][object] */
- EXTERN_C const IID IID_IDXSurface;
- #if defined(__cplusplus) && !defined(CINTERFACE)
-
- MIDL_INTERFACE("B39FD73F-E139-11d1-9065-00C04FD9189D")
- IDXSurface : public IDXBaseObject
- {
- public:
- virtual HRESULT STDMETHODCALLTYPE GetPixelFormat(
- /* [out] */ GUID *pFormatID,
- /* [out] */ DXSAMPLEFORMATENUM *pSampleFormatEnum) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE GetBounds(
- /* [out] */ DXBNDS *pBounds) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE GetStatusFlags(
- /* [out] */ DWORD *pdwStatusFlags) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE SetStatusFlags(
- /* [in] */ DWORD dwStatusFlags) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE LockSurface(
- /* [in] */ const DXBNDS *pBounds,
- /* [in] */ ULONG ulTimeOut,
- /* [in] */ DWORD dwFlags,
- /* [in] */ REFIID riid,
- /* [iid_is][out] */ void **ppPointer,
- /* [out] */ ULONG *pulGenerationId) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE GetDirectDrawSurface(
- /* [in] */ REFIID riid,
- /* [iid_is][out] */ void **ppSurface) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE GetColorKey(
- DXSAMPLE *pColorKey) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE SetColorKey(
- DXSAMPLE ColorKey) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE LockSurfaceDC(
- /* [in] */ const DXBNDS *pBounds,
- /* [in] */ ULONG ulTimeOut,
- /* [in] */ DWORD dwFlags,
- /* [out] */ IDXDCLock **ppDCLock) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE SetAppData(
- DWORD_PTR dwAppData) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE GetAppData(
- DWORD_PTR *pdwAppData) = 0;
-
- };
-
- #else /* C style interface */
- typedef struct IDXSurfaceVtbl
- {
- BEGIN_INTERFACE
-
- HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
- IDXSurface * This,
- /* [in] */ REFIID riid,
- /* [iid_is][out] */ void **ppvObject);
-
- ULONG ( STDMETHODCALLTYPE *AddRef )(
- IDXSurface * This);
-
- ULONG ( STDMETHODCALLTYPE *Release )(
- IDXSurface * This);
-
- HRESULT ( STDMETHODCALLTYPE *GetGenerationId )(
- IDXSurface * This,
- /* [out] */ ULONG *pID);
-
- HRESULT ( STDMETHODCALLTYPE *IncrementGenerationId )(
- IDXSurface * This,
- /* [in] */ BOOL bRefresh);
-
- HRESULT ( STDMETHODCALLTYPE *GetObjectSize )(
- IDXSurface * This,
- /* [out] */ ULONG *pcbSize);
-
- HRESULT ( STDMETHODCALLTYPE *GetPixelFormat )(
- IDXSurface * This,
- /* [out] */ GUID *pFormatID,
- /* [out] */ DXSAMPLEFORMATENUM *pSampleFormatEnum);
-
- HRESULT ( STDMETHODCALLTYPE *GetBounds )(
- IDXSurface * This,
- /* [out] */ DXBNDS *pBounds);
-
- HRESULT ( STDMETHODCALLTYPE *GetStatusFlags )(
- IDXSurface * This,
- /* [out] */ DWORD *pdwStatusFlags);
-
- HRESULT ( STDMETHODCALLTYPE *SetStatusFlags )(
- IDXSurface * This,
- /* [in] */ DWORD dwStatusFlags);
-
- HRESULT ( STDMETHODCALLTYPE *LockSurface )(
- IDXSurface * This,
- /* [in] */ const DXBNDS *pBounds,
- /* [in] */ ULONG ulTimeOut,
- /* [in] */ DWORD dwFlags,
- /* [in] */ REFIID riid,
- /* [iid_is][out] */ void **ppPointer,
- /* [out] */ ULONG *pulGenerationId);
-
- HRESULT ( STDMETHODCALLTYPE *GetDirectDrawSurface )(
- IDXSurface * This,
- /* [in] */ REFIID riid,
- /* [iid_is][out] */ void **ppSurface);
-
- HRESULT ( STDMETHODCALLTYPE *GetColorKey )(
- IDXSurface * This,
- DXSAMPLE *pColorKey);
-
- HRESULT ( STDMETHODCALLTYPE *SetColorKey )(
- IDXSurface * This,
- DXSAMPLE ColorKey);
-
- HRESULT ( STDMETHODCALLTYPE *LockSurfaceDC )(
- IDXSurface * This,
- /* [in] */ const DXBNDS *pBounds,
- /* [in] */ ULONG ulTimeOut,
- /* [in] */ DWORD dwFlags,
- /* [out] */ IDXDCLock **ppDCLock);
-
- HRESULT ( STDMETHODCALLTYPE *SetAppData )(
- IDXSurface * This,
- DWORD_PTR dwAppData);
-
- HRESULT ( STDMETHODCALLTYPE *GetAppData )(
- IDXSurface * This,
- DWORD_PTR *pdwAppData);
-
- END_INTERFACE
- } IDXSurfaceVtbl;
- interface IDXSurface
- {
- CONST_VTBL struct IDXSurfaceVtbl *lpVtbl;
- };
-
- #ifdef COBJMACROS