ReactOS 0.4.16-dev-340-g0540c21
DirectDraw2_Vtable.c File Reference
#include <windows.h>
#include <stdio.h>
#include <ddraw.h>
#include <ddrawi.h>
#include <d3dhal.h>
#include <ddrawgdi.h>
Include dependency graph for DirectDraw2_Vtable.c:

Go to the source code of this file.

Macros

#define IUnknown   void
 
#define CO_E_NOTINITIALIZED   0x800401F0
 

Functions

HRESULT WINAPI Main_DirectDraw_QueryInterface (LPDIRECTDRAW2 iface, REFIID id, LPVOID *obj)
 
ULONG WINAPI Main_DirectDraw_AddRef (LPDIRECTDRAW2 iface)
 
ULONG WINAPI Main_DirectDraw_Release (LPDIRECTDRAW2 iface)
 
HRESULT WINAPI Main_DirectDraw_Compact (LPDIRECTDRAW2 iface)
 
HRESULT WINAPI Main_DirectDraw_CreateClipper (LPDIRECTDRAW2 iface, DWORD dwFlags, LPDIRECTDRAWCLIPPER *ppClipper, IUnknown *pUnkOuter)
 
HRESULT WINAPI Main_DirectDraw_CreatePalette (LPDIRECTDRAW2 iface, DWORD dwFlags, LPPALETTEENTRY palent, LPDIRECTDRAWPALETTE *ppPalette, LPUNKNOWN pUnkOuter)
 
HRESULT WINAPI Main_DirectDraw_CreateSurface (LPDIRECTDRAW2 iface, LPDDSURFACEDESC pDDSD, LPDIRECTDRAWSURFACE *ppSurf, IUnknown *pUnkOuter)
 
HRESULT WINAPI Main_DirectDraw_DuplicateSurface (LPDIRECTDRAW2 iface, LPDIRECTDRAWSURFACE src, LPDIRECTDRAWSURFACE *dst)
 
HRESULT WINAPI Main_DirectDraw_EnumDisplayModes (LPDIRECTDRAW2 iface, DWORD dwFlags, LPDDSURFACEDESC pDDSD, LPVOID pContext, LPDDENUMMODESCALLBACK pCallback)
 
HRESULT WINAPI Main_DirectDraw_EnumSurfaces (LPDIRECTDRAW2 iface, DWORD dwFlags, LPDDSURFACEDESC lpDDSD, LPVOID context, LPDDENUMSURFACESCALLBACK callback)
 
HRESULT WINAPI Main_DirectDraw_FlipToGDISurface (LPDIRECTDRAW2 iface)
 
HRESULT WINAPI Main_DirectDraw_GetCaps (LPDIRECTDRAW2 iface, LPDDCAPS pDriverCaps, LPDDCAPS pHELCaps)
 
HRESULT WINAPI Main_DirectDraw_GetDisplayMode (LPDIRECTDRAW2 iface, LPDDSURFACEDESC pDDSD)
 
HRESULT WINAPI Main_DirectDraw_GetFourCCCodes (LPDIRECTDRAW2 iface, LPDWORD lpNumCodes, LPDWORD lpCodes)
 
HRESULT WINAPI Main_DirectDraw_GetGDISurface (LPDIRECTDRAW2 iface, LPDIRECTDRAWSURFACE *lplpGDIDDSSurface)
 
HRESULT WINAPI Main_DirectDraw_GetMonitorFrequency (LPDIRECTDRAW2 iface, LPDWORD lpFreq)
 
HRESULT WINAPI Main_DirectDraw_GetScanLine (LPDIRECTDRAW2 iface, LPDWORD lpdwScanLine)
 
HRESULT WINAPI Main_DirectDraw_GetVerticalBlankStatus (LPDIRECTDRAW2 iface, LPBOOL lpbIsInVB)
 
HRESULT WINAPI Main_DirectDraw_Initialize (LPDIRECTDRAW2 iface, LPGUID lpGUID)
 
