ReactOS 0.4.16-dev-109-gf4cb10f
surface_thunk.c File Reference
#include "../rosdraw.h"
Include dependency graph for surface_thunk.c:

Go to the source code of this file.

Functions

HRESULT WINAPI Thunk_DDrawSurface3_QueryInterface (LPDIRECTDRAWSURFACE3 iface, REFIID iid, LPVOID *ppObj)
 
ULONG WINAPI Thunk_DDrawSurface3_AddRef (LPDIRECTDRAWSURFACE3 iface)
 
ULONG WINAPI Thunk_DDrawSurface3_Release (LPDIRECTDRAWSURFACE3 iface)
 
HRESULT WINAPI Thunk_DDrawSurface3_AddAttachedSurface (LPDIRECTDRAWSURFACE3 iface, LPDIRECTDRAWSURFACE3 pAttach)
 
HRESULT WINAPI Thunk_DDrawSurface3_AddOverlayDirtyRect (LPDIRECTDRAWSURFACE3 iface, LPRECT pRect)
 
HRESULT WINAPI Thunk_DDrawSurface3_Blt (LPDIRECTDRAWSURFACE3 iface, LPRECT rdst, LPDIRECTDRAWSURFACE3 src, LPRECT rsrc, DWORD dwFlags, LPDDBLTFX pFX)
 
HRESULT WINAPI Thunk_DDrawSurface3_BltBatch (LPDIRECTDRAWSURFACE3 iface, LPDDBLTBATCH pBatch, DWORD dwCount, DWORD dwFlags)
 
HRESULT WINAPI Thunk_DDrawSurface3_BltFast (LPDIRECTDRAWSURFACE3 iface, DWORD dstx, DWORD dsty, LPDIRECTDRAWSURFACE3 src, LPRECT rsrc, DWORD dwTrans)
 
HRESULT WINAPI Thunk_DDrawSurface3_DeleteAttachedSurface (LPDIRECTDRAWSURFACE3 iface, DWORD dwFlags, LPDIRECTDRAWSURFACE3 pAttached)
 
HRESULT WINAPI Thunk_DDrawSurface3_EnumAttachedSurfaces (LPDIRECTDRAWSURFACE3 iface, LPVOID context, LPDDENUMSURFACESCALLBACK cb)
 
HRESULT WINAPI Thunk_DDrawSurface3_EnumOverlayZOrders (LPDIRECTDRAWSURFACE3 iface, DWORD dwFlags, LPVOID context, LPDDENUMSURFACESCALLBACK cb)
 
HRESULT WINAPI Thunk_DDrawSurface3_Flip (LPDIRECTDRAWSURFACE3 iface, LPDIRECTDRAWSURFACE3 lpDDSurfaceTargetOverride, DWORD dwFlags)
 
HRESULT WINAPI Thunk_DDrawSurface3_GetAttachedSurface (LPDIRECTDRAWSURFACE3 iface, LPDDSCAPS pCaps, LPDIRECTDRAWSURFACE3 *ppAttached)
 
HRESULT WINAPI Thunk_DDrawSurface3_GetBltStatus (LPDIRECTDRAWSURFACE3 iface, DWORD dwFlags)
 
HRESULT WINAPI Thunk_DDrawSurface3_GetCaps (LPDIRECTDRAWSURFACE3 iface, LPDDSCAPS pCaps)
 
HRESULT WINAPI Thunk_DDrawSurface3_GetClipper (LPDIRECTDRAWSURFACE3 iface, LPDIRECTDRAWCLIPPER *ppClipper)
 
HRESULT WINAPI Thunk_DDrawSurface3_GetColorKey (LPDIRECTDRAWSURFACE3 iface, DWORD dwFlags, LPDDCOLORKEY pCKey)
 
HRESULT WINAPI Thunk_DDrawSurface3_GetDC (LPDIRECTDRAWSURFACE3 iface, HDC *phDC)
 
HRESULT WINAPI Thunk_DDrawSurface3_GetFlipStatus (LPDIRECTDRAWSURFACE3 iface, DWORD dwFlags)
 
HRESULT WINAPI Thunk_DDrawSurface3_GetOverlayPosition (LPDIRECTDRAWSURFACE3 iface, LPLONG pX, LPLONG pY)
 
HRESULT WINAPI Thunk_DDrawSurface3_GetPalette (LPDIRECTDRAWSURFACE3 iface, LPDIRECTDRAWPALETTE *ppPalette)
 
HRESULT WINAPI Thunk_DDrawSurface3_GetPixelFormat (LPDIRECTDRAWSURFACE3 iface, LPDDPIXELFORMAT pDDPixelFormat)
 
