ReactOS 0.4.15-dev-8135-g1bc6c90
ddraw_thunk.c
Go to the documentation of this file.
1
2
3#include "../rosdraw.h"
4
5
6
9{
11
12 return Main_DirectDraw_QueryInterface ((LPDIRECTDRAW7) iface, iid, ppObj);
13}
14
17{
19
21}
22
23
26{
28
29 return Main_DirectDraw_QueryInterface ((LPDIRECTDRAW7) iface, iid, ppObj);
30}
31
34{
36
38}
39
42{
44
46}
47
50{
52
54}
55
58{
60
62}
63
66{
68
70}
71
74{
76
78}
79
82{
84
86}
87
90{
92
94}
95
98{
100
101 return Main_DirectDraw_Compact((LPDIRECTDRAW7) iface) ;
102}
103
106{
108
109 return Main_DirectDraw_CreateClipper( (LPDIRECTDRAW7) iface, dwFlags, ppClipper, pUnkOuter);
110}
111
114{
116
117 return Main_DirectDraw_CreateClipper( (LPDIRECTDRAW7) iface, dwFlags, ppClipper, pUnkOuter);
118}
119
122{
124
125 return Main_DirectDraw_CreateClipper( (LPDIRECTDRAW7) iface, dwFlags, ppClipper, pUnkOuter);
126}
127
130 LPPALETTEENTRY pEntries,
131 LPDIRECTDRAWPALETTE *ppPalette,
132 IUnknown *pUnkOuter)
133{
135
136 return Main_DirectDraw_CreatePalette( (LPDIRECTDRAW7) iface, dwFlags, pEntries, ppPalette, pUnkOuter);
137}
138
141 LPPALETTEENTRY pEntries,
142 LPDIRECTDRAWPALETTE *ppPalette,
143 IUnknown *pUnkOuter)
144{
146
147 return Main_DirectDraw_CreatePalette( (LPDIRECTDRAW7) iface, dwFlags, pEntries, ppPalette, pUnkOuter);
148}
149
152 LPDIRECTDRAWPALETTE *ppPalette, IUnknown *pUnkOuter)
153{
155
156 return Main_DirectDraw_CreatePalette( (LPDIRECTDRAW7) iface, dwFlags, pEntries, ppPalette, pUnkOuter);
157}
158
161 LPDIRECTDRAWSURFACE *ppSurf,
162 IUnknown *pUnkOuter)
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}
191
194 LPDIRECTDRAWSURFACE *ppSurface, IUnknown *pUnkOuter)
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}
223
226 LPDIRECTDRAWSURFACE4 *ppSurface, IUnknown *pUnkOuter)
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}
242
245{
247
250}
251
254{
256
259}
260
263{
265
268}
269
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}
298
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}
327
332{
334
336}
337
338
339
340
341
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}
370
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}
399
404{
406
408}
409
410
411
414{
416
418}
419
422{
424
426}
427
430{
432
434}
435
438{
440
441 return Main_DirectDraw_GetCaps((LPDIRECTDRAW7) iface, pDDC1, pDDC2);
442}
443
446{
448
449 return Main_DirectDraw_GetCaps((LPDIRECTDRAW7) iface, pDDC1, pDDC2);
450}
451
454{
456
457 return Main_DirectDraw_GetCaps((LPDIRECTDRAW7) iface, pDDC1, pDDC2);
458}
459
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}
485
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}
510
513{
515
516 return Main_DirectDraw_GetDisplayMode((LPDIRECTDRAW7) iface, pDDSD2);
517}
518
521 LPDWORD pCodes)
522{
524
525 return Main_DirectDraw_GetFourCCCodes((LPDIRECTDRAW7) iface, pNumCodes, pCodes);
526}
527
530 LPDWORD pCodes)
531{
533
534 return Main_DirectDraw_GetFourCCCodes((LPDIRECTDRAW7) iface, pNumCodes, pCodes);
535}
536
539 LPDWORD pCodes)
540{
542
543 return Main_DirectDraw_GetFourCCCodes((LPDIRECTDRAW7) iface, pNumCodes, pCodes);
544}
545
548{
550
551 return Main_DirectDraw_GetGDISurface((LPDIRECTDRAW7) iface, (LPDIRECTDRAWSURFACE7 *) lplpGDIDDSSurface);
552}
553
556{
558
559 return Main_DirectDraw_GetGDISurface((LPDIRECTDRAW7) iface, (LPDIRECTDRAWSURFACE7 *) lplpGDIDDSSurface);
560}
561
564{
566
567 return Main_DirectDraw_GetGDISurface((LPDIRECTDRAW7) iface, (LPDIRECTDRAWSURFACE7 *) lplpGDIDDSSurface);
568}
569
572{
574
575 return Main_DirectDraw_GetMonitorFrequency((LPDIRECTDRAW7) iface, pdwFreq);
576}
577
580{
582
583 return Main_DirectDraw_GetMonitorFrequency((LPDIRECTDRAW7) iface, pdwFreq);
584}
585
588{
590
591 return Main_DirectDraw_GetMonitorFrequency((LPDIRECTDRAW7) iface, pdwFreq);
592}
593
596{
598
599 return Main_DirectDraw_GetScanLine((LPDIRECTDRAW7) iface, lpdwScanLine);
600}
601
604{
606
607 return Main_DirectDraw_GetScanLine((LPDIRECTDRAW7) iface, lpdwScanLine);
608}
609
612{
614
615 return Main_DirectDraw_GetScanLine((LPDIRECTDRAW7) iface, lpdwScanLine);
616}
617
620{
622
623 return Main_DirectDraw_GetVerticalBlankStatus((LPDIRECTDRAW7) iface, lpbIsInVB);
624}
625
628{
630
631 return Main_DirectDraw_GetVerticalBlankStatus((LPDIRECTDRAW7) iface, lpbIsInVB);
632}
633
636{
638
639 return Main_DirectDraw_GetVerticalBlankStatus((LPDIRECTDRAW7) iface, lpbIsInVB);
640}
641
644{
646
647 if (iface==NULL)
648 {
650 }
651
653}
654
657{
659
660 if (iface==NULL)
661 {
663 }
664
666}
667
670{
672
673 if (iface==NULL)
674 {
676 }
677
679}
680
681
684{
686
688}
689
692{
694
696}
697
700{
702
704}
705
708{
710
712}
713
716{
718
720}
721
724{
726
728}
729
732{
734
735 return Main_DirectDraw_SetDisplayMode ((LPDIRECTDRAW7) iface, dwWidth, dwHeight, dwBPP, 0, 0);
736}
737
740{
742
743 return Main_DirectDraw_SetDisplayMode ((LPDIRECTDRAW7) iface, dwWidth, dwHeight, dwBPP, 0, 0);
744}
745
748{
750
751 return Main_DirectDraw_SetDisplayMode ((LPDIRECTDRAW7) iface, dwWidth, dwHeight, dwBPP, 0, 0);
752}
753
756{
758
760}
761
764{
766
768}
769
772{
774
776}
777
778
779
780
781
784{
786
788}
789
792{
794
796}
797
800{
802
804}
805
806
807
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}
832
833
834
835IDirectDrawVtbl DirectDraw_Vtable =
836{
860};
861
862IDirectDraw2Vtbl DirectDraw2_Vtable =
863{
887 ThunkDirectDraw2_GetAvailableVidMem
888};
889
890IDirectDraw4Vtbl DirectDraw4_Vtable =
891{
915 ThunkDirectDraw4_GetAvailableVidMem,
920};
HRESULT WINAPI Main_DirectDraw_GetDeviceIdentifier(LPDDRAWI_DIRECTDRAW_INT This, LPDDDEVICEIDENTIFIER pDDDI, DWORD dwFlags)
void DDSURFACEDESC
Definition: amvideo.idl:25
HRESULT WINAPI ThunkDirectDraw4_EnumSurfaces(LPDIRECTDRAW4 iface, DWORD dwFlags, LPDDSURFACEDESC2 pDDSD, LPVOID context, LPDDENUMSURFACESCALLBACK2 cb)
Definition: ddraw_thunk.c:401
HRESULT WINAPI ThunkDirectDraw2_GetFourCCCodes(LPDIRECTDRAW2 iface, LPDWORD pNumCodes, LPDWORD pCodes)
Definition: ddraw_thunk.c:529
HRESULT WINAPI ThunkDirectDraw_RestoreDisplayMode(LPDIRECTDRAW iface)
Definition: ddraw_thunk.c:683
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
ULONG WINAPI ThunkDirectDraw4_Release(LPDIRECTDRAW4 iface)
Definition: ddraw_thunk.c:73
ULONG WINAPI ThunkDirectDraw_Release(LPDIRECTDRAW iface)
Definition: ddraw_thunk.c:57
HRESULT WINAPI ThunkDirectDraw4_CreateSurface(LPDIRECTDRAW4 iface, LPDDSURFACEDESC2 pDDSD2, LPDIRECTDRAWSURFACE4 *ppSurface, IUnknown *pUnkOuter)
Definition: ddraw_thunk.c:225
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 ThunkDirectDraw2_GetVerticalBlankStatus(LPDIRECTDRAW2 iface, LPBOOL lpbIsInVB)
Definition: ddraw_thunk.c:627
IDirectDraw2Vtbl DirectDraw2_Vtable
Definition: ddraw_thunk.c:862
HRESULT WINAPI ThunkDirectDraw4_GetDeviceIdentifier(LPDIRECTDRAW4 iface, LPDDDEVICEIDENTIFIER pDDDI, DWORD dwFlags)
Definition: ddraw_thunk.c:809
HRESULT WINAPI ThunkDirectDraw2_WaitForVerticalBlank(LPDIRECTDRAW2 iface, DWORD dwFlags, HANDLE hEvent)
Definition: ddraw_thunk.c:763
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 ThunkDirectDraw4_GetVerticalBlankStatus(LPDIRECTDRAW4 iface, LPBOOL lpbIsInVB)
Definition: ddraw_thunk.c:635
HRESULT WINAPI ThunkDirectDraw2_EnumDisplayModes(LPDIRECTDRAW2 iface, DWORD dwFlags, LPDDSURFACEDESC pDDSD, LPVOID context, LPDDENUMMODESCALLBACK cb)
Definition: ddraw_thunk.c:300
HRESULT WINAPI ThunkDirectDraw4_GetScanLine(LPDIRECTDRAW4 iface, LPDWORD lpdwScanLine)
Definition: ddraw_thunk.c:611
ULONG WINAPI ThunkDirectDraw4_AddRef(LPDIRECTDRAW4 iface)
Definition: ddraw_thunk.c:49
HRESULT WINAPI ThunkDirectDraw4_DuplicateSurface(LPDIRECTDRAW4 iface, LPDIRECTDRAWSURFACE4 src, LPDIRECTDRAWSURFACE4 *dst)
Definition: ddraw_thunk.c:262
HRESULT WINAPI ThunkDirectDraw4_WaitForVerticalBlank(LPDIRECTDRAW4 iface, DWORD dwFlags, HANDLE hEvent)
Definition: ddraw_thunk.c:771
HRESULT WINAPI ThunkDirectDraw4_SetDisplayMode(LPDIRECTDRAW4 iface, DWORD dwWidth, DWORD dwHeight, DWORD dwBPP, DWORD d, DWORD e)
Definition: ddraw_thunk.c:747
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 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 ThunkDirectDraw2_SetDisplayMode(LPDIRECTDRAW2 iface, DWORD dwWidth, DWORD dwHeight, DWORD dwBPP, DWORD d, DWORD e)
Definition: ddraw_thunk.c:739
HRESULT WINAPI ThunkDirectDraw4_Compact(LPDIRECTDRAW4 iface)
Definition: ddraw_thunk.c:97
HRESULT WINAPI ThunkDirectDraw2_CreateSurface(LPDIRECTDRAW2 iface, LPDDSURFACEDESC pDDSD, LPDIRECTDRAWSURFACE *ppSurface, IUnknown *pUnkOuter)
Definition: ddraw_thunk.c:193
HRESULT WINAPI ThunkDirectDraw_GetScanLine(LPDIRECTDRAW iface, LPDWORD lpdwScanLine)
Definition: ddraw_thunk.c:595
HRESULT WINAPI ThunkDirectDraw4_CreatePalette(LPDIRECTDRAW4 iface, DWORD dwFlags, LPPALETTEENTRY pEntries, LPDIRECTDRAWPALETTE *ppPalette, IUnknown *pUnkOuter)
Definition: ddraw_thunk.c:151
HRESULT WINAPI ThunkDirectDraw2_GetCaps(LPDIRECTDRAW2 iface, LPDDCAPS pDDC1, LPDDCAPS pDDC2)
Definition: ddraw_thunk.c:445
HRESULT WINAPI ThunkDirectDraw4_TestCooperativeLevel(LPDIRECTDRAW4 iface)
Definition: ddraw_thunk.c:799
HRESULT WINAPI ThunkDirectDraw4_EnumDisplayModes(LPDIRECTDRAW4 iface, DWORD dwFlags, LPDDSURFACEDESC2 pDDSD, LPVOID context, LPDDENUMMODESCALLBACK2 cb)
Definition: ddraw_thunk.c:329
HRESULT WINAPI ThunkDirectDraw_EnumSurfaces(LPDIRECTDRAW iface, DWORD dwFlags, LPDDSURFACEDESC pDDSD, LPVOID context, LPDDENUMSURFACESCALLBACK cb)
Definition: ddraw_thunk.c:343
HRESULT WINAPI ThunkDirectDraw2_GetDisplayMode(LPDIRECTDRAW2 iface, LPDDSURFACEDESC pDDSD)
Definition: ddraw_thunk.c:487
HRESULT WINAPI ThunkDirectDraw_GetGDISurface(LPDIRECTDRAW iface, LPDIRECTDRAWSURFACE *lplpGDIDDSSurface)
Definition: ddraw_thunk.c:547
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 ThunkDirectDraw4_QueryInterface(LPDIRECTDRAW4 iface, REFIID iid, LPVOID *ppObj)
Definition: ddraw_thunk.c:25
HRESULT WINAPI ThunkDirectDraw4_GetGDISurface(LPDIRECTDRAW4 iface, LPDIRECTDRAWSURFACE4 *lplpGDIDDSSurface)
Definition: ddraw_thunk.c:563
HRESULT WINAPI ThunkDirectDraw_GetMonitorFrequency(LPDIRECTDRAW iface, LPDWORD pdwFreq)
Definition: ddraw_thunk.c:571
HRESULT WINAPI ThunkDirectDraw4_RestoreAllSurfaces(LPDIRECTDRAW4 iface)
Definition: ddraw_thunk.c:791
HRESULT WINAPI ThunkDirectDraw4_CreateClipper(LPDIRECTDRAW4 iface, DWORD dwFlags, LPDIRECTDRAWCLIPPER *ppClipper, IUnknown *pUnkOuter)
Definition: ddraw_thunk.c:121
IDirectDrawVtbl DirectDraw_Vtable
Definition: ddraw_thunk.c:835
HRESULT WINAPI ThunkDirectDraw_DuplicateSurface(LPDIRECTDRAW iface, LPDIRECTDRAWSURFACE src, LPDIRECTDRAWSURFACE *dst)
Definition: ddraw_thunk.c:244
HRESULT WINAPI ThunkDirectDraw2_FlipToGDISurface(LPDIRECTDRAW2 iface)
Definition: ddraw_thunk.c:421
HRESULT WINAPI ThunkDirectDraw4_GetDisplayMode(LPDIRECTDRAW4 iface, LPDDSURFACEDESC2 pDDSD2)
Definition: ddraw_thunk.c:512
HRESULT WINAPI ThunkDirectDraw_GetCaps(LPDIRECTDRAW iface, LPDDCAPS pDDC1, LPDDCAPS pDDC2)
Definition: ddraw_thunk.c:437
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
IDirectDraw4Vtbl DirectDraw4_Vtable
Definition: ddraw_thunk.c:890
HRESULT WINAPI ThunkDirectDraw4_GetSurfaceFromDC(LPDIRECTDRAW4 iface, HDC hdc, LPDIRECTDRAWSURFACE4 *pSurf)
Definition: ddraw_thunk.c:783
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 ThunkDirectDraw4_GetCaps(LPDIRECTDRAW4 iface, LPDDCAPS pDDC1, LPDDCAPS pDDC2)
Definition: ddraw_thunk.c:453
HRESULT WINAPI ThunkDirectDraw2_DuplicateSurface(LPDIRECTDRAW2 iface, LPDIRECTDRAWSURFACE src, LPDIRECTDRAWSURFACE *dst)
Definition: ddraw_thunk.c:253
HRESULT WINAPI ThunkDirectDraw_GetDisplayMode(LPDIRECTDRAW iface, LPDDSURFACEDESC pDDSD)
Definition: ddraw_thunk.c:461
HRESULT WINAPI ThunkDirectDraw4_GetFourCCCodes(LPDIRECTDRAW4 iface, LPDWORD pNumCodes, LPDWORD pCodes)
Definition: ddraw_thunk.c:538
HRESULT WINAPI ThunkDirectDraw2_Initialize(LPDIRECTDRAW2 iface, LPGUID pGUID)
Definition: ddraw_thunk.c:656
HRESULT WINAPI ThunkDirectDraw4_RestoreDisplayMode(LPDIRECTDRAW4 iface)
Definition: ddraw_thunk.c:699
HRESULT WINAPI ThunkDirectDraw2_QueryInterface(LPDIRECTDRAW2 iface, REFIID iid, LPVOID *obj)
Definition: ddraw_thunk.c:16
HRESULT WINAPI ThunkDirectDraw4_GetMonitorFrequency(LPDIRECTDRAW4 iface, LPDWORD pdwFreq)
Definition: ddraw_thunk.c:587
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 ThunkDirectDraw4_Initialize(LPDIRECTDRAW4 iface, LPGUID pGUID)
Definition: ddraw_thunk.c:669
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
HRESULT WINAPI ThunkDirectDraw4_SetCooperativeLevel(LPDIRECTDRAW4 iface, HWND hwnd, DWORD dwFlags)
Definition: ddraw_thunk.c:723
HRESULT WINAPI ThunkDirectDraw4_FlipToGDISurface(LPDIRECTDRAW4 iface)
Definition: ddraw_thunk.c:429
struct _DDRAWI_DDRAWSURFACE_INT * LPDDRAWI_DDRAWSURFACE_INT
Definition: ddrawi.h:132
#define NULL
Definition: types.h:112
HRESULT WINAPI Main_DirectDraw_GetGDISurface(LPDDRAWI_DIRECTDRAW_INT This, LPDIRECTDRAWSURFACE7 *lplpGDIDDSSurface)
Definition: ddraw_stubs.c:72
HRESULT WINAPI Main_DirectDraw_GetVerticalBlankStatus(LPDDRAWI_DIRECTDRAW_INT This, LPBOOL lpbIsInVB)
Definition: ddraw_stubs.c:87
HRESULT WINAPI Main_DirectDraw_SetCooperativeLevel(LPDDRAWI_DIRECTDRAW_INT This, HWND hwnd, DWORD cooplevel)
HRESULT WINAPI Main_DirectDraw_RestoreDisplayMode(LPDDRAWI_DIRECTDRAW_INT This)
HRESULT WINAPI Main_DirectDraw_GetSurfaceFromDC(LPDDRAWI_DIRECTDRAW_INT This, HDC hdc, LPDIRECTDRAWSURFACE7 *lpDDS)
Definition: ddraw_stubs.c:104
ULONG WINAPI Main_DirectDraw_Release(LPDDRAWI_DIRECTDRAW_INT This)
Definition: ddraw_main.c:194
HRESULT WINAPI Main_DirectDraw_DuplicateSurface(LPDDRAWI_DIRECTDRAW_INT This, LPDIRECTDRAWSURFACE7 src, LPDIRECTDRAWSURFACE7 *dst)
Definition: ddraw_stubs.c:26
HRESULT WINAPI Main_DirectDraw_FlipToGDISurface(LPDDRAWI_DIRECTDRAW_INT This)
Definition: ddraw_stubs.c:64
HRESULT WINAPI Main_DirectDraw_RestoreAllSurfaces(LPDDRAWI_DIRECTDRAW_INT This)
Definition: ddraw_stubs.c:111
HRESULT WINAPI Main_DirectDraw_TestCooperativeLevel(LPDDRAWI_DIRECTDRAW_INT This)
Definition: ddraw_stubs.c:117
HRESULT WINAPI Main_DirectDraw_CreateSurface(LPDDRAWI_DIRECTDRAW_INT This, LPDDSURFACEDESC pDDSD, LPDDRAWI_DDRAWSURFACE_INT *ppSurf, IUnknown *pUnkOuter)
Definition: ddraw_main.c:478
HRESULT WINAPI Main_DirectDraw_CreatePalette(LPDDRAWI_DIRECTDRAW_INT This, DWORD dwFlags, LPPALETTEENTRY palent, LPDIRECTDRAWPALETTE *ppPalette, LPUNKNOWN pUnkOuter)
Definition: ddraw_main.c:545
ULONG WINAPI Main_DirectDraw_AddRef(LPDDRAWI_DIRECTDRAW_INT This)
Definition: ddraw_main.c:145
HRESULT WINAPI Main_DirectDraw_Compact(LPDDRAWI_DIRECTDRAW_INT This)
Definition: ddraw_main.c:267
HRESULT WINAPI Main_DirectDraw_EnumSurfaces(LPDDRAWI_DIRECTDRAW_INT This, DWORD dwFlags, LPDDSURFACEDESC lpDDSD2, LPVOID context, LPDDENUMSURFACESCALLBACK callback)
Definition: ddraw_stubs.c:34
HRESULT WINAPI Main_DirectDraw_WaitForVerticalBlank(LPDDRAWI_DIRECTDRAW_INT This, DWORD dwFlags, HANDLE h)
Definition: ddraw_stubs.c:97
HRESULT WINAPI Main_DirectDraw_GetFourCCCodes(LPDDRAWI_DIRECTDRAW_INT This, LPDWORD lpNumCodes, LPDWORD lpCodes)
Definition: ddraw_main.c:418
HRESULT WINAPI Main_DirectDraw_QueryInterface(LPDDRAWI_DIRECTDRAW_INT This, REFIID id, LPVOID *obj)
Definition: ddraw_main.c:37
HRESULT WINAPI Main_DirectDraw_GetScanLine(LPDDRAWI_DIRECTDRAW_INT This, LPDWORD lpdwScanLine)
Definition: ddraw_stubs.c:80
HRESULT WINAPI Main_DirectDraw_CreateClipper(LPDDRAWI_DIRECTDRAW_INT This, DWORD dwFlags, LPDIRECTDRAWCLIPPER *ppClipper, IUnknown *pUnkOuter)
Definition: ddraw_stubs.c:17
HRESULT WINAPI Main_DirectDraw_EnumDisplayModes(LPDDRAWI_DIRECTDRAW_INT This, DWORD dwFlags, LPDDSURFACEDESC pDDSD, LPVOID pContext, LPDDENUMMODESCALLBACK pCallback)
HRESULT WINAPI Main_DirectDraw_GetDisplayMode(LPDDRAWI_DIRECTDRAW_INT This, LPDDSURFACEDESC pDDSD)
HRESULT WINAPI Main_DirectDraw_GetMonitorFrequency(LPDDRAWI_DIRECTDRAW_INT This, LPDWORD lpFreq)
HRESULT WINAPI Main_DirectDraw_GetCaps(LPDDRAWI_DIRECTDRAW_INT This, LPDDCAPS pDriverCaps, LPDDCAPS pHELCaps)
Definition: GetCaps.c:23
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
DWORD * LPDIRECTDRAW7
Definition: vmrender.idl:6
DWORD * LPDIRECTDRAWSURFACE7
Definition: vmrender.idl:7
unsigned long DWORD
Definition: ntddk_ex.h:95
GLenum src
Definition: glext.h:6340
GLenum GLenum dst
Definition: glext.h:6340
#define d
Definition: ke_i.h:81
#define e
Definition: ke_i.h:82
#define memcpy(s1, s2, n)
Definition: mkisofs.h:878
HDC hdc
Definition: main.c:9
static HDC
Definition: imagelist.c:92
static HANDLE hEvent
Definition: comm.c:54
static HMODULE MODULEINFO DWORD cb
Definition: module.c:33
#define REFIID
Definition: guiddef.h:118
#define DX_WINDBG_trace()
Definition: rosdraw.h:262
HRESULT(WINAPI * LPDDENUMMODESCALLBACK2)(LPDDSURFACEDESC2, LPVOID)
Definition: ddraw.h:1259
struct IDirectDrawSurface4 * LPDIRECTDRAWSURFACE4
Definition: ddraw.h:718
struct IDirectDrawClipper * LPDIRECTDRAWCLIPPER
Definition: ddraw.h:721
struct _DDSURFACEDESC2 DDSURFACEDESC2
HRESULT(WINAPI * LPDDENUMSURFACESCALLBACK)(LPDIRECTDRAWSURFACE, LPDDSURFACEDESC, LPVOID)
Definition: ddraw.h:1260
HRESULT(WINAPI * LPDDENUMSURFACESCALLBACK2)(LPDIRECTDRAWSURFACE4, LPDDSURFACEDESC2, LPVOID)
Definition: ddraw.h:1261
struct IDirectDraw * LPDIRECTDRAW
Definition: ddraw.h:710
#define DDERR_NOTINITIALIZED
Definition: ddraw.h:185
HRESULT(WINAPI * LPDDENUMMODESCALLBACK)(LPDDSURFACEDESC, LPVOID)
Definition: ddraw.h:1258
struct IDirectDraw4 * LPDIRECTDRAW4
Definition: ddraw.h:713
struct IDirectDrawPalette * LPDIRECTDRAWPALETTE
Definition: ddraw.h:720
HRESULT(WINAPI * LPDDENUMSURFACESCALLBACK7)(LPDIRECTDRAWSURFACE7, LPDDSURFACEDESC2, LPVOID)
Definition: ddraw.h:1262
#define DDERR_GENERIC
Definition: ddraw.h:72
#define DDERR_ALREADYINITIALIZED
Definition: ddraw.h:67
struct IDirectDraw2 * LPDIRECTDRAW2
Definition: ddraw.h:711
DWORD dwSize
Definition: ddraw.h:1152
Definition: http.c:7252
IDirectDrawSurface3Vtbl DirectDrawSurface3_VTable
uint32_t * LPDWORD
Definition: typedefs.h:59
uint32_t ULONG
Definition: typedefs.h:59
#define ZeroMemory
Definition: winbase.h:1712
_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