ReactOS  0.4.14-dev-368-gfa26425
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 
20  return Main_DirectDraw_QueryInterface ((LPDIRECTDRAW7) iface, iid, obj);
21 }
22 
23 
26 {
28 
29  return Main_DirectDraw_QueryInterface ((LPDIRECTDRAW7) iface, iid, ppObj);
30 }
31 
34 {
36 
37  return Main_DirectDraw_AddRef((LPDIRECTDRAW7) iface);
38 }
39 
42 {
44 
45  return Main_DirectDraw_AddRef((LPDIRECTDRAW7) iface);
46 }
47 
50 {
52 
53  return Main_DirectDraw_AddRef((LPDIRECTDRAW7) iface);
54 }
55 
58 {
60 
61  return Main_DirectDraw_Release ((LPDIRECTDRAW7) iface);
62 }
63 
66 {
68 
69  return Main_DirectDraw_Release ((LPDIRECTDRAW7) iface);
70 }
71 
74 {
76 
77  return Main_DirectDraw_Release ((LPDIRECTDRAW7) iface);
78 }
79 
82 {
84 
85  return Main_DirectDraw_Compact((LPDIRECTDRAW7) iface) ;
86 }
87 
90 {
92 
93  return Main_DirectDraw_Compact((LPDIRECTDRAW7) iface) ;
94 }
95 
98 {
100 
101  return Main_DirectDraw_Compact((LPDIRECTDRAW7) iface) ;
102 }
103 
106 {
107  DX_WINDBG_trace();
108 
109  return Main_DirectDraw_CreateClipper( (LPDIRECTDRAW7) iface, dwFlags, ppClipper, pUnkOuter);
110 }
111 
114 {
115  DX_WINDBG_trace();
116 
117  return Main_DirectDraw_CreateClipper( (LPDIRECTDRAW7) iface, dwFlags, ppClipper, pUnkOuter);
118 }
119 
122 {
123  DX_WINDBG_trace();
124 
125  return Main_DirectDraw_CreateClipper( (LPDIRECTDRAW7) iface, dwFlags, ppClipper, pUnkOuter);
126 }
127 
130  LPPALETTEENTRY pEntries,
131  LPDIRECTDRAWPALETTE *ppPalette,
132  IUnknown *pUnkOuter)
133 {
134  DX_WINDBG_trace();
135 
136  return Main_DirectDraw_CreatePalette( (LPDIRECTDRAW7) iface, dwFlags, pEntries, ppPalette, pUnkOuter);
137 }
138 
141  LPPALETTEENTRY pEntries,
142  LPDIRECTDRAWPALETTE *ppPalette,
143  IUnknown *pUnkOuter)
144 {
145  DX_WINDBG_trace();
146 
147  return Main_DirectDraw_CreatePalette( (LPDIRECTDRAW7) iface, dwFlags, pEntries, ppPalette, pUnkOuter);
148 }
149 
152  LPDIRECTDRAWPALETTE *ppPalette, IUnknown *pUnkOuter)
153 {
154  DX_WINDBG_trace();
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 
167  DX_WINDBG_trace();
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  {
182  retValue = Main_DirectDraw_CreateSurface ((LPDIRECTDRAW7) iface, NULL,
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 
199  DX_WINDBG_trace();
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  {
214  retValue = Main_DirectDraw_CreateSurface ((LPDIRECTDRAW7) iface, NULL,
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 
231  DX_WINDBG_trace();
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 {
246  DX_WINDBG_trace();
247 
250 }
251 
254 {
255  DX_WINDBG_trace();
256 
259 }
260 
263 {
264  DX_WINDBG_trace();
265 
268 }
269 
274 {
275  HRESULT retValue = DDERR_GENERIC;
276 
277  DX_WINDBG_trace();
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 
306  DX_WINDBG_trace();
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 {
333  DX_WINDBG_trace();
334 
336 }
337 
338 
339 
340 
341 
346 {
347  HRESULT retValue = DDERR_GENERIC;
348 
349  DX_WINDBG_trace();
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 
378  DX_WINDBG_trace();
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 {
405  DX_WINDBG_trace();
406 
408 }
409 
410 
411 
414 {
415  DX_WINDBG_trace();
416 
418 }
419 
422 {
423  DX_WINDBG_trace();
424 
426 }
427 
430 {
431  DX_WINDBG_trace();
432 
434 }
435 
438 {
439  DX_WINDBG_trace();
440 
441  return Main_DirectDraw_GetCaps((LPDIRECTDRAW7) iface, pDDC1, pDDC2);
442 }
443 
446 {
447  DX_WINDBG_trace();
448 
449  return Main_DirectDraw_GetCaps((LPDIRECTDRAW7) iface, pDDC1, pDDC2);
450 }
451 
454 {
455  DX_WINDBG_trace();
456 
457  return Main_DirectDraw_GetCaps((LPDIRECTDRAW7) iface, pDDC1, pDDC2);
458 }
459 
462 {
463 
464  HRESULT retValue = DDERR_GENERIC;
465 
466  DX_WINDBG_trace();
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 
491  DX_WINDBG_trace();
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 {
514  DX_WINDBG_trace();
515 
516  return Main_DirectDraw_GetDisplayMode((LPDIRECTDRAW7) iface, pDDSD2);
517 }
518 
521  LPDWORD pCodes)
522 {
523  DX_WINDBG_trace();
524 
525  return Main_DirectDraw_GetFourCCCodes((LPDIRECTDRAW7) iface, pNumCodes, pCodes);
526 }
527 
530  LPDWORD pCodes)
531 {
532  DX_WINDBG_trace();
533 
534  return Main_DirectDraw_GetFourCCCodes((LPDIRECTDRAW7) iface, pNumCodes, pCodes);
535 }
536 
539  LPDWORD pCodes)
540 {
541  DX_WINDBG_trace();
542 
543  return Main_DirectDraw_GetFourCCCodes((LPDIRECTDRAW7) iface, pNumCodes, pCodes);
544 }
545 
548 {
549  DX_WINDBG_trace();
550 
551  return Main_DirectDraw_GetGDISurface((LPDIRECTDRAW7) iface, (LPDIRECTDRAWSURFACE7 *) lplpGDIDDSSurface);
552 }
553 
556 {
557  DX_WINDBG_trace();
558 
559  return Main_DirectDraw_GetGDISurface((LPDIRECTDRAW7) iface, (LPDIRECTDRAWSURFACE7 *) lplpGDIDDSSurface);
560 }
561 
564 {
565  DX_WINDBG_trace();
566 
567  return Main_DirectDraw_GetGDISurface((LPDIRECTDRAW7) iface, (LPDIRECTDRAWSURFACE7 *) lplpGDIDDSSurface);
568 }
569 
572 {
573  DX_WINDBG_trace();
574 
575  return Main_DirectDraw_GetMonitorFrequency((LPDIRECTDRAW7) iface, pdwFreq);
576 }
577 
580 {
581  DX_WINDBG_trace();
582 
583  return Main_DirectDraw_GetMonitorFrequency((LPDIRECTDRAW7) iface, pdwFreq);
584 }
585 
588 {
589  DX_WINDBG_trace();
590 
591  return Main_DirectDraw_GetMonitorFrequency((LPDIRECTDRAW7) iface, pdwFreq);
592 }
593 
596 {
597  DX_WINDBG_trace();
598 
599  return Main_DirectDraw_GetScanLine((LPDIRECTDRAW7) iface, lpdwScanLine);
600 }
601 
604 {
605  DX_WINDBG_trace();
606 
607  return Main_DirectDraw_GetScanLine((LPDIRECTDRAW7) iface, lpdwScanLine);
608 }
609 
612 {
613  DX_WINDBG_trace();
614 
615  return Main_DirectDraw_GetScanLine((LPDIRECTDRAW7) iface, lpdwScanLine);
616 }
617 
620 {
621  DX_WINDBG_trace();
622 
623  return Main_DirectDraw_GetVerticalBlankStatus((LPDIRECTDRAW7) iface, lpbIsInVB);
624 }
625 
628 {
629  DX_WINDBG_trace();
630 
631  return Main_DirectDraw_GetVerticalBlankStatus((LPDIRECTDRAW7) iface, lpbIsInVB);
632 }
633 
636 {
637  DX_WINDBG_trace();
638 
639  return Main_DirectDraw_GetVerticalBlankStatus((LPDIRECTDRAW7) iface, lpbIsInVB);
640 }
641 
644 {
645  DX_WINDBG_trace();
646 
647  if (iface==NULL)
648  {
649  return DDERR_NOTINITIALIZED;
650  }
651 
653 }
654 
657 {
658  DX_WINDBG_trace();
659 
660  if (iface==NULL)
661  {
662  return DDERR_NOTINITIALIZED;
663  }
664 
666 }
667 
670 {
671  DX_WINDBG_trace();
672 
673  if (iface==NULL)
674  {
675  return DDERR_NOTINITIALIZED;
676  }
677 
679 }
680 
681 
684 {
685  DX_WINDBG_trace();
686 
688 }
689 
692 {
693  DX_WINDBG_trace();
694 
696 }
697 
700 {
701  DX_WINDBG_trace();
702 
704 }
705 
708 {
709  DX_WINDBG_trace();
710 
712 }
713 
716 {
717  DX_WINDBG_trace();
718 
720 }
721 
724 {
725  DX_WINDBG_trace();
726 
728 }
729 
732 {
733  DX_WINDBG_trace();
734 
735  return Main_DirectDraw_SetDisplayMode ((LPDIRECTDRAW7) iface, dwWidth, dwHeight, dwBPP, 0, 0);
736 }
737 
740 {
741  DX_WINDBG_trace();
742 
743  return Main_DirectDraw_SetDisplayMode ((LPDIRECTDRAW7) iface, dwWidth, dwHeight, dwBPP, 0, 0);
744 }
745 
748 {
749  DX_WINDBG_trace();
750 
751  return Main_DirectDraw_SetDisplayMode ((LPDIRECTDRAW7) iface, dwWidth, dwHeight, dwBPP, 0, 0);
752 }
753 
756 {
757  DX_WINDBG_trace();
758 
760 }
761 
764 {
765  DX_WINDBG_trace();
766 
768 }
769 
772 {
773  DX_WINDBG_trace();
774 
776 }
777 
778 
779 
780 
781 
784 {
785  DX_WINDBG_trace();
786 
788 }
789 
792 {
793  DX_WINDBG_trace();
794 
796 }
797 
800 {
801  DX_WINDBG_trace();
802 
804 }
805 
806 
807 
811 {
812  HRESULT retValue = DDERR_GENERIC;
813 
814  DX_WINDBG_trace();
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 
835 IDirectDrawVtbl DirectDraw_Vtable =
836 {
860 };
861 
862 IDirectDraw2Vtbl DirectDraw2_Vtable =
863 {
887  ThunkDirectDraw2_GetAvailableVidMem
888 };
889 
890 IDirectDraw4Vtbl DirectDraw4_Vtable =
891 {
915  ThunkDirectDraw4_GetAvailableVidMem,
920 };
HRESULT WINAPI Main_DirectDraw_GetVerticalBlankStatus(LPDDRAWI_DIRECTDRAW_INT This, LPBOOL lpbIsInVB)
Definition: ddraw_stubs.c:87
HRESULT WINAPI Main_DirectDraw_GetDisplayMode(LPDDRAWI_DIRECTDRAW_INT This, LPDDSURFACEDESC pDDSD)
HRESULT WINAPI ThunkDirectDraw4_GetMonitorFrequency(LPDIRECTDRAW4 iface, LPDWORD pdwFreq)
Definition: ddraw_thunk.c:587
HRESULT WINAPI ThunkDirectDraw2_CreateClipper(LPDIRECTDRAW2 iface, DWORD dwFlags, LPDIRECTDRAWCLIPPER *ppClipper, IUnknown *pUnkOuter)
Definition: ddraw_thunk.c:113
#define DX_WINDBG_trace()
Definition: rosdraw.h:262
const DOCKBAR PVOID HWND HWND * hwnd
Definition: tooldock.h:22
HRESULT WINAPI ThunkDirectDraw_DuplicateSurface(LPDIRECTDRAW iface, LPDIRECTDRAWSURFACE src, LPDIRECTDRAWSURFACE *dst)
Definition: ddraw_thunk.c:244
HRESULT(WINAPI * LPDDENUMSURFACESCALLBACK)(LPDIRECTDRAWSURFACE, LPDDSURFACEDESC, LPVOID)
Definition: ddraw.h:1260
#define REFIID
Definition: guiddef.h:118
HRESULT(WINAPI * LPDDENUMSURFACESCALLBACK2)(LPDIRECTDRAWSURFACE4, LPDDSURFACEDESC2, LPVOID)
Definition: ddraw.h:1261
HRESULT WINAPI ThunkDirectDraw_Compact(LPDIRECTDRAW iface)
Definition: ddraw_thunk.c:81
HRESULT(WINAPI * LPDDENUMSURFACESCALLBACK7)(LPDIRECTDRAWSURFACE7, LPDDSURFACEDESC2, LPVOID)
Definition: ddraw.h:1262
HRESULT WINAPI ThunkDirectDraw2_Initialize(LPDIRECTDRAW2 iface, LPGUID pGUID)
Definition: ddraw_thunk.c:656
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 Main_DirectDraw_SetDisplayMode(LPDDRAWI_DIRECTDRAW_INT This, DWORD dwWidth, DWORD dwHeight, DWORD dwBPP)
HRESULT(WINAPI * LPDDENUMMODESCALLBACK2)(LPDDSURFACEDESC2, LPVOID)
Definition: ddraw.h:1259
struct IDirectDraw2 * LPDIRECTDRAW2
Definition: ddraw.h:711
HRESULT WINAPI ThunkDirectDraw4_GetCaps(LPDIRECTDRAW4 iface, LPDDCAPS pDDC1, LPDDCAPS pDDC2)
Definition: ddraw_thunk.c:453
Definition: http.c:6587
HRESULT WINAPI ThunkDirectDraw2_GetFourCCCodes(LPDIRECTDRAW2 iface, LPDWORD pNumCodes, LPDWORD pCodes)
Definition: ddraw_thunk.c:529
HRESULT WINAPI Main_DirectDraw_GetGDISurface(LPDDRAWI_DIRECTDRAW_INT This, LPDIRECTDRAWSURFACE7 *lplpGDIDDSSurface)
Definition: ddraw_stubs.c:72
HRESULT WINAPI ThunkDirectDraw2_RestoreDisplayMode(LPDIRECTDRAW2 iface)
Definition: ddraw_thunk.c:691
HRESULT WINAPI ThunkDirectDraw4_CreateClipper(LPDIRECTDRAW4 iface, DWORD dwFlags, LPDIRECTDRAWCLIPPER *ppClipper, IUnknown *pUnkOuter)
Definition: ddraw_thunk.c:121
HRESULT WINAPI ThunkDirectDraw4_GetScanLine(LPDIRECTDRAW4 iface, LPDWORD lpdwScanLine)
Definition: ddraw_thunk.c:611
static HDC
Definition: imagelist.c:92
HRESULT WINAPI ThunkDirectDraw_GetGDISurface(LPDIRECTDRAW iface, LPDIRECTDRAWSURFACE *lplpGDIDDSSurface)
Definition: ddraw_thunk.c:547
HRESULT WINAPI ThunkDirectDraw2_Compact(LPDIRECTDRAW2 iface)
Definition: ddraw_thunk.c:89
HRESULT WINAPI ThunkDirectDraw2_DuplicateSurface(LPDIRECTDRAW2 iface, LPDIRECTDRAWSURFACE src, LPDIRECTDRAWSURFACE *dst)
Definition: ddraw_thunk.c:253
#define DDERR_NOTINITIALIZED
Definition: ddraw.h:185
#define ZeroMemory
Definition: winbase.h:1642
ULONG WINAPI ThunkDirectDraw4_Release(LPDIRECTDRAW4 iface)
Definition: ddraw_thunk.c:73
HRESULT WINAPI Main_DirectDraw_CreatePalette(LPDDRAWI_DIRECTDRAW_INT This, DWORD dwFlags, LPPALETTEENTRY palent, LPDIRECTDRAWPALETTE *ppPalette, LPUNKNOWN pUnkOuter)
Definition: ddraw_main.c:545
HRESULT WINAPI ThunkDirectDraw4_GetDeviceIdentifier(LPDIRECTDRAW4 iface, LPDDDEVICEIDENTIFIER pDDDI, DWORD dwFlags)
Definition: ddraw_thunk.c:809
HRESULT WINAPI ThunkDirectDraw4_EnumDisplayModes(LPDIRECTDRAW4 iface, DWORD dwFlags, LPDDSURFACEDESC2 pDDSD, LPVOID context, LPDDENUMMODESCALLBACK2 cb)
Definition: ddraw_thunk.c:329
HRESULT WINAPI ThunkDirectDraw2_GetCaps(LPDIRECTDRAW2 iface, LPDDCAPS pDDC1, LPDDCAPS pDDC2)
Definition: ddraw_thunk.c:445
HRESULT WINAPI ThunkDirectDraw4_Initialize(LPDIRECTDRAW4 iface, LPGUID pGUID)
Definition: ddraw_thunk.c:669
ULONG WINAPI ThunkDirectDraw_AddRef(LPDIRECTDRAW iface)
Definition: ddraw_thunk.c:33
HRESULT WINAPI ThunkDirectDraw4_GetVerticalBlankStatus(LPDIRECTDRAW4 iface, LPBOOL lpbIsInVB)
Definition: ddraw_thunk.c:635
static HANDLE hEvent
Definition: comm.c:54
HRESULT WINAPI ThunkDirectDraw4_FlipToGDISurface(LPDIRECTDRAW4 iface)
Definition: ddraw_thunk.c:429
void DDSURFACEDESC
Definition: amvideo.idl:24
ULONG WINAPI ThunkDirectDraw_Release(LPDIRECTDRAW iface)
Definition: ddraw_thunk.c:57
HRESULT WINAPI ThunkDirectDraw2_GetGDISurface(LPDIRECTDRAW2 iface, LPDIRECTDRAWSURFACE *lplpGDIDDSSurface)
Definition: ddraw_thunk.c:555
HRESULT WINAPI Main_DirectDraw_TestCooperativeLevel(LPDDRAWI_DIRECTDRAW_INT This)
Definition: ddraw_stubs.c:117
HRESULT WINAPI ThunkDirectDraw4_DuplicateSurface(LPDIRECTDRAW4 iface, LPDIRECTDRAWSURFACE4 src, LPDIRECTDRAWSURFACE4 *dst)
Definition: ddraw_thunk.c:262
ULONG WINAPI ThunkDirectDraw2_AddRef(LPDIRECTDRAW2 iface)
Definition: ddraw_thunk.c:41
HRESULT WINAPI Main_DirectDraw_GetMonitorFrequency(LPDDRAWI_DIRECTDRAW_INT This, LPDWORD lpFreq)
IDirectDraw2Vtbl DirectDraw2_Vtable
Definition: ddraw_thunk.c:862
HRESULT WINAPI ThunkDirectDraw2_GetVerticalBlankStatus(LPDIRECTDRAW2 iface, LPBOOL lpbIsInVB)
Definition: ddraw_thunk.c:627
#define e
Definition: ke_i.h:82
HRESULT WINAPI ThunkDirectDraw2_CreatePalette(LPDIRECTDRAW2 iface, DWORD dwFlags, LPPALETTEENTRY pEntries, LPDIRECTDRAWPALETTE *ppPalette, IUnknown *pUnkOuter)
Definition: ddraw_thunk.c:140
HRESULT WINAPI ThunkDirectDraw2_EnumSurfaces(LPDIRECTDRAW2 iface, DWORD dwFlags, LPDDSURFACEDESC pDDSD, LPVOID context, LPDDENUMSURFACESCALLBACK cb)
Definition: ddraw_thunk.c:372
HRESULT WINAPI ThunkDirectDraw_GetDisplayMode(LPDIRECTDRAW iface, LPDDSURFACEDESC pDDSD)
Definition: ddraw_thunk.c:461
HRESULT WINAPI ThunkDirectDraw_WaitForVerticalBlank(LPDIRECTDRAW iface, DWORD dwFlags, HANDLE hEvent)
Definition: ddraw_thunk.c:755
struct IDirectDraw * LPDIRECTDRAW
Definition: ddraw.h:710
HRESULT WINAPI ThunkDirectDraw2_GetMonitorFrequency(LPDIRECTDRAW2 iface, LPDWORD pdwFreq)
Definition: ddraw_thunk.c:579
HRESULT WINAPI ThunkDirectDraw4_RestoreDisplayMode(LPDIRECTDRAW4 iface)
Definition: ddraw_thunk.c:699
HRESULT WINAPI Main_DirectDraw_GetSurfaceFromDC(LPDDRAWI_DIRECTDRAW_INT This, HDC hdc, LPDIRECTDRAWSURFACE7 *lpDDS)
Definition: ddraw_stubs.c:104
HRESULT WINAPI ThunkDirectDraw4_SetDisplayMode(LPDIRECTDRAW4 iface, DWORD dwWidth, DWORD dwHeight, DWORD dwBPP, DWORD d, DWORD e)
Definition: ddraw_thunk.c:747
smooth NULL
Definition: ftsmooth.c:416
HRESULT WINAPI ThunkDirectDraw4_CreateSurface(LPDIRECTDRAW4 iface, LPDDSURFACEDESC2 pDDSD2, LPDIRECTDRAWSURFACE4 *ppSurface, IUnknown *pUnkOuter)
Definition: ddraw_thunk.c:225
HRESULT WINAPI Main_DirectDraw_EnumSurfaces(LPDDRAWI_DIRECTDRAW_INT This, DWORD dwFlags, LPDDSURFACEDESC lpDDSD2, LPVOID context, LPDDENUMSURFACESCALLBACK callback)
Definition: ddraw_stubs.c:34
HRESULT WINAPI ThunkDirectDraw_CreatePalette(LPDIRECTDRAW iface, DWORD dwFlags, LPPALETTEENTRY pEntries, LPDIRECTDRAWPALETTE *ppPalette, IUnknown *pUnkOuter)
Definition: ddraw_thunk.c:129
struct IDirectDraw4 * LPDIRECTDRAW4
Definition: ddraw.h:713
static const WCHAR dwHeight[]
Definition: provider.c:63
HRESULT WINAPI ThunkDirectDraw4_GetFourCCCodes(LPDIRECTDRAW4 iface, LPDWORD pNumCodes, LPDWORD pCodes)
Definition: ddraw_thunk.c:538
#define DDERR_ALREADYINITIALIZED
Definition: ddraw.h:67
#define DDERR_GENERIC
Definition: ddraw.h:72
HRESULT WINAPI Main_DirectDraw_FlipToGDISurface(LPDDRAWI_DIRECTDRAW_INT This)
Definition: ddraw_stubs.c:64
HRESULT WINAPI ThunkDirectDraw4_TestCooperativeLevel(LPDIRECTDRAW4 iface)
Definition: ddraw_thunk.c:799
HRESULT(WINAPI * LPDDENUMMODESCALLBACK)(LPDDSURFACEDESC, LPVOID)
Definition: ddraw.h:1258
struct _DDRAWI_DDRAWSURFACE_INT * LPDDRAWI_DDRAWSURFACE_INT
Definition: ddrawi.h:132
HRESULT WINAPI ThunkDirectDraw_CreateClipper(LPDIRECTDRAW iface, DWORD dwFlags, LPDIRECTDRAWCLIPPER *ppClipper, IUnknown *pUnkOuter)
Definition: ddraw_thunk.c:105
HRESULT WINAPI Main_DirectDraw_RestoreAllSurfaces(LPDDRAWI_DIRECTDRAW_INT This)
Definition: ddraw_stubs.c:111
HRESULT WINAPI Main_DirectDraw_WaitForVerticalBlank(LPDDRAWI_DIRECTDRAW_INT This, DWORD dwFlags, HANDLE h)
Definition: ddraw_stubs.c:97
#define d
Definition: ke_i.h:81
HRESULT WINAPI ThunkDirectDraw4_EnumSurfaces(LPDIRECTDRAW4 iface, DWORD dwFlags, LPDDSURFACEDESC2 pDDSD, LPVOID context, LPDDENUMSURFACESCALLBACK2 cb)
Definition: ddraw_thunk.c:401
HRESULT WINAPI ThunkDirectDraw2_FlipToGDISurface(LPDIRECTDRAW2 iface)
Definition: ddraw_thunk.c:421
HRESULT WINAPI Main_DirectDraw_GetFourCCCodes(LPDDRAWI_DIRECTDRAW_INT This, LPDWORD lpNumCodes, LPDWORD lpCodes)
Definition: ddraw_main.c:418
LONG HRESULT
Definition: typedefs.h:77
HRESULT WINAPI ThunkDirectDraw4_RestoreAllSurfaces(LPDIRECTDRAW4 iface)
Definition: ddraw_thunk.c:791
#define WINAPI
Definition: msvc.h:8
HRESULT WINAPI Main_DirectDraw_GetCaps(LPDDRAWI_DIRECTDRAW_INT This, LPDDCAPS pDriverCaps, LPDDCAPS pHELCaps)
Definition: GetCaps.c:23
HRESULT WINAPI ThunkDirectDraw4_GetSurfaceFromDC(LPDIRECTDRAW4 iface, HDC hdc, LPDIRECTDRAWSURFACE4 *pSurf)
Definition: ddraw_thunk.c:783
unsigned long DWORD
Definition: ntddk_ex.h:95
HRESULT WINAPI Main_DirectDraw_Compact(LPDDRAWI_DIRECTDRAW_INT This)
Definition: ddraw_main.c:267
HRESULT WINAPI ThunkDirectDraw_GetScanLine(LPDIRECTDRAW iface, LPDWORD lpdwScanLine)
Definition: ddraw_thunk.c:595
HRESULT WINAPI ThunkDirectDraw_FlipToGDISurface(LPDIRECTDRAW iface)
Definition: ddraw_thunk.c:413
HRESULT WINAPI Main_DirectDraw_CreateClipper(LPDDRAWI_DIRECTDRAW_INT This, DWORD dwFlags, LPDIRECTDRAWCLIPPER *ppClipper, IUnknown *pUnkOuter)
Definition: ddraw_stubs.c:17
HRESULT WINAPI ThunkDirectDraw_GetVerticalBlankStatus(LPDIRECTDRAW iface, LPBOOL lpbIsInVB)
Definition: ddraw_thunk.c:619
HRESULT WINAPI ThunkDirectDraw4_Compact(LPDIRECTDRAW4 iface)
Definition: ddraw_thunk.c:97
HRESULT WINAPI ThunkDirectDraw2_GetDisplayMode(LPDIRECTDRAW2 iface, LPDDSURFACEDESC pDDSD)
Definition: ddraw_thunk.c:487
DWORD dwSize
Definition: ddraw.h:1152
HRESULT WINAPI ThunkDirectDraw_GetMonitorFrequency(LPDIRECTDRAW iface, LPDWORD pdwFreq)
Definition: ddraw_thunk.c:571
HDC hdc
Definition: main.c:9
HRESULT WINAPI ThunkDirectDraw4_CreatePalette(LPDIRECTDRAW4 iface, DWORD dwFlags, LPPALETTEENTRY pEntries, LPDIRECTDRAWPALETTE *ppPalette, IUnknown *pUnkOuter)
Definition: ddraw_thunk.c:151
HRESULT WINAPI ThunkDirectDraw2_CreateSurface(LPDIRECTDRAW2 iface, LPDDSURFACEDESC pDDSD, LPDIRECTDRAWSURFACE *ppSurface, IUnknown *pUnkOuter)
Definition: ddraw_thunk.c:193
HRESULT WINAPI Main_DirectDraw_CreateSurface(LPDDRAWI_DIRECTDRAW_INT This, LPDDSURFACEDESC pDDSD, LPDDRAWI_DDRAWSURFACE_INT *ppSurf, IUnknown *pUnkOuter)
Definition: ddraw_main.c:478
_In_ PCCERT_CONTEXT _In_ DWORD dwFlags
Definition: wincrypt.h:1175
HRESULT WINAPI Main_DirectDraw_EnumDisplayModes(LPDDRAWI_DIRECTDRAW_INT This, DWORD dwFlags, LPDDSURFACEDESC pDDSD, LPVOID pContext, LPDDENUMMODESCALLBACK pCallback)
IDirectDrawSurface3Vtbl DirectDrawSurface3_VTable
#define memcpy(s1, s2, n)
Definition: mkisofs.h:878
ULONG WINAPI Main_DirectDraw_AddRef(LPDDRAWI_DIRECTDRAW_INT This)
Definition: ddraw_main.c:145
GLenum src
Definition: glext.h:6340
HRESULT WINAPI ThunkDirectDraw2_GetScanLine(LPDIRECTDRAW2 iface, LPDWORD lpdwScanLine)
Definition: ddraw_thunk.c:603
HRESULT WINAPI ThunkDirectDraw4_GetDisplayMode(LPDIRECTDRAW4 iface, LPDDSURFACEDESC2 pDDSD2)
Definition: ddraw_thunk.c:512
HRESULT WINAPI Main_DirectDraw_GetDeviceIdentifier(LPDDRAWI_DIRECTDRAW_INT This, LPDDDEVICEIDENTIFIER pDDDI, DWORD dwFlags)
HRESULT WINAPI ThunkDirectDraw2_SetDisplayMode(LPDIRECTDRAW2 iface, DWORD dwWidth, DWORD dwHeight, DWORD dwBPP, DWORD d, DWORD e)
Definition: ddraw_thunk.c:739
ULONG WINAPI ThunkDirectDraw4_AddRef(LPDIRECTDRAW4 iface)
Definition: ddraw_thunk.c:49
HRESULT WINAPI Main_DirectDraw_DuplicateSurface(LPDDRAWI_DIRECTDRAW_INT This, LPDIRECTDRAWSURFACE7 src, LPDIRECTDRAWSURFACE7 *dst)
Definition: ddraw_stubs.c:26
HRESULT WINAPI ThunkDirectDraw_EnumDisplayModes(LPDIRECTDRAW iface, DWORD dwFlags, LPDDSURFACEDESC pDDSD, LPVOID context, LPDDENUMMODESCALLBACK cb)
Definition: ddraw_thunk.c:271
HRESULT WINAPI ThunkDirectDraw_SetDisplayMode(LPDIRECTDRAW iface, DWORD dwWidth, DWORD dwHeight, DWORD dwBPP)
Definition: ddraw_thunk.c:731
HRESULT WINAPI ThunkDirectDraw4_QueryInterface(LPDIRECTDRAW4 iface, REFIID iid, LPVOID *ppObj)
Definition: ddraw_thunk.c:25
HRESULT WINAPI ThunkDirectDraw_EnumSurfaces(LPDIRECTDRAW iface, DWORD dwFlags, LPDDSURFACEDESC pDDSD, LPVOID context, LPDDENUMSURFACESCALLBACK cb)
Definition: ddraw_thunk.c:343
HRESULT WINAPI Main_DirectDraw_RestoreDisplayMode(LPDDRAWI_DIRECTDRAW_INT This)
IDirectDrawVtbl DirectDraw_Vtable
Definition: ddraw_thunk.c:835
struct IDirectDrawClipper * LPDIRECTDRAWCLIPPER
Definition: ddraw.h:721
BOOL * LPBOOL
Definition: windef.h:162
IDirectDraw4Vtbl DirectDraw4_Vtable
Definition: ddraw_thunk.c:890
HRESULT WINAPI ThunkDirectDraw_RestoreDisplayMode(LPDIRECTDRAW iface)
Definition: ddraw_thunk.c:683
HRESULT WINAPI ThunkDirectDraw_GetFourCCCodes(LPDIRECTDRAW iface, LPDWORD pNumCodes, LPDWORD pCodes)
Definition: ddraw_thunk.c:520
GLenum GLenum dst
Definition: glext.h:6340
HRESULT WINAPI ThunkDirectDraw_CreateSurface(LPDIRECTDRAW iface, LPDDSURFACEDESC pDDSD, LPDIRECTDRAWSURFACE *ppSurf, IUnknown *pUnkOuter)
Definition: ddraw_thunk.c:160
DWORD * LPDIRECTDRAW7
Definition: vmrender.idl:4
static HMODULE MODULEINFO DWORD cb
Definition: module.c:32
HRESULT WINAPI ThunkDirectDraw4_SetCooperativeLevel(LPDIRECTDRAW4 iface, HWND hwnd, DWORD dwFlags)
Definition: ddraw_thunk.c:723
struct _DDSURFACEDESC2 DDSURFACEDESC2
HRESULT WINAPI ThunkDirectDraw4_GetGDISurface(LPDIRECTDRAW4 iface, LPDIRECTDRAWSURFACE4 *lplpGDIDDSSurface)
Definition: ddraw_thunk.c:563
uint32_t * LPDWORD
Definition: typedefs.h:57
unsigned int ULONG
Definition: retypes.h:1
HRESULT WINAPI ThunkDirectDraw2_QueryInterface(LPDIRECTDRAW2 iface, REFIID iid, LPVOID *obj)
Definition: ddraw_thunk.c:16
ULONG WINAPI ThunkDirectDraw2_Release(LPDIRECTDRAW2 iface)
Definition: ddraw_thunk.c:65
HRESULT WINAPI ThunkDirectDraw4_WaitForVerticalBlank(LPDIRECTDRAW4 iface, DWORD dwFlags, HANDLE hEvent)
Definition: ddraw_thunk.c:771
HRESULT WINAPI ThunkDirectDraw_SetCooperativeLevel(LPDIRECTDRAW iface, HWND hwnd, DWORD dwFlags)
Definition: ddraw_thunk.c:707
HRESULT WINAPI Main_DirectDraw_SetCooperativeLevel(LPDDRAWI_DIRECTDRAW_INT This, HWND hwnd, DWORD cooplevel)
ULONG WINAPI Main_DirectDraw_Release(LPDDRAWI_DIRECTDRAW_INT This)
Definition: ddraw_main.c:194
static const WCHAR dwWidth[]
Definition: provider.c:62
HRESULT WINAPI ThunkDirectDraw_QueryInterface(LPDIRECTDRAW iface, REFIID iid, LPVOID *ppObj)
Definition: ddraw_thunk.c:8
HRESULT WINAPI ThunkDirectDraw2_WaitForVerticalBlank(LPDIRECTDRAW2 iface, DWORD dwFlags, HANDLE hEvent)
Definition: ddraw_thunk.c:763
HRESULT WINAPI Main_DirectDraw_GetScanLine(LPDDRAWI_DIRECTDRAW_INT This, LPDWORD lpdwScanLine)
Definition: ddraw_stubs.c:80
DWORD * LPDIRECTDRAWSURFACE7
Definition: vmrender.idl:7
struct IDirectDrawPalette * LPDIRECTDRAWPALETTE
Definition: ddraw.h:720
HRESULT WINAPI ThunkDirectDraw2_SetCooperativeLevel(LPDIRECTDRAW2 iface, HWND hwnd, DWORD dwFlags)
Definition: ddraw_thunk.c:715
HRESULT WINAPI Main_DirectDraw_QueryInterface(LPDDRAWI_DIRECTDRAW_INT This, REFIID id, LPVOID *obj)
Definition: ddraw_main.c:37
struct IDirectDrawSurface4 * LPDIRECTDRAWSURFACE4
Definition: ddraw.h:718
HRESULT WINAPI ThunkDirectDraw2_EnumDisplayModes(LPDIRECTDRAW2 iface, DWORD dwFlags, LPDDSURFACEDESC pDDSD, LPVOID context, LPDDENUMMODESCALLBACK cb)
Definition: ddraw_thunk.c:300