HRESULT WINAPI Thunk_DDrawSurface3_GetSurfaceDesc (LPDIRECTDRAWSURFACE3 iface, LPDDSURFACEDESC pDDSD)
 
HRESULT WINAPI Thunk_DDrawSurface3_Initialize (LPDIRECTDRAWSURFACE3 iface, LPDIRECTDRAW pDD, LPDDSURFACEDESC pDDSD)
 
HRESULT WINAPI Thunk_DDrawSurface3_IsLost (LPDIRECTDRAWSURFACE3 iface)
 
HRESULT WINAPI Thunk_DDrawSurface3_Lock (LPDIRECTDRAWSURFACE3 iface, LPRECT pRect, LPDDSURFACEDESC pDDSD, DWORD dwFlags, HANDLE events)
 
HRESULT WINAPI Thunk_DDrawSurface3_ReleaseDC (LPDIRECTDRAWSURFACE3 iface, HDC hDC)
 
HRESULT WINAPI Thunk_DDrawSurface3_Restore (LPDIRECTDRAWSURFACE3 iface)
 
HRESULT WINAPI Thunk_DDrawSurface3_SetClipper (LPDIRECTDRAWSURFACE3 iface, LPDIRECTDRAWCLIPPER pDDClipper)
 
HRESULT WINAPI Thunk_DDrawSurface3_SetColorKey (LPDIRECTDRAWSURFACE3 iface, DWORD dwFlags, LPDDCOLORKEY pCKey)
 
HRESULT WINAPI Thunk_DDrawSurface3_SetOverlayPosition (LPDIRECTDRAWSURFACE3 iface, LONG X, LONG Y)
 
HRESULT WINAPI Thunk_DDrawSurface3_SetPalette (LPDIRECTDRAWSURFACE3 iface, LPDIRECTDRAWPALETTE pPalette)
 
HRESULT WINAPI Thunk_DDrawSurface3_Unlock (LPVOID iface, LPVOID pRect)
 
HRESULT WINAPI Thunk_DDrawSurface3_UpdateOverlay (LPDIRECTDRAWSURFACE3 iface, LPRECT pSrcRect, LPDIRECTDRAWSURFACE3 pDstSurface, LPRECT pDstRect, DWORD dwFlags, LPDDOVERLAYFX pFX)
 
HRESULT WINAPI Thunk_DDrawSurface3_UpdateOverlayDisplay (LPDIRECTDRAWSURFACE3 iface, DWORD dwFlags)
 
HRESULT WINAPI Thunk_DDrawSurface3_UpdateOverlayZOrder (LPDIRECTDRAWSURFACE3 iface, DWORD dwFlags, LPDIRECTDRAWSURFACE3 pSurfReference)
 
HRESULT WINAPI Thunk_DDrawSurface3_GetDDInterface (LPDIRECTDRAWSURFACE3 iface, LPVOID *ppDD)
 
HRESULT WINAPI Thunk_DDrawSurface3_PageLock (LPDIRECTDRAWSURFACE3 iface, DWORD dwFlags)
 
HRESULT WINAPI Thunk_DDrawSurface3_PageUnlock (LPDIRECTDRAWSURFACE3 iface, DWORD dwFlags)
 
HRESULT WINAPI Thunk_DDrawSurface3_SetSurfaceDesc (LPDIRECTDRAWSURFACE3 iface, LPDDSURFACEDESC pDDSD, DWORD dwFlags)
 

Variables

IDirectDrawSurface3Vtbl DirectDrawSurface3_VTable
 

Function Documentation

◆ Thunk_DDrawSurface3_AddAttachedSurface()

HRESULT WINAPI Thunk_DDrawSurface3_AddAttachedSurface ( LPDIRECTDRAWSURFACE3  iface,
LPDIRECTDRAWSURFACE3  pAttach 
)

Definition at line 33 of file surface_thunk.c.

34{
36
38}
HRESULT WINAPI Main_DDrawSurface_AddAttachedSurface(LPDDRAWI_DDRAWSURFACE_INT iface, LPDDRAWI_DDRAWSURFACE_INT pAttach)
Definition: surface_main.c:571
DWORD * LPDIRECTDRAWSURFACE7
Definition: vmrender.idl:7
#define DX_WINDBG_trace()
Definition: rosdraw.h:262

◆ Thunk_DDrawSurface3_AddOverlayDirtyRect()

HRESULT WINAPI Thunk_DDrawSurface3_AddOverlayDirtyRect ( LPDIRECTDRAWSURFACE3  iface,
LPRECT  pRect 
)

Definition at line 41 of file surface_thunk.c.

