18#if !defined(__cplusplus) || defined(CINTERFACE)
enum _D3DTEXTURESTAGESTATETYPE D3DTEXTURESTAGESTATETYPE
enum _D3DBACKBUFFER_TYPE D3DBACKBUFFER_TYPE
enum _D3DDEVTYPE D3DDEVTYPE
enum _D3DTRANSFORMSTATETYPE D3DTRANSFORMSTATETYPE
enum _D3DFORMAT D3DFORMAT
enum _D3DTEXTUREFILTERTYPE D3DTEXTUREFILTERTYPE
enum _D3DMULTISAMPLE_TYPE D3DMULTISAMPLE_TYPE
#define D3D9_INT_MAX_NUM_ADAPTERS
struct IDirect3DDevice9 * LPDIRECT3DDEVICE9
HRESULT WINAPI IDirect3DDevice9Base_CreateTexture(LPDIRECT3DDEVICE9 iface, UINT Width, UINT Height, UINT Levels, DWORD Usage, D3DFORMAT Format, D3DPOOL Pool, IDirect3DTexture9 **ppTexture, HANDLE *pSharedHandle)
HRESULT WINAPI IDirect3DDevice9Base_GetDeviceCaps(LPDIRECT3DDEVICE9 iface, D3DCAPS9 *pCaps)
UINT WINAPI IDirect3DDevice9Base_GetNumberOfSwapChains(LPDIRECT3DDEVICE9 iface)
VOID WINAPI IDirect3DDevice9Base_VirtualDestructor(LPDIRECT3DDEVICE9 iface)
struct _Direct3DDevice9_INT DIRECT3DDEVICE9_INT
HRESULT WINAPI IDirect3DDevice9Base_GetRenderTargetData(LPDIRECT3DDEVICE9 iface, IDirect3DSurface9 *pRenderTarget, IDirect3DSurface9 *pDestSurface)
LPDIRECT3DDEVICE9_INT IDirect3DDevice9ToImpl(LPDIRECT3DDEVICE9 iface)
HRESULT WINAPI IDirect3DDevice9Base_CreateIndexBuffer(LPDIRECT3DDEVICE9 iface, UINT Length, DWORD Usage, D3DFORMAT Format, D3DPOOL Pool, IDirect3DIndexBuffer9 **ppIndexBuffer, HANDLE *pSharedHandle)
HRESULT WINAPI IDirect3DDevice9Base_QueryInterface(LPDIRECT3DDEVICE9 iface, REFIID riid, void **ppvObject)
VOID WINAPI IDirect3DDevice9Base_SetGammaRamp(LPDIRECT3DDEVICE9 iface, UINT iSwapChain, DWORD Flags, CONST D3DGAMMARAMP *pRamp)
HRESULT WINAPI IDirect3DDevice9Base_CreateDepthStencilSurface(LPDIRECT3DDEVICE9 iface, UINT Width, UINT Height, D3DFORMAT Format, D3DMULTISAMPLE_TYPE MultiSample, DWORD MultisampleQuality, BOOL Discard, IDirect3DSurface9 **ppSurface, HANDLE *pSharedHandle)
HRESULT WINAPI IDirect3DDevice9Base_EvictManagedResources(LPDIRECT3DDEVICE9 iface)
HRESULT WINAPI IDirect3DDevice9Base_GetDisplayMode(LPDIRECT3DDEVICE9 iface, UINT iSwapChain, D3DDISPLAYMODE *pMode)
HRESULT WINAPI IDirect3DDevice9Base_ColorFill(LPDIRECT3DDEVICE9 iface, IDirect3DSurface9 *pSurface, CONST RECT *pRect, D3DCOLOR color)
HRESULT WINAPI IDirect3DDevice9Base_UpdateTexture(LPDIRECT3DDEVICE9 iface, IDirect3DBaseTexture9 *pSourceTexture, IDirect3DBaseTexture9 *pDestinationTexture)
BOOL WINAPI IDirect3DDevice9Base_ShowCursor(LPDIRECT3DDEVICE9 iface, BOOL bShow)
VOID WINAPI IDirect3DDevice9Base_SetCursorPosition(LPDIRECT3DDEVICE9 iface, int X, int Y, DWORD Flags)
VOID WINAPI IDirect3DDevice9Base_Destroy(LPDIRECT3DDEVICE9 iface)
HRESULT WINAPI IDirect3DDevice9Base_GetCreationParameters(LPDIRECT3DDEVICE9 iface, D3DDEVICE_CREATION_PARAMETERS *pParameters)
HRESULT WINAPI IDirect3DDevice9Base_GetBackBuffer(LPDIRECT3DDEVICE9 iface, UINT iSwapChain, UINT iBackBuffer, D3DBACKBUFFER_TYPE Type, IDirect3DSurface9 **ppBackBuffer)
struct _D3D9ResourceManager D3D9ResourceManager
struct _IDirect3DDevice9Vtbl_INT IDirect3DDevice9Vtbl_INT
HRESULT WINAPI IDirect3DDevice9Base_Reset(LPDIRECT3DDEVICE9 iface, D3DPRESENT_PARAMETERS *pPresentationParameters)
ULONG WINAPI IDirect3DDevice9Base_Release(LPDIRECT3DDEVICE9 iface)
struct _Direct3DDevice9_INT * LPDIRECT3DDEVICE9_INT
HRESULT WINAPI IDirect3DDevice9Base_GetFrontBufferData(LPDIRECT3DDEVICE9 iface, UINT iSwapChain, IDirect3DSurface9 *pDestSurface)
HRESULT WINAPI IDirect3DDevice9Base_CreateVolumeTexture(LPDIRECT3DDEVICE9 iface, UINT Width, UINT Height, UINT Depth, UINT Levels, DWORD Usage, D3DFORMAT Format, D3DPOOL Pool, IDirect3DVolumeTexture9 **ppVolumeTexture, HANDLE *pSharedHandle)
HRESULT WINAPI IDirect3DDevice9Base_GetSwapChain(LPDIRECT3DDEVICE9 iface, UINT iSwapChain, IDirect3DSwapChain9 **ppSwapChain)
VOID WINAPI IDirect3DDevice9Base_GetGammaRamp(LPDIRECT3DDEVICE9 iface, UINT iSwapChain, D3DGAMMARAMP *pRamp)
HRESULT WINAPI IDirect3DDevice9Base_CreateVertexBuffer(LPDIRECT3DDEVICE9 iface, UINT Length, DWORD Usage, DWORD FVF, D3DPOOL Pool, IDirect3DVertexBuffer9 **ppVertexBuffer, HANDLE *pSharedHandle)
HRESULT WINAPI IDirect3DDevice9Base_CreateAdditionalSwapChain(LPDIRECT3DDEVICE9 iface, D3DPRESENT_PARAMETERS *pPresentationParameters, IDirect3DSwapChain9 **ppSwapChain)
HRESULT WINAPI IDirect3DDevice9Base_CreateCubeTexture(LPDIRECT3DDEVICE9 iface, UINT EdgeLength, UINT Levels, DWORD Usage, D3DFORMAT Format, D3DPOOL Pool, IDirect3DCubeTexture9 **ppCubeTexture, HANDLE *pSharedHandle)
HRESULT WINAPI IDirect3DDevice9Base_CreateOffscreenPlainSurface(LPDIRECT3DDEVICE9 iface, UINT Width, UINT Height, D3DFORMAT Format, D3DPOOL Pool, IDirect3DSurface9 **ppSurface, HANDLE *pSharedHandle)
HRESULT WINAPI IDirect3DDevice9Base_UpdateSurface(LPDIRECT3DDEVICE9 iface, IDirect3DSurface9 *pSourceSurface, CONST RECT *pSourceRect, IDirect3DSurface9 *pDestinationSurface, CONST POINT *pDestPoint)
HRESULT WINAPI IDirect3DDevice9Base_SetCursorProperties(LPDIRECT3DDEVICE9 iface, UINT XHotSpot, UINT YHotSpot, IDirect3DSurface9 *pCursorBitmap)
HRESULT WINAPI IDirect3DDevice9Base_GetDirect3D(LPDIRECT3DDEVICE9 iface, IDirect3D9 **ppD3D9)
struct _D3D9HeapTexture D3D9HeapTexture
UINT WINAPI IDirect3DDevice9Base_GetAvailableTextureMem(LPDIRECT3DDEVICE9 iface)
ULONG WINAPI IDirect3DDevice9Base_AddRef(LPDIRECT3DDEVICE9 iface)
HRESULT WINAPI IDirect3DDevice9Base_TestCooperativeLevel(LPDIRECT3DDEVICE9 iface)
HRESULT WINAPI IDirect3DDevice9Base_CreateRenderTarget(LPDIRECT3DDEVICE9 iface, UINT Width, UINT Height, D3DFORMAT Format, D3DMULTISAMPLE_TYPE MultiSample, DWORD MultisampleQuality, BOOL Lockable, IDirect3DSurface9 **ppSurface, HANDLE *pSharedHandle)
HRESULT WINAPI IDirect3DDevice9Base_Present(LPDIRECT3DDEVICE9 iface, CONST RECT *pSourceRect, CONST RECT *pDestRect, HWND hDestWindowOverride, CONST RGNDATA *pDirtyRegion)
HRESULT WINAPI IDirect3DDevice9Base_GetRasterStatus(LPDIRECT3DDEVICE9 iface, UINT iSwapChain, D3DRASTER_STATUS *pRasterStatus)
HRESULT WINAPI IDirect3DDevice9Base_SetDialogBoxMode(LPDIRECT3DDEVICE9 iface, BOOL bEnableDialogs)
HRESULT WINAPI IDirect3DDevice9Base_StretchRect(LPDIRECT3DDEVICE9 iface, IDirect3DSurface9 *pSourceSurface, CONST RECT *pSourceRect, IDirect3DSurface9 *pDestSurface, CONST RECT *pDestRect, D3DTEXTUREFILTERTYPE Filter)
enum _D3DSAMPLERSTATETYPE D3DSAMPLERSTATETYPE
_Must_inspect_result_ _In_opt_ PFLT_FILTER Filter
_Must_inspect_result_ _In_ USAGE _In_ USHORT _In_ USAGE Usage
_In_ ULONG _In_ ULONG _In_ ULONG Length
DWORD MaxSimultaneousTextures
struct _Direct3DDevice9_INT * pBaseDevice
D3D9HeapTexture * pTextureHeap
DWORD AdjustedBehaviourFlags
LPDIRECT3D9_INT pDirect3D9
D3D9DriverSurface * pDriverSurfaceList
D3DDISPLAYMODE CurrentDisplayMode[D3D9_INT_MAX_NUM_ADAPTERS]
D3D9BaseSurface * pUnknown0010
LPDIRECT3DSWAPCHAIN9_INT pSwapChains[D3D9_INT_MAX_NUM_ADAPTERS]
D3D9BaseSurface * pRenderTargetList
LPDIRECT3DSWAPCHAIN9_INT pSwapChains2[D3D9_INT_MAX_NUM_ADAPTERS]
DWORD AdapterIndexInGroup[D3D9_INT_MAX_NUM_ADAPTERS]
D3D9BaseSurface * pUnknown001944
DWORD NumAdaptersInDevice
CRITICAL_SECTION CriticalSection
D3D9ResourceManager * pResourceManager
struct _IDirect3DDevice9Vtbl_INT * lpVtbl
IDirect3DVertexShader9 * pShader
HRESULT(WINAPI *SetPixelShaderConstantFWorker)(LPDIRECT3DDEVICE9 iface
HRESULT(WINAPI *SetPixelShader)(LPDIRECT3DDEVICE9 iface
HRESULT(WINAPI *SetVertexShader)(LPDIRECT3DDEVICE9 iface
CONST D3DMATERIAL9 * pMaterial
UINT CONST float UINT Vector4fCount
DWORD CONST D3DRECT DWORD Flags
CONST D3DMATRIX * HRESULT(WINAPI *SetClipPlane)(LPDIRECT3DDEVICE9 iface
UINT IDirect3DVertexBuffer9 UINT UINT Stride
D3DPRIMITIVETYPE UINT StartVertex
HRESULT(WINAPI *DrawPrimitiveUPInt)(LPDIRECT3DDEVICE9 iface
VOID(WINAPI *DrawPrimitivesWorker)(LPDIRECT3DDEVICE9 iface)
VOID(WINAPI *UpdateDriverState)(LPDIRECT3DDEVICE9 iface)
UINT IDirect3DVertexBuffer9 UINT OffsetInBytes
HRESULT(WINAPI *SetPixelShaderConstantI)(LPDIRECT3DDEVICE9 iface
D3DTRANSFORMSTATETYPE CONST D3DMATRIX * pMatrix
D3DPRIMITIVETYPE UINT UINT UINT Unknown3
HRESULT(WINAPI *SetMaterial)(LPDIRECT3DDEVICE9 iface
HRESULT(WINAPI *SetTransform)(LPDIRECT3DDEVICE9 iface
CONST D3DMATRIX DWORD CONST float * pPlane
UINT CONST int UINT Vector4iCount
HRESULT(WINAPI *SetRenderStateInt)(LPDIRECT3DDEVICE9 iface
UINT CONST BOOL UINT BoolCount
D3DPRIMITIVETYPE UINT UINT UINT INT UINT Unknown5
HRESULT(WINAPI *SetRenderStateWorker)(LPDIRECT3DDEVICE9 iface
D3DPRIMITIVETYPE UINT UINT UINT INT UINT INT Unknown6
HRESULT(WINAPI *SetViewport)(LPDIRECT3DDEVICE9 iface
HRESULT(WINAPI *SetTextureStageStateI)(LPDIRECT3DDEVICE9 iface
D3DPRIMITIVETYPE PrimitiveType
DWORD IDirect3DBaseTexture9 * pTexture
DWORD CONST D3DRECT * pRects
HRESULT(WINAPI *Init)(LPDIRECT3DDEVICE9 iface)
DWORD D3DTEXTURESTAGESTATETYPE Type
HRESULT(WINAPI *SetTexture)(LPDIRECT3DDEVICE9 iface
VOID(WINAPI *Destroy)(LPDIRECT3DDEVICE9 iface)
HRESULT(WINAPI *SetPixelShaderConstantF)(LPDIRECT3DDEVICE9 iface
UINT IDirect3DVertexBuffer9 * pStreamData
HRESULT(WINAPI *SetLight)(LPDIRECT3DDEVICE9 iface
D3DPRIMITIVETYPE UINT UINT UINT INT Unknown4
struct IDirect3DDevice9Vtbl PublicInterface
VOID(WINAPI *VirtualDestructor)(LPDIRECT3DDEVICE9 iface)
DWORD CONST D3DRECT DWORD D3DCOLOR float DWORD Stencil
HRESULT(WINAPI *SetPixelShaderConstantBWorker)(LPDIRECT3DDEVICE9 iface
D3DRENDERSTATETYPE DWORD Value
HRESULT(WINAPI *ValidateDrawCall)(LPDIRECT3DDEVICE9 iface
UINT CONST float * pConstantData
HRESULT(WINAPI *SetIndices)(LPDIRECT3DDEVICE9 iface
D3DPRIMITIVETYPE UINT UINT PrimitiveCount
DWORD CONST D3DLIGHT9 DWORD BOOL Enable
HRESULT(WINAPI *SetVertexShaderConstantF)(LPDIRECT3DDEVICE9 iface
HRESULT(WINAPI *SetStreamSourceFreq)(LPDIRECT3DDEVICE9 iface
VOID(WINAPI *UpdateVertexShader)(LPDIRECT3DDEVICE9 iface)
HRESULT(WINAPI *SetSamplerStateI)(LPDIRECT3DDEVICE9 iface
HRESULT(WINAPI *SetStreamSource)(LPDIRECT3DDEVICE9 iface
HRESULT(WINAPI *SetVertexShaderConstantI)(LPDIRECT3DDEVICE9 iface
HRESULT(WINAPI *SetPixelShaderConstantIWorker)(LPDIRECT3DDEVICE9 iface
IDirect3DIndexBuffer9 * pIndexData
CONST D3DVIEWPORT9 * pViewport
CONST D3DMATRIX DWORD Index
HRESULT(WINAPI *SetPixelShaderConstantB)(LPDIRECT3DDEVICE9 iface
DWORD CONST D3DRECT DWORD D3DCOLOR float Z
DWORD CONST D3DRECT DWORD D3DCOLOR Color
_In_ HFONT _Out_ PUINT _Out_ PUINT Width
_In_ HFONT _Out_ PUINT Height
_In_ void _In_ PCCERT_CONTEXT _In_opt_ LPFILETIME _In_ DWORD _In_ DWORD _Outptr_opt_ void ** ppvObject
_In_ DD_SURFACE_LOCAL * pSurface
_Must_inspect_result_ _In_ ULONG Flags
_In_opt_ PALLOCATE_FUNCTION _In_opt_ PFREE_FUNCTION _In_ ULONG _In_ SIZE_T _In_ ULONG _In_ USHORT Depth