ReactOS  0.4.15-dev-1150-g593bcce
d3d9_surface.h
Go to the documentation of this file.
1 #ifndef _D3D9_SURFACE_H_
2 #define _D3D9_SURFACE_H_
3 
4 #include "d3d9_baseobject.h"
5 
6 struct _D3D9BaseSurface;
7 
8 typedef struct _D3D9BaseSurfaceVtbl
9 {
11  ULONG (*AddRef)(struct _D3D9BaseSurface* iface);
12  ULONG (*Release)(struct _D3D9BaseSurface* iface);
13  IDirect3DDevice9* (*GetDevice)(struct _D3D9BaseSurface* iface);
17  DWORD (*SetPriority)(struct _D3D9BaseSurface* iface, DWORD NewPriority);
18  DWORD (*GetPriority)(struct _D3D9BaseSurface* iface);
19  VOID (*Load)(struct _D3D9BaseSurface* iface);
21 
23 
24 
25 typedef struct _D3D9BaseSurface
26 {
28 /* 0x0024 */ D3DFORMAT DisplayFormat2; // Back buffer format?
29 /* 0x0028 */ DWORD dwUnknown0028; // Constant/ref count? (1)
30 /* 0x002c */ DWORD dwUnknown002c; // Refresh rate?
31 /* 0x0030 */ D3DPOOL SurfacePool;
32 /* 0x0034 */ DWORD dwUnknown0034;
33 /* 0x0038 */ DWORD dwUnknown0038;
34 /* 0x003c */ DWORD dwWidth;
35 /* 0x0040 */ DWORD dwHeight;
36 /* 0x0044 */ D3DPOOL ResourcePool;
37 /* 0x0048 */ D3DFORMAT DisplayFormat;
38 /* 0x004c */ DWORD dwUnknown004c;
39 /* 0x0050 */ DWORD dwUnknown0050;
40 /* 0x0054 */ DWORD dwUnknown0054;
41 /* 0x0058 */ DWORD dwBpp;
43 
44 typedef struct _D3D9Surface
45 {
48 } D3D9Surface;
49 
50 typedef struct _D3D9DriverSurface
51 {
53 /* 0x005c */ DWORD dwUnknown5c;
54 /* 0x0060 */ DWORD dwUnknown60;
57 /* 0x006c */ DWORD dwUnknown6c[8];
59 
60 #endif // _D3D9_SURFACE_H_
#define HRESULT
Definition: msvc.h:7
#define REFIID
Definition: guiddef.h:118
HRESULT(* FreePrivateData)(struct _D3D9BaseSurface *iface, REFIID riid)
Definition: d3d9_surface.h:16
REFIID riid
Definition: precomp.h:44
D3D9BaseObject BaseObject
Definition: d3d9_surface.h:46
struct _D3D9DriverSurface * pNextDriverSurface
Definition: d3d9_surface.h:56
D3D9BaseSurface BaseSurface
Definition: d3d9_surface.h:47
enum _D3DPOOL D3DPOOL
DWORD(* SetPriority)(struct _D3D9BaseSurface *iface, DWORD NewPriority)
Definition: d3d9_surface.h:17
struct _D3D9BaseSurfaceVtbl ID3D9BaseSurfaceVtbl
struct _D3D9DriverSurface D3D9DriverSurface
ID3D9BaseSurfaceVtbl * lpVtbl
Definition: d3d9_surface.h:27
#define DWORD
Definition: nt_native.h:44
struct _D3D9Surface D3D9Surface
_Must_inspect_result_ _In_ ULONG Flags
Definition: wsk.h:170
DWORD dwUnknown6c[8]
Definition: d3d9_surface.h:57
ULONG(* AddRef)(struct _D3D9BaseSurface *iface)
Definition: d3d9_surface.h:11
D3D9Surface BaseD3D9Surface
Definition: d3d9_surface.h:52
HRESULT(* GetPrivateData)(struct _D3D9BaseSurface *iface, REFIID riid, LPVOID pData, DWORD *DataSize)
Definition: d3d9_surface.h:15
enum _D3DFORMAT D3DFORMAT
D3DPOOL ResourcePool
Definition: d3d9_surface.h:36
struct _D3D9BaseSurface D3D9BaseSurface
D3DFORMAT DisplayFormat2
Definition: d3d9_surface.h:28
D3DPOOL SurfacePool
Definition: d3d9_surface.h:31
unsigned long DWORD
Definition: ntddk_ex.h:95
VOID(* Load)(struct _D3D9BaseSurface *iface)
Definition: d3d9_surface.h:19
#define VOID
Definition: acefi.h:82
REFIID LPVOID * ppvObject
Definition: precomp.h:44
struct _D3D9DriverSurface * pPreviousDriverSurface
Definition: d3d9_surface.h:55
HRESULT(* QueryInterface)(struct _D3D9BaseSurface *iface, REFIID riid, LPVOID *ppvObject)
Definition: d3d9_surface.h:10
HRESULT(* SetPrivateData)(struct _D3D9BaseSurface *iface, REFIID riid, CONST LPVOID pData, DWORD DataSize, DWORD Flags)
Definition: d3d9_surface.h:14
ULONG(* Release)(struct _D3D9BaseSurface *iface)
Definition: d3d9_surface.h:12
unsigned int ULONG
Definition: retypes.h:1
D3DRESOURCETYPE(* GetResourceType)(struct _D3D9BaseSurface *iface)
Definition: d3d9_surface.h:20
TW_UINT32 TW_UINT16 TW_UINT16 TW_MEMREF pData
Definition: twain.h:1827
D3DFORMAT DisplayFormat
Definition: d3d9_surface.h:37
_In_ NDIS_STATUS _In_ ULONG _In_ USHORT _In_opt_ PVOID _In_ ULONG DataSize
Definition: ndis.h:4751
#define CONST
Definition: pedump.c:81
enum _D3DRESOURCETYPE D3DRESOURCETYPE
DWORD(* GetPriority)(struct _D3D9BaseSurface *iface)
Definition: d3d9_surface.h:18