42{
44
46}
HRESULT WINAPI Main_DDrawSurface_AddOverlayDirtyRect(LPDDRAWI_DDRAWSURFACE_INT iface, LPRECT pRect)
Definition: surface_stubs.c:17

◆ Thunk_DDrawSurface3_AddRef()

ULONG WINAPI Thunk_DDrawSurface3_AddRef ( LPDIRECTDRAWSURFACE3  iface)

Definition at line 17 of file surface_thunk.c.

18{
20
22}
ULONG WINAPI Main_DDrawSurface_AddRef(LPDDRAWI_DDRAWSURFACE_INT)
Definition: surface_main.c:40

◆ Thunk_DDrawSurface3_Blt()

HRESULT WINAPI Thunk_DDrawSurface3_Blt ( LPDIRECTDRAWSURFACE3  iface,
LPRECT  rdst,
LPDIRECTDRAWSURFACE3  src,
LPRECT  rsrc,
DWORD  dwFlags,
LPDDBLTFX  pFX 
)

Definition at line 49 of file surface_thunk.c.

52{
54
56}
HRESULT WINAPI Main_DDrawSurface_Blt(LPDDRAWI_DDRAWSURFACE_INT, LPRECT, LPDDRAWI_DDRAWSURFACE_INT, LPRECT, DWORD, LPDDBLTFX)
Definition: surface_main.c:289
GLenum src
Definition: glext.h:6340
_In_ PCCERT_CONTEXT _In_ DWORD dwFlags
Definition: wincrypt.h:1176

◆ Thunk_DDrawSurface3_BltBatch()

HRESULT WINAPI Thunk_DDrawSurface3_BltBatch ( LPDIRECTDRAWSURFACE3  iface,
LPDDBLTBATCH  pBatch,
DWORD  dwCount,
DWORD  dwFlags 
)

Definition at line 59 of file surface_thunk.c.

60{
62
63 return Main_DDrawSurface_BltBatch((LPDIRECTDRAWSURFACE7) iface, pBatch, dwCount, dwFlags);
64}
HRESULT WINAPI Main_DDrawSurface_BltBatch(LPDDRAWI_DDRAWSURFACE_INT, LPDDBLTBATCH, DWORD, DWORD)
Definition: surface_stubs.c:45

◆ Thunk_DDrawSurface3_BltFast()

HRESULT WINAPI Thunk_DDrawSurface3_BltFast ( LPDIRECTDRAWSURFACE3  iface,
DWORD  dstx,
DWORD  dsty,
LPDIRECTDRAWSURFACE3  src,
LPRECT  rsrc,
DWORD  dwTrans 
)

Definition at line 67 of file surface_thunk.c.

69{
71
72 return Main_DDrawSurface_BltFast((LPDIRECTDRAWSURFACE7) iface, dstx, dsty,
73 (LPDIRECTDRAWSURFACE7)src, rsrc, dwTrans);
74}
HRESULT WINAPI Main_DDrawSurface_BltFast(LPDDRAWI_DDRAWSURFACE_INT, DWORD, DWORD, LPDDRAWI_DDRAWSURFACE_INT, LPRECT, DWORD)
Definition: surface_stubs.c:26

◆ Thunk_DDrawSurface3_DeleteAttachedSurface()

HRESULT WINAPI Thunk_DDrawSurface3_DeleteAttachedSurface ( LPDIRECTDRAWSURFACE3  iface,
DWORD  dwFlags,
LPDIRECTDRAWSURFACE3  pAttached 
)

Definition at line 77 of file surface_thunk.c.

78{
80
82 (LPDIRECTDRAWSURFACE7) pAttached);
83}
HRESULT WINAPI Main_DDrawSurface_DeleteAttachedSurface(LPDDRAWI_DDRAWSURFACE_INT, DWORD, LPDDRAWI_DDRAWSURFACE_INT)
Definition: surface_stubs.c:63

◆ Thunk_DDrawSurface3_EnumAttachedSurfaces()

HRESULT WINAPI Thunk_DDrawSurface3_EnumAttachedSurfaces ( LPDIRECTDRAWSURFACE3  iface,
LPVOID  context,
LPDDENUMSURFACESCALLBACK  cb 
)

Definition at line 88 of file surface_thunk.c.

91{
93
96}
HRESULT WINAPI Main_DDrawSurface_EnumAttachedSurfaces(LPDDRAWI_DDRAWSURFACE_INT, LPVOID, LPDDENUMSURFACESCALLBACK7)
Definition: surface_stubs.c:73
static HMODULE MODULEINFO DWORD cb
Definition: module.c:33
HRESULT(WINAPI * LPDDENUMSURFACESCALLBACK7)(LPDIRECTDRAWSURFACE7, LPDDSURFACEDESC2, LPVOID)
Definition: ddraw.h:1262
Definition: http.c:7252

