ReactOS 0.4.16-dev-125-g798ea90
ddraw_thunk.c File Reference
#include "../rosdraw.h"
Include dependency graph for ddraw_thunk.c:

Go to the source code of this file.

Functions

HRESULT WINAPI ThunkDirectDraw_QueryInterface (LPDIRECTDRAW iface, REFIID iid, LPVOID *ppObj)
 
HRESULT WINAPI ThunkDirectDraw2_QueryInterface (LPDIRECTDRAW2 iface, REFIID iid, LPVOID *obj)
 
HRESULT WINAPI ThunkDirectDraw4_QueryInterface (LPDIRECTDRAW4 iface, REFIID iid, LPVOID *ppObj)
 
ULONG WINAPI ThunkDirectDraw_AddRef (LPDIRECTDRAW iface)
 
ULONG WINAPI ThunkDirectDraw2_AddRef (LPDIRECTDRAW2 iface)
 
ULONG WINAPI ThunkDirectDraw4_AddRef (LPDIRECTDRAW4 iface)
 
ULONG WINAPI ThunkDirectDraw_Release (LPDIRECTDRAW iface)
 
ULONG WINAPI ThunkDirectDraw2_Release (LPDIRECTDRAW2 iface)
 
ULONG WINAPI ThunkDirectDraw4_Release (LPDIRECTDRAW4 iface)
 
HRESULT WINAPI ThunkDirectDraw_Compact (LPDIRECTDRAW iface)
 
HRESULT WINAPI ThunkDirectDraw2_Compact (LPDIRECTDRAW2 iface)
 
HRESULT WINAPI ThunkDirectDraw4_Compact (LPDIRECTDRAW4 iface)
 
HRESULT WINAPI ThunkDirectDraw_CreateClipper (LPDIRECTDRAW iface, DWORD dwFlags, LPDIRECTDRAWCLIPPER *ppClipper, IUnknown *pUnkOuter)
 
HRESULT WINAPI ThunkDirectDraw2_CreateClipper (LPDIRECTDRAW2 iface, DWORD dwFlags, LPDIRECTDRAWCLIPPER *ppClipper, IUnknown *pUnkOuter)
 
HRESULT WINAPI ThunkDirectDraw4_CreateClipper (LPDIRECTDRAW4 iface, DWORD dwFlags, LPDIRECTDRAWCLIPPER *ppClipper, IUnknown *pUnkOuter)
 
HRESULT WINAPI ThunkDirectDraw_CreatePalette (LPDIRECTDRAW iface, DWORD dwFlags, LPPALETTEENTRY pEntries, LPDIRECTDRAWPALETTE *ppPalette, IUnknown *pUnkOuter)
 
HRESULT WINAPI ThunkDirectDraw2_CreatePalette (LPDIRECTDRAW2 iface, DWORD dwFlags, LPPALETTEENTRY pEntries, LPDIRECTDRAWPALETTE *ppPalette, IUnknown *pUnkOuter)
 
HRESULT WINAPI ThunkDirectDraw4_CreatePalette (LPDIRECTDRAW4 iface, DWORD dwFlags, LPPALETTEENTRY pEntries, LPDIRECTDRAWPALETTE *ppPalette, IUnknown *pUnkOuter)
 
HRESULT WINAPI ThunkDirectDraw_CreateSurface (LPDIRECTDRAW iface, LPDDSURFACEDESC pDDSD, LPDIRECTDRAWSURFACE *ppSurf, IUnknown *pUnkOuter)
 
HRESULT WINAPI ThunkDirectDraw2_CreateSurface (LPDIRECTDRAW2 iface, LPDDSURFACEDESC pDDSD, LPDIRECTDRAWSURFACE *ppSurface, IUnknown *pUnkOuter)
 
HRESULT WINAPI ThunkDirectDraw4_CreateSurface (LPDIRECTDRAW4 iface, LPDDSURFACEDESC2 pDDSD2, LPDIRECTDRAWSURFACE4 *ppSurface, IUnknown *pUnkOuter)
 
HRESULT WINAPI ThunkDirectDraw_DuplicateSurface (LPDIRECTDRAW iface, LPDIRECTDRAWSURFACE src, LPDIRECTDRAWSURFACE *dst)
 
HRESULT WINAPI ThunkDirectDraw2_DuplicateSurface (LPDIRECTDRAW2 iface, LPDIRECTDRAWSURFACE src, LPDIRECTDRAWSURFACE *dst)
 
HRESULT WINAPI ThunkDirectDraw4_DuplicateSurface (LPDIRECTDRAW4 iface, LPDIRECTDRAWSURFACE4 src, LPDIRECTDRAWSURFACE4 *dst)
 
HRESULT WINAPI ThunkDirectDraw_EnumDisplayModes (LPDIRECTDRAW iface, DWORD dwFlags, LPDDSURFACEDESC pDDSD, LPVOID context, LPDDENUMMODESCALLBACK cb)
 
HRESULT WINAPI ThunkDirectDraw2_EnumDisplayModes (LPDIRECTDRAW2 iface, DWORD dwFlags, LPDDSURFACEDESC pDDSD, LPVOID context, LPDDENUMMODESCALLBACK cb)
 
HRESULT WINAPI ThunkDirectDraw4_EnumDisplayModes (LPDIRECTDRAW4 iface, DWORD dwFlags, LPDDSURFACEDESC2 pDDSD, LPVOID context, LPDDENUMMODESCALLBACK2 cb)
 
HRESULT WINAPI ThunkDirectDraw_EnumSurfaces (LPDIRECTDRAW iface, DWORD dwFlags, LPDDSURFACEDESC pDDSD, LPVOID context, LPDDENUMSURFACESCALLBACK cb)
 
HRESULT WINAPI ThunkDirectDraw2_EnumSurfaces (LPDIRECTDRAW2 iface, DWORD dwFlags, LPDDSURFACEDESC pDDSD, LPVOID context, LPDDENUMSURFACESCALLBACK cb)
 
HRESULT WINAPI ThunkDirectDraw4_EnumSurfaces (LPDIRECTDRAW4 iface, DWORD dwFlags, LPDDSURFACEDESC2 pDDSD, LPVOID context, LPDDENUMSURFACESCALLBACK2 cb)
 
HRESULT WINAPI ThunkDirectDraw_FlipToGDISurface (LPDIRECTDRAW iface)
 
HRESULT WINAPI ThunkDirectDraw2_FlipToGDISurface (LPDIRECTDRAW2 iface)
 
HRESULT WINAPI ThunkDirectDraw4_FlipToGDISurface (LPDIRECTDRAW4 iface)
 
HRESULT WINAPI ThunkDirectDraw_GetCaps (LPDIRECTDRAW iface, LPDDCAPS pDDC1, LPDDCAPS pDDC2)
 
HRESULT WINAPI ThunkDirectDraw2_GetCaps (LPDIRECTDRAW2 iface, LPDDCAPS pDDC1, LPDDCAPS pDDC2)
 
HRESULT WINAPI ThunkDirectDraw4_GetCaps (LPDIRECTDRAW4 iface, LPDDCAPS pDDC1, LPDDCAPS pDDC2)
 
HRESULT WINAPI ThunkDirectDraw_GetDisplayMode (LPDIRECTDRAW iface, LPDDSURFACEDESC pDDSD)
 
HRESULT WINAPI ThunkDirectDraw2_GetDisplayMode (LPDIRECTDRAW2 iface, LPDDSURFACEDESC pDDSD)
 
HRESULT WINAPI ThunkDirectDraw4_GetDisplayMode (LPDIRECTDRAW4 iface, LPDDSURFACEDESC2 pDDSD2)
 
HRESULT WINAPI ThunkDirectDraw_GetFourCCCodes (LPDIRECTDRAW iface, LPDWORD pNumCodes, LPDWORD pCodes)
 
HRESULT WINAPI ThunkDirectDraw2_GetFourCCCodes (LPDIRECTDRAW2 iface, LPDWORD pNumCodes, LPDWORD pCodes)
 
HRESULT WINAPI ThunkDirectDraw4_GetFourCCCodes (LPDIRECTDRAW4 iface, LPDWORD pNumCodes, LPDWORD pCodes)
 
HRESULT WINAPI ThunkDirectDraw_GetGDISurface (LPDIRECTDRAW iface, LPDIRECTDRAWSURFACE *lplpGDIDDSSurface)
 