HRESULT WINAPI Main_DirectDraw_RestoreDisplayMode (LPDIRECTDRAW2 iface)
 
HRESULT WINAPI Main_DirectDraw_SetCooperativeLevel (LPDIRECTDRAW2 iface, HWND hwnd, DWORD cooplevel)
 
HRESULT WINAPI Main_DirectDraw_SetDisplayMode2 (LPDIRECTDRAW2 iface, DWORD dwWidth, DWORD dwHeight, DWORD dwBPP, DWORD dwRefreshRate, DWORD dwFlags)
 
HRESULT WINAPI Main_DirectDraw_WaitForVerticalBlank (LPDIRECTDRAW2 iface, DWORD dwFlags, HANDLE h)
 
HRESULT WINAPI Main_DirectDraw_GetAvailableVidMem (LPDIRECTDRAW2 iface, LPDDSCAPS ddscaps, LPDWORD dwTotal, LPDWORD dwFree)
 

Variables

IDirectDraw2Vtbl DirectDraw2_Vtable
 

Macro Definition Documentation

◆ CO_E_NOTINITIALIZED

#define CO_E_NOTINITIALIZED   0x800401F0

Definition at line 14 of file DirectDraw2_Vtable.c.

◆ IUnknown

Definition at line 12 of file DirectDraw2_Vtable.c.

Function Documentation

◆ Main_DirectDraw_AddRef()

ULONG WINAPI Main_DirectDraw_AddRef ( LPDIRECTDRAW2  iface)

◆ Main_DirectDraw_Compact()

HRESULT WINAPI Main_DirectDraw_Compact ( LPDIRECTDRAW2  iface)

◆ Main_DirectDraw_CreateClipper()

HRESULT WINAPI Main_DirectDraw_CreateClipper ( LPDIRECTDRAW2  iface,
DWORD  dwFlags,
LPDIRECTDRAWCLIPPER ppClipper,
IUnknown pUnkOuter 
)

◆ Main_DirectDraw_CreatePalette()

HRESULT WINAPI Main_DirectDraw_CreatePalette ( LPDIRECTDRAW2  iface,
DWORD  dwFlags,
LPPALETTEENTRY  palent,
LPDIRECTDRAWPALETTE ppPalette,
LPUNKNOWN  pUnkOuter 
)

◆ Main_DirectDraw_CreateSurface()

HRESULT WINAPI Main_DirectDraw_CreateSurface ( LPDIRECTDRAW2  iface,
LPDDSURFACEDESC  pDDSD,
LPDIRECTDRAWSURFACE ppSurf,
IUnknown pUnkOuter 
)

◆ Main_DirectDraw_DuplicateSurface()

HRESULT WINAPI Main_DirectDraw_DuplicateSurface ( LPDIRECTDRAW2  iface,
LPDIRECTDRAWSURFACE  src,
LPDIRECTDRAWSURFACE dst 
)

◆ Main_DirectDraw_EnumDisplayModes()

HRESULT WINAPI Main_DirectDraw_EnumDisplayModes ( LPDIRECTDRAW2  iface,
DWORD  dwFlags,
LPDDSURFACEDESC  pDDSD,
LPVOID  pContext,
LPDDENUMMODESCALLBACK  pCallback 
)

◆ Main_DirectDraw_EnumSurfaces()

HRESULT WINAPI Main_DirectDraw_EnumSurfaces ( LPDIRECTDRAW2  iface,
DWORD  dwFlags,
LPDDSURFACEDESC  lpDDSD,
LPVOID  context,
LPDDENUMSURFACESCALLBACK  callback 
)

◆ Main_DirectDraw_FlipToGDISurface()

HRESULT WINAPI Main_DirectDraw_FlipToGDISurface ( LPDIRECTDRAW2  iface)

◆ Main_DirectDraw_GetAvailableVidMem()

HRESULT WINAPI Main_DirectDraw_GetAvailableVidMem ( LPDIRECTDRAW2  iface,
LPDDSCAPS  ddscaps,
LPDWORD  dwTotal,
LPDWORD  dwFree 
)