◆ Thunk_DDrawSurface3_EnumOverlayZOrders()

HRESULT WINAPI Thunk_DDrawSurface3_EnumOverlayZOrders ( LPDIRECTDRAWSURFACE3  iface,
DWORD  dwFlags,
LPVOID  context,
LPDDENUMSURFACESCALLBACK  cb 
)

Definition at line 99 of file surface_thunk.c.

102{
104
107}
HRESULT WINAPI Main_DDrawSurface_EnumOverlayZOrders(LPDDRAWI_DDRAWSURFACE_INT, DWORD, LPVOID, LPDDENUMSURFACESCALLBACK7)
Definition: surface_stubs.c:83

◆ Thunk_DDrawSurface3_Flip()

HRESULT WINAPI Thunk_DDrawSurface3_Flip ( LPDIRECTDRAWSURFACE3  iface,
LPDIRECTDRAWSURFACE3  lpDDSurfaceTargetOverride,
DWORD  dwFlags 
)

Definition at line 110 of file surface_thunk.c.

112{
114
115 return Main_DDrawSurface_Flip( (LPDIRECTDRAWSURFACE7)iface, (LPDIRECTDRAWSURFACE7) lpDDSurfaceTargetOverride,
116 dwFlags);
117}
HRESULT WINAPI Main_DDrawSurface_Flip(LPDDRAWI_DDRAWSURFACE_INT, LPDDRAWI_DDRAWSURFACE_INT, DWORD)
Definition: surface_stubs.c:93

◆ Thunk_DDrawSurface3_GetAttachedSurface()

HRESULT WINAPI Thunk_DDrawSurface3_GetAttachedSurface ( LPDIRECTDRAWSURFACE3  iface,
LPDDSCAPS  pCaps,
LPDIRECTDRAWSURFACE3 ppAttached 
)

Definition at line 120 of file surface_thunk.c.

123{
124 DDSCAPS2 caps;
126
128
129 ZeroMemory(&caps,sizeof(DDSCAPS2));
130
131 if (pCaps != NULL)
132 {
133 caps.dwCaps = pCaps->dwCaps;
134
136 &caps, (LPDIRECTDRAWSURFACE7 *) ppAttached);
137 pCaps->dwCaps = caps.dwCaps;
138 }
139 else
140 {
142 NULL, (LPDIRECTDRAWSURFACE7 *) ppAttached);
143 }
144
145 return hr;
146}
#define NULL
Definition: types.h:112
HRESULT WINAPI Main_DDrawSurface_GetAttachedSurface(LPDDRAWI_DDRAWSURFACE_INT, LPDDSCAPS2, LPDDRAWI_DDRAWSURFACE_INT *)
Definition: surface_main.c:584
#define DDERR_GENERIC
Definition: ddraw.h:72
HRESULT hr
Definition: shlfolder.c:183
DWORD dwCaps
Definition: ddraw.h:732
DWORD dwCaps
Definition: ddraw.h:727
#define ZeroMemory
Definition: winbase.h:1712

◆ Thunk_DDrawSurface3_GetBltStatus()

HRESULT WINAPI Thunk_DDrawSurface3_GetBltStatus ( LPDIRECTDRAWSURFACE3  iface,
DWORD  dwFlags 
)

Definition at line 149 of file surface_thunk.c.

150{
152
154}
HRESULT WINAPI Main_DDrawSurface_GetBltStatus(LPDDRAWI_DDRAWSURFACE_INT, DWORD dwFlags)
Definition: surface_main.c:600

◆ Thunk_DDrawSurface3_GetCaps()

HRESULT WINAPI Thunk_DDrawSurface3_GetCaps ( LPDIRECTDRAWSURFACE3  iface,
LPDDSCAPS  pCaps 
)

Definition at line 157 of file surface_thunk.c.

158{
159 DDSCAPS2 caps;
161
163
164 ZeroMemory(&caps,sizeof(DDSCAPS2));
165
166 if (pCaps != NULL)
167 {
169 pCaps->dwCaps = caps.dwCaps;
170 }
171 else
172 {
174 }
175
176 return hr;
177}
HRESULT WINAPI Main_DDrawSurface_GetCaps(LPDDRAWI_DDRAWSURFACE_INT, LPDDSCAPS2 pCaps)
Definition: surface_main.c:614

◆ Thunk_DDrawSurface3_GetClipper()

HRESULT WINAPI Thunk_DDrawSurface3_GetClipper ( LPDIRECTDRAWSURFACE3  iface,
LPDIRECTDRAWCLIPPER ppClipper 
)

Definition at line 180 of file surface_thunk.c.

