Implemented IDirect3D9->QueryInterface()
[reactos.git] / reactos / dll / directx / d3d9 / d3d9_private.h
index 24789de..316bef7 100644 (file)
 
 typedef IDirect3D9* (WINAPI *LPDIRECT3DCREATE9)(UINT);
 
+extern const IDirect3D9Vtbl Direct3D9_Vtbl;
+
 typedef struct _tagDIRECTD3D9_INT_
 {
-/* 0x0000 */    LPVOID lpVtbl; /* LPDIRECTD3D9 functoions table */
+/* 0x0000 */    const IDirect3D9Vtbl *lpVtbl; /* LPDIRECTD3D9 functoions table */
 /* 0x0004 */    CRITICAL_SECTION d3d9_cs;
-/* 0x001c */    DWORD unknown000007;  /* 0x00000001 */
+/* 0x001c */    DWORD unknown000007;    /* 0x00000001 */
 /* 0x0020 */    DWORD dwProcessId; 
 /* 0x0024 */    struct _tagDIRECTD3D9_INT_ * lpInt; 
-/* 0x0028 */    volatile LONG dwRefCnt; /* Increases and decreases by AddRef() and Release() */
+/* 0x0028 */    LONG dwRefCnt;          /* Increases and decreases by AddRef() and Release() */
 /* 0x002c */    DWORD unknown000011;    /* 0x00000001 - Probably AdapterIndex */
 /* 0x0030 */    GUID DisplayGuid;       /*? Always {67685559-3106-11D0-B971-00AA00342F9F} ? */
 /* 0x0040 */    CHAR DeviceName[16];