HRESULT WINAPI ThunkDirectDraw2_GetGDISurface (LPDIRECTDRAW2 iface, LPDIRECTDRAWSURFACE *lplpGDIDDSSurface)
 
HRESULT WINAPI ThunkDirectDraw4_GetGDISurface (LPDIRECTDRAW4 iface, LPDIRECTDRAWSURFACE4 *lplpGDIDDSSurface)
 
HRESULT WINAPI ThunkDirectDraw_GetMonitorFrequency (LPDIRECTDRAW iface, LPDWORD pdwFreq)
 
HRESULT WINAPI ThunkDirectDraw2_GetMonitorFrequency (LPDIRECTDRAW2 iface, LPDWORD pdwFreq)
 
HRESULT WINAPI ThunkDirectDraw4_GetMonitorFrequency (LPDIRECTDRAW4 iface, LPDWORD pdwFreq)
 
HRESULT WINAPI ThunkDirectDraw_GetScanLine (LPDIRECTDRAW iface, LPDWORD lpdwScanLine)
 
HRESULT WINAPI ThunkDirectDraw2_GetScanLine (LPDIRECTDRAW2 iface, LPDWORD lpdwScanLine)
 
HRESULT WINAPI ThunkDirectDraw4_GetScanLine (LPDIRECTDRAW4 iface, LPDWORD lpdwScanLine)
 
HRESULT WINAPI ThunkDirectDraw_GetVerticalBlankStatus (LPDIRECTDRAW iface, LPBOOL lpbIsInVB)
 
HRESULT WINAPI ThunkDirectDraw2_GetVerticalBlankStatus (LPDIRECTDRAW2 iface, LPBOOL lpbIsInVB)
 
HRESULT WINAPI ThunkDirectDraw4_GetVerticalBlankStatus (LPDIRECTDRAW4 iface, LPBOOL lpbIsInVB)
 
HRESULT WINAPI ThunkDirectDraw_Initialize (LPDIRECTDRAW iface, LPGUID pGUID)
 
HRESULT WINAPI ThunkDirectDraw2_Initialize (LPDIRECTDRAW2 iface, LPGUID pGUID)
 
HRESULT WINAPI ThunkDirectDraw4_Initialize (LPDIRECTDRAW4 iface, LPGUID pGUID)
 
HRESULT WINAPI ThunkDirectDraw_RestoreDisplayMode (LPDIRECTDRAW iface)
 
HRESULT WINAPI ThunkDirectDraw2_RestoreDisplayMode (LPDIRECTDRAW2 iface)
 
HRESULT WINAPI ThunkDirectDraw4_RestoreDisplayMode (LPDIRECTDRAW4 iface)
 
HRESULT WINAPI ThunkDirectDraw_SetCooperativeLevel (LPDIRECTDRAW iface, HWND hwnd, DWORD dwFlags)
 
HRESULT WINAPI ThunkDirectDraw2_SetCooperativeLevel (LPDIRECTDRAW2 iface, HWND hwnd, DWORD dwFlags)
 
HRESULT WINAPI ThunkDirectDraw4_SetCooperativeLevel (LPDIRECTDRAW4 iface, HWND hwnd, DWORD dwFlags)
 
HRESULT WINAPI ThunkDirectDraw_SetDisplayMode (LPDIRECTDRAW iface, DWORD dwWidth, DWORD dwHeight, DWORD dwBPP)
 
HRESULT WINAPI ThunkDirectDraw2_SetDisplayMode (LPDIRECTDRAW2 iface, DWORD dwWidth, DWORD dwHeight, DWORD dwBPP, DWORD d, DWORD e)
 
HRESULT WINAPI ThunkDirectDraw4_SetDisplayMode (LPDIRECTDRAW4 iface, DWORD dwWidth, DWORD dwHeight, DWORD dwBPP, DWORD d, DWORD e)
 
HRESULT WINAPI ThunkDirectDraw_WaitForVerticalBlank (LPDIRECTDRAW iface, DWORD dwFlags, HANDLE hEvent)
 
HRESULT WINAPI ThunkDirectDraw2_WaitForVerticalBlank (LPDIRECTDRAW2 iface, DWORD dwFlags, HANDLE hEvent)
 
HRESULT WINAPI ThunkDirectDraw4_WaitForVerticalBlank (LPDIRECTDRAW4 iface, DWORD dwFlags, HANDLE hEvent)
 
HRESULT WINAPI ThunkDirectDraw4_GetSurfaceFromDC (LPDIRECTDRAW4 iface, HDC hdc, LPDIRECTDRAWSURFACE4 *pSurf)
 
HRESULT WINAPI ThunkDirectDraw4_RestoreAllSurfaces (LPDIRECTDRAW4 iface)
 
HRESULT WINAPI ThunkDirectDraw4_TestCooperativeLevel (LPDIRECTDRAW4 iface)
 
HRESULT WINAPI ThunkDirectDraw4_GetDeviceIdentifier (LPDIRECTDRAW4 iface, LPDDDEVICEIDENTIFIER pDDDI, DWORD dwFlags)
 

Variables

IDirectDrawVtbl DirectDraw_Vtable
 
IDirectDraw2Vtbl DirectDraw2_Vtable
 
IDirectDraw4Vtbl DirectDraw4_Vtable
 

Function Documentation

◆ ThunkDirectDraw2_AddRef()

ULONG WINAPI ThunkDirectDraw2_AddRef ( LPDIRECTDRAW2  iface)

Definition at line 41 of file ddraw_thunk.c.

42{
44
46}
ULONG WINAPI Main_DirectDraw_AddRef(LPDDRAWI_DIRECTDRAW_INT This)
Definition: ddraw_main.c:145
DWORD * LPDIRECTDRAW7
Definition: vmrender.idl:6
#define DX_WINDBG_trace()
Definition: rosdraw.h:262

◆ ThunkDirectDraw2_Compact()

HRESULT WINAPI ThunkDirectDraw2_Compact ( LPDIRECTDRAW2  iface)

Definition at line 89 of file ddraw_thunk.c.

90{
92
94}
HRESULT WINAPI Main_DirectDraw_Compact(LPDDRAWI_DIRECTDRAW_INT This)
Definition: ddraw_main.c:267

◆ ThunkDirectDraw2_CreateClipper()

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

Definition at line 113 of file ddraw_thunk.c.

114{
116
117 return Main_DirectDraw_CreateClipper( (LPDIRECTDRAW7) iface, dwFlags, ppClipper, pUnkOuter);
118}
HRESULT WINAPI Main_DirectDraw_CreateClipper(LPDDRAWI_DIRECTDRAW_INT This, DWORD dwFlags, LPDIRECTDRAWCLIPPER *ppClipper, IUnknown *pUnkOuter)
Definition: ddraw_stubs.c:17
_In_ PCCERT_CONTEXT _In_ DWORD dwFlags
Definition: wincrypt.h:1176

◆ ThunkDirectDraw2_CreatePalette()

HRESULT WINAPI ThunkDirectDraw2_CreatePalette ( LPDIRECTDRAW2  iface,
DWORD  dwFlags,
LPPALETTEENTRY  pEntries,
LPDIRECTDRAWPALETTE ppPalette,
IUnknown pUnkOuter 
)

Definition at line 140 of file ddraw_thunk.c.

144{
146
147 return Main_DirectDraw_CreatePalette( (LPDIRECTDRAW7) iface, dwFlags, pEntries, ppPalette, pUnkOuter);
148}
HRESULT WINAPI Main_DirectDraw_CreatePalette(LPDDRAWI_DIRECTDRAW_INT This, DWORD dwFlags, LPPALETTEENTRY palent, LPDIRECTDRAWPALETTE *ppPalette, LPUNKNOWN pUnkOuter)
Definition: ddraw_main.c:545

◆ ThunkDirectDraw2_CreateSurface()

HRESULT WINAPI ThunkDirectDraw2_CreateSurface ( LPDIRECTDRAW2  iface,
LPDDSURFACEDESC  pDDSD,
LPDIRECTDRAWSURFACE ppSurface,
IUnknown pUnkOuter 
)

Definition at line 193 of file ddraw_thunk.c.