182{
184
185 return Main_DDrawSurface_GetClipper((LPDIRECTDRAWSURFACE7) iface, ppClipper);
186}
HRESULT WINAPI Main_DDrawSurface_GetClipper(LPDDRAWI_DDRAWSURFACE_INT, LPDIRECTDRAWCLIPPER *)
Definition: surface_main.c:637

◆ Thunk_DDrawSurface3_GetColorKey()

HRESULT WINAPI Thunk_DDrawSurface3_GetColorKey ( LPDIRECTDRAWSURFACE3  iface,
DWORD  dwFlags,
LPDDCOLORKEY  pCKey 
)

Definition at line 189 of file surface_thunk.c.

191{
193
195}
HRESULT WINAPI Main_DDrawSurface_GetColorKey(LPDDRAWI_DDRAWSURFACE_INT, DWORD, LPDDCOLORKEY)

◆ Thunk_DDrawSurface3_GetDC()

HRESULT WINAPI Thunk_DDrawSurface3_GetDC ( LPDIRECTDRAWSURFACE3  iface,
HDC phDC 
)

Definition at line 198 of file surface_thunk.c.

199{
201
202 return Main_DDrawSurface_GetDC((LPDIRECTDRAWSURFACE7) iface, phDC);
203}
HRESULT WINAPI Main_DDrawSurface_GetDC(LPDDRAWI_DDRAWSURFACE_INT, HDC *)
Definition: surface_main.c:694

◆ Thunk_DDrawSurface3_GetDDInterface()

HRESULT WINAPI Thunk_DDrawSurface3_GetDDInterface ( LPDIRECTDRAWSURFACE3  iface,
LPVOID ppDD 
)

Definition at line 430 of file surface_thunk.c.

431{
433
435}
HRESULT WINAPI Main_DDrawSurface_GetDDInterface(LPDDRAWI_DDRAWSURFACE_INT, LPVOID *)

◆ Thunk_DDrawSurface3_GetFlipStatus()

HRESULT WINAPI Thunk_DDrawSurface3_GetFlipStatus ( LPDIRECTDRAWSURFACE3  iface,
DWORD  dwFlags 
)

Definition at line 206 of file surface_thunk.c.

207{
209
211}
HRESULT WINAPI Main_DDrawSurface_GetFlipStatus(LPDDRAWI_DDRAWSURFACE_INT, DWORD)

◆ Thunk_DDrawSurface3_GetOverlayPosition()

HRESULT WINAPI Thunk_DDrawSurface3_GetOverlayPosition ( LPDIRECTDRAWSURFACE3  iface,
LPLONG  pX,
LPLONG  pY 
)

Definition at line 214 of file surface_thunk.c.

215{
217
219}
HRESULT WINAPI Main_DDrawSurface_GetOverlayPosition(LPDDRAWI_DDRAWSURFACE_INT, LPLONG, LPLONG)

◆ Thunk_DDrawSurface3_GetPalette()

HRESULT WINAPI Thunk_DDrawSurface3_GetPalette ( LPDIRECTDRAWSURFACE3  iface,
LPDIRECTDRAWPALETTE ppPalette 
)

Definition at line 222 of file surface_thunk.c.

224{
226
227 return Main_DDrawSurface_GetPalette((LPDIRECTDRAWSURFACE7) iface, ppPalette);
228}
HRESULT WINAPI Main_DDrawSurface_GetPalette(LPDDRAWI_DDRAWSURFACE_INT, LPDIRECTDRAWPALETTE *)

◆ Thunk_DDrawSurface3_GetPixelFormat()

HRESULT WINAPI Thunk_DDrawSurface3_GetPixelFormat ( LPDIRECTDRAWSURFACE3  iface,
LPDDPIXELFORMAT  pDDPixelFormat 
)

Definition at line 231 of file surface_thunk.c.

233{
235
236 return Main_DDrawSurface_GetPixelFormat((LPDIRECTDRAWSURFACE7) iface, pDDPixelFormat);
237}
HRESULT WINAPI Main_DDrawSurface_GetPixelFormat(LPDDRAWI_DDRAWSURFACE_INT, LPDDPIXELFORMAT)
Definition: surface_main.c:716

◆ Thunk_DDrawSurface3_GetSurfaceDesc()

HRESULT WINAPI Thunk_DDrawSurface3_GetSurfaceDesc ( LPDIRECTDRAWSURFACE3  iface,
LPDDSURFACEDESC  pDDSD 
)

Definition at line 240 of file surface_thunk.c.