◆ Main_DirectDraw_GetCaps()

HRESULT WINAPI Main_DirectDraw_GetCaps ( LPDIRECTDRAW2  iface,
LPDDCAPS  pDriverCaps,
LPDDCAPS  pHELCaps 
)

◆ Main_DirectDraw_GetDisplayMode()

HRESULT WINAPI Main_DirectDraw_GetDisplayMode ( LPDIRECTDRAW2  iface,
LPDDSURFACEDESC  pDDSD 
)

◆ Main_DirectDraw_GetFourCCCodes()

HRESULT WINAPI Main_DirectDraw_GetFourCCCodes ( LPDIRECTDRAW2  iface,
LPDWORD  lpNumCodes,
LPDWORD  lpCodes 
)

◆ Main_DirectDraw_GetGDISurface()

HRESULT WINAPI Main_DirectDraw_GetGDISurface ( LPDIRECTDRAW2  iface,
LPDIRECTDRAWSURFACE lplpGDIDDSSurface 
)

◆ Main_DirectDraw_GetMonitorFrequency()

HRESULT WINAPI Main_DirectDraw_GetMonitorFrequency ( LPDIRECTDRAW2  iface,
LPDWORD  lpFreq 
)

◆ Main_DirectDraw_GetScanLine()

HRESULT WINAPI Main_DirectDraw_GetScanLine ( LPDIRECTDRAW2  iface,
LPDWORD  lpdwScanLine 
)

◆ Main_DirectDraw_GetVerticalBlankStatus()

HRESULT WINAPI Main_DirectDraw_GetVerticalBlankStatus ( LPDIRECTDRAW2  iface,
LPBOOL  lpbIsInVB 
)

◆ Main_DirectDraw_Initialize()

HRESULT WINAPI Main_DirectDraw_Initialize ( LPDIRECTDRAW2  iface,
LPGUID  lpGUID 
)

◆ Main_DirectDraw_QueryInterface()

HRESULT WINAPI Main_DirectDraw_QueryInterface ( LPDIRECTDRAW2  iface,
REFIID  id,
LPVOID obj 
)

◆ Main_DirectDraw_Release()

ULONG WINAPI Main_DirectDraw_Release ( LPDIRECTDRAW2  iface)

◆ Main_DirectDraw_RestoreDisplayMode()

HRESULT WINAPI Main_DirectDraw_RestoreDisplayMode ( LPDIRECTDRAW2  iface)

◆ Main_DirectDraw_SetCooperativeLevel()

HRESULT WINAPI Main_DirectDraw_SetCooperativeLevel ( LPDIRECTDRAW2  iface,
HWND  hwnd,
DWORD  cooplevel 
)

◆ Main_DirectDraw_SetDisplayMode2()

HRESULT WINAPI Main_DirectDraw_SetDisplayMode2 ( LPDIRECTDRAW2  iface,
DWORD  dwWidth,
DWORD  dwHeight,
DWORD  dwBPP,
DWORD  dwRefreshRate,
DWORD  dwFlags 
)

◆ Main_DirectDraw_WaitForVerticalBlank()

HRESULT WINAPI Main_DirectDraw_WaitForVerticalBlank ( LPDIRECTDRAW2  iface,
DWORD  dwFlags,
HANDLE  h 
)

Variable Documentation

◆ DirectDraw2_Vtable

