ReactOS  0.4.14-dev-317-g96040ec
DirectDraw7_Vtable.c
Go to the documentation of this file.
1 
2 #include <windows.h>
3 #include <stdio.h>
4 #include <ddraw.h>
5 #include <ddrawi.h>
6 #include <d3dhal.h>
7 #include <ddrawgdi.h>
8 
9 #if defined(_WIN32) && !defined(_NO_COM )
10 #define COM_NO_WINDOWS_H
11 #include <objbase.h>
12 #else
13 #define IUnknown void
14 #if !defined(NT_BUILD_ENVIRONMENT) && !defined(WINNT)
15  #define CO_E_NOTINITIALIZED 0x800401F0
16 #endif
17 #endif
18 
19 
20 
21 
24  LPDIRECTDRAW7 iface,
25  REFIID id,
26  LPVOID *obj);
27 
30 
33 
36 
39  LPDIRECTDRAW7 iface,
40  DWORD dwFlags,
41  LPDIRECTDRAWCLIPPER *ppClipper,
42  IUnknown *pUnkOuter);
43 
46  LPDIRECTDRAW7 iface,
47  DWORD dwFlags,
48  LPPALETTEENTRY palent,
49  LPDIRECTDRAWPALETTE* ppPalette,
50  LPUNKNOWN pUnkOuter);
51 
54  LPDIRECTDRAW7 iface,
55  LPDDSURFACEDESC2 pDDSD,
56  LPDIRECTDRAWSURFACE7 *ppSurf,
57  IUnknown *pUnkOuter);
58 
61  LPDIRECTDRAW7 iface,
64 
67  LPDIRECTDRAW7 iface,
68  DWORD dwFlags,
69  LPDDSURFACEDESC2 pDDSD,
70  LPVOID pContext,
71  LPDDENUMMODESCALLBACK2 pCallback);
72 
75  LPDIRECTDRAW7 iface,
76  DWORD dwFlags,
77  LPDDSURFACEDESC2 lpDDSD2,
80 
83 
86  LPDIRECTDRAW7 iface,
87  LPDDCAPS pDriverCaps,
88  LPDDCAPS pHELCaps);
89 
92  LPDIRECTDRAW7 iface,
93  LPDDSURFACEDESC2 pDDSD);
94 
97  LPDIRECTDRAW7 iface,
98  LPDWORD lpNumCodes,
99  LPDWORD lpCodes);
100 
103  LPDIRECTDRAW7 iface,
104  LPDIRECTDRAWSURFACE7 *lplpGDIDDSSurface);
105 
108  LPDIRECTDRAW7 iface,
109  LPDWORD lpFreq);
110 
111 
114  LPDWORD lpdwScanLine);
115 
118  LPDIRECTDRAW7 iface,
119  LPBOOL lpbIsInVB);
120 
123  LPDIRECTDRAW7 iface,
124  LPGUID lpGUID);
125 
126 
129 
132  LPDIRECTDRAW7 iface,
133  HWND hwnd,
134  DWORD cooplevel);
135 
138  LPDIRECTDRAW7 iface,
139  DWORD dwWidth,
140  DWORD dwHeight,
141  DWORD dwBPP,
143  DWORD dwFlags);
144 
147  LPDIRECTDRAW7 iface,
148  DWORD dwFlags,
149  HANDLE h);
150 
151 
154  LPDIRECTDRAW7 iface,
155  LPDDSCAPS2 ddscaps,
156  LPDWORD dwTotal,
157  LPDWORD dwFree);
158 
161  LPDIRECTDRAW7 iface,
162  HDC hdc,
163  LPDIRECTDRAWSURFACE7 *lpDDS);
164 
167 
170 
173  LPDIRECTDRAW7 iface,
174  LPDDDEVICEIDENTIFIER2 pDDDI,
175  DWORD dwFlags);
176 
179  LPDIRECTDRAW7 iface,
180  LPSIZE pModes,
181  DWORD dwNumModes,
182  DWORD dwFlags);
183 
186  LPDIRECTDRAW7 iface,
187  DWORD a,
188  DWORD* b);
189 
190 IDirectDraw7Vtbl DirectDraw7_Vtable =
191 {
192  Main_DirectDraw_QueryInterface, /* (QueryInterface testing / devloping) */
193  Main_DirectDraw_AddRef, /* (AddRef done) */
194  Main_DirectDraw_Release, /* (QueryInterface testing / devloping) */
195  Main_DirectDraw_Compact, /* (Compact done) */
198  Main_DirectDraw_CreateSurface4, /* (CreateSurface4 testing / devloping) */
200  Main_DirectDraw_EnumDisplayModes4, /* (EnumDisplayModes testing / devloping) */
203  Main_DirectDraw_GetCaps, /* (GetCaps done) */
204  Main_DirectDraw_GetDisplayMode4, /* (GetDisplayMode testing / devloping) */
205  Main_DirectDraw_GetFourCCCodes, /* (GetFourCCCodes done) */
207  Main_DirectDraw_GetMonitorFrequency, /* (GetMonitorFrequency done) */
210  Main_DirectDraw_Initialize, /* (Initialize done) */
211  Main_DirectDraw_RestoreDisplayMode, /* (RestoreDisplayMode testing / devloping) */
212  Main_DirectDraw_SetCooperativeLevel, /* (SetCooperativeLevel testing / devloping) */
213  Main_DirectDraw_SetDisplayMode2, /* (SetDisplayMode testing / devloping) */
215  Main_DirectDraw_GetAvailableVidMem4, /* (GetAvailableVidMem4 done) */
219  Main_DirectDraw_GetDeviceIdentifier7, /* (GetDeviceIdentifier done) */
222 };
223 
224 
225 
HRESULT WINAPI Main_DirectDraw_WaitForVerticalBlank(LPDIRECTDRAW7 iface, DWORD dwFlags, HANDLE h)
const DOCKBAR PVOID HWND HWND * hwnd
Definition: tooldock.h:22
#define REFIID
Definition: guiddef.h:118
HRESULT(WINAPI * LPDDENUMSURFACESCALLBACK7)(LPDIRECTDRAWSURFACE7, LPDDSURFACEDESC2, LPVOID)
Definition: ddraw.h:1262
HRESULT(WINAPI * LPDDENUMMODESCALLBACK2)(LPDDSURFACEDESC2, LPVOID)
Definition: ddraw.h:1259
Definition: http.c:6587
HRESULT WINAPI Main_DirectDraw_EnumDisplayModes4(LPDIRECTDRAW7 iface, DWORD dwFlags, LPDDSURFACEDESC2 pDDSD, LPVOID pContext, LPDDENUMMODESCALLBACK2 pCallback)
HRESULT WINAPI Main_DirectDraw_GetVerticalBlankStatus(LPDIRECTDRAW7 iface, LPBOOL lpbIsInVB)
HRESULT WINAPI Main_DirectDraw_Compact(LPDIRECTDRAW7 iface)
static HDC
Definition: imagelist.c:92
HRESULT WINAPI Main_DirectDraw_GetFourCCCodes(LPDIRECTDRAW7 iface, LPDWORD lpNumCodes, LPDWORD lpCodes)
HRESULT WINAPI Main_DirectDraw_SetCooperativeLevel(LPDIRECTDRAW7 iface, HWND hwnd, DWORD cooplevel)
HRESULT WINAPI Main_DirectDraw_GetMonitorFrequency(LPDIRECTDRAW7 iface, LPDWORD lpFreq)
HRESULT WINAPI Main_DirectDraw_CreateClipper(LPDIRECTDRAW7 iface, DWORD dwFlags, LPDIRECTDRAWCLIPPER *ppClipper, IUnknown *pUnkOuter)
HRESULT WINAPI Main_DirectDraw_StartModeTest(LPDIRECTDRAW7 iface, LPSIZE pModes, DWORD dwNumModes, DWORD dwFlags)
GLfloat GLfloat GLfloat GLfloat h
Definition: glext.h:7723
HRESULT WINAPI Main_DirectDraw_EnumSurfaces7(LPDIRECTDRAW7 iface, DWORD dwFlags, LPDDSURFACEDESC2 lpDDSD2, LPVOID context, LPDDENUMSURFACESCALLBACK7 callback)
IDirectDraw7Vtbl DirectDraw7_Vtable
ULONG WINAPI Main_DirectDraw_Release(LPDIRECTDRAW7 iface)
static LPUNKNOWN
Definition: ndr_ole.c:49
HRESULT WINAPI Main_DirectDraw_FlipToGDISurface(LPDIRECTDRAW7 iface)
HRESULT WINAPI Main_DirectDraw_RestoreAllSurfaces(LPDIRECTDRAW7 iface)
HRESULT WINAPI Main_DirectDraw_RestoreDisplayMode(LPDIRECTDRAW7 iface)
static const WCHAR dwHeight[]
Definition: provider.c:63
MmuTrapHandler callback[0x30]
Definition: mmuobject.c:44
GLboolean GLboolean GLboolean b
Definition: glext.h:6204
LONG HRESULT
Definition: typedefs.h:77
#define WINAPI
Definition: msvc.h:8
unsigned long DWORD
Definition: ntddk_ex.h:95
HRESULT WINAPI Main_DirectDraw_Initialize(LPDIRECTDRAW7 iface, LPGUID lpGUID)
DWORD dwRefreshRate
Definition: ddraw.h:1135
HDC hdc
Definition: main.c:9
_In_ PCCERT_CONTEXT _In_ DWORD dwFlags
Definition: wincrypt.h:1175
HRESULT WINAPI Main_DirectDraw_GetAvailableVidMem4(LPDIRECTDRAW7 iface, LPDDSCAPS2 ddscaps, LPDWORD dwTotal, LPDWORD dwFree)
HRESULT WINAPI Main_DirectDraw_EvaluateMode(LPDIRECTDRAW7 iface, DWORD a, DWORD *b)
HRESULT WINAPI Main_DirectDraw_QueryInterface(LPDIRECTDRAW7 iface, REFIID id, LPVOID *obj)
GLenum src
Definition: glext.h:6340
HRESULT WINAPI Main_DirectDraw_CreatePalette(LPDIRECTDRAW7 iface, DWORD dwFlags, LPPALETTEENTRY palent, LPDIRECTDRAWPALETTE *ppPalette, LPUNKNOWN pUnkOuter)
HRESULT WINAPI Main_DirectDraw_TestCooperativeLevel(LPDIRECTDRAW7 iface)
struct IDirectDrawClipper * LPDIRECTDRAWCLIPPER
Definition: ddraw.h:721
BOOL * LPBOOL
Definition: windef.h:162
HRESULT WINAPI Main_DirectDraw_GetCaps(LPDIRECTDRAW7 iface, LPDDCAPS pDriverCaps, LPDDCAPS pHELCaps)
HRESULT WINAPI Main_DirectDraw_GetGDISurface(LPDIRECTDRAW7 iface, LPDIRECTDRAWSURFACE7 *lplpGDIDDSSurface)
HRESULT WINAPI Main_DirectDraw_GetDeviceIdentifier7(LPDIRECTDRAW7 iface, LPDDDEVICEIDENTIFIER2 pDDDI, DWORD dwFlags)
HRESULT WINAPI Main_DirectDraw_CreateSurface4(LPDIRECTDRAW7 iface, LPDDSURFACEDESC2 pDDSD, LPDIRECTDRAWSURFACE7 *ppSurf, IUnknown *pUnkOuter)
GLenum GLenum dst
Definition: glext.h:6340
HRESULT WINAPI Main_DirectDraw_DuplicateSurface(LPDIRECTDRAW7 iface, LPDIRECTDRAWSURFACE7 src, LPDIRECTDRAWSURFACE7 *dst)
HRESULT WINAPI Main_DirectDraw_SetDisplayMode2(LPDIRECTDRAW7 iface, DWORD dwWidth, DWORD dwHeight, DWORD dwBPP, DWORD dwRefreshRate, DWORD dwFlags)
DWORD * LPDIRECTDRAW7
Definition: vmrender.idl:4
HRESULT WINAPI Main_DirectDraw_GetDisplayMode4(LPDIRECTDRAW7 iface, LPDDSURFACEDESC2 pDDSD)
uint32_t * LPDWORD
Definition: typedefs.h:57
unsigned int ULONG
Definition: retypes.h:1
HRESULT WINAPI Main_DirectDraw_GetScanLine(LPDIRECTDRAW7 iface, LPDWORD lpdwScanLine)
GLboolean GLboolean GLboolean GLboolean a
Definition: glext.h:6204
static const WCHAR dwWidth[]
Definition: provider.c:62
DWORD * LPDIRECTDRAWSURFACE7
Definition: vmrender.idl:7
HRESULT WINAPI Main_DirectDraw_GetSurfaceFromDC(LPDIRECTDRAW7 iface, HDC hdc, LPDIRECTDRAWSURFACE7 *lpDDS)
struct IDirectDrawPalette * LPDIRECTDRAWPALETTE
Definition: ddraw.h:720
ULONG WINAPI Main_DirectDraw_AddRef(LPDIRECTDRAW7 iface)