242{
243 HRESULT retValue = DDERR_GENERIC;
244
246
247 if (pDDSD != NULL)
248 {
249 DDSURFACEDESC2 pDDSD2;
250 ZeroMemory(&pDDSD2,sizeof(DDSURFACEDESC2));
251 memcpy(&pDDSD2, pDDSD, sizeof(DDSURFACEDESC));
252 pDDSD2.dwSize = sizeof(DDSURFACEDESC2);
253 retValue = Main_DDrawSurface_GetSurfaceDesc((LPDIRECTDRAWSURFACE7) iface, &pDDSD2);
254 memcpy(pDDSD, &pDDSD2, sizeof(DDSURFACEDESC));
255 pDDSD->dwSize = sizeof(DDSURFACEDESC);
256 }
257 else
258 {
260 }
261
262 return retValue;
263}
void DDSURFACEDESC
Definition: amvideo.idl:25
HRESULT WINAPI Main_DDrawSurface_GetSurfaceDesc(LPDDRAWI_DDRAWSURFACE_INT, LPDDSURFACEDESC2)
Definition: surface_main.c:741
#define memcpy(s1, s2, n)
Definition: mkisofs.h:878
struct _DDSURFACEDESC2 DDSURFACEDESC2
DWORD dwSize
Definition: ddraw.h:1152

◆ Thunk_DDrawSurface3_Initialize()

HRESULT WINAPI Thunk_DDrawSurface3_Initialize ( LPDIRECTDRAWSURFACE3  iface,
LPDIRECTDRAW  pDD,
LPDDSURFACEDESC  pDDSD 
)

Definition at line 266 of file surface_thunk.c.

268{
269 HRESULT retValue = DDERR_GENERIC;
270 DDSURFACEDESC2 pDDSD2;
271
273
274 ZeroMemory(&pDDSD2,sizeof(DDSURFACEDESC2));
275
276 if (pDDSD != NULL)
277 {
278 DDSURFACEDESC2 pDDSD2;
279 ZeroMemory(&pDDSD2,sizeof(DDSURFACEDESC2));
280 memcpy(&pDDSD2, pDDSD, sizeof(DDSURFACEDESC));
281 pDDSD2.dwSize = sizeof(DDSURFACEDESC2);
282 retValue = Main_DDrawSurface_Initialize((LPDIRECTDRAWSURFACE7) iface, pDD, &pDDSD2);
283 memcpy(pDDSD, &pDDSD2, sizeof(DDSURFACEDESC));
284 pDDSD->dwSize = sizeof(DDSURFACEDESC);
285 }
286 else
287 {
288 retValue = Main_DDrawSurface_Initialize ((LPDIRECTDRAWSURFACE7) iface, pDD, NULL);
289
290 }
291
292 return retValue;
293}
HRESULT WINAPI Main_DDrawSurface_Initialize(LPDDRAWI_DDRAWSURFACE_INT, LPDIRECTDRAW, LPDDSURFACEDESC2)
Definition: surface_main.c:35

◆ Thunk_DDrawSurface3_IsLost()

HRESULT WINAPI Thunk_DDrawSurface3_IsLost ( LPDIRECTDRAWSURFACE3  iface)

Definition at line 296 of file surface_thunk.c.

297{
299
301}
HRESULT WINAPI Main_DDrawSurface_IsLost(LPDDRAWI_DDRAWSURFACE_INT)

◆ Thunk_DDrawSurface3_Lock()

HRESULT WINAPI Thunk_DDrawSurface3_Lock ( LPDIRECTDRAWSURFACE3  iface,
LPRECT  pRect,
LPDDSURFACEDESC  pDDSD,
DWORD  dwFlags,
HANDLE  events 
)

Definition at line 304 of file surface_thunk.c.

306{
307
308 HRESULT retValue = DDERR_GENERIC;
309 DDSURFACEDESC2 pDDSD2;
310
312
313 ZeroMemory(&pDDSD2,sizeof(DDSURFACEDESC2));
314
315 if (pDDSD != NULL)
316 {
317 DDSURFACEDESC2 pDDSD2;
318 ZeroMemory(&pDDSD2,sizeof(DDSURFACEDESC2));
319 memcpy(&pDDSD2, pDDSD, sizeof(DDSURFACEDESC));
320 pDDSD2.dwSize = sizeof(DDSURFACEDESC2);
321 retValue = Main_DDrawSurface_Lock ( (LPDIRECTDRAWSURFACE7) iface, pRect, &pDDSD2, dwFlags, events);
322 memcpy(pDDSD, &pDDSD2, sizeof(DDSURFACEDESC));
323 pDDSD->dwSize = sizeof(DDSURFACEDESC);
324 }
325 else
326 {
327 retValue = Main_DDrawSurface_Lock ( (LPDIRECTDRAWSURFACE7) iface, pRect, NULL, dwFlags, events);
328 }
329
330 return retValue;
331
332}
HRESULT WINAPI Main_DDrawSurface_Lock(LPDDRAWI_DDRAWSURFACE_INT, LPRECT, LPDDSURFACEDESC2, DWORD, HANDLE)
Definition: surface_main.c:418
HANDLE events[2]
Definition: event.c:4