IDirectDraw2Vtbl DirectDraw2_Vtable
Initial value:
=
{
}
HRESULT WINAPI Main_DirectDraw_DuplicateSurface(LPDIRECTDRAW2 iface, LPDIRECTDRAWSURFACE src, LPDIRECTDRAWSURFACE *dst)
HRESULT WINAPI Main_DirectDraw_SetCooperativeLevel(LPDIRECTDRAW2 iface, HWND hwnd, DWORD cooplevel)
HRESULT WINAPI Main_DirectDraw_GetMonitorFrequency(LPDIRECTDRAW2 iface, LPDWORD lpFreq)
HRESULT WINAPI Main_DirectDraw_EnumSurfaces(LPDIRECTDRAW2 iface, DWORD dwFlags, LPDDSURFACEDESC lpDDSD, LPVOID context, LPDDENUMSURFACESCALLBACK callback)
ULONG WINAPI Main_DirectDraw_AddRef(LPDIRECTDRAW2 iface)
HRESULT WINAPI Main_DirectDraw_CreateSurface(LPDIRECTDRAW2 iface, LPDDSURFACEDESC pDDSD, LPDIRECTDRAWSURFACE *ppSurf, IUnknown *pUnkOuter)
HRESULT WINAPI Main_DirectDraw_QueryInterface(LPDIRECTDRAW2 iface, REFIID id, LPVOID *obj)
HRESULT WINAPI Main_DirectDraw_GetVerticalBlankStatus(LPDIRECTDRAW2 iface, LPBOOL lpbIsInVB)
HRESULT WINAPI Main_DirectDraw_GetAvailableVidMem(LPDIRECTDRAW2 iface, LPDDSCAPS ddscaps, LPDWORD dwTotal, LPDWORD dwFree)
HRESULT WINAPI Main_DirectDraw_CreateClipper(LPDIRECTDRAW2 iface, DWORD dwFlags, LPDIRECTDRAWCLIPPER *ppClipper, IUnknown *pUnkOuter)
HRESULT WINAPI Main_DirectDraw_Initialize(LPDIRECTDRAW2 iface, LPGUID lpGUID)
HRESULT WINAPI Main_DirectDraw_GetFourCCCodes(LPDIRECTDRAW2 iface, LPDWORD lpNumCodes, LPDWORD lpCodes)
HRESULT WINAPI Main_DirectDraw_WaitForVerticalBlank(LPDIRECTDRAW2 iface, DWORD dwFlags, HANDLE h)
HRESULT WINAPI Main_DirectDraw_GetScanLine(LPDIRECTDRAW2 iface, LPDWORD lpdwScanLine)
HRESULT WINAPI Main_DirectDraw_GetCaps(LPDIRECTDRAW2 iface, LPDDCAPS pDriverCaps, LPDDCAPS pHELCaps)
HRESULT WINAPI Main_DirectDraw_CreatePalette(LPDIRECTDRAW2 iface, DWORD dwFlags, LPPALETTEENTRY palent, LPDIRECTDRAWPALETTE *ppPalette, LPUNKNOWN pUnkOuter)
HRESULT WINAPI Main_DirectDraw_FlipToGDISurface(LPDIRECTDRAW2 iface)
HRESULT WINAPI Main_DirectDraw_Compact(LPDIRECTDRAW2 iface)
HRESULT WINAPI Main_DirectDraw_SetDisplayMode2(LPDIRECTDRAW2 iface, DWORD dwWidth, DWORD dwHeight, DWORD dwBPP, DWORD dwRefreshRate, DWORD dwFlags)
ULONG WINAPI Main_DirectDraw_Release(LPDIRECTDRAW2 iface)
HRESULT WINAPI Main_DirectDraw_EnumDisplayModes(LPDIRECTDRAW2 iface, DWORD dwFlags, LPDDSURFACEDESC pDDSD, LPVOID pContext, LPDDENUMMODESCALLBACK pCallback)
HRESULT WINAPI Main_DirectDraw_GetGDISurface(LPDIRECTDRAW2 iface, LPDIRECTDRAWSURFACE *lplpGDIDDSSurface)
HRESULT WINAPI Main_DirectDraw_GetDisplayMode(LPDIRECTDRAW2 iface, LPDDSURFACEDESC pDDSD)
HRESULT WINAPI Main_DirectDraw_RestoreDisplayMode(LPDIRECTDRAW2 iface)

Definition at line 156 of file DirectDraw2_Vtable.c.

Referenced by Create_DirectDraw(), Internal_CreateSurface(), and Main_DirectDraw_QueryInterface().