195{
196 HRESULT retValue = DDERR_GENERIC;
198
200
201 if (pDDSD != NULL)
202 {
203 DDSURFACEDESC2 pDDSD2;
204 ZeroMemory(&pDDSD2,sizeof(DDSURFACEDESC2));
205 memcpy(&pDDSD2, pDDSD, sizeof(DDSURFACEDESC));
206 pDDSD2.dwSize = sizeof(DDSURFACEDESC2);
207 retValue = Main_DirectDraw_CreateSurface ((LPDIRECTDRAW7) iface, &pDDSD2,
208 (LPDIRECTDRAWSURFACE7 *) ppSurface, pUnkOuter);
209 memcpy(pDDSD, &pDDSD2, sizeof(DDSURFACEDESC));
210 pDDSD->dwSize = sizeof(DDSURFACEDESC);
211 }
212 else
213 {
215 (LPDIRECTDRAWSURFACE7 *) ppSurface, pUnkOuter);
216 }
217
218 That = (LPDDRAWI_DDRAWSURFACE_INT) *ppSurface;
220
221 return retValue;
222}
void DDSURFACEDESC
Definition: amvideo.idl:25
struct _DDRAWI_DDRAWSURFACE_INT * LPDDRAWI_DDRAWSURFACE_INT
Definition: ddrawi.h:132
#define NULL
Definition: types.h:112
HRESULT WINAPI Main_DirectDraw_CreateSurface(LPDDRAWI_DIRECTDRAW_INT This, LPDDSURFACEDESC pDDSD, LPDDRAWI_DDRAWSURFACE_INT *ppSurf, IUnknown *pUnkOuter)
Definition: ddraw_main.c:478
DWORD * LPDIRECTDRAWSURFACE7
Definition: vmrender.idl:7
#define memcpy(s1, s2, n)
Definition: mkisofs.h:878
struct _DDSURFACEDESC2 DDSURFACEDESC2
#define DDERR_GENERIC
Definition: ddraw.h:72
DWORD dwSize
Definition: ddraw.h:1152
IDirectDrawSurface3Vtbl DirectDrawSurface3_VTable
#define ZeroMemory
Definition: winbase.h:1712

◆ ThunkDirectDraw2_DuplicateSurface()

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

Definition at line 253 of file ddraw_thunk.c.

254{
256
259}
HRESULT WINAPI Main_DirectDraw_DuplicateSurface(LPDDRAWI_DIRECTDRAW_INT This, LPDIRECTDRAWSURFACE7 src, LPDIRECTDRAWSURFACE7 *dst)
Definition: ddraw_stubs.c:26
GLenum src
Definition: glext.h:6340
GLenum GLenum dst
Definition: glext.h:6340

◆ ThunkDirectDraw2_EnumDisplayModes()

HRESULT WINAPI ThunkDirectDraw2_EnumDisplayModes ( LPDIRECTDRAW2  iface,
DWORD  dwFlags,
LPDDSURFACEDESC  pDDSD,
LPVOID  context,
LPDDENUMMODESCALLBACK  cb 
)

Definition at line 300 of file ddraw_thunk.c.