◆ Thunk_DDrawSurface3_PageLock()

HRESULT WINAPI Thunk_DDrawSurface3_PageLock ( LPDIRECTDRAWSURFACE3  iface,
DWORD  dwFlags 
)

Definition at line 438 of file surface_thunk.c.

439{
441
443}
HRESULT WINAPI Main_DDrawSurface_PageLock(LPDDRAWI_DDRAWSURFACE_INT, DWORD)

◆ Thunk_DDrawSurface3_PageUnlock()

HRESULT WINAPI Thunk_DDrawSurface3_PageUnlock ( LPDIRECTDRAWSURFACE3  iface,
DWORD  dwFlags 
)

Definition at line 446 of file surface_thunk.c.

447{
449
451}
HRESULT WINAPI Main_DDrawSurface_PageUnlock(LPDDRAWI_DDRAWSURFACE_INT, DWORD)

◆ Thunk_DDrawSurface3_QueryInterface()

HRESULT WINAPI Thunk_DDrawSurface3_QueryInterface ( LPDIRECTDRAWSURFACE3  iface,
REFIID  iid,
LPVOID ppObj 
)

Definition at line 8 of file surface_thunk.c.

10{
12
14}
HRESULT WINAPI Main_DDrawSurface_QueryInterface(LPDDRAWI_DDRAWSURFACE_INT, REFIID, LPVOID *)
Definition: surface_main.c:60

◆ Thunk_DDrawSurface3_Release()

ULONG WINAPI Thunk_DDrawSurface3_Release ( LPDIRECTDRAWSURFACE3  iface)

Definition at line 25 of file surface_thunk.c.

26{
28
30}
ULONG WINAPI Main_DDrawSurface_Release(LPDDRAWI_DDRAWSURFACE_INT)
Definition: surface_main.c:264

◆ Thunk_DDrawSurface3_ReleaseDC()

HRESULT WINAPI Thunk_DDrawSurface3_ReleaseDC ( LPDIRECTDRAWSURFACE3  iface,
HDC  hDC 
)

Definition at line 335 of file surface_thunk.c.

336{
338
340}
static HDC hDC
Definition: 3dtext.c:33
HRESULT WINAPI Main_DDrawSurface_ReleaseDC(LPDDRAWI_DDRAWSURFACE_INT, HDC)
Definition: surface_main.c:841

◆ Thunk_DDrawSurface3_Restore()

HRESULT WINAPI Thunk_DDrawSurface3_Restore ( LPDIRECTDRAWSURFACE3  iface)

Definition at line 343 of file surface_thunk.c.

344{
346
348}
HRESULT WINAPI Main_DDrawSurface_Restore(LPDDRAWI_DDRAWSURFACE_INT)
Definition: surface_stubs.c:36

◆ Thunk_DDrawSurface3_SetClipper()

HRESULT WINAPI Thunk_DDrawSurface3_SetClipper ( LPDIRECTDRAWSURFACE3  iface,
LPDIRECTDRAWCLIPPER  pDDClipper 
)

Definition at line 351 of file surface_thunk.c.

352{
354
355 return Main_DDrawSurface_SetClipper ((LPDIRECTDRAWSURFACE7) iface, pDDClipper);
356}
HRESULT WINAPI Main_DDrawSurface_SetClipper(LPDDRAWI_DDRAWSURFACE_INT, LPDIRECTDRAWCLIPPER)
Definition: surface_main.c:664

◆ Thunk_DDrawSurface3_SetColorKey()

HRESULT WINAPI Thunk_DDrawSurface3_SetColorKey ( LPDIRECTDRAWSURFACE3  iface,
DWORD  dwFlags,
LPDDCOLORKEY  pCKey 
)

Definition at line 359 of file surface_thunk.c.

361{
363
365}
HRESULT WINAPI Main_DDrawSurface_SetColorKey(LPDDRAWI_DDRAWSURFACE_INT, DWORD, LPDDCOLORKEY)
Definition: surface_main.c:867

◆ Thunk_DDrawSurface3_SetOverlayPosition()

HRESULT WINAPI Thunk_DDrawSurface3_SetOverlayPosition ( LPDIRECTDRAWSURFACE3  iface,
LONG  X,
LONG  Y 
)

Definition at line 368 of file surface_thunk.c.

