ReactOS 0.4.15-dev-7931-gfd331f1
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,
41 LPDIRECTDRAWCLIPPER *ppClipper,
42 IUnknown *pUnkOuter);
43
46 LPDIRECTDRAW7 iface,
48 LPPALETTEENTRY palent,
49 LPDIRECTDRAWPALETTE* ppPalette,
50 LPUNKNOWN pUnkOuter);
51
54 LPDIRECTDRAW7 iface,
55 LPDDSURFACEDESC2 pDDSD,
57 IUnknown *pUnkOuter);
58
61 LPDIRECTDRAW7 iface,
64
67 LPDIRECTDRAW7 iface,
69 LPDDSURFACEDESC2 pDDSD,
70 LPVOID pContext,
72
75 LPDIRECTDRAW7 iface,
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,
141 DWORD dwBPP,
143 DWORD dwFlags);
144
147 LPDIRECTDRAW7 iface,
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,
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
190IDirectDraw7Vtbl 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_Initialize(LPDIRECTDRAW7 iface, LPGUID lpGUID)
IDirectDraw7Vtbl DirectDraw7_Vtable
HRESULT WINAPI Main_DirectDraw_GetCaps(LPDIRECTDRAW7 iface, LPDDCAPS pDriverCaps, LPDDCAPS pHELCaps)
ULONG WINAPI Main_DirectDraw_AddRef(LPDIRECTDRAW7 iface)
HRESULT WINAPI Main_DirectDraw_EvaluateMode(LPDIRECTDRAW7 iface, DWORD a, DWORD *b)
HRESULT WINAPI Main_DirectDraw_DuplicateSurface(LPDIRECTDRAW7 iface, LPDIRECTDRAWSURFACE7 src, LPDIRECTDRAWSURFACE7 *dst)
HRESULT WINAPI Main_DirectDraw_CreateClipper(LPDIRECTDRAW7 iface, DWORD dwFlags, LPDIRECTDRAWCLIPPER *ppClipper, IUnknown *pUnkOuter)
HRESULT WINAPI Main_DirectDraw_GetSurfaceFromDC(LPDIRECTDRAW7 iface, HDC hdc, LPDIRECTDRAWSURFACE7 *lpDDS)
HRESULT WINAPI Main_DirectDraw_SetCooperativeLevel(LPDIRECTDRAW7 iface, HWND hwnd, DWORD cooplevel)
HRESULT WINAPI Main_DirectDraw_GetScanLine(LPDIRECTDRAW7 iface, LPDWORD lpdwScanLine)
HRESULT WINAPI Main_DirectDraw_QueryInterface(LPDIRECTDRAW7 iface, REFIID id, LPVOID *obj)
HRESULT WINAPI Main_DirectDraw_FlipToGDISurface(LPDIRECTDRAW7 iface)
HRESULT WINAPI Main_DirectDraw_RestoreAllSurfaces(LPDIRECTDRAW7 iface)
HRESULT WINAPI Main_DirectDraw_GetDeviceIdentifier7(LPDIRECTDRAW7 iface, LPDDDEVICEIDENTIFIER2 pDDDI, DWORD dwFlags)
HRESULT WINAPI Main_DirectDraw_GetFourCCCodes(LPDIRECTDRAW7 iface, LPDWORD lpNumCodes, LPDWORD lpCodes)
HRESULT WINAPI Main_DirectDraw_GetGDISurface(LPDIRECTDRAW7 iface, LPDIRECTDRAWSURFACE7 *lplpGDIDDSSurface)
HRESULT WINAPI Main_DirectDraw_TestCooperativeLevel(LPDIRECTDRAW7 iface)
HRESULT WINAPI Main_DirectDraw_GetAvailableVidMem4(LPDIRECTDRAW7 iface, LPDDSCAPS2 ddscaps, LPDWORD dwTotal, LPDWORD dwFree)
ULONG WINAPI Main_DirectDraw_Release(LPDIRECTDRAW7 iface)
HRESULT WINAPI Main_DirectDraw_Compact(LPDIRECTDRAW7 iface)
HRESULT WINAPI Main_DirectDraw_SetDisplayMode2(LPDIRECTDRAW7 iface, DWORD dwWidth, DWORD dwHeight, DWORD dwBPP, DWORD dwRefreshRate, DWORD dwFlags)
HRESULT WINAPI Main_DirectDraw_GetMonitorFrequency(LPDIRECTDRAW7 iface, LPDWORD lpFreq)
HRESULT WINAPI Main_DirectDraw_WaitForVerticalBlank(LPDIRECTDRAW7 iface, DWORD dwFlags, HANDLE h)
HRESULT WINAPI Main_DirectDraw_GetDisplayMode4(LPDIRECTDRAW7 iface, LPDDSURFACEDESC2 pDDSD)
HRESULT WINAPI Main_DirectDraw_CreateSurface4(LPDIRECTDRAW7 iface, LPDDSURFACEDESC2 pDDSD, LPDIRECTDRAWSURFACE7 *ppSurf, IUnknown *pUnkOuter)
HRESULT WINAPI Main_DirectDraw_RestoreDisplayMode(LPDIRECTDRAW7 iface)
HRESULT WINAPI Main_DirectDraw_EnumDisplayModes4(LPDIRECTDRAW7 iface, DWORD dwFlags, LPDDSURFACEDESC2 pDDSD, LPVOID pContext, LPDDENUMMODESCALLBACK2 pCallback)
HRESULT WINAPI Main_DirectDraw_CreatePalette(LPDIRECTDRAW7 iface, DWORD dwFlags, LPPALETTEENTRY palent, LPDIRECTDRAWPALETTE *ppPalette, LPUNKNOWN pUnkOuter)
HRESULT WINAPI Main_DirectDraw_GetVerticalBlankStatus(LPDIRECTDRAW7 iface, LPBOOL lpbIsInVB)
HRESULT WINAPI Main_DirectDraw_EnumSurfaces7(LPDIRECTDRAW7 iface, DWORD dwFlags, LPDDSURFACEDESC2 lpDDSD2, LPVOID context, LPDDENUMSURFACESCALLBACK7 callback)
HRESULT WINAPI Main_DirectDraw_StartModeTest(LPDIRECTDRAW7 iface, LPSIZE pModes, DWORD dwNumModes, DWORD dwFlags)
static const WCHAR dwWidth[]
Definition: provider.c:62
static const WCHAR dwHeight[]
Definition: provider.c:63
static const WCHAR dwRefreshRate[]
Definition: provider.c:73
DWORD * LPDIRECTDRAW7
Definition: vmrender.idl:6
DWORD * LPDIRECTDRAWSURFACE7
Definition: vmrender.idl:7
unsigned long DWORD
Definition: ntddk_ex.h:95
FxPnpStateCallbackInfo * pCallback
GLenum src
Definition: glext.h:6340
GLboolean GLboolean GLboolean b
Definition: glext.h:6204
GLenum GLenum dst
Definition: glext.h:6340
GLboolean GLboolean GLboolean GLboolean a
Definition: glext.h:6204
GLfloat GLfloat GLfloat GLfloat h
Definition: glext.h:7723
HDC hdc
Definition: main.c:9
static HDC
Definition: imagelist.c:92
static IPrintDialogCallback callback
Definition: printdlg.c:326
static LPUNKNOWN
Definition: ndr_ole.c:49
#define REFIID
Definition: guiddef.h:118
HRESULT(WINAPI * LPDDENUMMODESCALLBACK2)(LPDDSURFACEDESC2, LPVOID)
Definition: ddraw.h:1259
struct IDirectDrawClipper * LPDIRECTDRAWCLIPPER
Definition: ddraw.h:721
struct IDirectDrawPalette * LPDIRECTDRAWPALETTE
Definition: ddraw.h:720
HRESULT(WINAPI * LPDDENUMSURFACESCALLBACK7)(LPDIRECTDRAWSURFACE7, LPDDSURFACEDESC2, LPVOID)
Definition: ddraw.h:1262
Definition: http.c:7252
uint32_t * LPDWORD
Definition: typedefs.h:59
uint32_t ULONG
Definition: typedefs.h:59
_In_ PCCERT_CONTEXT _In_ DWORD dwFlags
Definition: wincrypt.h:1176
_In_ LONG _In_ HWND hwnd
Definition: winddi.h:4023
BOOL * LPBOOL
Definition: windef.h:162
#define WINAPI
Definition: msvc.h:6