303{
304 HRESULT retValue = DDERR_GENERIC;
305
307
308 if (pDDSD != NULL)
309 {
310 DDSURFACEDESC2 pDDSD2;
311 ZeroMemory(&pDDSD2,sizeof(DDSURFACEDESC2));
312 memcpy(&pDDSD2, pDDSD, sizeof(DDSURFACEDESC));
313 pDDSD2.dwSize = sizeof(DDSURFACEDESC2);
314 retValue = Main_DirectDraw_EnumDisplayModes((LPDIRECTDRAW7) iface, dwFlags, &pDDSD2,
316 memcpy(pDDSD, &pDDSD2, sizeof(DDSURFACEDESC));
317 pDDSD->dwSize = sizeof(DDSURFACEDESC);
318 }
319 else
320 {
323 }
324
325 return retValue;
326}
HRESULT WINAPI Main_DirectDraw_EnumDisplayModes(LPDDRAWI_DIRECTDRAW_INT This, DWORD dwFlags, LPDDSURFACEDESC pDDSD, LPVOID pContext, LPDDENUMMODESCALLBACK pCallback)
static HMODULE MODULEINFO DWORD cb
Definition: module.c:33
HRESULT(WINAPI * LPDDENUMMODESCALLBACK2)(LPDDSURFACEDESC2, LPVOID)
Definition: ddraw.h:1259
Definition: http.c:7252

◆ ThunkDirectDraw2_EnumSurfaces()

HRESULT WINAPI ThunkDirectDraw2_EnumSurfaces ( LPDIRECTDRAW2  iface,
DWORD  dwFlags,
LPDDSURFACEDESC  pDDSD,
LPVOID  context,
LPDDENUMSURFACESCALLBACK  cb 
)

Definition at line 372 of file ddraw_thunk.c.

375{
376 HRESULT retValue = DDERR_GENERIC;
377
379
380 if (pDDSD != NULL)
381 {
382 DDSURFACEDESC2 pDDSD2;
383 ZeroMemory(&pDDSD2,sizeof(DDSURFACEDESC2));
384 memcpy(&pDDSD2, pDDSD, sizeof(DDSURFACEDESC));
385 pDDSD2.dwSize = sizeof(DDSURFACEDESC2);
386 retValue = Main_DirectDraw_EnumSurfaces((LPDIRECTDRAW7) iface, dwFlags, &pDDSD2,
388 memcpy(pDDSD, &pDDSD2, sizeof(DDSURFACEDESC));
389 pDDSD->dwSize = sizeof(DDSURFACEDESC);
390 }
391 else
392 {
395 }
396
397 return retValue;
398}
HRESULT WINAPI Main_DirectDraw_EnumSurfaces(LPDDRAWI_DIRECTDRAW_INT This, DWORD dwFlags, LPDDSURFACEDESC lpDDSD2, LPVOID context, LPDDENUMSURFACESCALLBACK callback)
Definition: ddraw_stubs.c:34
HRESULT(WINAPI * LPDDENUMSURFACESCALLBACK7)(LPDIRECTDRAWSURFACE7, LPDDSURFACEDESC2, LPVOID)
Definition: ddraw.h:1262

◆ ThunkDirectDraw2_FlipToGDISurface()

HRESULT WINAPI ThunkDirectDraw2_FlipToGDISurface ( LPDIRECTDRAW2  iface)

Definition at line 421 of file ddraw_thunk.c.

422{
424
426}
HRESULT WINAPI Main_DirectDraw_FlipToGDISurface(LPDDRAWI_DIRECTDRAW_INT This)
Definition: ddraw_stubs.c:64

◆ ThunkDirectDraw2_GetCaps()

HRESULT WINAPI ThunkDirectDraw2_GetCaps ( LPDIRECTDRAW2  iface,
LPDDCAPS  pDDC1,
LPDDCAPS  pDDC2 
)

Definition at line 445 of file ddraw_thunk.c.

446{
448
449 return Main_DirectDraw_GetCaps((LPDIRECTDRAW7) iface, pDDC1, pDDC2);
450}
HRESULT WINAPI Main_DirectDraw_GetCaps(LPDDRAWI_DIRECTDRAW_INT This, LPDDCAPS pDriverCaps, LPDDCAPS pHELCaps)
Definition: GetCaps.c:23

◆ ThunkDirectDraw2_GetDisplayMode()

HRESULT WINAPI ThunkDirectDraw2_GetDisplayMode ( LPDIRECTDRAW2  iface,
LPDDSURFACEDESC  pDDSD 
)

Definition at line 487 of file ddraw_thunk.c.

488{
489 HRESULT retValue = DDERR_GENERIC;
490
492
493 if (pDDSD != NULL)
494 {
495 DDSURFACEDESC2 pDDSD2;
496 ZeroMemory(&pDDSD2,sizeof(DDSURFACEDESC2));
497 memcpy(&pDDSD2, pDDSD, sizeof(DDSURFACEDESC));
498 pDDSD2.dwSize = sizeof(DDSURFACEDESC2);
499 retValue = Main_DirectDraw_GetDisplayMode((LPDIRECTDRAW7) iface, &pDDSD2);
500 memcpy(pDDSD, &pDDSD2, sizeof(DDSURFACEDESC));
501 pDDSD->dwSize = sizeof(DDSURFACEDESC);
502 }
503 else
504 {
506 }
507
508 return retValue;
509}
HRESULT WINAPI Main_DirectDraw_GetDisplayMode(LPDDRAWI_DIRECTDRAW_INT This, LPDDSURFACEDESC pDDSD)

◆ ThunkDirectDraw2_GetFourCCCodes()

HRESULT WINAPI ThunkDirectDraw2_GetFourCCCodes ( LPDIRECTDRAW2  iface,
LPDWORD  pNumCodes,
LPDWORD  pCodes 
)

Definition at line 529 of file ddraw_thunk.c.

531{
533
534 return Main_DirectDraw_GetFourCCCodes((LPDIRECTDRAW7) iface, pNumCodes, pCodes);
535}
HRESULT WINAPI Main_DirectDraw_GetFourCCCodes(LPDDRAWI_DIRECTDRAW_INT This, LPDWORD lpNumCodes, LPDWORD lpCodes)
Definition: ddraw_main.c:418

◆ ThunkDirectDraw2_GetGDISurface()

HRESULT WINAPI ThunkDirectDraw2_GetGDISurface ( LPDIRECTDRAW2  iface,
LPDIRECTDRAWSURFACE lplpGDIDDSSurface 
)

Definition at line 555 of file ddraw_thunk.c.

556{
558
559 return Main_DirectDraw_GetGDISurface((LPDIRECTDRAW7) iface, (LPDIRECTDRAWSURFACE7 *) lplpGDIDDSSurface);
560}
HRESULT WINAPI Main_DirectDraw_GetGDISurface(LPDDRAWI_DIRECTDRAW_INT This, LPDIRECTDRAWSURFACE7 *lplpGDIDDSSurface)
Definition: ddraw_stubs.c:72

◆ ThunkDirectDraw2_GetMonitorFrequency()

HRESULT WINAPI ThunkDirectDraw2_GetMonitorFrequency ( LPDIRECTDRAW2  iface,
LPDWORD  pdwFreq 
)

Definition at line 579 of file ddraw_thunk.c.

580{
582
583 return Main_DirectDraw_GetMonitorFrequency((LPDIRECTDRAW7) iface, pdwFreq);
584}
HRESULT WINAPI Main_DirectDraw_GetMonitorFrequency(LPDDRAWI_DIRECTDRAW_INT This, LPDWORD lpFreq)

◆ ThunkDirectDraw2_GetScanLine()

HRESULT WINAPI ThunkDirectDraw2_GetScanLine ( LPDIRECTDRAW2  iface,
LPDWORD  lpdwScanLine 
)

Definition at line 603 of file ddraw_thunk.c.

604{
606
607 return Main_DirectDraw_GetScanLine((LPDIRECTDRAW7) iface, lpdwScanLine);
608}
HRESULT WINAPI Main_DirectDraw_GetScanLine(LPDDRAWI_DIRECTDRAW_INT This, LPDWORD lpdwScanLine)
Definition: ddraw_stubs.c:80

◆ ThunkDirectDraw2_GetVerticalBlankStatus()

HRESULT WINAPI ThunkDirectDraw2_GetVerticalBlankStatus ( LPDIRECTDRAW2  iface,
LPBOOL  lpbIsInVB 
)

Definition at line 627 of file ddraw_thunk.c.

628{
630
631 return Main_DirectDraw_GetVerticalBlankStatus((LPDIRECTDRAW7) iface, lpbIsInVB);
632}
HRESULT WINAPI Main_DirectDraw_GetVerticalBlankStatus(LPDDRAWI_DIRECTDRAW_INT This, LPBOOL lpbIsInVB)
Definition: ddraw_stubs.c:87

◆ ThunkDirectDraw2_Initialize()

HRESULT WINAPI ThunkDirectDraw2_Initialize ( LPDIRECTDRAW2  iface,
LPGUID  pGUID 
)

Definition at line 656 of file ddraw_thunk.c.

657{
659
660 if (iface==NULL)
661 {
663 }
664
666}
#define DDERR_NOTINITIALIZED
Definition: ddraw.h:185
#define DDERR_ALREADYINITIALIZED
Definition: ddraw.h:67

◆ ThunkDirectDraw2_QueryInterface()

HRESULT WINAPI ThunkDirectDraw2_QueryInterface ( LPDIRECTDRAW2  iface,
REFIID  iid,
LPVOID obj 
)

Definition at line 16 of file ddraw_thunk.c.

17{
19
21}
HRESULT WINAPI Main_DirectDraw_QueryInterface(LPDDRAWI_DIRECTDRAW_INT This, REFIID id, LPVOID *obj)
Definition: ddraw_main.c:37

◆ ThunkDirectDraw2_Release()

ULONG WINAPI ThunkDirectDraw2_Release ( LPDIRECTDRAW2  iface)

Definition at line 65 of file ddraw_thunk.c.

66{
68
70}
ULONG WINAPI Main_DirectDraw_Release(LPDDRAWI_DIRECTDRAW_INT This)
Definition: ddraw_main.c:194

◆ ThunkDirectDraw2_RestoreDisplayMode()

HRESULT WINAPI ThunkDirectDraw2_RestoreDisplayMode ( LPDIRECTDRAW2  iface)

Definition at line 691 of file ddraw_thunk.c.

692{
694
696}
HRESULT WINAPI Main_DirectDraw_RestoreDisplayMode(LPDDRAWI_DIRECTDRAW_INT This)

◆ ThunkDirectDraw2_SetCooperativeLevel()

HRESULT WINAPI ThunkDirectDraw2_SetCooperativeLevel ( LPDIRECTDRAW2  iface,
HWND  hwnd,
DWORD  dwFlags 
)

Definition at line 715 of file ddraw_thunk.c.

716{
718
720}
HRESULT WINAPI Main_DirectDraw_SetCooperativeLevel(LPDDRAWI_DIRECTDRAW_INT This, HWND hwnd, DWORD cooplevel)
_In_ LONG _In_ HWND hwnd
Definition: winddi.h:4023

◆ ThunkDirectDraw2_SetDisplayMode()

HRESULT WINAPI ThunkDirectDraw2_SetDisplayMode ( LPDIRECTDRAW2  iface,
DWORD  dwWidth,
DWORD  dwHeight,
DWORD  dwBPP,
DWORD  d,
DWORD  e 
)

Definition at line 739 of file ddraw_thunk.c.

740{
742
743 return Main_DirectDraw_SetDisplayMode ((LPDIRECTDRAW7) iface, dwWidth, dwHeight, dwBPP, 0, 0);
744}
HRESULT WINAPI Main_DirectDraw_SetDisplayMode(LPDDRAWI_DIRECTDRAW_INT This, DWORD dwWidth, DWORD dwHeight, DWORD dwBPP)
static const WCHAR dwWidth[]
Definition: provider.c:62
static const WCHAR dwHeight[]
Definition: provider.c:63

◆ ThunkDirectDraw2_WaitForVerticalBlank()

HRESULT WINAPI ThunkDirectDraw2_WaitForVerticalBlank ( LPDIRECTDRAW2  iface,
DWORD  dwFlags,
HANDLE  hEvent 
)

Definition at line 763 of file ddraw_thunk.c.

764{
766
768}
HRESULT WINAPI Main_DirectDraw_WaitForVerticalBlank(LPDDRAWI_DIRECTDRAW_INT This, DWORD dwFlags, HANDLE h)
Definition: ddraw_stubs.c:97
static HANDLE hEvent
Definition: comm.c:54

◆ ThunkDirectDraw4_AddRef()

ULONG WINAPI ThunkDirectDraw4_AddRef ( LPDIRECTDRAW4  iface)

Definition at line 49 of file ddraw_thunk.c.

50{
52
54}

◆ ThunkDirectDraw4_Compact()

HRESULT WINAPI ThunkDirectDraw4_Compact ( LPDIRECTDRAW4  iface)

Definition at line 97 of file ddraw_thunk.c.

98{
100
101 return Main_DirectDraw_Compact((LPDIRECTDRAW7) iface) ;
102}

◆ ThunkDirectDraw4_CreateClipper()

HRESULT WINAPI ThunkDirectDraw4_CreateClipper ( LPDIRECTDRAW4  iface,
DWORD  dwFlags,
LPDIRECTDRAWCLIPPER ppClipper,
IUnknown pUnkOuter 
)

Definition at line 121 of file ddraw_thunk.c.

122{
124
125 return Main_DirectDraw_CreateClipper( (LPDIRECTDRAW7) iface, dwFlags, ppClipper, pUnkOuter);
126}

◆ ThunkDirectDraw4_CreatePalette()

HRESULT WINAPI ThunkDirectDraw4_CreatePalette ( LPDIRECTDRAW4  iface,
DWORD  dwFlags,
LPPALETTEENTRY  pEntries,
LPDIRECTDRAWPALETTE ppPalette,
IUnknown pUnkOuter 
)

Definition at line 151 of file ddraw_thunk.c.

153{
155
156 return Main_DirectDraw_CreatePalette( (LPDIRECTDRAW7) iface, dwFlags, pEntries, ppPalette, pUnkOuter);
157}

◆ ThunkDirectDraw4_CreateSurface()

HRESULT WINAPI ThunkDirectDraw4_CreateSurface ( LPDIRECTDRAW4  iface,
LPDDSURFACEDESC2  pDDSD2,
LPDIRECTDRAWSURFACE4 ppSurface,
IUnknown pUnkOuter 
)

Definition at line 225 of file ddraw_thunk.c.

227{
228 HRESULT retValue;
230
232
233
234 retValue = Main_DirectDraw_CreateSurface ((LPDIRECTDRAW7) iface, pDDSD2,
235 (LPDIRECTDRAWSURFACE7 *) ppSurface, pUnkOuter);
236
237 That = (LPDDRAWI_DDRAWSURFACE_INT) *ppSurface;
239
240 return retValue;
241}

◆ ThunkDirectDraw4_DuplicateSurface()

HRESULT WINAPI ThunkDirectDraw4_DuplicateSurface ( LPDIRECTDRAW4  iface,
LPDIRECTDRAWSURFACE4  src,
LPDIRECTDRAWSURFACE4 dst 
)

Definition at line 262 of file ddraw_thunk.c.

◆ ThunkDirectDraw4_EnumDisplayModes()

HRESULT WINAPI ThunkDirectDraw4_EnumDisplayModes ( LPDIRECTDRAW4  iface,
DWORD  dwFlags,
LPDDSURFACEDESC2  pDDSD,
LPVOID  context,
LPDDENUMMODESCALLBACK2  cb 
)

Definition at line 329 of file ddraw_thunk.c.

332{
334
336}

◆ ThunkDirectDraw4_EnumSurfaces()

HRESULT WINAPI ThunkDirectDraw4_EnumSurfaces ( LPDIRECTDRAW4  iface,
DWORD  dwFlags,
LPDDSURFACEDESC2  pDDSD,
LPVOID  context,
LPDDENUMSURFACESCALLBACK2  cb 
)

Definition at line 401 of file ddraw_thunk.c.

◆ ThunkDirectDraw4_FlipToGDISurface()

HRESULT WINAPI ThunkDirectDraw4_FlipToGDISurface ( LPDIRECTDRAW4  iface)

Definition at line 429 of file ddraw_thunk.c.

430{
432
434}

◆ ThunkDirectDraw4_GetCaps()

HRESULT WINAPI ThunkDirectDraw4_GetCaps ( LPDIRECTDRAW4  iface,
LPDDCAPS  pDDC1,
LPDDCAPS  pDDC2 
)

Definition at line 453 of file ddraw_thunk.c.

454{
456
457 return Main_DirectDraw_GetCaps((LPDIRECTDRAW7) iface, pDDC1, pDDC2);
458}

◆ ThunkDirectDraw4_GetDeviceIdentifier()

HRESULT WINAPI ThunkDirectDraw4_GetDeviceIdentifier ( LPDIRECTDRAW4  iface,
LPDDDEVICEIDENTIFIER  pDDDI,
DWORD  dwFlags 
)

Definition at line 809 of file ddraw_thunk.c.

811{
812 HRESULT retValue = DDERR_GENERIC;
813
815
816 if (pDDDI != NULL)
817 {
818
819 DDDEVICEIDENTIFIER2 pDDDI2;
820 ZeroMemory(&pDDDI2,sizeof(DDDEVICEIDENTIFIER2));
821 memcpy(&pDDDI2, pDDDI, sizeof(DDDEVICEIDENTIFIER));
822 retValue = Main_DirectDraw_GetDeviceIdentifier((LPDIRECTDRAW7) iface, &pDDDI2, dwFlags);
823 memcpy(pDDDI, &pDDDI2, sizeof(DDDEVICEIDENTIFIER));
824 }
825 else
826 {
828 }
829
830 return retValue;
831}
HRESULT WINAPI Main_DirectDraw_GetDeviceIdentifier(LPDDRAWI_DIRECTDRAW_INT This, LPDDDEVICEIDENTIFIER pDDDI, DWORD dwFlags)

◆ ThunkDirectDraw4_GetDisplayMode()

HRESULT WINAPI ThunkDirectDraw4_GetDisplayMode ( LPDIRECTDRAW4  iface,
LPDDSURFACEDESC2  pDDSD2 
)

Definition at line 512 of file ddraw_thunk.c.

513{
515
516 return Main_DirectDraw_GetDisplayMode((LPDIRECTDRAW7) iface, pDDSD2);
517}

◆ ThunkDirectDraw4_GetFourCCCodes()

HRESULT WINAPI ThunkDirectDraw4_GetFourCCCodes ( LPDIRECTDRAW4  iface,
LPDWORD  pNumCodes,
LPDWORD  pCodes 
)

Definition at line 538 of file ddraw_thunk.c.

540{
542
543 return Main_DirectDraw_GetFourCCCodes((LPDIRECTDRAW7) iface, pNumCodes, pCodes);
544}

◆ ThunkDirectDraw4_GetGDISurface()

HRESULT WINAPI ThunkDirectDraw4_GetGDISurface ( LPDIRECTDRAW4  iface,
LPDIRECTDRAWSURFACE4 lplpGDIDDSSurface 
)

Definition at line 563 of file ddraw_thunk.c.

564{
566
567 return Main_DirectDraw_GetGDISurface((LPDIRECTDRAW7) iface, (LPDIRECTDRAWSURFACE7 *) lplpGDIDDSSurface);
568}

◆ ThunkDirectDraw4_GetMonitorFrequency()

HRESULT WINAPI ThunkDirectDraw4_GetMonitorFrequency ( LPDIRECTDRAW4  iface,
LPDWORD  pdwFreq 
)

Definition at line 587 of file ddraw_thunk.c.

588{
590
591 return Main_DirectDraw_GetMonitorFrequency((LPDIRECTDRAW7) iface, pdwFreq);
592}

◆ ThunkDirectDraw4_GetScanLine()

HRESULT WINAPI ThunkDirectDraw4_GetScanLine ( LPDIRECTDRAW4  iface,
LPDWORD  lpdwScanLine 
)

Definition at line 611 of file ddraw_thunk.c.

612{
614
615 return Main_DirectDraw_GetScanLine((LPDIRECTDRAW7) iface, lpdwScanLine);
616}

◆ ThunkDirectDraw4_GetSurfaceFromDC()

HRESULT WINAPI ThunkDirectDraw4_GetSurfaceFromDC ( LPDIRECTDRAW4  iface,
HDC  hdc,
LPDIRECTDRAWSURFACE4 pSurf 
)

Definition at line 783 of file ddraw_thunk.c.

784{
786
788}
HRESULT WINAPI Main_DirectDraw_GetSurfaceFromDC(LPDDRAWI_DIRECTDRAW_INT This, HDC hdc, LPDIRECTDRAWSURFACE7 *lpDDS)
Definition: ddraw_stubs.c:104
HDC hdc
Definition: main.c:9

◆ ThunkDirectDraw4_GetVerticalBlankStatus()

HRESULT WINAPI ThunkDirectDraw4_GetVerticalBlankStatus ( LPDIRECTDRAW4  iface,
LPBOOL  lpbIsInVB 
)

Definition at line 635 of file ddraw_thunk.c.

636{
638
639 return Main_DirectDraw_GetVerticalBlankStatus((LPDIRECTDRAW7) iface, lpbIsInVB);
640}

◆ ThunkDirectDraw4_Initialize()

HRESULT WINAPI ThunkDirectDraw4_Initialize ( LPDIRECTDRAW4  iface,
LPGUID  pGUID 
)

Definition at line 669 of file ddraw_thunk.c.

670{
672
673 if (iface==NULL)
674 {
676 }
677
679}

◆ ThunkDirectDraw4_QueryInterface()

HRESULT WINAPI ThunkDirectDraw4_QueryInterface ( LPDIRECTDRAW4  iface,
REFIID  iid,
LPVOID ppObj 
)

Definition at line 25 of file ddraw_thunk.c.

26{
28
29 return Main_DirectDraw_QueryInterface ((LPDIRECTDRAW7) iface, iid, ppObj);
30}

◆ ThunkDirectDraw4_Release()

ULONG WINAPI ThunkDirectDraw4_Release ( LPDIRECTDRAW4  iface)

Definition at line 73 of file ddraw_thunk.c.

74{
76
78}

◆ ThunkDirectDraw4_RestoreAllSurfaces()

HRESULT WINAPI ThunkDirectDraw4_RestoreAllSurfaces ( LPDIRECTDRAW4  iface)

Definition at line 791 of file ddraw_thunk.c.

792{
794
796}
HRESULT WINAPI Main_DirectDraw_RestoreAllSurfaces(LPDDRAWI_DIRECTDRAW_INT This)
Definition: ddraw_stubs.c:111

◆ ThunkDirectDraw4_RestoreDisplayMode()

HRESULT WINAPI ThunkDirectDraw4_RestoreDisplayMode ( LPDIRECTDRAW4  iface)

Definition at line 699 of file ddraw_thunk.c.

700{
702
704}

◆ ThunkDirectDraw4_SetCooperativeLevel()

HRESULT WINAPI ThunkDirectDraw4_SetCooperativeLevel ( LPDIRECTDRAW4  iface,
HWND  hwnd,
DWORD  dwFlags 
)

Definition at line 723 of file ddraw_thunk.c.

724{
726
728}

◆ ThunkDirectDraw4_SetDisplayMode()

HRESULT WINAPI ThunkDirectDraw4_SetDisplayMode ( LPDIRECTDRAW4  iface,
DWORD  dwWidth,
DWORD  dwHeight,
DWORD  dwBPP,
DWORD  d,
DWORD  e 
)

Definition at line 747 of file ddraw_thunk.c.

748{
750
751 return Main_DirectDraw_SetDisplayMode ((LPDIRECTDRAW7) iface, dwWidth, dwHeight, dwBPP, 0, 0);
752}

◆ ThunkDirectDraw4_TestCooperativeLevel()

HRESULT WINAPI ThunkDirectDraw4_TestCooperativeLevel ( LPDIRECTDRAW4  iface)

Definition at line 799 of file ddraw_thunk.c.

800{
802
804}
HRESULT WINAPI Main_DirectDraw_TestCooperativeLevel(LPDDRAWI_DIRECTDRAW_INT This)
Definition: ddraw_stubs.c:117

◆ ThunkDirectDraw4_WaitForVerticalBlank()

HRESULT WINAPI ThunkDirectDraw4_WaitForVerticalBlank ( LPDIRECTDRAW4  iface,
DWORD  dwFlags,
HANDLE  hEvent 
)

Definition at line 771 of file ddraw_thunk.c.

◆ ThunkDirectDraw_AddRef()

ULONG WINAPI ThunkDirectDraw_AddRef ( LPDIRECTDRAW  iface)

Definition at line 33 of file ddraw_thunk.c.

34{
36
38}

◆ ThunkDirectDraw_Compact()

HRESULT WINAPI ThunkDirectDraw_Compact ( LPDIRECTDRAW  iface)

Definition at line 81 of file ddraw_thunk.c.

82{
84
86}

◆ ThunkDirectDraw_CreateClipper()

HRESULT WINAPI ThunkDirectDraw_CreateClipper ( LPDIRECTDRAW  iface,
DWORD  dwFlags,
LPDIRECTDRAWCLIPPER ppClipper,
IUnknown pUnkOuter 
)

Definition at line 105 of file ddraw_thunk.c.

106{
108
109 return Main_DirectDraw_CreateClipper( (LPDIRECTDRAW7) iface, dwFlags, ppClipper, pUnkOuter);
110}

◆ ThunkDirectDraw_CreatePalette()

HRESULT WINAPI ThunkDirectDraw_CreatePalette ( LPDIRECTDRAW  iface,
DWORD  dwFlags,
LPPALETTEENTRY  pEntries,
LPDIRECTDRAWPALETTE ppPalette,
IUnknown pUnkOuter 
)

Definition at line 129 of file ddraw_thunk.c.

133{
135
136 return Main_DirectDraw_CreatePalette( (LPDIRECTDRAW7) iface, dwFlags, pEntries, ppPalette, pUnkOuter);
137}

◆ ThunkDirectDraw_CreateSurface()

HRESULT WINAPI ThunkDirectDraw_CreateSurface ( LPDIRECTDRAW  iface,
LPDDSURFACEDESC  pDDSD,
LPDIRECTDRAWSURFACE ppSurf,
IUnknown pUnkOuter 
)

Definition at line 160 of file ddraw_thunk.c.

163{
164 HRESULT retValue = DDERR_GENERIC;
166
168
169 if (pDDSD != NULL)
170 {
171 DDSURFACEDESC2 pDDSD2;
172 ZeroMemory(&pDDSD2,sizeof(DDSURFACEDESC2));
173 memcpy(&pDDSD2, pDDSD, sizeof(DDSURFACEDESC));
174 pDDSD2.dwSize = sizeof(DDSURFACEDESC2);
175 retValue = Main_DirectDraw_CreateSurface ((LPDIRECTDRAW7) iface, &pDDSD2,
176 (LPDIRECTDRAWSURFACE7 *) ppSurf, pUnkOuter);
177 memcpy(pDDSD, &pDDSD2, sizeof(DDSURFACEDESC));
178 pDDSD->dwSize = sizeof(DDSURFACEDESC);
179 }
180 else
181 {
183 (LPDIRECTDRAWSURFACE7 *) ppSurf, pUnkOuter);
184 }
185
186 That = (LPDDRAWI_DDRAWSURFACE_INT) *ppSurf;
188
189 return retValue;
190}

◆ ThunkDirectDraw_DuplicateSurface()

HRESULT WINAPI ThunkDirectDraw_DuplicateSurface ( LPDIRECTDRAW  iface,
LPDIRECTDRAWSURFACE  src,
LPDIRECTDRAWSURFACE dst 
)

Definition at line 244 of file ddraw_thunk.c.

◆ ThunkDirectDraw_EnumDisplayModes()

HRESULT WINAPI ThunkDirectDraw_EnumDisplayModes ( LPDIRECTDRAW  iface,
DWORD  dwFlags,
LPDDSURFACEDESC  pDDSD,
LPVOID  context,
LPDDENUMMODESCALLBACK  cb 
)

Definition at line 271 of file ddraw_thunk.c.

274{
275 HRESULT retValue = DDERR_GENERIC;
276
278
279 if (pDDSD != NULL)
280 {
281 DDSURFACEDESC2 pDDSD2;
282 ZeroMemory(&pDDSD2,sizeof(DDSURFACEDESC2));
283 memcpy(&pDDSD2, pDDSD, sizeof(DDSURFACEDESC));
284 pDDSD2.dwSize = sizeof(DDSURFACEDESC2);
285 retValue = Main_DirectDraw_EnumDisplayModes((LPDIRECTDRAW7) iface, dwFlags, &pDDSD2,
287 memcpy(pDDSD, &pDDSD2, sizeof(DDSURFACEDESC));
288 pDDSD->dwSize = sizeof(DDSURFACEDESC);
289 }
290 else
291 {
294 }
295
296 return retValue;
297}

◆ ThunkDirectDraw_EnumSurfaces()

HRESULT WINAPI ThunkDirectDraw_EnumSurfaces ( LPDIRECTDRAW  iface,
DWORD  dwFlags,
LPDDSURFACEDESC  pDDSD,
LPVOID  context,
LPDDENUMSURFACESCALLBACK  cb 
)

Definition at line 343 of file ddraw_thunk.c.

346{
347 HRESULT retValue = DDERR_GENERIC;
348
350
351 if (pDDSD != NULL)
352 {
353 DDSURFACEDESC2 pDDSD2;
354 ZeroMemory(&pDDSD2,sizeof(DDSURFACEDESC2));
355 memcpy(&pDDSD2, pDDSD, sizeof(DDSURFACEDESC));
356 pDDSD2.dwSize = sizeof(DDSURFACEDESC2);
357 retValue = Main_DirectDraw_EnumSurfaces((LPDIRECTDRAW7) iface, dwFlags, &pDDSD2,
359 memcpy(pDDSD, &pDDSD2, sizeof(DDSURFACEDESC));
360 pDDSD->dwSize = sizeof(DDSURFACEDESC);
361 }
362 else
363 {
366 }
367
368 return retValue;
369}

◆ ThunkDirectDraw_FlipToGDISurface()

HRESULT WINAPI ThunkDirectDraw_FlipToGDISurface ( LPDIRECTDRAW  iface)

Definition at line 413 of file ddraw_thunk.c.

414{
416
418}

◆ ThunkDirectDraw_GetCaps()

HRESULT WINAPI ThunkDirectDraw_GetCaps ( LPDIRECTDRAW  iface,
LPDDCAPS  pDDC1,
LPDDCAPS  pDDC2 
)

Definition at line 437 of file ddraw_thunk.c.

438{
440
441 return Main_DirectDraw_GetCaps((LPDIRECTDRAW7) iface, pDDC1, pDDC2);
442}

◆ ThunkDirectDraw_GetDisplayMode()

HRESULT WINAPI ThunkDirectDraw_GetDisplayMode ( LPDIRECTDRAW  iface,
LPDDSURFACEDESC  pDDSD 
)

Definition at line 461 of file ddraw_thunk.c.

462{
463
464 HRESULT retValue = DDERR_GENERIC;
465
467
468 if (pDDSD != NULL)
469 {
470 DDSURFACEDESC2 pDDSD2;
471 ZeroMemory(&pDDSD2,sizeof(DDSURFACEDESC2));
472 memcpy(&pDDSD2, pDDSD, sizeof(DDSURFACEDESC));
473 pDDSD2.dwSize = sizeof(DDSURFACEDESC2);
474 retValue = Main_DirectDraw_GetDisplayMode((LPDIRECTDRAW7) iface, &pDDSD2);
475 memcpy(pDDSD, &pDDSD2, sizeof(DDSURFACEDESC));
476 pDDSD->dwSize = sizeof(DDSURFACEDESC);
477 }
478 else
479 {
481 }
482
483 return retValue;
484}

◆ ThunkDirectDraw_GetFourCCCodes()

HRESULT WINAPI ThunkDirectDraw_GetFourCCCodes ( LPDIRECTDRAW  iface,
LPDWORD  pNumCodes,
LPDWORD  pCodes 
)

Definition at line 520 of file ddraw_thunk.c.

522{
524
525 return Main_DirectDraw_GetFourCCCodes((LPDIRECTDRAW7) iface, pNumCodes, pCodes);
526}

◆ ThunkDirectDraw_GetGDISurface()

HRESULT WINAPI ThunkDirectDraw_GetGDISurface ( LPDIRECTDRAW  iface,
LPDIRECTDRAWSURFACE lplpGDIDDSSurface 
)

Definition at line 547 of file ddraw_thunk.c.

548{
550
551 return Main_DirectDraw_GetGDISurface((LPDIRECTDRAW7) iface, (LPDIRECTDRAWSURFACE7 *) lplpGDIDDSSurface);
552}

◆ ThunkDirectDraw_GetMonitorFrequency()

HRESULT WINAPI ThunkDirectDraw_GetMonitorFrequency ( LPDIRECTDRAW  iface,
LPDWORD  pdwFreq 
)

Definition at line 571 of file ddraw_thunk.c.

572{
574
575 return Main_DirectDraw_GetMonitorFrequency((LPDIRECTDRAW7) iface, pdwFreq);
576}

◆ ThunkDirectDraw_GetScanLine()

HRESULT WINAPI ThunkDirectDraw_GetScanLine ( LPDIRECTDRAW  iface,
LPDWORD  lpdwScanLine 
)

Definition at line 595 of file ddraw_thunk.c.

596{
598
599 return Main_DirectDraw_GetScanLine((LPDIRECTDRAW7) iface, lpdwScanLine);
600}

◆ ThunkDirectDraw_GetVerticalBlankStatus()

HRESULT WINAPI ThunkDirectDraw_GetVerticalBlankStatus ( LPDIRECTDRAW  iface,
LPBOOL  lpbIsInVB 
)

Definition at line 619 of file ddraw_thunk.c.

620{
622
623 return Main_DirectDraw_GetVerticalBlankStatus((LPDIRECTDRAW7) iface, lpbIsInVB);
624}

◆ ThunkDirectDraw_Initialize()

HRESULT WINAPI ThunkDirectDraw_Initialize ( LPDIRECTDRAW  iface,
LPGUID  pGUID 
)

Definition at line 643 of file ddraw_thunk.c.

644{
646
647 if (iface==NULL)
648 {
650 }
651
653}

◆ ThunkDirectDraw_QueryInterface()

HRESULT WINAPI ThunkDirectDraw_QueryInterface ( LPDIRECTDRAW  iface,
REFIID  iid,
LPVOID ppObj 
)

Definition at line 8 of file ddraw_thunk.c.

9{
11
12 return Main_DirectDraw_QueryInterface ((LPDIRECTDRAW7) iface, iid, ppObj);
13}

◆ ThunkDirectDraw_Release()

ULONG WINAPI ThunkDirectDraw_Release ( LPDIRECTDRAW  iface)

Definition at line 57 of file ddraw_thunk.c.

58{
60
62}

◆ ThunkDirectDraw_RestoreDisplayMode()

HRESULT WINAPI ThunkDirectDraw_RestoreDisplayMode ( LPDIRECTDRAW  iface)

Definition at line 683 of file ddraw_thunk.c.

684{
686
688}

◆ ThunkDirectDraw_SetCooperativeLevel()

HRESULT WINAPI ThunkDirectDraw_SetCooperativeLevel ( LPDIRECTDRAW  iface,
HWND  hwnd,
DWORD  dwFlags 
)

Definition at line 707 of file ddraw_thunk.c.

708{
710
712}

◆ ThunkDirectDraw_SetDisplayMode()

HRESULT WINAPI ThunkDirectDraw_SetDisplayMode ( LPDIRECTDRAW  iface,
DWORD  dwWidth,
DWORD  dwHeight,
DWORD  dwBPP 
)

Definition at line 731 of file ddraw_thunk.c.

732{
734
735 return Main_DirectDraw_SetDisplayMode ((LPDIRECTDRAW7) iface, dwWidth, dwHeight, dwBPP, 0, 0);
736}

◆ ThunkDirectDraw_WaitForVerticalBlank()

HRESULT WINAPI ThunkDirectDraw_WaitForVerticalBlank ( LPDIRECTDRAW  iface,
DWORD  dwFlags,
HANDLE  hEvent 
)

Definition at line 755 of file ddraw_thunk.c.

Variable Documentation

◆ DirectDraw2_Vtable

IDirectDraw2Vtbl DirectDraw2_Vtable
Initial value:
=
{
ThunkDirectDraw2_GetAvailableVidMem
}
HRESULT WINAPI ThunkDirectDraw2_GetFourCCCodes(LPDIRECTDRAW2 iface, LPDWORD pNumCodes, LPDWORD pCodes)
Definition: ddraw_thunk.c:529
HRESULT WINAPI ThunkDirectDraw2_GetGDISurface(LPDIRECTDRAW2 iface, LPDIRECTDRAWSURFACE *lplpGDIDDSSurface)
Definition: ddraw_thunk.c:555
ULONG WINAPI ThunkDirectDraw2_AddRef(LPDIRECTDRAW2 iface)
Definition: ddraw_thunk.c:41
HRESULT WINAPI ThunkDirectDraw2_Compact(LPDIRECTDRAW2 iface)
Definition: ddraw_thunk.c:89
HRESULT WINAPI ThunkDirectDraw2_GetVerticalBlankStatus(LPDIRECTDRAW2 iface, LPBOOL lpbIsInVB)
Definition: ddraw_thunk.c:627
HRESULT WINAPI ThunkDirectDraw2_WaitForVerticalBlank(LPDIRECTDRAW2 iface, DWORD dwFlags, HANDLE hEvent)
Definition: ddraw_thunk.c:763
HRESULT WINAPI ThunkDirectDraw2_EnumDisplayModes(LPDIRECTDRAW2 iface, DWORD dwFlags, LPDDSURFACEDESC pDDSD, LPVOID context, LPDDENUMMODESCALLBACK cb)
Definition: ddraw_thunk.c:300
HRESULT WINAPI ThunkDirectDraw2_EnumSurfaces(LPDIRECTDRAW2 iface, DWORD dwFlags, LPDDSURFACEDESC pDDSD, LPVOID context, LPDDENUMSURFACESCALLBACK cb)
Definition: ddraw_thunk.c:372
HRESULT WINAPI ThunkDirectDraw2_CreateClipper(LPDIRECTDRAW2 iface, DWORD dwFlags, LPDIRECTDRAWCLIPPER *ppClipper, IUnknown *pUnkOuter)
Definition: ddraw_thunk.c:113
ULONG WINAPI ThunkDirectDraw2_Release(LPDIRECTDRAW2 iface)
Definition: ddraw_thunk.c:65
HRESULT WINAPI ThunkDirectDraw2_SetDisplayMode(LPDIRECTDRAW2 iface, DWORD dwWidth, DWORD dwHeight, DWORD dwBPP, DWORD d, DWORD e)
Definition: ddraw_thunk.c:739
HRESULT WINAPI ThunkDirectDraw2_CreateSurface(LPDIRECTDRAW2 iface, LPDDSURFACEDESC pDDSD, LPDIRECTDRAWSURFACE *ppSurface, IUnknown *pUnkOuter)
Definition: ddraw_thunk.c:193
HRESULT WINAPI ThunkDirectDraw2_GetCaps(LPDIRECTDRAW2 iface, LPDDCAPS pDDC1, LPDDCAPS pDDC2)
Definition: ddraw_thunk.c:445
HRESULT WINAPI ThunkDirectDraw2_GetDisplayMode(LPDIRECTDRAW2 iface, LPDDSURFACEDESC pDDSD)
Definition: ddraw_thunk.c:487
HRESULT WINAPI ThunkDirectDraw2_SetCooperativeLevel(LPDIRECTDRAW2 iface, HWND hwnd, DWORD dwFlags)
Definition: ddraw_thunk.c:715
HRESULT WINAPI ThunkDirectDraw2_GetScanLine(LPDIRECTDRAW2 iface, LPDWORD lpdwScanLine)
Definition: ddraw_thunk.c:603
HRESULT WINAPI ThunkDirectDraw2_FlipToGDISurface(LPDIRECTDRAW2 iface)
Definition: ddraw_thunk.c:421
HRESULT WINAPI ThunkDirectDraw2_RestoreDisplayMode(LPDIRECTDRAW2 iface)
Definition: ddraw_thunk.c:691
HRESULT WINAPI ThunkDirectDraw2_CreatePalette(LPDIRECTDRAW2 iface, DWORD dwFlags, LPPALETTEENTRY pEntries, LPDIRECTDRAWPALETTE *ppPalette, IUnknown *pUnkOuter)
Definition: ddraw_thunk.c:140
HRESULT WINAPI ThunkDirectDraw2_GetMonitorFrequency(LPDIRECTDRAW2 iface, LPDWORD pdwFreq)
Definition: ddraw_thunk.c:579
HRESULT WINAPI ThunkDirectDraw2_DuplicateSurface(LPDIRECTDRAW2 iface, LPDIRECTDRAWSURFACE src, LPDIRECTDRAWSURFACE *dst)
Definition: ddraw_thunk.c:253
HRESULT WINAPI ThunkDirectDraw2_Initialize(LPDIRECTDRAW2 iface, LPGUID pGUID)
Definition: ddraw_thunk.c:656
HRESULT WINAPI ThunkDirectDraw2_QueryInterface(LPDIRECTDRAW2 iface, REFIID iid, LPVOID *obj)
Definition: ddraw_thunk.c:16

Definition at line 862 of file ddraw_thunk.c.

◆ DirectDraw4_Vtable

IDirectDraw4Vtbl DirectDraw4_Vtable

Definition at line 890 of file ddraw_thunk.c.

◆ DirectDraw_Vtable

IDirectDrawVtbl DirectDraw_Vtable
Initial value:
=
{
}
HRESULT WINAPI ThunkDirectDraw_RestoreDisplayMode(LPDIRECTDRAW iface)
Definition: ddraw_thunk.c:683
ULONG WINAPI ThunkDirectDraw_Release(LPDIRECTDRAW iface)
Definition: ddraw_thunk.c:57
HRESULT WINAPI ThunkDirectDraw_GetVerticalBlankStatus(LPDIRECTDRAW iface, LPBOOL lpbIsInVB)
Definition: ddraw_thunk.c:619
ULONG WINAPI ThunkDirectDraw_AddRef(LPDIRECTDRAW iface)
Definition: ddraw_thunk.c:33
HRESULT WINAPI ThunkDirectDraw_QueryInterface(LPDIRECTDRAW iface, REFIID iid, LPVOID *ppObj)
Definition: ddraw_thunk.c:8
HRESULT WINAPI ThunkDirectDraw_SetCooperativeLevel(LPDIRECTDRAW iface, HWND hwnd, DWORD dwFlags)
Definition: ddraw_thunk.c:707
HRESULT WINAPI ThunkDirectDraw_GetFourCCCodes(LPDIRECTDRAW iface, LPDWORD pNumCodes, LPDWORD pCodes)
Definition: ddraw_thunk.c:520
HRESULT WINAPI ThunkDirectDraw_SetDisplayMode(LPDIRECTDRAW iface, DWORD dwWidth, DWORD dwHeight, DWORD dwBPP)
Definition: ddraw_thunk.c:731
HRESULT WINAPI ThunkDirectDraw_CreateClipper(LPDIRECTDRAW iface, DWORD dwFlags, LPDIRECTDRAWCLIPPER *ppClipper, IUnknown *pUnkOuter)
Definition: ddraw_thunk.c:105
HRESULT WINAPI ThunkDirectDraw_Compact(LPDIRECTDRAW iface)
Definition: ddraw_thunk.c:81
HRESULT WINAPI ThunkDirectDraw_GetScanLine(LPDIRECTDRAW iface, LPDWORD lpdwScanLine)
Definition: ddraw_thunk.c:595
HRESULT WINAPI ThunkDirectDraw_EnumSurfaces(LPDIRECTDRAW iface, DWORD dwFlags, LPDDSURFACEDESC pDDSD, LPVOID context, LPDDENUMSURFACESCALLBACK cb)
Definition: ddraw_thunk.c:343
HRESULT WINAPI ThunkDirectDraw_GetGDISurface(LPDIRECTDRAW iface, LPDIRECTDRAWSURFACE *lplpGDIDDSSurface)
Definition: ddraw_thunk.c:547
HRESULT WINAPI ThunkDirectDraw_GetMonitorFrequency(LPDIRECTDRAW iface, LPDWORD pdwFreq)
Definition: ddraw_thunk.c:571
HRESULT WINAPI ThunkDirectDraw_DuplicateSurface(LPDIRECTDRAW iface, LPDIRECTDRAWSURFACE src, LPDIRECTDRAWSURFACE *dst)
Definition: ddraw_thunk.c:244
HRESULT WINAPI ThunkDirectDraw_GetCaps(LPDIRECTDRAW iface, LPDDCAPS pDDC1, LPDDCAPS pDDC2)
Definition: ddraw_thunk.c:437
HRESULT WINAPI ThunkDirectDraw_Initialize(LPDIRECTDRAW iface, LPGUID pGUID)
Definition: ddraw_thunk.c:643
HRESULT WINAPI ThunkDirectDraw_FlipToGDISurface(LPDIRECTDRAW iface)
Definition: ddraw_thunk.c:413
HRESULT WINAPI ThunkDirectDraw_GetDisplayMode(LPDIRECTDRAW iface, LPDDSURFACEDESC pDDSD)
Definition: ddraw_thunk.c:461
HRESULT WINAPI ThunkDirectDraw_CreateSurface(LPDIRECTDRAW iface, LPDDSURFACEDESC pDDSD, LPDIRECTDRAWSURFACE *ppSurf, IUnknown *pUnkOuter)
Definition: ddraw_thunk.c:160
HRESULT WINAPI ThunkDirectDraw_WaitForVerticalBlank(LPDIRECTDRAW iface, DWORD dwFlags, HANDLE hEvent)
Definition: ddraw_thunk.c:755
HRESULT WINAPI ThunkDirectDraw_EnumDisplayModes(LPDIRECTDRAW iface, DWORD dwFlags, LPDDSURFACEDESC pDDSD, LPVOID context, LPDDENUMMODESCALLBACK cb)
Definition: ddraw_thunk.c:271
HRESULT WINAPI ThunkDirectDraw_CreatePalette(LPDIRECTDRAW iface, DWORD dwFlags, LPPALETTEENTRY pEntries, LPDIRECTDRAWPALETTE *ppPalette, IUnknown *pUnkOuter)
Definition: ddraw_thunk.c:129

Definition at line 835 of file ddraw_thunk.c.