369{
371
373}
HRESULT WINAPI Main_DDrawSurface_SetOverlayPosition(LPDDRAWI_DDRAWSURFACE_INT, LONG, LONG)
Definition: surface_main.c:901
#define Y(I)

◆ Thunk_DDrawSurface3_SetPalette()

HRESULT WINAPI Thunk_DDrawSurface3_SetPalette ( LPDIRECTDRAWSURFACE3  iface,
LPDIRECTDRAWPALETTE  pPalette 
)

Definition at line 376 of file surface_thunk.c.

378{
380
381 return Main_DDrawSurface_SetPalette ((LPDIRECTDRAWSURFACE7) iface, pPalette);
382}
HRESULT WINAPI Main_DDrawSurface_SetPalette(LPDDRAWI_DDRAWSURFACE_INT, LPDIRECTDRAWPALETTE)

◆ Thunk_DDrawSurface3_SetSurfaceDesc()

HRESULT WINAPI Thunk_DDrawSurface3_SetSurfaceDesc ( LPDIRECTDRAWSURFACE3  iface,
LPDDSURFACEDESC  pDDSD,
DWORD  dwFlags 
)

Definition at line 454 of file surface_thunk.c.

456{
457 HRESULT retValue = DDERR_GENERIC;
458
460
461 if (pDDSD != NULL)
462 {
463 DDSURFACEDESC2 pDDSD2;
464 ZeroMemory(&pDDSD2,sizeof(DDSURFACEDESC2));
465 memcpy(&pDDSD2, pDDSD, sizeof(DDSURFACEDESC));
466 pDDSD2.dwSize = sizeof(DDSURFACEDESC2);
468 memcpy(pDDSD, &pDDSD2, sizeof(DDSURFACEDESC));
469 pDDSD->dwSize = sizeof(DDSURFACEDESC);
470 }
471 else
472 {
474 }
475
476
477 return retValue;
478}
HRESULT WINAPI Main_DDrawSurface_SetSurfaceDesc(LPDDRAWI_DDRAWSURFACE_INT, DDSURFACEDESC2 *, DWORD)

◆ Thunk_DDrawSurface3_Unlock()

HRESULT WINAPI Thunk_DDrawSurface3_Unlock ( LPVOID  iface,
LPVOID  pRect 
)

Definition at line 394 of file surface_thunk.c.

395{
397 DX_STUB;
398}
#define DX_STUB
Definition: rosdraw.h:224

◆ Thunk_DDrawSurface3_UpdateOverlay()

HRESULT WINAPI Thunk_DDrawSurface3_UpdateOverlay ( LPDIRECTDRAWSURFACE3  iface,
LPRECT  pSrcRect,
LPDIRECTDRAWSURFACE3  pDstSurface,
LPRECT  pDstRect,
DWORD  dwFlags,
LPDDOVERLAYFX  pFX 
)

Definition at line 401 of file surface_thunk.c.

403{
404
406
407 return Main_DDrawSurface_UpdateOverlay ( (LPDIRECTDRAWSURFACE7) iface, pSrcRect,
408 (LPDIRECTDRAWSURFACE7) pDstSurface, pDstRect, dwFlags, pFX);
409}
HRESULT WINAPI Main_DDrawSurface_UpdateOverlay(LPDDRAWI_DDRAWSURFACE_INT, LPRECT, LPDDRAWI_DDRAWSURFACE_INT, LPRECT, DWORD, LPDDOVERLAYFX)

◆ Thunk_DDrawSurface3_UpdateOverlayDisplay()

HRESULT WINAPI Thunk_DDrawSurface3_UpdateOverlayDisplay ( LPDIRECTDRAWSURFACE3  iface,
DWORD  dwFlags 
)

Definition at line 412 of file surface_thunk.c.

413{
415
417}
HRESULT WINAPI Main_DDrawSurface_UpdateOverlayDisplay(LPDDRAWI_DDRAWSURFACE_INT, DWORD)

◆ Thunk_DDrawSurface3_UpdateOverlayZOrder()

HRESULT WINAPI Thunk_DDrawSurface3_UpdateOverlayZOrder ( LPDIRECTDRAWSURFACE3  iface,
DWORD  dwFlags,
LPDIRECTDRAWSURFACE3  pSurfReference 
)

Definition at line 420 of file surface_thunk.c.

423{
426 (LPDIRECTDRAWSURFACE7) pSurfReference);
427}
HRESULT WINAPI Main_DDrawSurface_UpdateOverlayZOrder(LPDDRAWI_DDRAWSURFACE_INT, DWORD, LPDDRAWI_DDRAWSURFACE_INT)

Variable Documentation

◆ DirectDrawSurface3_VTable

IDirectDrawSurface3Vtbl DirectDrawSurface3_VTable