Sync with trunk (r48545)
[reactos.git] / include / psdk / ddraw.h
1
2 #ifndef __DDRAW_INCLUDED__
3 #define __DDRAW_INCLUDED__
4
5 #if defined(_WIN32) && !defined(_NO_COM )
6 #define COM_NO_WINDOWS_H
7 #include <objbase.h>
8 #else
9 #define IUnknown void
10 #if !defined(NT_BUILD_ENVIRONMENT) && !defined(_WINNT_H)
11 #define CO_E_NOTINITIALIZED 0x800401F0L
12 #endif
13 #endif
14
15 #define _FACDD 0x876
16 #define MAKE_DDHRESULT(c) MAKE_HRESULT(1,_FACDD,c)
17
18 #ifndef DIRECTDRAW_VERSION
19 #define DIRECTDRAW_VERSION 0x0700
20 #endif
21
22 #undef ENABLE_NAMELESS_UNION_PRAGMA
23 #ifdef DIRECTX_REDIST
24 #define ENABLE_NAMELESS_UNION_PRAGMA
25 #endif
26
27 #ifdef ENABLE_NAMELESS_UNION_PRAGMA
28 #pragma warning(disable:4201)
29 #endif
30
31 #ifndef DUMMYUNIONNAMEN
32 #if defined(__cplusplus) || !defined(NONAMELESSUNION)
33 #define DUMMYUNIONNAMEN(n)
34 #else
35 #define DUMMYUNIONNAMEN(n) u##n
36 #endif
37 #endif
38
39 #if defined(WINNT) || !defined(WIN32)
40 #ifndef _HRESULT_DEFINED
41 #define _HRESULT_DEFINED
42 typedef long HRESULT;
43 #endif
44 #endif
45
46 /* Helper macro to enable gcc's extension. */
47 #ifndef __GNU_EXTENSION
48 #ifdef __GNUC__
49 #define __GNU_EXTENSION __extension__
50 #else
51 #define __GNU_EXTENSION
52 #endif
53 #endif
54
55 #ifdef __cplusplus
56 extern "C" {
57 #endif
58
59 /* This define are obsolete in ms ddk, but are use internal in Windows NT4/2000/XP/2003/ReactOS */
60 #define DDCAPS_STEREOVIEW 0x00040000
61
62
63 /* Orgnal */
64 #define DDERR_ALREADYINITIALIZED MAKE_DDHRESULT( 5)
65 #define DDERR_CANNOTATTACHSURFACE MAKE_DDHRESULT(10)
66 #define DDERR_CANNOTDETACHSURFACE MAKE_DDHRESULT(20)
67 #define DDERR_CURRENTLYNOTAVAIL MAKE_DDHRESULT(40)
68 #define DDERR_EXCEPTION MAKE_DDHRESULT(55)
69 #define DDERR_GENERIC E_FAIL
70 #define DDERR_HEIGHTALIGN MAKE_DDHRESULT( 90)
71 #define DDERR_INCOMPATIBLEPRIMARY MAKE_DDHRESULT( 95)
72 #define DDERR_INVALIDCAPS MAKE_DDHRESULT(100)
73 #define DDERR_INVALIDCLIPLIST MAKE_DDHRESULT(110)
74 #define DDERR_INVALIDMODE MAKE_DDHRESULT(120)
75 #define DDERR_INVALIDOBJECT MAKE_DDHRESULT(130)
76 #define DDERR_INVALIDPARAMS E_INVALIDARG
77 #define DDERR_INVALIDPIXELFORMAT MAKE_DDHRESULT(145)
78 #define DDERR_INVALIDRECT MAKE_DDHRESULT(150)
79 #define DDERR_LOCKEDSURFACES MAKE_DDHRESULT(160)
80 #define DDERR_NO3D MAKE_DDHRESULT(170)
81 #define DDERR_NOALPHAHW MAKE_DDHRESULT(180)
82 #define DDERR_NOSTEREOHARDWARE MAKE_DDHRESULT(181)
83 #define DDERR_NOSURFACELEFT MAKE_DDHRESULT(182)
84 #define DDERR_NOCLIPLIST MAKE_DDHRESULT(205)
85 #define DDERR_NOCOLORCONVHW MAKE_DDHRESULT(210)
86 #define DDERR_NOCOOPERATIVELEVELSET MAKE_DDHRESULT(212)
87 #define DDERR_NOCOLORKEY MAKE_DDHRESULT(215)
88 #define DDERR_NOCOLORKEYHW MAKE_DDHRESULT(220)
89 #define DDERR_NODIRECTDRAWSUPPORT MAKE_DDHRESULT(222)
90 #define DDERR_NOEXCLUSIVEMODE MAKE_DDHRESULT(225)
91 #define DDERR_NOFLIPHW MAKE_DDHRESULT(230)
92 #define DDERR_NOGDI MAKE_DDHRESULT(240)
93 #define DDERR_NOMIRRORHW MAKE_DDHRESULT(250)
94 #define DDERR_NOTFOUND MAKE_DDHRESULT(255)
95 #define DDERR_NOOVERLAYHW MAKE_DDHRESULT(260)
96 #define DDERR_OVERLAPPINGRECTS MAKE_DDHRESULT(270)
97 #define DDERR_NORASTEROPHW MAKE_DDHRESULT(280)
98 #define DDERR_NOROTATIONHW MAKE_DDHRESULT(290)
99 #define DDERR_NOSTRETCHHW MAKE_DDHRESULT(310)
100 #define DDERR_NOT4BITCOLOR MAKE_DDHRESULT(316)
101 #define DDERR_NOT4BITCOLORINDEX MAKE_DDHRESULT(317)
102 #define DDERR_NOT8BITCOLOR MAKE_DDHRESULT(320)
103 #define DDERR_NOTEXTUREHW MAKE_DDHRESULT(330)
104 #define DDERR_NOVSYNCHW MAKE_DDHRESULT(335)
105 #define DDERR_NOZBUFFERHW MAKE_DDHRESULT(340)
106 #define DDERR_NOZOVERLAYHW MAKE_DDHRESULT(350)
107 #define DDERR_OUTOFCAPS MAKE_DDHRESULT(360)
108 #define DDERR_OUTOFMEMORY E_OUTOFMEMORY
109 #define DDERR_OUTOFVIDEOMEMORY MAKE_DDHRESULT(380)
110 #define DDERR_OVERLAYCANTCLIP MAKE_DDHRESULT(382)
111 #define DDERR_OVERLAYCOLORKEYONLYONEACTIVE MAKE_DDHRESULT(384)
112 #define DDERR_PALETTEBUSY MAKE_DDHRESULT(387)
113 #define DDERR_COLORKEYNOTSET MAKE_DDHRESULT(400)
114 #define DDERR_SURFACEALREADYATTACHED MAKE_DDHRESULT(410)
115 #define DDERR_SURFACEALREADYDEPENDENT MAKE_DDHRESULT(420)
116 #define DDERR_SURFACEBUSY MAKE_DDHRESULT(430)
117 #define DDERR_CANTLOCKSURFACE MAKE_DDHRESULT(435)
118 #define DDERR_SURFACEISOBSCURED MAKE_DDHRESULT(440)
119 #define DDERR_SURFACELOST MAKE_DDHRESULT(450)
120 #define DDERR_SURFACENOTATTACHED MAKE_DDHRESULT(460)
121 #define DDERR_TOOBIGHEIGHT MAKE_DDHRESULT(470)
122 #define DDERR_TOOBIGSIZE MAKE_DDHRESULT(480)
123 #define DDERR_TOOBIGWIDTH MAKE_DDHRESULT(490)
124 #define DDERR_UNSUPPORTED E_NOTIMPL
125 #define DDERR_UNSUPPORTEDFORMAT MAKE_DDHRESULT(510)
126 #define DDERR_UNSUPPORTEDMASK MAKE_DDHRESULT(520)
127 #define DDERR_INVALIDSTREAM MAKE_DDHRESULT(521)
128 #define DDERR_VERTICALBLANKINPROGRESS MAKE_DDHRESULT(537)
129 #define DDERR_WASSTILLDRAWING MAKE_DDHRESULT(540)
130 #define DDERR_DDSCAPSCOMPLEXREQUIRED MAKE_DDHRESULT(542)
131 #define DDERR_XALIGN MAKE_DDHRESULT(560)
132 #define DDERR_INVALIDDIRECTDRAWGUID MAKE_DDHRESULT(561)
133 #define DDERR_DIRECTDRAWALREADYCREATED MAKE_DDHRESULT(562)
134 #define DDERR_NODIRECTDRAWHW MAKE_DDHRESULT(563)
135 #define DDERR_PRIMARYSURFACEALREADYEXISTS MAKE_DDHRESULT(564)
136 #define DDERR_NOEMULATION MAKE_DDHRESULT(565)
137 #define DDERR_REGIONTOOSMALL MAKE_DDHRESULT(566)
138 #define DDERR_CLIPPERISUSINGHWND MAKE_DDHRESULT(567)
139 #define DDERR_NOCLIPPERATTACHED MAKE_DDHRESULT(568)
140 #define DDERR_NOHWND MAKE_DDHRESULT(569)
141 #define DDERR_HWNDSUBCLASSED MAKE_DDHRESULT(570)
142 #define DDERR_HWNDALREADYSET MAKE_DDHRESULT(571)
143 #define DDERR_NOPALETTEATTACHED MAKE_DDHRESULT(572)
144 #define DDERR_NOPALETTEHW MAKE_DDHRESULT(573)
145 #define DDERR_BLTFASTCANTCLIP MAKE_DDHRESULT(574)
146 #define DDERR_NOBLTHW MAKE_DDHRESULT(575)
147 #define DDERR_NODDROPSHW MAKE_DDHRESULT(576)
148 #define DDERR_OVERLAYNOTVISIBLE MAKE_DDHRESULT(577)
149 #define DDERR_NOOVERLAYDEST MAKE_DDHRESULT(578)
150 #define DDERR_INVALIDPOSITION MAKE_DDHRESULT(579)
151 #define DDERR_NOTAOVERLAYSURFACE MAKE_DDHRESULT(580)
152 #define DDERR_EXCLUSIVEMODEALREADYSET MAKE_DDHRESULT(581)
153 #define DDERR_NOTFLIPPABLE MAKE_DDHRESULT(582)
154 #define DDERR_CANTDUPLICATE MAKE_DDHRESULT(583)
155 #define DDERR_NOTLOCKED MAKE_DDHRESULT(584)
156 #define DDERR_CANTCREATEDC MAKE_DDHRESULT(585)
157 #define DDERR_NODC MAKE_DDHRESULT(586)
158 #define DDERR_WRONGMODE MAKE_DDHRESULT(587)
159 #define DDERR_IMPLICITLYCREATED MAKE_DDHRESULT(588)
160 #define DDERR_NOTPALETTIZED MAKE_DDHRESULT(589)
161 #define DDERR_UNSUPPORTEDMODE MAKE_DDHRESULT(590)
162 #define DDERR_NOMIPMAPHW MAKE_DDHRESULT(591)
163 #define DDERR_INVALIDSURFACETYPE MAKE_DDHRESULT(592)
164 #define DDERR_NOOPTIMIZEHW MAKE_DDHRESULT(600)
165 #define DDERR_NOTLOADED MAKE_DDHRESULT(601)
166 #define DDERR_NOFOCUSWINDOW MAKE_DDHRESULT(602)
167 #define DDERR_NOTONMIPMAPSUBLEVEL MAKE_DDHRESULT(603)
168 #define DDERR_DCALREADYCREATED MAKE_DDHRESULT(620)
169 #define DDERR_NONONLOCALVIDMEM MAKE_DDHRESULT(630)
170 #define DDERR_CANTPAGELOCK MAKE_DDHRESULT(640)
171 #define DDERR_CANTPAGEUNLOCK MAKE_DDHRESULT(660)
172 #define DDERR_NOTPAGELOCKED MAKE_DDHRESULT(680)
173 #define DDERR_MOREDATA MAKE_DDHRESULT(690)
174 #define DDERR_EXPIRED MAKE_DDHRESULT(691)
175 #define DDERR_TESTFINISHED MAKE_DDHRESULT(692)
176 #define DDERR_NEWMODE MAKE_DDHRESULT(693)
177 #define DDERR_D3DNOTINITIALIZED MAKE_DDHRESULT(694)
178 #define DDERR_VIDEONOTACTIVE MAKE_DDHRESULT(695)
179 #define DDERR_NOMONITORINFORMATION MAKE_DDHRESULT(696)
180 #define DDERR_NODRIVERSUPPORT MAKE_DDHRESULT(697)
181 #define DDERR_DEVICEDOESNTOWNSURFACE MAKE_DDHRESULT(699)
182 #define DDERR_NOTINITIALIZED CO_E_NOTINITIALIZED
183 #define DD_OK S_OK
184 #define DD_FALSE S_FALSE
185 #define DDENUMRET_CANCEL 0
186 #define DDENUMRET_OK 1
187
188 #define DDENUM_ATTACHEDSECONDARYDEVICES 0x00000001
189 #define DDENUM_DETACHEDSECONDARYDEVICES 0x00000002
190 #define DDENUM_NONDISPLAYDEVICES 0x00000004
191
192 #define REGSTR_KEY_DDHW_DESCRIPTION "Description"
193 #define REGSTR_KEY_DDHW_DRIVERNAME "DriverName"
194 #define REGSTR_PATH_DDHW "Hardware\\DirectDrawDrivers"
195 #define DDCREATE_HARDWAREONLY 0x00000001
196 #define DDCREATE_EMULATIONONLY 0x00000002
197 #define DD_ROP_SPACE (256/32)
198 #define MAX_DDDEVICEID_STRING 512
199 #define DDGDI_GETHOSTIDENTIFIER 0x00000001
200 #define DDSGR_CALIBRATE 0x00000001
201 #define DDSMT_ISTESTREQUIRED 0x00000001
202 #define DDEM_MODEPASSED 0x00000001
203 #define DDEM_MODEFAILED 0x00000002
204
205 #define DDSD_CAPS 0x00000001
206 #define DDSD_HEIGHT 0x00000002
207 #define DDSD_WIDTH 0x00000004
208 #define DDSD_PITCH 0x00000008
209 #define DDSD_BACKBUFFERCOUNT 0x00000020
210 #define DDSD_ZBUFFERBITDEPTH 0x00000040
211 #define DDSD_ALPHABITDEPTH 0x00000080
212 #define DDSD_LPSURFACE 0x00000800
213 #define DDSD_PIXELFORMAT 0x00001000
214 #define DDSD_CKDESTOVERLAY 0x00002000
215 #define DDSD_CKDESTBLT 0x00004000
216 #define DDSD_CKSRCOVERLAY 0x00008000
217 #define DDSD_CKSRCBLT 0x00010000
218 #define DDSD_MIPMAPCOUNT 0x00020000
219 #define DDSD_REFRESHRATE 0x00040000
220 #define DDSD_LINEARSIZE 0x00080000
221 #define DDSD_TEXTURESTAGE 0x00100000
222 #define DDSD_FVF 0x00200000
223 #define DDSD_SRCVBHANDLE 0x00400000
224 #define DDSD_DEPTH 0x00800000
225 #define DDSD_ALL 0x00FFF9EE
226
227 #define DDOSD_GUID 0x00000001
228 #define DDOSD_COMPRESSION_RATIO 0x00000002
229 #define DDOSD_SCAPS 0x00000004
230 #define DDOSD_OSCAPS 0x00000008
231 #define DDOSD_ALL 0x0000000f
232 #define DDOSDCAPS_OPTCOMPRESSED 0x00000001
233 #define DDOSDCAPS_OPTREORDERED 0x00000002
234 #define DDOSDCAPS_MONOLITHICMIPMAP 0x00000004
235 #define DDOSDCAPS_VALIDSCAPS 0x30004800
236 #define DDOSDCAPS_VALIDOSCAPS 0x00000007
237
238 #define DDCOLOR_BRIGHTNESS 0x00000001
239 #define DDCOLOR_CONTRAST 0x00000002
240 #define DDCOLOR_HUE 0x00000004
241 #define DDCOLOR_SATURATION 0x00000008
242 #define DDCOLOR_SHARPNESS 0x00000010
243 #define DDCOLOR_GAMMA 0x00000020
244 #define DDCOLOR_COLORENABLE 0x00000040
245
246 #define DDSCAPS_RESERVED1 0x00000001
247 #define DDSCAPS_ALPHA 0x00000002
248 #define DDSCAPS_BACKBUFFER 0x00000004
249 #define DDSCAPS_COMPLEX 0x00000008
250 #define DDSCAPS_FLIP 0x00000010
251 #define DDSCAPS_FRONTBUFFER 0x00000020
252 #define DDSCAPS_OFFSCREENPLAIN 0x00000040
253 #define DDSCAPS_OVERLAY 0x00000080
254 #define DDSCAPS_PALETTE 0x00000100
255 #define DDSCAPS_PRIMARYSURFACE 0x00000200
256 #define DDSCAPS_RESERVED3 0x00000400
257 #define DDSCAPS_PRIMARYSURFACELEFT 0x00000000
258 #define DDSCAPS_SYSTEMMEMORY 0x00000800
259 #define DDSCAPS_TEXTURE 0x00001000
260 #define DDSCAPS_3DDEVICE 0x00002000
261 #define DDSCAPS_VIDEOMEMORY 0x00004000
262 #define DDSCAPS_VISIBLE 0x00008000
263 #define DDSCAPS_WRITEONLY 0x00010000
264 #define DDSCAPS_ZBUFFER 0x00020000
265 #define DDSCAPS_OWNDC 0x00040000
266 #define DDSCAPS_LIVEVIDEO 0x00080000
267 #define DDSCAPS_HWCODEC 0x00100000
268 #define DDSCAPS_MODEX 0x00200000
269 #define DDSCAPS_MIPMAP 0x00400000
270 #define DDSCAPS_RESERVED2 0x00800000
271 #define DDSCAPS_ALLOCONLOAD 0x04000000
272 #define DDSCAPS_VIDEOPORT 0x08000000
273 #define DDSCAPS_LOCALVIDMEM 0x10000000
274 #define DDSCAPS_NONLOCALVIDMEM 0x20000000
275 #define DDSCAPS_STANDARDVGAMODE 0x40000000
276 #define DDSCAPS_OPTIMIZED 0x80000000
277
278 #define DDSCAPS2_HARDWAREDEINTERLACE 0x00000000
279 #define DDSCAPS2_RESERVED4 0x00000002
280 #define DDSCAPS2_HINTDYNAMIC 0x00000004
281 #define DDSCAPS2_HINTSTATIC 0x00000008
282 #define DDSCAPS2_TEXTUREMANAGE 0x00000010
283 #define DDSCAPS2_RESERVED1 0x00000020
284 #define DDSCAPS2_RESERVED2 0x00000040
285 #define DDSCAPS2_OPAQUE 0x00000080
286 #define DDSCAPS2_HINTANTIALIASING 0x00000100
287 #define DDSCAPS2_CUBEMAP 0x00000200
288 #define DDSCAPS2_CUBEMAP_POSITIVEX 0x00000400
289 #define DDSCAPS2_CUBEMAP_NEGATIVEX 0x00000800
290 #define DDSCAPS2_CUBEMAP_POSITIVEY 0x00001000
291 #define DDSCAPS2_CUBEMAP_NEGATIVEY 0x00002000
292 #define DDSCAPS2_CUBEMAP_POSITIVEZ 0x00004000
293 #define DDSCAPS2_CUBEMAP_NEGATIVEZ 0x00008000
294 #define DDSCAPS2_CUBEMAP_ALLFACES ( DDSCAPS2_CUBEMAP_POSITIVEX |\
295 DDSCAPS2_CUBEMAP_NEGATIVEX |\
296 DDSCAPS2_CUBEMAP_POSITIVEY |\
297 DDSCAPS2_CUBEMAP_NEGATIVEY |\
298 DDSCAPS2_CUBEMAP_POSITIVEZ |\
299 DDSCAPS2_CUBEMAP_NEGATIVEZ )
300
301 #define DDSCAPS2_MIPMAPSUBLEVEL 0x00010000
302 #define DDSCAPS2_D3DTEXTUREMANAGE 0x00020000
303 #define DDSCAPS2_DONOTPERSIST 0x00040000
304 #define DDSCAPS2_STEREOSURFACELEFT 0x00080000
305 #define DDSCAPS2_VOLUME 0x00200000
306 #define DDSCAPS2_NOTUSERLOCKABLE 0x00400000
307 #define DDSCAPS2_POINTS 0x00800000
308
309 #define DDSCAPS2_RTPATCHES 0x01000000
310 #define DDSCAPS2_NPATCHES 0x02000000
311 #define DDSCAPS2_RESERVED3 0x04000000
312 #define DDSCAPS2_DISCARDBACKBUFFER 0x10000000
313 #define DDSCAPS2_ENABLEALPHACHANNEL 0x20000000
314 #define DDSCAPS2_EXTENDEDFORMATPRIMARY 0x40000000
315 #define DDSCAPS2_ADDITIONALPRIMARY 0x80000000
316
317 #define DDSCAPS3_MULTISAMPLE_MASK 0x0000001F
318 #define DDSCAPS3_MULTISAMPLE_QUALITY_MASK 0x000000E0
319 #define DDSCAPS3_MULTISAMPLE_QUALITY_SHIFT 5
320 #define DDSCAPS3_RESERVED1 0x00000100
321 #define DDSCAPS3_RESERVED2 0x00000200
322 #define DDSCAPS3_LIGHTWEIGHTMIPMAP 0x00000400
323 #define DDSCAPS3_AUTOGENMIPMAP 0x00000800
324 #define DDSCAPS3_DMAP 0x00001000
325
326 #define DDCAPS_3D 0x00000001
327 #define DDCAPS_ALIGNBOUNDARYDEST 0x00000002
328 #define DDCAPS_ALIGNSIZEDEST 0x00000004
329 #define DDCAPS_ALIGNBOUNDARYSRC 0x00000008
330 #define DDCAPS_ALIGNSIZESRC 0x00000010
331 #define DDCAPS_ALIGNSTRIDE 0x00000020
332 #define DDCAPS_BLT 0x00000040
333 #define DDCAPS_BLTQUEUE 0x00000080
334 #define DDCAPS_BLTFOURCC 0x00000100
335 #define DDCAPS_BLTSTRETCH 0x00000200
336 #define DDCAPS_GDI 0x00000400
337 #define DDCAPS_OVERLAY 0x00000800
338 #define DDCAPS_OVERLAYCANTCLIP 0x00001000
339 #define DDCAPS_OVERLAYFOURCC 0x00002000
340 #define DDCAPS_OVERLAYSTRETCH 0x00004000
341 #define DDCAPS_PALETTE 0x00008000
342 #define DDCAPS_PALETTEVSYNC 0x00010000
343 #define DDCAPS_READSCANLINE 0x00020000
344 #define DDCAPS_RESERVED1 0x00040000
345 #define DDCAPS_VBI 0x00080000
346 #define DDCAPS_ZBLTS 0x00100000
347 #define DDCAPS_ZOVERLAYS 0x00200000
348 #define DDCAPS_COLORKEY 0x00400000
349 #define DDCAPS_ALPHA 0x00800000
350 #define DDCAPS_COLORKEYHWASSIST 0x01000000
351 #define DDCAPS_NOHARDWARE 0x02000000
352 #define DDCAPS_BLTCOLORFILL 0x04000000
353 #define DDCAPS_BANKSWITCHED 0x08000000
354 #define DDCAPS_BLTDEPTHFILL 0x10000000
355 #define DDCAPS_CANCLIP 0x20000000
356 #define DDCAPS_CANCLIPSTRETCHED 0x40000000
357 #define DDCAPS_CANBLTSYSMEM 0x80000000
358
359 #define DDCAPS2_CERTIFIED 0x00000001
360 #define DDCAPS2_NO2DDURING3DSCENE 0x00000002
361 #define DDCAPS2_VIDEOPORT 0x00000004
362 #define DDCAPS2_AUTOFLIPOVERLAY 0x00000008
363 #define DDCAPS2_CANBOBINTERLEAVED 0x00000010
364 #define DDCAPS2_CANBOBNONINTERLEAVED 0x00000020
365 #define DDCAPS2_COLORCONTROLOVERLAY 0x00000040
366 #define DDCAPS2_COLORCONTROLPRIMARY 0x00000080
367 #define DDCAPS2_CANDROPZ16BIT 0x00000100
368 #define DDCAPS2_NONLOCALVIDMEM 0x00000200
369 #define DDCAPS2_NONLOCALVIDMEMCAPS 0x00000400
370 #define DDCAPS2_NOPAGELOCKREQUIRED 0x00000800
371 #define DDCAPS2_WIDESURFACES 0x00001000
372 #define DDCAPS2_CANFLIPODDEVEN 0x00002000
373 #define DDCAPS2_CANBOBHARDWARE 0x00004000
374 #define DDCAPS2_COPYFOURCC 0x00008000
375 #define DDCAPS2_PRIMARYGAMMA 0x00020000
376 #define DDCAPS2_CANRENDERWINDOWED 0x00080000
377 #define DDCAPS2_CANCALIBRATEGAMMA 0x00100000
378 #define DDCAPS2_FLIPINTERVAL 0x00200000
379 #define DDCAPS2_FLIPNOVSYNC 0x00400000
380 #define DDCAPS2_CANMANAGETEXTURE 0x00800000
381 #define DDCAPS2_TEXMANINNONLOCALVIDMEM 0x01000000
382 #define DDCAPS2_STEREO 0x02000000
383 #define DDCAPS2_SYSTONONLOCAL_AS_SYSTOLOCAL 0x04000000
384 #define DDCAPS2_RESERVED1 0x08000000
385 #define DDCAPS2_CANMANAGERESOURCE 0x10000000
386 #define DDCAPS2_DYNAMICTEXTURES 0x20000000
387 #define DDCAPS2_CANAUTOGENMIPMAP 0x40000000
388
389 #define DDFXALPHACAPS_BLTALPHAEDGEBLEND 0x00000001
390 #define DDFXALPHACAPS_BLTALPHAPIXELS 0x00000002
391 #define DDFXALPHACAPS_BLTALPHAPIXELSNEG 0x00000004
392 #define DDFXALPHACAPS_BLTALPHASURFACES 0x00000008
393 #define DDFXALPHACAPS_BLTALPHASURFACESNEG 0x00000010
394 #define DDFXALPHACAPS_OVERLAYALPHAEDGEBLEND 0x00000020
395 #define DDFXALPHACAPS_OVERLAYALPHAPIXELS 0x00000040
396 #define DDFXALPHACAPS_OVERLAYALPHAPIXELSNEG 0x00000080
397 #define DDFXALPHACAPS_OVERLAYALPHASURFACES 0x00000100
398 #define DDFXALPHACAPS_OVERLAYALPHASURFACESNEG 0x00000200
399
400
401 #define DDFXCAPS_BLTALPHA 0x00000001
402 #define DDFXCAPS_OVERLAYALPHA 0x00000004
403 #define DDFXCAPS_OVERLAYARITHSTRETCHYN 0x00000008
404 #define DDFXCAPS_BLTARITHSTRETCHY 0x00000020
405 #define DDFXCAPS_BLTARITHSTRETCHYN 0x00000010
406 #define DDFXCAPS_BLTMIRRORLEFTRIGHT 0x00000040
407 #define DDFXCAPS_BLTMIRRORUPDOWN 0x00000080
408 #define DDFXCAPS_BLTROTATION 0x00000100
409 #define DDFXCAPS_BLTROTATION90 0x00000200
410 #define DDFXCAPS_BLTSHRINKX 0x00000400
411 #define DDFXCAPS_BLTSHRINKXN 0x00000800
412 #define DDFXCAPS_BLTSHRINKY 0x00001000
413 #define DDFXCAPS_BLTSHRINKYN 0x00002000
414 #define DDFXCAPS_BLTSTRETCHX 0x00004000
415 #define DDFXCAPS_BLTSTRETCHXN 0x00008000
416 #define DDFXCAPS_BLTSTRETCHY 0x00010000
417 #define DDFXCAPS_BLTSTRETCHYN 0x00020000
418 #define DDFXCAPS_OVERLAYARITHSTRETCHY 0x00040000
419 #define DDFXCAPS_OVERLAYSHRINKX 0x00080000
420 #define DDFXCAPS_OVERLAYSHRINKXN 0x00100000
421 #define DDFXCAPS_OVERLAYSHRINKY 0x00200000
422 #define DDFXCAPS_OVERLAYSHRINKYN 0x00400000
423 #define DDFXCAPS_OVERLAYSTRETCHX 0x00800000
424 #define DDFXCAPS_OVERLAYSTRETCHXN 0x01000000
425 #define DDFXCAPS_OVERLAYSTRETCHY 0x02000000
426 #define DDFXCAPS_OVERLAYSTRETCHYN 0x04000000
427 #define DDFXCAPS_OVERLAYMIRRORLEFTRIGHT 0x08000000
428 #define DDFXCAPS_OVERLAYMIRRORUPDOWN 0x10000000
429 #define DDFXCAPS_OVERLAYDEINTERLACE 0x20000000
430 #define DDFXCAPS_BLTFILTER DDFXCAPS_BLTARITHSTRETCHY
431 #define DDFXCAPS_OVERLAYFILTER DDFXCAPS_OVERLAYARITHSTRETCHY
432
433
434 #define DDSVCAPS_RESERVED1 0x00000001
435 #define DDSVCAPS_RESERVED2 0x00000002
436 #define DDSVCAPS_RESERVED3 0x00000004
437 #define DDSVCAPS_RESERVED4 0x00000008
438 /* rember that DDSVCAPS_ENIGMA is same as DDSVCAPS_RESERVED1 */
439 #define DDSVCAPS_ENIGMA 0x00000001
440 /* rember that DDSVCAPS_FLICKER is same as DDSVCAPS_RESERVED2 */
441 #define DDSVCAPS_FLICKER 0x00000002
442 /* rember that DDSVCAPS_REDBLUE is same as DDSVCAPS_RESERVED3 */
443 #define DDSVCAPS_REDBLUE 0x00000004
444 /* rember that DDSVCAPS_SPLIT is same as DDSVCAPS_RESERVED4 */
445 #define DDSVCAPS_SPLIT 0x00000008
446
447 #define DDSVCAPS_STEREOSEQUENTIAL 0x00000010
448
449 #define DDPCAPS_INITIALIZE 0x00000000
450 #define DDPCAPS_4BIT 0x00000001
451 #define DDPCAPS_8BITENTRIES 0x00000002
452 #define DDPCAPS_8BIT 0x00000004
453 #define DDPCAPS_PRIMARYSURFACE 0x00000010
454 #define DDPCAPS_PRIMARYSURFACELEFT 0x00000020
455 #define DDPCAPS_ALLOW256 0x00000040
456 #define DDPCAPS_VSYNC 0x00000080
457 #define DDPCAPS_1BIT 0x00000100
458 #define DDPCAPS_2BIT 0x00000200
459 #define DDPCAPS_ALPHA 0x00000400
460
461 #define DDSPD_IUNKNOWNPOINTER 0x00000001
462 #define DDSPD_VOLATILE 0x00000002
463
464 #define DDBD_1 0x00004000
465 #define DDBD_2 0x00002000
466 #define DDBD_4 0x00001000
467 #define DDBD_8 0x00000800
468 #define DDBD_16 0x00000400
469 #define DDBD_24 0x00000200
470 #define DDBD_32 0x00000100
471
472 #define DDCKEY_COLORSPACE 0x00000001
473 #define DDCKEY_DESTBLT 0x00000002
474 #define DDCKEY_DESTOVERLAY 0x00000004
475 #define DDCKEY_SRCBLT 0x00000008
476 #define DDCKEY_SRCOVERLAY 0x00000010
477
478 #define DDCKEYCAPS_DESTBLT 0x00000001
479 #define DDCKEYCAPS_DESTBLTCLRSPACE 0x00000002
480 #define DDCKEYCAPS_DESTBLTCLRSPACEYUV 0x00000004
481 #define DDCKEYCAPS_DESTBLTYUV 0x00000008
482 #define DDCKEYCAPS_DESTOVERLAY 0x00000010
483 #define DDCKEYCAPS_DESTOVERLAYCLRSPACE 0x00000020
484 #define DDCKEYCAPS_DESTOVERLAYCLRSPACEYUV 0x00000040
485 #define DDCKEYCAPS_DESTOVERLAYONEACTIVE 0x00000080
486 #define DDCKEYCAPS_DESTOVERLAYYUV 0x00000100
487 #define DDCKEYCAPS_SRCBLT 0x00000200
488 #define DDCKEYCAPS_SRCBLTCLRSPACE 0x00000400
489 #define DDCKEYCAPS_SRCBLTCLRSPACEYUV 0x00000800
490 #define DDCKEYCAPS_SRCBLTYUV 0x00001000
491 #define DDCKEYCAPS_SRCOVERLAY 0x00002000
492 #define DDCKEYCAPS_SRCOVERLAYCLRSPACE 0x00004000
493 #define DDCKEYCAPS_SRCOVERLAYCLRSPACEYUV 0x00008000
494 #define DDCKEYCAPS_SRCOVERLAYONEACTIVE 0x00010000
495 #define DDCKEYCAPS_SRCOVERLAYYUV 0x00020000
496 #define DDCKEYCAPS_NOCOSTOVERLAY 0x00040000
497
498 #define DDPF_ALPHAPIXELS 0x00000001
499 #define DDPF_ALPHA 0x00000002
500 #define DDPF_FOURCC 0x00000004
501 #define DDPF_PALETTEINDEXED4 0x00000008
502 #define DDPF_PALETTEINDEXEDTO8 0x00000010
503 #define DDPF_PALETTEINDEXED8 0x00000020
504 #define DDPF_RGB 0x00000040
505 #define DDPF_COMPRESSED 0x00000080
506 #define DDPF_RGBTOYUV 0x00000100
507 #define DDPF_YUV 0x00000200
508 #define DDPF_ZBUFFER 0x00000400
509 #define DDPF_PALETTEINDEXED1 0x00000800
510 #define DDPF_PALETTEINDEXED2 0x00001000
511 #define DDPF_ZPIXELS 0x00002000
512 #define DDPF_STENCILBUFFER 0x00004000
513 #define DDPF_ALPHAPREMULT 0x00008000
514 #define DDPF_LUMINANCE 0x00020000
515 #define DDPF_BUMPLUMINANCE 0x00040000
516 #define DDPF_BUMPDUDV 0x00080000
517
518 #define DDENUMSURFACES_ALL 0x00000001
519 #define DDENUMSURFACES_MATCH 0x00000002
520 #define DDENUMSURFACES_NOMATCH 0x00000004
521 #define DDENUMSURFACES_CANBECREATED 0x00000008
522 #define DDENUMSURFACES_DOESEXIST 0x00000010
523
524 #define DDSDM_STANDARDVGAMODE 0x00000001
525
526 #define DDEDM_REFRESHRATES 0x00000001
527 #define DDEDM_STANDARDVGAMODES 0x00000002
528
529 #define DDSCL_FULLSCREEN 0x00000001
530 #define DDSCL_ALLOWREBOOT 0x00000002
531 #define DDSCL_NOWINDOWCHANGES 0x00000004
532 #define DDSCL_NORMAL 0x00000008
533 #define DDSCL_EXCLUSIVE 0x00000010
534 #define DDSCL_ALLOWMODEX 0x00000040
535 #define DDSCL_SETFOCUSWINDOW 0x00000080
536 #define DDSCL_SETDEVICEWINDOW 0x00000100
537 #define DDSCL_CREATEDEVICEWINDOW 0x00000200
538 #define DDSCL_MULTITHREADED 0x00000400
539 #define DDSCL_FPUSETUP 0x00000800
540 #define DDSCL_FPUPRESERVE 0x00001000
541
542 #define DDBLT_ALPHADEST 0x00000001
543 #define DDBLT_ALPHADESTCONSTOVERRIDE 0x00000002
544 #define DDBLT_ALPHADESTNEG 0x00000004
545 #define DDBLT_ALPHADESTSURFACEOVERRIDE 0x00000008
546 #define DDBLT_ALPHAEDGEBLEND 0x00000010
547 #define DDBLT_ALPHASRC 0x00000020
548 #define DDBLT_ALPHASRCCONSTOVERRIDE 0x00000040
549 #define DDBLT_ALPHASRCNEG 0x00000080
550 #define DDBLT_ALPHASRCSURFACEOVERRIDE 0x00000100
551 #define DDBLT_ASYNC 0x00000200
552 #define DDBLT_COLORFILL 0x00000400
553 #define DDBLT_DDFX 0x00000800
554 #define DDBLT_DDROPS 0x00001000
555 #define DDBLT_KEYDEST 0x00002000
556 #define DDBLT_KEYDESTOVERRIDE 0x00004000
557 #define DDBLT_KEYSRC 0x00008000
558 #define DDBLT_KEYSRCOVERRIDE 0x00010000
559 #define DDBLT_ROP 0x00020000
560 #define DDBLT_ROTATIONANGLE 0x00040000
561 #define DDBLT_ZBUFFER 0x00080000
562 #define DDBLT_ZBUFFERDESTCONSTOVERRIDE 0x00100000
563 #define DDBLT_ZBUFFERDESTOVERRIDE 0x00200000
564 #define DDBLT_ZBUFFERSRCCONSTOVERRIDE 0x00400000
565 #define DDBLT_ZBUFFERSRCOVERRIDE 0x00800000
566 #define DDBLT_WAIT 0x01000000
567 #define DDBLT_DEPTHFILL 0x02000000
568 #define DDBLT_DONOTWAIT 0x08000000
569 #define DDBLT_PRESENTATION 0x10000000
570 #define DDBLT_LAST_PRESENTATION 0x20000000
571 #define DDBLT_EXTENDED_FLAGS 0x40000000
572 #define DDBLT_EXTENDED_LINEAR_CONTENT 0x00000004
573
574 #define DDBLTFAST_NOCOLORKEY 0x00000000
575 #define DDBLTFAST_SRCCOLORKEY 0x00000001
576 #define DDBLTFAST_DESTCOLORKEY 0x00000002
577 #define DDBLTFAST_WAIT 0x00000010
578 #define DDBLTFAST_DONOTWAIT 0x00000020
579
580 #define DDFLIP_WAIT 0x00000001
581 #define DDFLIP_EVEN 0x00000002
582 #define DDFLIP_ODD 0x00000004
583 #define DDFLIP_NOVSYNC 0x00000008
584 #define DDFLIP_STEREO 0x00000010
585 #define DDFLIP_DONOTWAIT 0x00000020
586 #define DDFLIP_INTERVAL2 0x02000000
587 #define DDFLIP_INTERVAL3 0x03000000
588 #define DDFLIP_INTERVAL4 0x04000000
589
590
591 #define DDOVER_ALPHADEST 0x00000001
592 #define DDOVER_ALPHADESTCONSTOVERRIDE 0x00000002
593 #define DDOVER_ALPHADESTNEG 0x00000004
594 #define DDOVER_ALPHADESTSURFACEOVERRIDE 0x00000008
595 #define DDOVER_ALPHAEDGEBLEND 0x00000010
596 #define DDOVER_ALPHASRC 0x00000020
597 #define DDOVER_ALPHASRCCONSTOVERRIDE 0x00000040
598 #define DDOVER_ALPHASRCNEG 0x00000080
599 #define DDOVER_ALPHASRCSURFACEOVERRIDE 0x00000100
600 #define DDOVER_HIDE 0x00000200
601 #define DDOVER_KEYDEST 0x00000400
602 #define DDOVER_KEYDESTOVERRIDE 0x00000800
603 #define DDOVER_KEYSRC 0x00001000
604 #define DDOVER_KEYSRCOVERRIDE 0x00002000
605 #define DDOVER_SHOW 0x00004000
606 #define DDOVER_ADDDIRTYRECT 0x00008000
607 #define DDOVER_REFRESHDIRTYRECTS 0x00010000
608 #define DDOVER_REFRESHALL 0x00020000
609 #define DDOVER_DDFX 0x00080000
610 #define DDOVER_AUTOFLIP 0x00100000
611 #define DDOVER_BOB 0x00200000
612 #define DDOVER_OVERRIDEBOBWEAVE 0x00400000
613 #define DDOVER_INTERLEAVED 0x00800000
614 #define DDOVER_BOBHARDWARE 0x01000000
615 #define DDOVER_ARGBSCALEFACTORS 0x02000000
616 #define DDOVER_DEGRADEARGBSCALING 0x04000000
617
618 #define DDLOCK_SURFACEMEMORYPTR 0x00000000
619 #define DDLOCK_WAIT 0x00000001
620 #define DDLOCK_EVENT 0x00000002
621 #define DDLOCK_READONLY 0x00000010
622 #define DDLOCK_WRITEONLY 0x00000020
623 #define DDLOCK_NOSYSLOCK 0x00000800
624 #define DDLOCK_NOOVERWRITE 0x00001000
625 #define DDLOCK_DISCARDCONTENTS 0x00002000
626 #define DDLOCK_OKTOSWAP 0x00002000
627 #define DDLOCK_DONOTWAIT 0x00004000
628 #define DDLOCK_HASVOLUMETEXTUREBOXRECT 0x00008000
629 #define DDLOCK_NODIRTYUPDATE 0x00010000
630
631 #define DDBLTFX_ARITHSTRETCHY 0x00000001
632 #define DDBLTFX_MIRRORLEFTRIGHT 0x00000002
633 #define DDBLTFX_MIRRORUPDOWN 0x00000004
634 #define DDBLTFX_NOTEARING 0x00000008
635 #define DDBLTFX_ROTATE180 0x00000010
636 #define DDBLTFX_ROTATE270 0x00000020
637 #define DDBLTFX_ROTATE90 0x00000040
638 #define DDBLTFX_ZBUFFERRANGE 0x00000080
639 #define DDBLTFX_ZBUFFERBASEDEST 0x00000100
640
641 #define DDOVERFX_ARITHSTRETCHY 0x00000001
642 #define DDOVERFX_MIRRORLEFTRIGHT 0x00000002
643 #define DDOVERFX_MIRRORUPDOWN 0x00000004
644 #define DDOVERFX_DEINTERLACE 0x00000008
645
646 #define DDWAITVB_BLOCKBEGIN 0x00000001
647 #define DDWAITVB_BLOCKBEGINEVENT 0x00000002
648 #define DDWAITVB_BLOCKEND 0x00000004
649
650 #define DDGFS_CANFLIP 0x00000001
651 #define DDGFS_ISFLIPDONE 0x00000002
652
653 #define DDGBS_CANBLT 0x00000001
654 #define DDGBS_ISBLTDONE 0x00000002
655
656 #define DDENUMOVERLAYZ_BACKTOFRONT 0x00000000
657 #define DDENUMOVERLAYZ_FRONTTOBACK 0x00000001
658
659 #define DDOVERZ_SENDTOFRONT 0x00000000
660 #define DDOVERZ_SENDTOBACK 0x00000001
661 #define DDOVERZ_MOVEFORWARD 0x00000002
662 #define DDOVERZ_MOVEBACKWARD 0x00000003
663 #define DDOVERZ_INSERTINFRONTOF 0x00000004
664 #define DDOVERZ_INSERTINBACKOF 0x00000005
665
666 #define GET_WHQL_YEAR (dwWHQLLevel) ((dwWHQLLevel)/0x10000)
667 #define GET_WHQL_MONTH (dwWHQLLevel) (((dwWHQLLevel)/0x100)&0x00ff)
668 #define GET_WHQL_DAY (dwWHQLLevel) ((dwWHQLLevel)&0xff)
669
670 #ifndef MAKEFOURCC
671 #define MAKEFOURCC(c0,c1,c2,c3) \
672 ((DWORD)(BYTE)(c0)|((DWORD)(BYTE)(c1)<<8)|((DWORD)(BYTE)(c2)<< 16)|((DWORD)(BYTE)(c3)<<24))
673 #endif
674
675 #define FOURCC_DXT1 (MAKEFOURCC('D','X','T','1'))
676 #define FOURCC_DXT2 (MAKEFOURCC('D','X','T','2'))
677 #define FOURCC_DXT3 (MAKEFOURCC('D','X','T','3'))
678 #define FOURCC_DXT4 (MAKEFOURCC('D','X','T','4'))
679 #define FOURCC_DXT5 (MAKEFOURCC('D','X','T','5'))
680
681 #if defined(_WIN32) && !defined(_NO_COM)
682 DEFINE_GUID( CLSID_DirectDraw, 0xD7B70EE0,0x4340,0x11CF,0xB0,0x63,0x00,0x20,0xAF,0xC2,0xCD,0x35 );
683 DEFINE_GUID( CLSID_DirectDraw7, 0x3C305196,0x50DB,0x11D3,0x9C,0xFE,0x00,0xC0,0x4F,0xD9,0x30,0xC5 );
684 DEFINE_GUID( CLSID_DirectDrawClipper, 0x593817A0,0x7DB3,0x11CF,0xA2,0xDE,0x00,0xAA,0x00,0xB9,0x33,0x56 );
685 DEFINE_GUID( IID_IDirectDraw, 0x6C14DB80,0xA733,0x11CE,0xA5,0x21,0x00,0x20,0xAF,0x0B,0xE5,0x60 );
686 DEFINE_GUID( IID_IDirectDraw2, 0xB3A6F3E0,0x2B43,0x11CF,0xA2,0xDE,0x00,0xAA,0x00,0xB9,0x33,0x56 );
687 DEFINE_GUID( IID_IDirectDraw3, 0x618F8AD4,0x8B7A,0x11D0,0x8F,0xCC,0x00,0xC0,0x4F,0xD9,0x18,0x9D );
688 DEFINE_GUID( IID_IDirectDraw4, 0x9C59509A,0x39BD,0x11D1,0x8C,0x4A,0x00,0xC0,0x4F,0xD9,0x30,0xC5 );
689 DEFINE_GUID( IID_IDirectDraw7, 0x15E65EC0,0x3B9C,0x11D2,0xB9,0x2F,0x00,0x60,0x97,0x97,0xEA,0x5B );
690 DEFINE_GUID( IID_IDirectDrawSurface, 0x6C14DB81,0xA733,0x11CE,0xA5,0x21,0x00,0x20,0xAF,0x0B,0xE5,0x60 );
691 DEFINE_GUID( IID_IDirectDrawSurface2, 0x57805885,0x6EEC,0x11CF,0x94,0x41,0xA8,0x23,0x03,0xC1,0x0E,0x27 );
692 DEFINE_GUID( IID_IDirectDrawSurface3, 0xDA044E00,0x69B2,0x11D0,0xA1,0xD5,0x00,0xAA,0x00,0xB8,0xDF,0xBB );
693 DEFINE_GUID( IID_IDirectDrawSurface4, 0x0B2B8630,0xAD35,0x11D0,0x8E,0xA6,0x00,0x60,0x97,0x97,0xEA,0x5B );
694 DEFINE_GUID( IID_IDirectDrawSurface7, 0x06675A80,0x3B9B,0x11D2,0xB9,0x2F,0x00,0x60,0x97,0x97,0xEA,0x5B );
695 DEFINE_GUID( IID_IDirectDrawPalette, 0x6C14DB84,0xA733,0x11CE,0xA5,0x21,0x00,0x20,0xAF,0x0B,0xE5,0x60 );
696 DEFINE_GUID( IID_IDirectDrawClipper, 0x6C14DB85,0xA733,0x11CE,0xA5,0x21,0x00,0x20,0xAF,0x0B,0xE5,0x60 );
697 DEFINE_GUID( IID_IDirectDrawColorControl, 0x4B9F0EE0,0x0D7E,0x11D0,0x9B,0x06,0x00,0xA0,0xC9,0x03,0xA3,0xB8 );
698 DEFINE_GUID( IID_IDirectDrawGammaControl, 0x69C11C3E,0xB46B,0x11D1,0xAD,0x7A,0x00,0xC0,0x4F,0xC2,0x9B,0x4E );
699 #endif
700
701
702 struct IDirectDraw;
703 struct IDirectDrawSurface;
704 struct IDirectDrawPalette;
705 struct IDirectDrawClipper;
706
707 typedef struct IDirectDraw *LPDIRECTDRAW;
708 typedef struct IDirectDraw2 *LPDIRECTDRAW2;
709 typedef struct IDirectDraw4 *LPDIRECTDRAW4;
710 typedef struct IDirectDraw7 *LPDIRECTDRAW7;
711 typedef struct IDirectDrawSurface *LPDIRECTDRAWSURFACE;
712 typedef struct IDirectDrawSurface2 *LPDIRECTDRAWSURFACE2;
713 typedef struct IDirectDrawSurface3 *LPDIRECTDRAWSURFACE3;
714 typedef struct IDirectDrawSurface4 *LPDIRECTDRAWSURFACE4;
715 typedef struct IDirectDrawSurface7 *LPDIRECTDRAWSURFACE7;
716 typedef struct IDirectDrawPalette *LPDIRECTDRAWPALETTE;
717 typedef struct IDirectDrawClipper *LPDIRECTDRAWCLIPPER;
718 typedef struct IDirectDrawColorControl *LPDIRECTDRAWCOLORCONTROL;
719 typedef struct IDirectDrawGammaControl *LPDIRECTDRAWGAMMACONTROL;
720
721 typedef struct _DDSCAPS
722 {
723 DWORD dwCaps;
724 } DDSCAPS, *LPDDSCAPS;
725
726 typedef struct _DDSCAPS2
727 {
728 DWORD dwCaps;
729 DWORD dwCaps2;
730 DWORD dwCaps3;
731 union
732 {
733 DWORD dwCaps4;
734 DWORD dwVolumeDepth;
735 } DUMMYUNIONNAMEN(1);
736 } DDSCAPS2, *LPDDSCAPS2;
737
738 typedef struct _DDCAPS_DX1
739 {
740 DWORD dwSize;
741 DWORD dwCaps;
742 DWORD dwCaps2;
743 DWORD dwCKeyCaps;
744 DWORD dwFXCaps;
745 DWORD dwFXAlphaCaps;
746 DWORD dwPalCaps;
747 DWORD dwSVCaps;
748 DWORD dwAlphaBltConstBitDepths;
749 DWORD dwAlphaBltPixelBitDepths;
750 DWORD dwAlphaBltSurfaceBitDepths;
751 DWORD dwAlphaOverlayConstBitDepths;
752 DWORD dwAlphaOverlayPixelBitDepths;
753 DWORD dwAlphaOverlaySurfaceBitDepths;
754 DWORD dwZBufferBitDepths;
755 DWORD dwVidMemTotal;
756 DWORD dwVidMemFree;
757 DWORD dwMaxVisibleOverlays;
758 DWORD dwCurrVisibleOverlays;
759 DWORD dwNumFourCCCodes;
760 DWORD dwAlignBoundarySrc;
761 DWORD dwAlignSizeSrc;
762 DWORD dwAlignBoundaryDest;
763 DWORD dwAlignSizeDest;
764 DWORD dwAlignStrideAlign;
765 DWORD dwRops[DD_ROP_SPACE];
766 DDSCAPS ddsCaps;
767 DWORD dwMinOverlayStretch;
768 DWORD dwMaxOverlayStretch;
769 DWORD dwMinLiveVideoStretch;
770 DWORD dwMaxLiveVideoStretch;
771 DWORD dwMinHwCodecStretch;
772 DWORD dwMaxHwCodecStretch;
773 DWORD dwReserved1;
774 DWORD dwReserved2;
775 DWORD dwReserved3;
776 } DDCAPS_DX1, *LPDDCAPS_DX1;
777
778 typedef struct _DDCAPS_DX3
779 {
780 DWORD dwSize;
781 DWORD dwCaps;
782 DWORD dwCaps2;
783 DWORD dwCKeyCaps;
784 DWORD dwFXCaps;
785 DWORD dwFXAlphaCaps;
786 DWORD dwPalCaps;
787 DWORD dwSVCaps;
788 DWORD dwAlphaBltConstBitDepths;
789 DWORD dwAlphaBltPixelBitDepths;
790 DWORD dwAlphaBltSurfaceBitDepths;
791 DWORD dwAlphaOverlayConstBitDepths;
792 DWORD dwAlphaOverlayPixelBitDepths;
793 DWORD dwAlphaOverlaySurfaceBitDepths;
794 DWORD dwZBufferBitDepths;
795 DWORD dwVidMemTotal;
796 DWORD dwVidMemFree;
797 DWORD dwMaxVisibleOverlays;
798 DWORD dwCurrVisibleOverlays;
799 DWORD dwNumFourCCCodes;
800 DWORD dwAlignBoundarySrc;
801 DWORD dwAlignSizeSrc;
802 DWORD dwAlignBoundaryDest;
803 DWORD dwAlignSizeDest;
804 DWORD dwAlignStrideAlign;
805 DWORD dwRops[DD_ROP_SPACE];
806 DDSCAPS ddsCaps;
807 DWORD dwMinOverlayStretch;
808 DWORD dwMaxOverlayStretch;
809 DWORD dwMinLiveVideoStretch;
810 DWORD dwMaxLiveVideoStretch;
811 DWORD dwMinHwCodecStretch;
812 DWORD dwMaxHwCodecStretch;
813 DWORD dwReserved1;
814 DWORD dwReserved2;
815 DWORD dwReserved3;
816 DWORD dwSVBCaps;
817 DWORD dwSVBCKeyCaps;
818 DWORD dwSVBFXCaps;
819 DWORD dwSVBRops[DD_ROP_SPACE];
820 DWORD dwVSBCaps;
821 DWORD dwVSBCKeyCaps;
822 DWORD dwVSBFXCaps;
823 DWORD dwVSBRops[DD_ROP_SPACE];
824 DWORD dwSSBCaps;
825 DWORD dwSSBCKeyCaps;
826 DWORD dwSSBFXCaps;
827 DWORD dwSSBRops[DD_ROP_SPACE];
828 DWORD dwReserved4;
829 DWORD dwReserved5;
830 DWORD dwReserved6;
831 } DDCAPS_DX3, *LPDDCAPS_DX3;
832
833 typedef struct _DDCAPS_DX5
834 {
835 DWORD dwSize;
836 DWORD dwCaps;
837 DWORD dwCaps2;
838 DWORD dwCKeyCaps;
839 DWORD dwFXCaps;
840 DWORD dwFXAlphaCaps;
841 DWORD dwPalCaps;
842 DWORD dwSVCaps;
843 DWORD dwAlphaBltConstBitDepths;
844 DWORD dwAlphaBltPixelBitDepths;
845 DWORD dwAlphaBltSurfaceBitDepths;
846 DWORD dwAlphaOverlayConstBitDepths;
847 DWORD dwAlphaOverlayPixelBitDepths;
848 DWORD dwAlphaOverlaySurfaceBitDepths;
849 DWORD dwZBufferBitDepths;
850 DWORD dwVidMemTotal;
851 DWORD dwVidMemFree;
852 DWORD dwMaxVisibleOverlays;
853 DWORD dwCurrVisibleOverlays;
854 DWORD dwNumFourCCCodes;
855 DWORD dwAlignBoundarySrc;
856 DWORD dwAlignSizeSrc;
857 DWORD dwAlignBoundaryDest;
858 DWORD dwAlignSizeDest;
859 DWORD dwAlignStrideAlign;
860 DWORD dwRops[DD_ROP_SPACE];
861 DDSCAPS ddsCaps;
862 DWORD dwMinOverlayStretch;
863 DWORD dwMaxOverlayStretch;
864 DWORD dwMinLiveVideoStretch;
865 DWORD dwMaxLiveVideoStretch;
866 DWORD dwMinHwCodecStretch;
867 DWORD dwMaxHwCodecStretch;
868 DWORD dwReserved1;
869 DWORD dwReserved2;
870 DWORD dwReserved3;
871 DWORD dwSVBCaps;
872 DWORD dwSVBCKeyCaps;
873 DWORD dwSVBFXCaps;
874 DWORD dwSVBRops[DD_ROP_SPACE];
875 DWORD dwVSBCaps;
876 DWORD dwVSBCKeyCaps;
877 DWORD dwVSBFXCaps;
878 DWORD dwVSBRops[DD_ROP_SPACE];
879 DWORD dwSSBCaps;
880 DWORD dwSSBCKeyCaps;
881 DWORD dwSSBFXCaps;
882 DWORD dwSSBRops[DD_ROP_SPACE];
883 DWORD dwMaxVideoPorts;
884 DWORD dwCurrVideoPorts;
885 DWORD dwSVBCaps2;
886 DWORD dwNLVBCaps;
887 DWORD dwNLVBCaps2;
888 DWORD dwNLVBCKeyCaps;
889 DWORD dwNLVBFXCaps;
890 DWORD dwNLVBRops[DD_ROP_SPACE];
891 } DDCAPS_DX5, *LPDDCAPS_DX5;
892
893 typedef struct _DDCAPS_DX6
894 {
895 DWORD dwSize;
896 DWORD dwCaps;
897 DWORD dwCaps2;
898 DWORD dwCKeyCaps;
899 DWORD dwFXCaps;
900 DWORD dwFXAlphaCaps;
901 DWORD dwPalCaps;
902 DWORD dwSVCaps;
903 DWORD dwAlphaBltConstBitDepths;
904 DWORD dwAlphaBltPixelBitDepths;
905 DWORD dwAlphaBltSurfaceBitDepths;
906 DWORD dwAlphaOverlayConstBitDepths;
907 DWORD dwAlphaOverlayPixelBitDepths;
908 DWORD dwAlphaOverlaySurfaceBitDepths;
909 DWORD dwZBufferBitDepths;
910 DWORD dwVidMemTotal;
911 DWORD dwVidMemFree;
912 DWORD dwMaxVisibleOverlays;
913 DWORD dwCurrVisibleOverlays;
914 DWORD dwNumFourCCCodes;
915 DWORD dwAlignBoundarySrc;
916 DWORD dwAlignSizeSrc;
917 DWORD dwAlignBoundaryDest;
918 DWORD dwAlignSizeDest;
919 DWORD dwAlignStrideAlign;
920 DWORD dwRops[DD_ROP_SPACE];
921 DDSCAPS ddsOldCaps;
922 DWORD dwMinOverlayStretch;
923 DWORD dwMaxOverlayStretch;
924 DWORD dwMinLiveVideoStretch;
925 DWORD dwMaxLiveVideoStretch;
926 DWORD dwMinHwCodecStretch;
927 DWORD dwMaxHwCodecStretch;
928 DWORD dwReserved1;
929 DWORD dwReserved2;
930 DWORD dwReserved3;
931 DWORD dwSVBCaps;
932 DWORD dwSVBCKeyCaps;
933 DWORD dwSVBFXCaps;
934 DWORD dwSVBRops[DD_ROP_SPACE];
935 DWORD dwVSBCaps;
936 DWORD dwVSBCKeyCaps;
937 DWORD dwVSBFXCaps;
938 DWORD dwVSBRops[DD_ROP_SPACE];
939 DWORD dwSSBCaps;
940 DWORD dwSSBCKeyCaps;
941 DWORD dwSSBFXCaps;
942 DWORD dwSSBRops[DD_ROP_SPACE];
943 DWORD dwMaxVideoPorts;
944 DWORD dwCurrVideoPorts;
945 DWORD dwSVBCaps2;
946 DWORD dwNLVBCaps;
947 DWORD dwNLVBCaps2;
948 DWORD dwNLVBCKeyCaps;
949 DWORD dwNLVBFXCaps;
950 DWORD dwNLVBRops[DD_ROP_SPACE];
951 DDSCAPS2 ddsCaps;
952 } DDCAPS_DX6, *LPDDCAPS_DX6;
953
954 typedef struct _DDCAPS_DX7
955 {
956 DWORD dwSize;
957 DWORD dwCaps;
958 DWORD dwCaps2;
959 DWORD dwCKeyCaps;
960 DWORD dwFXCaps;
961 DWORD dwFXAlphaCaps;
962 DWORD dwPalCaps;
963 DWORD dwSVCaps;
964 DWORD dwAlphaBltConstBitDepths;
965 DWORD dwAlphaBltPixelBitDepths;
966 DWORD dwAlphaBltSurfaceBitDepths;
967 DWORD dwAlphaOverlayConstBitDepths;
968 DWORD dwAlphaOverlayPixelBitDepths;
969 DWORD dwAlphaOverlaySurfaceBitDepths;
970 DWORD dwZBufferBitDepths;
971 DWORD dwVidMemTotal;
972 DWORD dwVidMemFree;
973 DWORD dwMaxVisibleOverlays;
974 DWORD dwCurrVisibleOverlays;
975 DWORD dwNumFourCCCodes;
976 DWORD dwAlignBoundarySrc;
977 DWORD dwAlignSizeSrc;
978 DWORD dwAlignBoundaryDest;
979 DWORD dwAlignSizeDest;
980 DWORD dwAlignStrideAlign;
981 DWORD dwRops[DD_ROP_SPACE];
982 DDSCAPS ddsOldCaps;
983 DWORD dwMinOverlayStretch;
984 DWORD dwMaxOverlayStretch;
985 DWORD dwMinLiveVideoStretch;
986 DWORD dwMaxLiveVideoStretch;
987 DWORD dwMinHwCodecStretch;
988 DWORD dwMaxHwCodecStretch;
989 DWORD dwReserved1;
990 DWORD dwReserved2;
991 DWORD dwReserved3;
992 DWORD dwSVBCaps;
993 DWORD dwSVBCKeyCaps;
994 DWORD dwSVBFXCaps;
995 DWORD dwSVBRops[DD_ROP_SPACE];
996 DWORD dwVSBCaps;
997 DWORD dwVSBCKeyCaps;
998 DWORD dwVSBFXCaps;
999 DWORD dwVSBRops[DD_ROP_SPACE];
1000 DWORD dwSSBCaps;
1001 DWORD dwSSBCKeyCaps;
1002 DWORD dwSSBFXCaps;
1003 DWORD dwSSBRops[DD_ROP_SPACE];
1004 DWORD dwMaxVideoPorts;
1005 DWORD dwCurrVideoPorts;
1006 DWORD dwSVBCaps2;
1007 DWORD dwNLVBCaps;
1008 DWORD dwNLVBCaps2;
1009 DWORD dwNLVBCKeyCaps;
1010 DWORD dwNLVBFXCaps;
1011 DWORD dwNLVBRops[DD_ROP_SPACE];
1012 DDSCAPS2 ddsCaps;
1013 } DDCAPS_DX7, *LPDDCAPS_DX7;
1014
1015 #if DIRECTDRAW_VERSION<=0x300
1016 typedef DDCAPS_DX3 DDCAPS;
1017 #elif DIRECTDRAW_VERSION<=0x500
1018 typedef DDCAPS_DX5 DDCAPS;
1019 #elif DIRECTDRAW_VERSION<=0x600
1020 typedef DDCAPS_DX6 DDCAPS;
1021 #else
1022 typedef DDCAPS_DX7 DDCAPS;
1023 #endif
1024 typedef DDCAPS *LPDDCAPS;
1025
1026
1027 typedef struct _DDCOLORCONTROL
1028 {
1029 DWORD dwSize;
1030 DWORD dwFlags;
1031 LONG lBrightness;
1032 LONG lContrast;
1033 LONG lHue;
1034 LONG lSaturation;
1035 LONG lSharpness;
1036 LONG lGamma;
1037 LONG lColorEnable;
1038 DWORD dwReserved1;
1039 } DDCOLORCONTROL, *LPDDCOLORCONTROL;
1040
1041 typedef struct _DDCOLORKEY
1042 {
1043 DWORD dwColorSpaceLowValue;
1044 DWORD dwColorSpaceHighValue;
1045
1046 } DDCOLORKEY, *LPDDCOLORKEY;
1047
1048 typedef struct _DDOSCAPS
1049 {
1050 DWORD dwCaps;
1051 } DDOSCAPS, *LPDDOSCAPS;
1052
1053 typedef struct _DDSCAPSEX
1054 {
1055 DWORD dwCaps2;
1056 DWORD dwCaps3;
1057 union
1058 {
1059 DWORD dwCaps4;
1060 DWORD dwVolumeDepth;
1061 } DUMMYUNIONNAMEN(1);
1062 } DDSCAPSEX, *LPDDSCAPSEX;
1063
1064 typedef struct _DDPIXELFORMAT
1065 {
1066 DWORD dwSize;
1067 DWORD dwFlags;
1068 DWORD dwFourCC;
1069 union
1070 {
1071 DWORD dwRGBBitCount;
1072 DWORD dwYUVBitCount;
1073 DWORD dwZBufferBitDepth;
1074 DWORD dwAlphaBitDepth;
1075 DWORD dwLuminanceBitCount;
1076 DWORD dwBumpBitCount;
1077 DWORD dwPrivateFormatBitCount;
1078 } DUMMYUNIONNAMEN(1);
1079 union
1080 {
1081 DWORD dwRBitMask;
1082 DWORD dwYBitMask;
1083 DWORD dwStencilBitDepth;
1084 DWORD dwLuminanceBitMask;
1085 DWORD dwBumpDuBitMask;
1086 DWORD dwOperations;
1087 } DUMMYUNIONNAMEN(2);
1088 union
1089 {
1090 DWORD dwGBitMask;
1091 DWORD dwUBitMask;
1092 DWORD dwZBitMask;
1093 DWORD dwBumpDvBitMask;
1094 struct
1095 {
1096 WORD wFlipMSTypes;
1097 WORD wBltMSTypes;
1098 } MultiSampleCaps;
1099 } DUMMYUNIONNAMEN(3);
1100 union
1101 {
1102 DWORD dwBBitMask;
1103 DWORD dwVBitMask;
1104 DWORD dwStencilBitMask;
1105 DWORD dwBumpLuminanceBitMask;
1106 } DUMMYUNIONNAMEN(4);
1107 union
1108 {
1109 DWORD dwRGBAlphaBitMask;
1110 DWORD dwYUVAlphaBitMask;
1111 DWORD dwLuminanceAlphaBitMask;
1112 DWORD dwRGBZBitMask;
1113 DWORD dwYUVZBitMask;
1114 } DUMMYUNIONNAMEN(5);
1115 } DDPIXELFORMAT, *LPDDPIXELFORMAT;
1116
1117 typedef struct _DDSURFACEDESC
1118 {
1119 DWORD dwSize;
1120 DWORD dwFlags;
1121 DWORD dwHeight;
1122 DWORD dwWidth;
1123 union
1124 {
1125 LONG lPitch;
1126 DWORD dwLinearSize;
1127 } DUMMYUNIONNAMEN(1);
1128 DWORD dwBackBufferCount;
1129 union
1130 {
1131 DWORD dwMipMapCount;
1132 DWORD dwZBufferBitDepth;
1133 DWORD dwRefreshRate;
1134 } DUMMYUNIONNAMEN(2);
1135 DWORD dwAlphaBitDepth;
1136 DWORD dwReserved;
1137 LPVOID lpSurface;
1138 DDCOLORKEY ddckCKDestOverlay;
1139 DDCOLORKEY ddckCKDestBlt;
1140 DDCOLORKEY ddckCKSrcOverlay;
1141 DDCOLORKEY ddckCKSrcBlt;
1142 DDPIXELFORMAT ddpfPixelFormat;
1143 DDSCAPS ddsCaps;
1144 } DDSURFACEDESC, *LPDDSURFACEDESC;
1145
1146 typedef struct _DDSURFACEDESC2
1147 {
1148 DWORD dwSize;
1149 DWORD dwFlags;
1150 DWORD dwHeight;
1151 DWORD dwWidth;
1152 union
1153 {
1154 LONG lPitch;
1155 DWORD dwLinearSize;
1156 } DUMMYUNIONNAMEN(1);
1157 union
1158 {
1159 DWORD dwBackBufferCount;
1160 DWORD dwDepth;
1161 } DUMMYUNIONNAMEN(5);
1162 union
1163 {
1164 DWORD dwMipMapCount;
1165 DWORD dwRefreshRate;
1166 DWORD dwSrcVBHandle;
1167 } DUMMYUNIONNAMEN(2);
1168 DWORD dwAlphaBitDepth;
1169 DWORD dwReserved;
1170 LPVOID lpSurface;
1171 union
1172 {
1173 DDCOLORKEY ddckCKDestOverlay;
1174 DWORD dwEmptyFaceColor;
1175 } DUMMYUNIONNAMEN(3);
1176 DDCOLORKEY ddckCKDestBlt;
1177 DDCOLORKEY ddckCKSrcOverlay;
1178 DDCOLORKEY ddckCKSrcBlt;
1179 union
1180 {
1181 DDPIXELFORMAT ddpfPixelFormat;
1182 DWORD dwFVF;
1183 } DUMMYUNIONNAMEN(4);
1184 DDSCAPS2 ddsCaps;
1185 DWORD dwTextureStage;
1186 } DDSURFACEDESC2, *LPDDSURFACEDESC2;
1187
1188 typedef struct _DDOPTSURFACEDESC
1189 {
1190 DWORD dwSize;
1191 DWORD dwFlags;
1192 DDSCAPS2 ddSCaps;
1193 DDOSCAPS ddOSCaps;
1194 GUID guid;
1195 DWORD dwCompressionRatio;
1196 } DDOPTSURFACEDESC;
1197
1198 typedef struct _DDARGB
1199 {
1200 BYTE blue;
1201 BYTE green;
1202 BYTE red;
1203 BYTE alpha;
1204 } DDARGB, *LPDDARGB;
1205
1206 typedef struct _DDRGBA
1207 {
1208 BYTE red;
1209 BYTE green;
1210 BYTE blue;
1211 BYTE alpha;
1212 } DDRGBA, *LPDDRGBA;
1213
1214
1215 #if (defined (WIN32) || defined( _WIN32 ) ) && !defined( _NO_COM )
1216 typedef BOOL (* LPDDENUMCALLBACKA)(GUID *, LPSTR, LPSTR, LPVOID);
1217 typedef BOOL (* LPDDENUMCALLBACKW)(GUID *, LPWSTR, LPWSTR, LPVOID);
1218 extern HRESULT WINAPI DirectDrawEnumerateW( LPDDENUMCALLBACKW lpCallback, LPVOID lpContext );
1219 extern HRESULT WINAPI DirectDrawEnumerateA( LPDDENUMCALLBACKA lpCallback, LPVOID lpContext );
1220
1221 #if !defined(HMONITOR_DECLARED) && (WINVER < 0x0500)
1222 #define HMONITOR_DECLARED
1223 DECLARE_HANDLE(HMONITOR);
1224 #endif
1225
1226 typedef BOOL (*LPDDENUMCALLBACKEXA)(GUID *, LPSTR, LPSTR, LPVOID, HMONITOR);
1227 typedef BOOL (*LPDDENUMCALLBACKEXW)(GUID *, LPWSTR, LPWSTR, LPVOID, HMONITOR);
1228
1229 extern HRESULT WINAPI DirectDrawEnumerateExW( LPDDENUMCALLBACKEXW lpCallback, LPVOID lpContext, DWORD dwFlags);
1230 extern HRESULT WINAPI DirectDrawEnumerateExA( LPDDENUMCALLBACKEXA lpCallback, LPVOID lpContext, DWORD dwFlags);
1231
1232 typedef HRESULT (WINAPI * LPDIRECTDRAWENUMERATEEXA)( LPDDENUMCALLBACKEXA lpCallback, LPVOID lpContext, DWORD dwFlags);
1233 typedef HRESULT (WINAPI * LPDIRECTDRAWENUMERATEEXW)( LPDDENUMCALLBACKEXW lpCallback, LPVOID lpContext, DWORD dwFlags);
1234
1235 #ifdef UNICODE
1236 typedef LPDDENUMCALLBACKW LPDDENUMCALLBACK;
1237 #define DirectDrawEnumerate DirectDrawEnumerateW
1238 typedef LPDDENUMCALLBACKEXW LPDDENUMCALLBACKEX;
1239 typedef LPDIRECTDRAWENUMERATEEXW LPDIRECTDRAWENUMERATEEX;
1240 #define DirectDrawEnumerateEx DirectDrawEnumerateExW
1241 #else
1242 typedef LPDDENUMCALLBACKA LPDDENUMCALLBACK;
1243 #define DirectDrawEnumerate DirectDrawEnumerateA
1244 typedef LPDDENUMCALLBACKEXA LPDDENUMCALLBACKEX;
1245 typedef LPDIRECTDRAWENUMERATEEXA LPDIRECTDRAWENUMERATEEX;
1246 #define DirectDrawEnumerateEx DirectDrawEnumerateExA
1247 #endif
1248 extern HRESULT WINAPI DirectDrawCreate(GUID *lpGUID,LPDIRECTDRAW *lplpDD, IUnknown *pUnkOuter );
1249 extern HRESULT WINAPI DirectDrawCreateEx(GUID * lpGuid,LPVOID *lplpDD,REFIID iid,IUnknown *pUnkOuter );
1250 extern HRESULT WINAPI DirectDrawCreateClipper(DWORD dwFlags,LPDIRECTDRAWCLIPPER *lplpDDClipper,IUnknown *pUnkOuter );
1251 #endif
1252
1253
1254 typedef HRESULT (WINAPI *LPDDENUMMODESCALLBACK)(LPDDSURFACEDESC, LPVOID);
1255 typedef HRESULT (WINAPI *LPDDENUMMODESCALLBACK2)(LPDDSURFACEDESC2, LPVOID);
1256 typedef HRESULT (WINAPI *LPDDENUMSURFACESCALLBACK)(LPDIRECTDRAWSURFACE, LPDDSURFACEDESC, LPVOID);
1257 typedef HRESULT (WINAPI *LPDDENUMSURFACESCALLBACK2)(LPDIRECTDRAWSURFACE4, LPDDSURFACEDESC2, LPVOID);
1258 typedef HRESULT (WINAPI *LPDDENUMSURFACESCALLBACK7)(LPDIRECTDRAWSURFACE7, LPDDSURFACEDESC2, LPVOID);
1259
1260 typedef DWORD (*LPCLIPPERCALLBACK)(LPDIRECTDRAWCLIPPER lpDDClipper, HWND hWnd, DWORD code, LPVOID lpContext );
1261 #ifdef STREAMING
1262 typedef DWORD (*LPSURFACESTREAMINGCALLBACK)(DWORD);
1263 #endif
1264
1265
1266 typedef struct _DDBLTFX
1267 {
1268 DWORD dwSize;
1269 DWORD dwDDFX;
1270 DWORD dwROP;
1271 DWORD dwDDROP;
1272 DWORD dwRotationAngle;
1273 DWORD dwZBufferOpCode;
1274 DWORD dwZBufferLow;
1275 DWORD dwZBufferHigh;
1276 DWORD dwZBufferBaseDest;
1277 DWORD dwZDestConstBitDepth;
1278 union
1279 {
1280 DWORD dwZDestConst;
1281 LPDIRECTDRAWSURFACE lpDDSZBufferDest;
1282 } DUMMYUNIONNAMEN(1);
1283 DWORD dwZSrcConstBitDepth;
1284 union
1285 {
1286 DWORD dwZSrcConst;
1287 LPDIRECTDRAWSURFACE lpDDSZBufferSrc;
1288 } DUMMYUNIONNAMEN(2);
1289 DWORD dwAlphaEdgeBlendBitDepth;
1290 DWORD dwAlphaEdgeBlend;
1291 DWORD dwReserved;
1292 DWORD dwAlphaDestConstBitDepth;
1293 union
1294 {
1295 DWORD dwAlphaDestConst;
1296 LPDIRECTDRAWSURFACE lpDDSAlphaDest;
1297 } DUMMYUNIONNAMEN(3);
1298 DWORD dwAlphaSrcConstBitDepth;
1299 union
1300 {
1301 DWORD dwAlphaSrcConst;
1302 LPDIRECTDRAWSURFACE lpDDSAlphaSrc;
1303 } DUMMYUNIONNAMEN(4);
1304 union
1305 {
1306 DWORD dwFillColor;
1307 DWORD dwFillDepth;
1308 DWORD dwFillPixel;
1309 LPDIRECTDRAWSURFACE lpDDSPattern;
1310 } DUMMYUNIONNAMEN(5);
1311 DDCOLORKEY ddckDestColorkey;
1312 DDCOLORKEY ddckSrcColorkey;
1313 } DDBLTFX, *LPDDBLTFX;
1314
1315 typedef struct _DDGAMMARAMP
1316 {
1317 WORD red[256];
1318 WORD green[256];
1319 WORD blue[256];
1320 } DDGAMMARAMP, *LPDDGAMMARAMP;
1321
1322 typedef struct tagDDDEVICEIDENTIFIER
1323 {
1324 char szDriver[MAX_DDDEVICEID_STRING];
1325 char szDescription[MAX_DDDEVICEID_STRING];
1326 #ifdef _WIN32
1327 LARGE_INTEGER liDriverVersion;
1328 #else
1329 DWORD dwDriverVersionLowPart;
1330 DWORD dwDriverVersionHighPart;
1331 #endif
1332 DWORD dwVendorId;
1333 DWORD dwDeviceId;
1334 DWORD dwSubSysId;
1335 DWORD dwRevision;
1336 GUID guidDeviceIdentifier;
1337 } DDDEVICEIDENTIFIER, * LPDDDEVICEIDENTIFIER;
1338
1339 typedef struct tagDDDEVICEIDENTIFIER2
1340 {
1341 char szDriver[MAX_DDDEVICEID_STRING];
1342 char szDescription[MAX_DDDEVICEID_STRING];
1343 #ifdef _WIN32
1344 LARGE_INTEGER liDriverVersion;
1345 #else
1346 DWORD dwDriverVersionLowPart;
1347 DWORD dwDriverVersionHighPart;
1348 #endif
1349 DWORD dwVendorId;
1350 DWORD dwDeviceId;
1351 DWORD dwSubSysId;
1352 DWORD dwRevision;
1353 GUID guidDeviceIdentifier;
1354 DWORD dwWHQLLevel;
1355 } DDDEVICEIDENTIFIER2, *LPDDDEVICEIDENTIFIER2;
1356
1357 typedef struct _DDBLTBATCH
1358 {
1359 LPRECT lprDest;
1360 LPDIRECTDRAWSURFACE lpDDSSrc;
1361 LPRECT lprSrc;
1362 DWORD dwFlags;
1363 LPDDBLTFX lpDDBltFx;
1364 } DDBLTBATCH, *LPDDBLTBATCH;
1365
1366 typedef struct _DDOVERLAYFX
1367 {
1368 DWORD dwSize;
1369 DWORD dwAlphaEdgeBlendBitDepth;
1370 DWORD dwAlphaEdgeBlend;
1371 DWORD dwReserved;
1372 DWORD dwAlphaDestConstBitDepth;
1373 union
1374 {
1375 DWORD dwAlphaDestConst;
1376 LPDIRECTDRAWSURFACE lpDDSAlphaDest;
1377 } DUMMYUNIONNAMEN(1);
1378 DWORD dwAlphaSrcConstBitDepth;
1379 union
1380 {
1381 DWORD dwAlphaSrcConst;
1382 LPDIRECTDRAWSURFACE lpDDSAlphaSrc;
1383 } DUMMYUNIONNAMEN(2);
1384 DDCOLORKEY dckDestColorkey;
1385 DDCOLORKEY dckSrcColorkey;
1386 DWORD dwDDFX;
1387 DWORD dwFlags;
1388 } DDOVERLAYFX, *LPDDOVERLAYFX;
1389
1390
1391
1392 #if defined( _WIN32 ) && !defined( _NO_COM )
1393 #undef INTERFACE
1394 #define INTERFACE IDirectDraw
1395
1396 DECLARE_INTERFACE_( IDirectDraw, IUnknown )
1397 {
1398 STDMETHOD(QueryInterface) (THIS_ REFIID riid, LPVOID *ppvObj) PURE;
1399 STDMETHOD_(ULONG,AddRef) (THIS) PURE;
1400 STDMETHOD_(ULONG,Release) (THIS) PURE;
1401
1402 STDMETHOD(Compact)(THIS) PURE;
1403 STDMETHOD(CreateClipper)(THIS_ DWORD, LPDIRECTDRAWCLIPPER *, IUnknown * ) PURE;
1404 STDMETHOD(CreatePalette)(THIS_ DWORD, LPPALETTEENTRY, LPDIRECTDRAWPALETTE *, IUnknown * ) PURE;
1405 STDMETHOD(CreateSurface)(THIS_ LPDDSURFACEDESC, LPDIRECTDRAWSURFACE *, IUnknown *) PURE;
1406 STDMETHOD(DuplicateSurface)( THIS_ LPDIRECTDRAWSURFACE, LPDIRECTDRAWSURFACE * ) PURE;
1407 STDMETHOD(EnumDisplayModes)( THIS_ DWORD, LPDDSURFACEDESC, LPVOID, LPDDENUMMODESCALLBACK ) PURE;
1408 STDMETHOD(EnumSurfaces)(THIS_ DWORD, LPDDSURFACEDESC, LPVOID,LPDDENUMSURFACESCALLBACK ) PURE;
1409 STDMETHOD(FlipToGDISurface)(THIS) PURE;
1410 STDMETHOD(GetCaps)( THIS_ LPDDCAPS, LPDDCAPS) PURE;
1411 STDMETHOD(GetDisplayMode)( THIS_ LPDDSURFACEDESC) PURE;
1412 STDMETHOD(GetFourCCCodes)(THIS_ LPDWORD, LPDWORD ) PURE;
1413 STDMETHOD(GetGDISurface)(THIS_ LPDIRECTDRAWSURFACE *) PURE;
1414 STDMETHOD(GetMonitorFrequency)(THIS_ LPDWORD) PURE;
1415 STDMETHOD(GetScanLine)(THIS_ LPDWORD) PURE;
1416 STDMETHOD(GetVerticalBlankStatus)(THIS_ LPBOOL ) PURE;
1417 STDMETHOD(Initialize)(THIS_ GUID *) PURE;
1418 STDMETHOD(RestoreDisplayMode)(THIS) PURE;
1419 STDMETHOD(SetCooperativeLevel)(THIS_ HWND, DWORD) PURE;
1420 STDMETHOD(SetDisplayMode)(THIS_ DWORD, DWORD,DWORD) PURE;
1421 STDMETHOD(WaitForVerticalBlank)(THIS_ DWORD, HANDLE ) PURE;
1422 };
1423
1424 #if !defined(__cplusplus) || defined(CINTERFACE)
1425 #define IDirectDraw_QueryInterface(p, a, b) (p)->lpVtbl->QueryInterface(p, a, b)
1426 #define IDirectDraw_AddRef(p) (p)->lpVtbl->AddRef(p)
1427 #define IDirectDraw_Release(p) (p)->lpVtbl->Release(p)
1428 #define IDirectDraw_Compact(p) (p)->lpVtbl->Compact(p)
1429 #define IDirectDraw_CreateClipper(p, a, b, c) (p)->lpVtbl->CreateClipper(p, a, b, c)
1430 #define IDirectDraw_CreatePalette(p, a, b, c, d) (p)->lpVtbl->CreatePalette(p, a, b, c, d)
1431 #define IDirectDraw_CreateSurface(p, a, b, c) (p)->lpVtbl->CreateSurface(p, a, b, c)
1432 #define IDirectDraw_DuplicateSurface(p, a, b) (p)->lpVtbl->DuplicateSurface(p, a, b)
1433 #define IDirectDraw_EnumDisplayModes(p, a, b, c, d) (p)->lpVtbl->EnumDisplayModes(p, a, b, c, d)
1434 #define IDirectDraw_EnumSurfaces(p, a, b, c, d) (p)->lpVtbl->EnumSurfaces(p, a, b, c, d)
1435 #define IDirectDraw_FlipToGDISurface(p) (p)->lpVtbl->FlipToGDISurface(p)
1436 #define IDirectDraw_GetCaps(p, a, b) (p)->lpVtbl->GetCaps(p, a, b)
1437 #define IDirectDraw_GetDisplayMode(p, a) (p)->lpVtbl->GetDisplayMode(p, a)
1438 #define IDirectDraw_GetFourCCCodes(p, a, b) (p)->lpVtbl->GetFourCCCodes(p, a, b)
1439 #define IDirectDraw_GetGDISurface(p, a) (p)->lpVtbl->GetGDISurface(p, a)
1440 #define IDirectDraw_GetMonitorFrequency(p, a) (p)->lpVtbl->GetMonitorFrequency(p, a)
1441 #define IDirectDraw_GetScanLine(p, a) (p)->lpVtbl->GetScanLine(p, a)
1442 #define IDirectDraw_GetVerticalBlankStatus(p, a) (p)->lpVtbl->GetVerticalBlankStatus(p, a)
1443 #define IDirectDraw_Initialize(p, a) (p)->lpVtbl->Initialize(p, a)
1444 #define IDirectDraw_RestoreDisplayMode(p) (p)->lpVtbl->RestoreDisplayMode(p)
1445 #define IDirectDraw_SetCooperativeLevel(p, a, b) (p)->lpVtbl->SetCooperativeLevel(p, a, b)
1446 #define IDirectDraw_SetDisplayMode(p, a, b, c) (p)->lpVtbl->SetDisplayMode(p, a, b, c)
1447 #define IDirectDraw_WaitForVerticalBlank(p, a, b) (p)->lpVtbl->WaitForVerticalBlank(p, a, b)
1448 #else
1449 #define IDirectDraw_QueryInterface(p, a, b) (p)->QueryInterface(a, b)
1450 #define IDirectDraw_AddRef(p) (p)->AddRef()
1451 #define IDirectDraw_Release(p) (p)->Release()
1452 #define IDirectDraw_Compact(p) (p)->Compact()
1453 #define IDirectDraw_CreateClipper(p, a, b, c) (p)->CreateClipper(a, b, c)
1454 #define IDirectDraw_CreatePalette(p, a, b, c, d) (p)->CreatePalette(a, b, c, d)
1455 #define IDirectDraw_CreateSurface(p, a, b, c) (p)->CreateSurface(a, b, c)
1456 #define IDirectDraw_DuplicateSurface(p, a, b) (p)->DuplicateSurface(a, b)
1457 #define IDirectDraw_EnumDisplayModes(p, a, b, c, d) (p)->EnumDisplayModes(a, b, c, d)
1458 #define IDirectDraw_EnumSurfaces(p, a, b, c, d) (p)->EnumSurfaces(a, b, c, d)
1459 #define IDirectDraw_FlipToGDISurface(p) (p)->FlipToGDISurface()
1460 #define IDirectDraw_GetCaps(p, a, b) (p)->GetCaps(a, b)
1461 #define IDirectDraw_GetDisplayMode(p, a) (p)->GetDisplayMode(a)
1462 #define IDirectDraw_GetFourCCCodes(p, a, b) (p)->GetFourCCCodes(a, b)
1463 #define IDirectDraw_GetGDISurface(p, a) (p)->GetGDISurface(a)
1464 #define IDirectDraw_GetMonitorFrequency(p, a) (p)->GetMonitorFrequency(a)
1465 #define IDirectDraw_GetScanLine(p, a) (p)->GetScanLine(a)
1466 #define IDirectDraw_GetVerticalBlankStatus(p, a) (p)->GetVerticalBlankStatus(a)
1467 #define IDirectDraw_Initialize(p, a) (p)->Initialize(a)
1468 #define IDirectDraw_RestoreDisplayMode(p) (p)->RestoreDisplayMode()
1469 #define IDirectDraw_SetCooperativeLevel(p, a, b) (p)->SetCooperativeLevel(a, b)
1470 #define IDirectDraw_SetDisplayMode(p, a, b, c) (p)->SetDisplayMode(a, b, c)
1471 #define IDirectDraw_WaitForVerticalBlank(p, a, b) (p)->WaitForVerticalBlank(a, b)
1472 #endif
1473 #endif
1474
1475 #if defined( _WIN32 ) && !defined( _NO_COM )
1476 #undef INTERFACE
1477 #define INTERFACE IDirectDraw2
1478 DECLARE_INTERFACE_( IDirectDraw2, IUnknown )
1479 {
1480 STDMETHOD(QueryInterface) (THIS_ REFIID riid, LPVOID * ppvObj) PURE;
1481 STDMETHOD_(ULONG,AddRef) (THIS) PURE;
1482 STDMETHOD_(ULONG,Release) (THIS) PURE;
1483 STDMETHOD(Compact)(THIS) PURE;
1484 STDMETHOD(CreateClipper)(THIS_ DWORD, LPDIRECTDRAWCLIPPER *, IUnknown * ) PURE;
1485 STDMETHOD(CreatePalette)(THIS_ DWORD, LPPALETTEENTRY, LPDIRECTDRAWPALETTE *, IUnknown * ) PURE;
1486 STDMETHOD(CreateSurface)(THIS_ LPDDSURFACEDESC, LPDIRECTDRAWSURFACE *, IUnknown *) PURE;
1487 STDMETHOD(DuplicateSurface)( THIS_ LPDIRECTDRAWSURFACE, LPDIRECTDRAWSURFACE * ) PURE;
1488 STDMETHOD(EnumDisplayModes)( THIS_ DWORD, LPDDSURFACEDESC, LPVOID, LPDDENUMMODESCALLBACK ) PURE;
1489 STDMETHOD(EnumSurfaces)(THIS_ DWORD, LPDDSURFACEDESC, LPVOID,LPDDENUMSURFACESCALLBACK ) PURE;
1490 STDMETHOD(FlipToGDISurface)(THIS) PURE;
1491 STDMETHOD(GetCaps)( THIS_ LPDDCAPS, LPDDCAPS) PURE;
1492 STDMETHOD(GetDisplayMode)( THIS_ LPDDSURFACEDESC) PURE;
1493 STDMETHOD(GetFourCCCodes)(THIS_ LPDWORD, LPDWORD ) PURE;
1494 STDMETHOD(GetGDISurface)(THIS_ LPDIRECTDRAWSURFACE *) PURE;
1495 STDMETHOD(GetMonitorFrequency)(THIS_ LPDWORD) PURE;
1496 STDMETHOD(GetScanLine)(THIS_ LPDWORD) PURE;
1497 STDMETHOD(GetVerticalBlankStatus)(THIS_ LPBOOL ) PURE;
1498 STDMETHOD(Initialize)(THIS_ GUID *) PURE;
1499 STDMETHOD(RestoreDisplayMode)(THIS) PURE;
1500 STDMETHOD(SetCooperativeLevel)(THIS_ HWND, DWORD) PURE;
1501 STDMETHOD(SetDisplayMode)(THIS_ DWORD, DWORD,DWORD, DWORD, DWORD) PURE;
1502 STDMETHOD(WaitForVerticalBlank)(THIS_ DWORD, HANDLE ) PURE;
1503 STDMETHOD(GetAvailableVidMem)(THIS_ LPDDSCAPS, LPDWORD, LPDWORD) PURE;
1504 };
1505
1506 #if !defined(__cplusplus) || defined(CINTERFACE)
1507 #define IDirectDraw2_QueryInterface(p, a, b) (p)->lpVtbl->QueryInterface(p, a, b)
1508 #define IDirectDraw2_AddRef(p) (p)->lpVtbl->AddRef(p)
1509 #define IDirectDraw2_Release(p) (p)->lpVtbl->Release(p)
1510 #define IDirectDraw2_Compact(p) (p)->lpVtbl->Compact(p)
1511 #define IDirectDraw2_CreateClipper(p, a, b, c) (p)->lpVtbl->CreateClipper(p, a, b, c)
1512 #define IDirectDraw2_CreatePalette(p, a, b, c, d) (p)->lpVtbl->CreatePalette(p, a, b, c, d)
1513 #define IDirectDraw2_CreateSurface(p, a, b, c) (p)->lpVtbl->CreateSurface(p, a, b, c)
1514 #define IDirectDraw2_DuplicateSurface(p, a, b) (p)->lpVtbl->DuplicateSurface(p, a, b)
1515 #define IDirectDraw2_EnumDisplayModes(p, a, b, c, d) (p)->lpVtbl->EnumDisplayModes(p, a, b, c, d)
1516 #define IDirectDraw2_EnumSurfaces(p, a, b, c, d) (p)->lpVtbl->EnumSurfaces(p, a, b, c, d)
1517 #define IDirectDraw2_FlipToGDISurface(p) (p)->lpVtbl->FlipToGDISurface(p)
1518 #define IDirectDraw2_GetCaps(p, a, b) (p)->lpVtbl->GetCaps(p, a, b)
1519 #define IDirectDraw2_GetDisplayMode(p, a) (p)->lpVtbl->GetDisplayMode(p, a)
1520 #define IDirectDraw2_GetFourCCCodes(p, a, b) (p)->lpVtbl->GetFourCCCodes(p, a, b)
1521 #define IDirectDraw2_GetGDISurface(p, a) (p)->lpVtbl->GetGDISurface(p, a)
1522 #define IDirectDraw2_GetMonitorFrequency(p, a) (p)->lpVtbl->GetMonitorFrequency(p, a)
1523 #define IDirectDraw2_GetScanLine(p, a) (p)->lpVtbl->GetScanLine(p, a)
1524 #define IDirectDraw2_GetVerticalBlankStatus(p, a) (p)->lpVtbl->GetVerticalBlankStatus(p, a)
1525 #define IDirectDraw2_Initialize(p, a) (p)->lpVtbl->Initialize(p, a)
1526 #define IDirectDraw2_RestoreDisplayMode(p) (p)->lpVtbl->RestoreDisplayMode(p)
1527 #define IDirectDraw2_SetCooperativeLevel(p, a, b) (p)->lpVtbl->SetCooperativeLevel(p, a, b)
1528 #define IDirectDraw2_SetDisplayMode(p, a, b, c, d, e) (p)->lpVtbl->SetDisplayMode(p, a, b, c, d, e)
1529 #define IDirectDraw2_WaitForVerticalBlank(p, a, b) (p)->lpVtbl->WaitForVerticalBlank(p, a, b)
1530 #define IDirectDraw2_GetAvailableVidMem(p, a, b, c) (p)->lpVtbl->GetAvailableVidMem(p, a, b, c)
1531 #else
1532 #define IDirectDraw2_QueryInterface(p, a, b) (p)->QueryInterface(a, b)
1533 #define IDirectDraw2_AddRef(p) (p)->AddRef()
1534 #define IDirectDraw2_Release(p) (p)->Release()
1535 #define IDirectDraw2_Compact(p) (p)->Compact()
1536 #define IDirectDraw2_CreateClipper(p, a, b, c) (p)->CreateClipper(a, b, c)
1537 #define IDirectDraw2_CreatePalette(p, a, b, c, d) (p)->CreatePalette(a, b, c, d)
1538 #define IDirectDraw2_CreateSurface(p, a, b, c) (p)->CreateSurface(a, b, c)
1539 #define IDirectDraw2_DuplicateSurface(p, a, b) (p)->DuplicateSurface(a, b)
1540 #define IDirectDraw2_EnumDisplayModes(p, a, b, c, d) (p)->EnumDisplayModes(a, b, c, d)
1541 #define IDirectDraw2_EnumSurfaces(p, a, b, c, d) (p)->EnumSurfaces(a, b, c, d)
1542 #define IDirectDraw2_FlipToGDISurface(p) (p)->FlipToGDISurface()
1543 #define IDirectDraw2_GetCaps(p, a, b) (p)->GetCaps(a, b)
1544 #define IDirectDraw2_GetDisplayMode(p, a) (p)->GetDisplayMode(a)
1545 #define IDirectDraw2_GetFourCCCodes(p, a, b) (p)->GetFourCCCodes(a, b)
1546 #define IDirectDraw2_GetGDISurface(p, a) (p)->GetGDISurface(a)
1547 #define IDirectDraw2_GetMonitorFrequency(p, a) (p)->GetMonitorFrequency(a)
1548 #define IDirectDraw2_GetScanLine(p, a) (p)->GetScanLine(a)
1549 #define IDirectDraw2_GetVerticalBlankStatus(p, a) (p)->GetVerticalBlankStatus(a)
1550 #define IDirectDraw2_Initialize(p, a) (p)->Initialize(a)
1551 #define IDirectDraw2_RestoreDisplayMode(p) (p)->RestoreDisplayMode()
1552 #define IDirectDraw2_SetCooperativeLevel(p, a, b) (p)->SetCooperativeLevel(a, b)
1553 #define IDirectDraw2_SetDisplayMode(p, a, b, c, d, e) (p)->SetDisplayMode(a, b, c, d, e)
1554 #define IDirectDraw2_WaitForVerticalBlank(p, a, b) (p)->WaitForVerticalBlank(a, b)
1555 #define IDirectDraw2_GetAvailableVidMem(p, a, b, c) (p)->GetAvailableVidMem(a, b, c)
1556 #endif
1557 #endif
1558
1559 #if defined( _WIN32 ) && !defined( _NO_COM )
1560 #undef INTERFACE
1561 #define INTERFACE IDirectDraw4
1562
1563 DECLARE_INTERFACE_( IDirectDraw4, IUnknown )
1564 {
1565 STDMETHOD(QueryInterface) (THIS_ REFIID riid, LPVOID * ppvObj) PURE;
1566 STDMETHOD_(ULONG,AddRef) (THIS) PURE;
1567 STDMETHOD_(ULONG,Release) (THIS) PURE;
1568 STDMETHOD(Compact)(THIS) PURE;
1569 STDMETHOD(CreateClipper)(THIS_ DWORD, LPDIRECTDRAWCLIPPER *, IUnknown * ) PURE;
1570 STDMETHOD(CreatePalette)(THIS_ DWORD, LPPALETTEENTRY, LPDIRECTDRAWPALETTE *, IUnknown * ) PURE;
1571 STDMETHOD(CreateSurface)(THIS_ LPDDSURFACEDESC2, LPDIRECTDRAWSURFACE4 *, IUnknown *) PURE;
1572 STDMETHOD(DuplicateSurface)( THIS_ LPDIRECTDRAWSURFACE4, LPDIRECTDRAWSURFACE4 * ) PURE;
1573 STDMETHOD(EnumDisplayModes)( THIS_ DWORD, LPDDSURFACEDESC2, LPVOID, LPDDENUMMODESCALLBACK2 ) PURE;
1574 STDMETHOD(EnumSurfaces)(THIS_ DWORD, LPDDSURFACEDESC2, LPVOID,LPDDENUMSURFACESCALLBACK2 ) PURE;
1575 STDMETHOD(FlipToGDISurface)(THIS) PURE;
1576 STDMETHOD(GetCaps)( THIS_ LPDDCAPS, LPDDCAPS) PURE;
1577 STDMETHOD(GetDisplayMode)( THIS_ LPDDSURFACEDESC2) PURE;
1578 STDMETHOD(GetFourCCCodes)(THIS_ LPDWORD, LPDWORD ) PURE;
1579 STDMETHOD(GetGDISurface)(THIS_ LPDIRECTDRAWSURFACE4 *) PURE;
1580 STDMETHOD(GetMonitorFrequency)(THIS_ LPDWORD) PURE;
1581 STDMETHOD(GetScanLine)(THIS_ LPDWORD) PURE;
1582 STDMETHOD(GetVerticalBlankStatus)(THIS_ LPBOOL ) PURE;
1583 STDMETHOD(Initialize)(THIS_ GUID *) PURE;
1584 STDMETHOD(RestoreDisplayMode)(THIS) PURE;
1585 STDMETHOD(SetCooperativeLevel)(THIS_ HWND, DWORD) PURE;
1586 STDMETHOD(SetDisplayMode)(THIS_ DWORD, DWORD,DWORD, DWORD, DWORD) PURE;
1587 STDMETHOD(WaitForVerticalBlank)(THIS_ DWORD, HANDLE ) PURE;
1588 STDMETHOD(GetAvailableVidMem)(THIS_ LPDDSCAPS2, LPDWORD, LPDWORD) PURE;
1589 STDMETHOD(GetSurfaceFromDC) (THIS_ HDC, LPDIRECTDRAWSURFACE4 *) PURE;
1590 STDMETHOD(RestoreAllSurfaces)(THIS) PURE;
1591 STDMETHOD(TestCooperativeLevel)(THIS) PURE;
1592 STDMETHOD(GetDeviceIdentifier)(THIS_ LPDDDEVICEIDENTIFIER, DWORD ) PURE;
1593 };
1594 #if !defined(__cplusplus) || defined(CINTERFACE)
1595 #define IDirectDraw4_QueryInterface(p, a, b) (p)->lpVtbl->QueryInterface(p, a, b)
1596 #define IDirectDraw4_AddRef(p) (p)->lpVtbl->AddRef(p)
1597 #define IDirectDraw4_Release(p) (p)->lpVtbl->Release(p)
1598 #define IDirectDraw4_Compact(p) (p)->lpVtbl->Compact(p)
1599 #define IDirectDraw4_CreateClipper(p, a, b, c) (p)->lpVtbl->CreateClipper(p, a, b, c)
1600 #define IDirectDraw4_CreatePalette(p, a, b, c, d) (p)->lpVtbl->CreatePalette(p, a, b, c, d)
1601 #define IDirectDraw4_CreateSurface(p, a, b, c) (p)->lpVtbl->CreateSurface(p, a, b, c)
1602 #define IDirectDraw4_DuplicateSurface(p, a, b) (p)->lpVtbl->DuplicateSurface(p, a, b)
1603 #define IDirectDraw4_EnumDisplayModes(p, a, b, c, d) (p)->lpVtbl->EnumDisplayModes(p, a, b, c, d)
1604 #define IDirectDraw4_EnumSurfaces(p, a, b, c, d) (p)->lpVtbl->EnumSurfaces(p, a, b, c, d)
1605 #define IDirectDraw4_FlipToGDISurface(p) (p)->lpVtbl->FlipToGDISurface(p)
1606 #define IDirectDraw4_GetCaps(p, a, b) (p)->lpVtbl->GetCaps(p, a, b)
1607 #define IDirectDraw4_GetDisplayMode(p, a) (p)->lpVtbl->GetDisplayMode(p, a)
1608 #define IDirectDraw4_GetFourCCCodes(p, a, b) (p)->lpVtbl->GetFourCCCodes(p, a, b)
1609 #define IDirectDraw4_GetGDISurface(p, a) (p)->lpVtbl->GetGDISurface(p, a)
1610 #define IDirectDraw4_GetMonitorFrequency(p, a) (p)->lpVtbl->GetMonitorFrequency(p, a)
1611 #define IDirectDraw4_GetScanLine(p, a) (p)->lpVtbl->GetScanLine(p, a)
1612 #define IDirectDraw4_GetVerticalBlankStatus(p, a) (p)->lpVtbl->GetVerticalBlankStatus(p, a)
1613 #define IDirectDraw4_Initialize(p, a) (p)->lpVtbl->Initialize(p, a)
1614 #define IDirectDraw4_RestoreDisplayMode(p) (p)->lpVtbl->RestoreDisplayMode(p)
1615 #define IDirectDraw4_SetCooperativeLevel(p, a, b) (p)->lpVtbl->SetCooperativeLevel(p, a, b)
1616 #define IDirectDraw4_SetDisplayMode(p, a, b, c, d, e) (p)->lpVtbl->SetDisplayMode(p, a, b, c, d, e)
1617 #define IDirectDraw4_WaitForVerticalBlank(p, a, b) (p)->lpVtbl->WaitForVerticalBlank(p, a, b)
1618 #define IDirectDraw4_GetAvailableVidMem(p, a, b, c) (p)->lpVtbl->GetAvailableVidMem(p, a, b, c)
1619 #define IDirectDraw4_GetSurfaceFromDC(p, a, b) (p)->lpVtbl->GetSurfaceFromDC(p, a, b)
1620 #define IDirectDraw4_RestoreAllSurfaces(p) (p)->lpVtbl->RestoreAllSurfaces(p)
1621 #define IDirectDraw4_TestCooperativeLevel(p) (p)->lpVtbl->TestCooperativeLevel(p)
1622 #define IDirectDraw4_GetDeviceIdentifier(p,a,b) (p)->lpVtbl->GetDeviceIdentifier(p,a,b)
1623 #else
1624 #define IDirectDraw4_QueryInterface(p, a, b) (p)->QueryInterface(a, b)
1625 #define IDirectDraw4_AddRef(p) (p)->AddRef()
1626 #define IDirectDraw4_Release(p) (p)->Release()
1627 #define IDirectDraw4_Compact(p) (p)->Compact()
1628 #define IDirectDraw4_CreateClipper(p, a, b, c) (p)->CreateClipper(a, b, c)
1629 #define IDirectDraw4_CreatePalette(p, a, b, c, d) (p)->CreatePalette(a, b, c, d)
1630 #define IDirectDraw4_CreateSurface(p, a, b, c) (p)->CreateSurface(a, b, c)
1631 #define IDirectDraw4_DuplicateSurface(p, a, b) (p)->DuplicateSurface(a, b)
1632 #define IDirectDraw4_EnumDisplayModes(p, a, b, c, d) (p)->EnumDisplayModes(a, b, c, d)
1633 #define IDirectDraw4_EnumSurfaces(p, a, b, c, d) (p)->EnumSurfaces(a, b, c, d)
1634 #define IDirectDraw4_FlipToGDISurface(p) (p)->FlipToGDISurface()
1635 #define IDirectDraw4_GetCaps(p, a, b) (p)->GetCaps(a, b)
1636 #define IDirectDraw4_GetDisplayMode(p, a) (p)->GetDisplayMode(a)
1637 #define IDirectDraw4_GetFourCCCodes(p, a, b) (p)->GetFourCCCodes(a, b)
1638 #define IDirectDraw4_GetGDISurface(p, a) (p)->GetGDISurface(a)
1639 #define IDirectDraw4_GetMonitorFrequency(p, a) (p)->GetMonitorFrequency(a)
1640 #define IDirectDraw4_GetScanLine(p, a) (p)->GetScanLine(a)
1641 #define IDirectDraw4_GetVerticalBlankStatus(p, a) (p)->GetVerticalBlankStatus(a)
1642 #define IDirectDraw4_Initialize(p, a) (p)->Initialize(a)
1643 #define IDirectDraw4_RestoreDisplayMode(p) (p)->RestoreDisplayMode()
1644 #define IDirectDraw4_SetCooperativeLevel(p, a, b) (p)->SetCooperativeLevel(a, b)
1645 #define IDirectDraw4_SetDisplayMode(p, a, b, c, d, e) (p)->SetDisplayMode(a, b, c, d, e)
1646 #define IDirectDraw4_WaitForVerticalBlank(p, a, b) (p)->WaitForVerticalBlank(a, b)
1647 #define IDirectDraw4_GetAvailableVidMem(p, a, b, c) (p)->GetAvailableVidMem(a, b, c)
1648 #define IDirectDraw4_GetSurfaceFromDC(p, a, b) (p)->GetSurfaceFromDC(a, b)
1649 #define IDirectDraw4_RestoreAllSurfaces(p) (p)->RestoreAllSurfaces()
1650 #define IDirectDraw4_TestCooperativeLevel(p) (p)->TestCooperativeLevel()
1651 #define IDirectDraw4_GetDeviceIdentifier(p,a,b) (p)->GetDeviceIdentifier(a,b)
1652 #endif
1653 #endif
1654
1655 #if defined( _WIN32 ) && !defined( _NO_COM )
1656 #undef INTERFACE
1657 #define INTERFACE IDirectDraw7
1658
1659 DECLARE_INTERFACE_( IDirectDraw7, IUnknown )
1660 {
1661 STDMETHOD(QueryInterface) (THIS_ REFIID riid, LPVOID * ppvObj) PURE;
1662 STDMETHOD_(ULONG,AddRef) (THIS) PURE;
1663 STDMETHOD_(ULONG,Release) (THIS) PURE;
1664 STDMETHOD(Compact)(THIS) PURE;
1665 STDMETHOD(CreateClipper)(THIS_ DWORD, LPDIRECTDRAWCLIPPER *, IUnknown * ) PURE;
1666 STDMETHOD(CreatePalette)(THIS_ DWORD, LPPALETTEENTRY, LPDIRECTDRAWPALETTE *, IUnknown * ) PURE;
1667 STDMETHOD(CreateSurface)(THIS_ LPDDSURFACEDESC2, LPDIRECTDRAWSURFACE7 *, IUnknown *) PURE;
1668 STDMETHOD(DuplicateSurface)( THIS_ LPDIRECTDRAWSURFACE7, LPDIRECTDRAWSURFACE7 * ) PURE;
1669 STDMETHOD(EnumDisplayModes)( THIS_ DWORD, LPDDSURFACEDESC2, LPVOID, LPDDENUMMODESCALLBACK2 ) PURE;
1670 STDMETHOD(EnumSurfaces)(THIS_ DWORD, LPDDSURFACEDESC2, LPVOID,LPDDENUMSURFACESCALLBACK7 ) PURE;
1671 STDMETHOD(FlipToGDISurface)(THIS) PURE;
1672 STDMETHOD(GetCaps)( THIS_ LPDDCAPS, LPDDCAPS) PURE;
1673 STDMETHOD(GetDisplayMode)( THIS_ LPDDSURFACEDESC2) PURE;
1674 STDMETHOD(GetFourCCCodes)(THIS_ LPDWORD, LPDWORD ) PURE;
1675 STDMETHOD(GetGDISurface)(THIS_ LPDIRECTDRAWSURFACE7 *) PURE;
1676 STDMETHOD(GetMonitorFrequency)(THIS_ LPDWORD) PURE;
1677 STDMETHOD(GetScanLine)(THIS_ LPDWORD) PURE;
1678 STDMETHOD(GetVerticalBlankStatus)(THIS_ LPBOOL ) PURE;
1679 STDMETHOD(Initialize)(THIS_ GUID *) PURE;
1680 STDMETHOD(RestoreDisplayMode)(THIS) PURE;
1681 STDMETHOD(SetCooperativeLevel)(THIS_ HWND, DWORD) PURE;
1682 STDMETHOD(SetDisplayMode)(THIS_ DWORD, DWORD,DWORD, DWORD, DWORD) PURE;
1683 STDMETHOD(WaitForVerticalBlank)(THIS_ DWORD, HANDLE ) PURE;
1684 STDMETHOD(GetAvailableVidMem)(THIS_ LPDDSCAPS2, LPDWORD, LPDWORD) PURE;
1685 STDMETHOD(GetSurfaceFromDC) (THIS_ HDC, LPDIRECTDRAWSURFACE7 *) PURE;
1686 STDMETHOD(RestoreAllSurfaces)(THIS) PURE;
1687 STDMETHOD(TestCooperativeLevel)(THIS) PURE;
1688 STDMETHOD(GetDeviceIdentifier)(THIS_ LPDDDEVICEIDENTIFIER2, DWORD ) PURE;
1689 STDMETHOD(StartModeTest)(THIS_ LPSIZE, DWORD, DWORD ) PURE;
1690 STDMETHOD(EvaluateMode)(THIS_ DWORD, DWORD * ) PURE;
1691 };
1692 #if !defined(__cplusplus) || defined(CINTERFACE)
1693 #define IDirectDraw7_QueryInterface(p, a, b) (p)->lpVtbl->QueryInterface(p, a, b)
1694 #define IDirectDraw7_AddRef(p) (p)->lpVtbl->AddRef(p)
1695 #define IDirectDraw7_Release(p) (p)->lpVtbl->Release(p)
1696 #define IDirectDraw7_Compact(p) (p)->lpVtbl->Compact(p)
1697 #define IDirectDraw7_CreateClipper(p, a, b, c) (p)->lpVtbl->CreateClipper(p, a, b, c)
1698 #define IDirectDraw7_CreatePalette(p, a, b, c, d) (p)->lpVtbl->CreatePalette(p, a, b, c, d)
1699 #define IDirectDraw7_CreateSurface(p, a, b, c) (p)->lpVtbl->CreateSurface(p, a, b, c)
1700 #define IDirectDraw7_DuplicateSurface(p, a, b) (p)->lpVtbl->DuplicateSurface(p, a, b)
1701 #define IDirectDraw7_EnumDisplayModes(p, a, b, c, d) (p)->lpVtbl->EnumDisplayModes(p, a, b, c, d)
1702 #define IDirectDraw7_EnumSurfaces(p, a, b, c, d) (p)->lpVtbl->EnumSurfaces(p, a, b, c, d)
1703 #define IDirectDraw7_FlipToGDISurface(p) (p)->lpVtbl->FlipToGDISurface(p)
1704 #define IDirectDraw7_GetCaps(p, a, b) (p)->lpVtbl->GetCaps(p, a, b)
1705 #define IDirectDraw7_GetDisplayMode(p, a) (p)->lpVtbl->GetDisplayMode(p, a)
1706 #define IDirectDraw7_GetFourCCCodes(p, a, b) (p)->lpVtbl->GetFourCCCodes(p, a, b)
1707 #define IDirectDraw7_GetGDISurface(p, a) (p)->lpVtbl->GetGDISurface(p, a)
1708 #define IDirectDraw7_GetMonitorFrequency(p, a) (p)->lpVtbl->GetMonitorFrequency(p, a)
1709 #define IDirectDraw7_GetScanLine(p, a) (p)->lpVtbl->GetScanLine(p, a)
1710 #define IDirectDraw7_GetVerticalBlankStatus(p, a) (p)->lpVtbl->GetVerticalBlankStatus(p, a)
1711 #define IDirectDraw7_Initialize(p, a) (p)->lpVtbl->Initialize(p, a)
1712 #define IDirectDraw7_RestoreDisplayMode(p) (p)->lpVtbl->RestoreDisplayMode(p)
1713 #define IDirectDraw7_SetCooperativeLevel(p, a, b) (p)->lpVtbl->SetCooperativeLevel(p, a, b)
1714 #define IDirectDraw7_SetDisplayMode(p, a, b, c, d, e) (p)->lpVtbl->SetDisplayMode(p, a, b, c, d, e)
1715 #define IDirectDraw7_WaitForVerticalBlank(p, a, b) (p)->lpVtbl->WaitForVerticalBlank(p, a, b)
1716 #define IDirectDraw7_GetAvailableVidMem(p, a, b, c) (p)->lpVtbl->GetAvailableVidMem(p, a, b, c)
1717 #define IDirectDraw7_GetSurfaceFromDC(p, a, b) (p)->lpVtbl->GetSurfaceFromDC(p, a, b)
1718 #define IDirectDraw7_RestoreAllSurfaces(p) (p)->lpVtbl->RestoreAllSurfaces(p)
1719 #define IDirectDraw7_TestCooperativeLevel(p) (p)->lpVtbl->TestCooperativeLevel(p)
1720 #define IDirectDraw7_GetDeviceIdentifier(p,a,b) (p)->lpVtbl->GetDeviceIdentifier(p,a,b)
1721 #define IDirectDraw7_StartModeTest(p,a,b,c) (p)->lpVtbl->StartModeTest(p,a,b,c)
1722 #define IDirectDraw7_EvaluateMode(p,a,b) (p)->lpVtbl->EvaluateMode(p,a,b)
1723 #else
1724 #define IDirectDraw7_QueryInterface(p, a, b) (p)->QueryInterface(a, b)
1725 #define IDirectDraw7_AddRef(p) (p)->AddRef()
1726 #define IDirectDraw7_Release(p) (p)->Release()
1727 #define IDirectDraw7_Compact(p) (p)->Compact()
1728 #define IDirectDraw7_CreateClipper(p, a, b, c) (p)->CreateClipper(a, b, c)
1729 #define IDirectDraw7_CreatePalette(p, a, b, c, d) (p)->CreatePalette(a, b, c, d)
1730 #define IDirectDraw7_CreateSurface(p, a, b, c) (p)->CreateSurface(a, b, c)
1731 #define IDirectDraw7_DuplicateSurface(p, a, b) (p)->DuplicateSurface(a, b)
1732 #define IDirectDraw7_EnumDisplayModes(p, a, b, c, d) (p)->EnumDisplayModes(a, b, c, d)
1733 #define IDirectDraw7_EnumSurfaces(p, a, b, c, d) (p)->EnumSurfaces(a, b, c, d)
1734 #define IDirectDraw7_FlipToGDISurface(p) (p)->FlipToGDISurface()
1735 #define IDirectDraw7_GetCaps(p, a, b) (p)->GetCaps(a, b)
1736 #define IDirectDraw7_GetDisplayMode(p, a) (p)->GetDisplayMode(a)
1737 #define IDirectDraw7_GetFourCCCodes(p, a, b) (p)->GetFourCCCodes(a, b)
1738 #define IDirectDraw7_GetGDISurface(p, a) (p)->GetGDISurface(a)
1739 #define IDirectDraw7_GetMonitorFrequency(p, a) (p)->GetMonitorFrequency(a)
1740 #define IDirectDraw7_GetScanLine(p, a) (p)->GetScanLine(a)
1741 #define IDirectDraw7_GetVerticalBlankStatus(p, a) (p)->GetVerticalBlankStatus(a)
1742 #define IDirectDraw7_Initialize(p, a) (p)->Initialize(a)
1743 #define IDirectDraw7_RestoreDisplayMode(p) (p)->RestoreDisplayMode()
1744 #define IDirectDraw7_SetCooperativeLevel(p, a, b) (p)->SetCooperativeLevel(a, b)
1745 #define IDirectDraw7_SetDisplayMode(p, a, b, c, d, e) (p)->SetDisplayMode(a, b, c, d, e)
1746 #define IDirectDraw7_WaitForVerticalBlank(p, a, b) (p)->WaitForVerticalBlank(a, b)
1747 #define IDirectDraw7_GetAvailableVidMem(p, a, b, c) (p)->GetAvailableVidMem(a, b, c)
1748 #define IDirectDraw7_GetSurfaceFromDC(p, a, b) (p)->GetSurfaceFromDC(a, b)
1749 #define IDirectDraw7_RestoreAllSurfaces(p) (p)->RestoreAllSurfaces()
1750 #define IDirectDraw7_TestCooperativeLevel(p) (p)->TestCooperativeLevel()
1751 #define IDirectDraw7_GetDeviceIdentifier(p,a,b) (p)->GetDeviceIdentifier(a,b)
1752 #define IDirectDraw7_StartModeTest(p,a,b,c) (p)->lpVtbl->StartModeTest(a,b,c)
1753 #define IDirectDraw7_EvaluateMode(p,a,b) (p)->lpVtbl->EvaluateMode(a,b)
1754 #endif
1755 #endif
1756
1757 #if defined( _WIN32 ) && !defined( _NO_COM )
1758 #undef INTERFACE
1759 #define INTERFACE IDirectDrawPalette
1760
1761 DECLARE_INTERFACE_( IDirectDrawPalette, IUnknown )
1762 {
1763 STDMETHOD(QueryInterface) (THIS_ REFIID riid, LPVOID * ppvObj) PURE;
1764 STDMETHOD_(ULONG,AddRef) (THIS) PURE;
1765 STDMETHOD_(ULONG,Release) (THIS) PURE;
1766 STDMETHOD(GetCaps)(THIS_ LPDWORD) PURE;
1767 STDMETHOD(GetEntries)(THIS_ DWORD,DWORD,DWORD,LPPALETTEENTRY) PURE;
1768 STDMETHOD(Initialize)(THIS_ LPDIRECTDRAW, DWORD, LPPALETTEENTRY) PURE;
1769 STDMETHOD(SetEntries)(THIS_ DWORD,DWORD,DWORD,LPPALETTEENTRY) PURE;
1770 };
1771 #if !defined(__cplusplus) || defined(CINTERFACE)
1772 #define IDirectDrawPalette_QueryInterface(p, a, b) (p)->lpVtbl->QueryInterface(p, a, b)
1773 #define IDirectDrawPalette_AddRef(p) (p)->lpVtbl->AddRef(p)
1774 #define IDirectDrawPalette_Release(p) (p)->lpVtbl->Release(p)
1775 #define IDirectDrawPalette_GetCaps(p, a) (p)->lpVtbl->GetCaps(p, a)
1776 #define IDirectDrawPalette_GetEntries(p, a, b, c, d) (p)->lpVtbl->GetEntries(p, a, b, c, d)
1777 #define IDirectDrawPalette_Initialize(p, a, b, c) (p)->lpVtbl->Initialize(p, a, b, c)
1778 #define IDirectDrawPalette_SetEntries(p, a, b, c, d) (p)->lpVtbl->SetEntries(p, a, b, c, d)
1779 #else
1780 #define IDirectDrawPalette_QueryInterface(p, a, b) (p)->QueryInterface(a, b)
1781 #define IDirectDrawPalette_AddRef(p) (p)->AddRef()
1782 #define IDirectDrawPalette_Release(p) (p)->Release()
1783 #define IDirectDrawPalette_GetCaps(p, a) (p)->GetCaps(a)
1784 #define IDirectDrawPalette_GetEntries(p, a, b, c, d) (p)->GetEntries(a, b, c, d)
1785 #define IDirectDrawPalette_Initialize(p, a, b, c) (p)->Initialize(a, b, c)
1786 #define IDirectDrawPalette_SetEntries(p, a, b, c, d) (p)->SetEntries(a, b, c, d)
1787 #endif
1788 #endif
1789
1790 #if defined( _WIN32 ) && !defined( _NO_COM )
1791 #undef INTERFACE
1792 #define INTERFACE IDirectDrawGammaControl
1793
1794 DECLARE_INTERFACE_( IDirectDrawGammaControl, IUnknown )
1795 {
1796 STDMETHOD(QueryInterface) (THIS_ REFIID riid, LPVOID * ppvObj) PURE;
1797 STDMETHOD_(ULONG,AddRef) (THIS) PURE;
1798 STDMETHOD_(ULONG,Release) (THIS) PURE;
1799 STDMETHOD(GetGammaRamp)(THIS_ DWORD, LPDDGAMMARAMP) PURE;
1800 STDMETHOD(SetGammaRamp)(THIS_ DWORD, LPDDGAMMARAMP) PURE;
1801 };
1802 #if !defined(__cplusplus) || defined(CINTERFACE)
1803 #define IDirectDrawGammaControl_QueryInterface(p, a, b) (p)->lpVtbl->QueryInterface(p, a, b)
1804 #define IDirectDrawGammaControl_AddRef(p) (p)->lpVtbl->AddRef(p)
1805 #define IDirectDrawGammaControl_Release(p) (p)->lpVtbl->Release(p)
1806 #define IDirectDrawGammaControl_GetGammaRamp(p, a, b) (p)->lpVtbl->GetGammaRamp(p, a, b)
1807 #define IDirectDrawGammaControl_SetGammaRamp(p, a, b) (p)->lpVtbl->SetGammaRamp(p, a, b)
1808 #else
1809 #define IDirectDrawGammaControl_QueryInterface(p, a, b) (p)->QueryInterface(a, b)
1810 #define IDirectDrawGammaControl_AddRef(p) (p)->AddRef()
1811 #define IDirectDrawGammaControl_Release(p) (p)->Release()
1812 #define IDirectDrawGammaControl_GetGammaRamp(p, a, b) (p)->GetGammaRamp(a, b)
1813 #define IDirectDrawGammaControl_SetGammaRamp(p, a, b) (p)->SetGammaRamp(a, b)
1814 #endif
1815 #endif
1816
1817 #if defined( _WIN32 ) && !defined( _NO_COM )
1818 #undef INTERFACE
1819 #define INTERFACE IDirectDrawColorControl
1820
1821 DECLARE_INTERFACE_( IDirectDrawColorControl, IUnknown )
1822 {
1823 STDMETHOD(QueryInterface) (THIS_ REFIID riid, LPVOID * ppvObj) PURE;
1824 STDMETHOD_(ULONG,AddRef) (THIS) PURE;
1825 STDMETHOD_(ULONG,Release) (THIS) PURE;
1826 STDMETHOD(GetColorControls)(THIS_ LPDDCOLORCONTROL) PURE;
1827 STDMETHOD(SetColorControls)(THIS_ LPDDCOLORCONTROL) PURE;
1828 };
1829 #if !defined(__cplusplus) || defined(CINTERFACE)
1830 #define IDirectDrawColorControl_QueryInterface(p, a, b) (p)->lpVtbl->QueryInterface(p, a, b)
1831 #define IDirectDrawColorControl_AddRef(p) (p)->lpVtbl->AddRef(p)
1832 #define IDirectDrawColorControl_Release(p) (p)->lpVtbl->Release(p)
1833 #define IDirectDrawColorControl_GetColorControls(p, a) (p)->lpVtbl->GetColorControls(p, a)
1834 #define IDirectDrawColorControl_SetColorControls(p, a) (p)->lpVtbl->SetColorControls(p, a)
1835 #else
1836 #define IDirectDrawColorControl_QueryInterface(p, a, b) (p)->QueryInterface(a, b)
1837 #define IDirectDrawColorControl_AddRef(p) (p)->AddRef()
1838 #define IDirectDrawColorControl_Release(p) (p)->Release()
1839 #define IDirectDrawColorControl_GetColorControls(p, a) (p)->GetColorControls(a)
1840 #define IDirectDrawColorControl_SetColorControls(p, a) (p)->SetColorControls(a)
1841 #endif
1842 #endif
1843
1844
1845 #if defined( _WIN32 ) && !defined( _NO_COM )
1846 #undef INTERFACE
1847 #define INTERFACE IDirectDrawClipper
1848 DECLARE_INTERFACE_( IDirectDrawClipper, IUnknown )
1849 {
1850 STDMETHOD(QueryInterface) (THIS_ REFIID riid, LPVOID * ppvObj) PURE;
1851 STDMETHOD_(ULONG,AddRef) (THIS) PURE;
1852 STDMETHOD_(ULONG,Release) (THIS) PURE;
1853 STDMETHOD(GetClipList)(THIS_ LPRECT, LPRGNDATA, LPDWORD) PURE;
1854 STDMETHOD(GetHWnd)(THIS_ HWND *) PURE;
1855 STDMETHOD(Initialize)(THIS_ LPDIRECTDRAW, DWORD) PURE;
1856 STDMETHOD(IsClipListChanged)(THIS_ BOOL *) PURE;
1857 STDMETHOD(SetClipList)(THIS_ LPRGNDATA,DWORD) PURE;
1858 STDMETHOD(SetHWnd)(THIS_ DWORD, HWND ) PURE;
1859 };
1860 #if !defined(__cplusplus) || defined(CINTERFACE)
1861 #define IDirectDrawClipper_QueryInterface(p, a, b) (p)->lpVtbl->QueryInterface(p, a, b)
1862 #define IDirectDrawClipper_AddRef(p) (p)->lpVtbl->AddRef(p)
1863 #define IDirectDrawClipper_Release(p) (p)->lpVtbl->Release(p)
1864 #define IDirectDrawClipper_GetClipList(p, a, b, c) (p)->lpVtbl->GetClipList(p, a, b, c)
1865 #define IDirectDrawClipper_GetHWnd(p, a) (p)->lpVtbl->GetHWnd(p, a)
1866 #define IDirectDrawClipper_Initialize(p, a, b) (p)->lpVtbl->Initialize(p, a, b)
1867 #define IDirectDrawClipper_IsClipListChanged(p, a) (p)->lpVtbl->IsClipListChanged(p, a)
1868 #define IDirectDrawClipper_SetClipList(p, a, b) (p)->lpVtbl->SetClipList(p, a, b)
1869 #define IDirectDrawClipper_SetHWnd(p, a, b) (p)->lpVtbl->SetHWnd(p, a, b)
1870 #else
1871 #define IDirectDrawClipper_QueryInterface(p, a, b) (p)->QueryInterface(a, b)
1872 #define IDirectDrawClipper_AddRef(p) (p)->AddRef()
1873 #define IDirectDrawClipper_Release(p) (p)->Release()
1874 #define IDirectDrawClipper_GetClipList(p, a, b, c) (p)->GetClipList(a, b, c)
1875 #define IDirectDrawClipper_GetHWnd(p, a) (p)->GetHWnd(a)
1876 #define IDirectDrawClipper_Initialize(p, a, b) (p)->Initialize(a, b)
1877 #define IDirectDrawClipper_IsClipListChanged(p, a) (p)->IsClipListChanged(a)
1878 #define IDirectDrawClipper_SetClipList(p, a, b) (p)->SetClipList(a, b)
1879 #define IDirectDrawClipper_SetHWnd(p, a, b) (p)->SetHWnd(a, b)
1880 #endif
1881 #endif
1882
1883 #if defined( _WIN32 ) && !defined( _NO_COM )
1884 #undef INTERFACE
1885 #define INTERFACE IDirectDrawSurface
1886
1887 DECLARE_INTERFACE_( IDirectDrawSurface, IUnknown )
1888 {
1889 STDMETHOD(QueryInterface) (THIS_ REFIID riid, LPVOID * ppvObj) PURE;
1890 STDMETHOD_(ULONG,AddRef) (THIS) PURE;
1891 STDMETHOD_(ULONG,Release) (THIS) PURE;
1892 STDMETHOD(AddAttachedSurface)(THIS_ LPDIRECTDRAWSURFACE) PURE;
1893 STDMETHOD(AddOverlayDirtyRect)(THIS_ LPRECT) PURE;
1894 STDMETHOD(Blt)(THIS_ LPRECT,LPDIRECTDRAWSURFACE, LPRECT,DWORD, LPDDBLTFX) PURE;
1895 STDMETHOD(BltBatch)(THIS_ LPDDBLTBATCH, DWORD, DWORD ) PURE;
1896 STDMETHOD(BltFast)(THIS_ DWORD,DWORD,LPDIRECTDRAWSURFACE, LPRECT,DWORD) PURE;
1897 STDMETHOD(DeleteAttachedSurface)(THIS_ DWORD,LPDIRECTDRAWSURFACE) PURE;
1898 STDMETHOD(EnumAttachedSurfaces)(THIS_ LPVOID,LPDDENUMSURFACESCALLBACK) PURE;
1899 STDMETHOD(EnumOverlayZOrders)(THIS_ DWORD,LPVOID,LPDDENUMSURFACESCALLBACK) PURE;
1900 STDMETHOD(Flip)(THIS_ LPDIRECTDRAWSURFACE, DWORD) PURE;
1901 STDMETHOD(GetAttachedSurface)(THIS_ LPDDSCAPS, LPDIRECTDRAWSURFACE *) PURE;
1902 STDMETHOD(GetBltStatus)(THIS_ DWORD) PURE;
1903 STDMETHOD(GetCaps)(THIS_ LPDDSCAPS) PURE;
1904 STDMETHOD(GetClipper)(THIS_ LPDIRECTDRAWCLIPPER *) PURE;
1905 STDMETHOD(GetColorKey)(THIS_ DWORD, LPDDCOLORKEY) PURE;
1906 STDMETHOD(GetDC)(THIS_ HDC *) PURE;
1907 STDMETHOD(GetFlipStatus)(THIS_ DWORD) PURE;
1908 STDMETHOD(GetOverlayPosition)(THIS_ LPLONG, LPLONG ) PURE;
1909 STDMETHOD(GetPalette)(THIS_ LPDIRECTDRAWPALETTE *) PURE;
1910 STDMETHOD(GetPixelFormat)(THIS_ LPDDPIXELFORMAT) PURE;
1911 STDMETHOD(GetSurfaceDesc)(THIS_ LPDDSURFACEDESC) PURE;
1912 STDMETHOD(Initialize)(THIS_ LPDIRECTDRAW, LPDDSURFACEDESC) PURE;
1913 STDMETHOD(IsLost)(THIS) PURE;
1914 STDMETHOD(Lock)(THIS_ LPRECT,LPDDSURFACEDESC,DWORD,HANDLE) PURE;
1915 STDMETHOD(ReleaseDC)(THIS_ HDC) PURE;
1916 STDMETHOD(Restore)(THIS) PURE;
1917 STDMETHOD(SetClipper)(THIS_ LPDIRECTDRAWCLIPPER) PURE;
1918 STDMETHOD(SetColorKey)(THIS_ DWORD, LPDDCOLORKEY) PURE;
1919 STDMETHOD(SetOverlayPosition)(THIS_ LONG, LONG ) PURE;
1920 STDMETHOD(SetPalette)(THIS_ LPDIRECTDRAWPALETTE) PURE;
1921 STDMETHOD(Unlock)(THIS_ LPVOID) PURE;
1922 STDMETHOD(UpdateOverlay)(THIS_ LPRECT, LPDIRECTDRAWSURFACE,LPRECT,DWORD, LPDDOVERLAYFX) PURE;
1923 STDMETHOD(UpdateOverlayDisplay)(THIS_ DWORD) PURE;
1924 STDMETHOD(UpdateOverlayZOrder)(THIS_ DWORD, LPDIRECTDRAWSURFACE) PURE;
1925 };
1926 #if !defined(__cplusplus) || defined(CINTERFACE)
1927 #define IDirectDrawSurface_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
1928 #define IDirectDrawSurface_AddRef(p) (p)->lpVtbl->AddRef(p)
1929 #define IDirectDrawSurface_Release(p) (p)->lpVtbl->Release(p)
1930 #define IDirectDrawSurface_AddAttachedSurface(p,a) (p)->lpVtbl->AddAttachedSurface(p,a)
1931 #define IDirectDrawSurface_AddOverlayDirtyRect(p,a) (p)->lpVtbl->AddOverlayDirtyRect(p,a)
1932 #define IDirectDrawSurface_Blt(p,a,b,c,d,e) (p)->lpVtbl->Blt(p,a,b,c,d,e)
1933 #define IDirectDrawSurface_BltBatch(p,a,b,c) (p)->lpVtbl->BltBatch(p,a,b,c)
1934 #define IDirectDrawSurface_BltFast(p,a,b,c,d,e) (p)->lpVtbl->BltFast(p,a,b,c,d,e)
1935 #define IDirectDrawSurface_DeleteAttachedSurface(p,a,b) (p)->lpVtbl->DeleteAttachedSurface(p,a,b)
1936 #define IDirectDrawSurface_EnumAttachedSurfaces(p,a,b) (p)->lpVtbl->EnumAttachedSurfaces(p,a,b)
1937 #define IDirectDrawSurface_EnumOverlayZOrders(p,a,b,c) (p)->lpVtbl->EnumOverlayZOrders(p,a,b,c)
1938 #define IDirectDrawSurface_Flip(p,a,b) (p)->lpVtbl->Flip(p,a,b)
1939 #define IDirectDrawSurface_GetAttachedSurface(p,a,b) (p)->lpVtbl->GetAttachedSurface(p,a,b)
1940 #define IDirectDrawSurface_GetBltStatus(p,a) (p)->lpVtbl->GetBltStatus(p,a)
1941 #define IDirectDrawSurface_GetCaps(p,b) (p)->lpVtbl->GetCaps(p,b)
1942 #define IDirectDrawSurface_GetClipper(p,a) (p)->lpVtbl->GetClipper(p,a)
1943 #define IDirectDrawSurface_GetColorKey(p,a,b) (p)->lpVtbl->GetColorKey(p,a,b)
1944 #define IDirectDrawSurface_GetDC(p,a) (p)->lpVtbl->GetDC(p,a)
1945 #define IDirectDrawSurface_GetFlipStatus(p,a) (p)->lpVtbl->GetFlipStatus(p,a)
1946 #define IDirectDrawSurface_GetOverlayPosition(p,a,b) (p)->lpVtbl->GetOverlayPosition(p,a,b)
1947 #define IDirectDrawSurface_GetPalette(p,a) (p)->lpVtbl->GetPalette(p,a)
1948 #define IDirectDrawSurface_GetPixelFormat(p,a) (p)->lpVtbl->GetPixelFormat(p,a)
1949 #define IDirectDrawSurface_GetSurfaceDesc(p,a) (p)->lpVtbl->GetSurfaceDesc(p,a)
1950 #define IDirectDrawSurface_Initialize(p,a,b) (p)->lpVtbl->Initialize(p,a,b)
1951 #define IDirectDrawSurface_IsLost(p) (p)->lpVtbl->IsLost(p)
1952 #define IDirectDrawSurface_Lock(p,a,b,c,d) (p)->lpVtbl->Lock(p,a,b,c,d)
1953 #define IDirectDrawSurface_ReleaseDC(p,a) (p)->lpVtbl->ReleaseDC(p,a)
1954 #define IDirectDrawSurface_Restore(p) (p)->lpVtbl->Restore(p)
1955 #define IDirectDrawSurface_SetClipper(p,a) (p)->lpVtbl->SetClipper(p,a)
1956 #define IDirectDrawSurface_SetColorKey(p,a,b) (p)->lpVtbl->SetColorKey(p,a,b)
1957 #define IDirectDrawSurface_SetOverlayPosition(p,a,b) (p)->lpVtbl->SetOverlayPosition(p,a,b)
1958 #define IDirectDrawSurface_SetPalette(p,a) (p)->lpVtbl->SetPalette(p,a)
1959 #define IDirectDrawSurface_Unlock(p,b) (p)->lpVtbl->Unlock(p,b)
1960 #define IDirectDrawSurface_UpdateOverlay(p,a,b,c,d,e) (p)->lpVtbl->UpdateOverlay(p,a,b,c,d,e)
1961 #define IDirectDrawSurface_UpdateOverlayDisplay(p,a) (p)->lpVtbl->UpdateOverlayDisplay(p,a)
1962 #define IDirectDrawSurface_UpdateOverlayZOrder(p,a,b) (p)->lpVtbl->UpdateOverlayZOrder(p,a,b)
1963 #else
1964 #define IDirectDrawSurface_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
1965 #define IDirectDrawSurface_AddRef(p) (p)->AddRef()
1966 #define IDirectDrawSurface_Release(p) (p)->Release()
1967 #define IDirectDrawSurface_AddAttachedSurface(p,a) (p)->AddAttachedSurface(a)
1968 #define IDirectDrawSurface_AddOverlayDirtyRect(p,a) (p)->AddOverlayDirtyRect(a)
1969 #define IDirectDrawSurface_Blt(p,a,b,c,d,e) (p)->Blt(a,b,c,d,e)
1970 #define IDirectDrawSurface_BltBatch(p,a,b,c) (p)->BltBatch(a,b,c)
1971 #define IDirectDrawSurface_BltFast(p,a,b,c,d,e) (p)->BltFast(a,b,c,d,e)
1972 #define IDirectDrawSurface_DeleteAttachedSurface(p,a,b) (p)->DeleteAttachedSurface(a,b)
1973 #define IDirectDrawSurface_EnumAttachedSurfaces(p,a,b) (p)->EnumAttachedSurfaces(a,b)
1974 #define IDirectDrawSurface_EnumOverlayZOrders(p,a,b,c) (p)->EnumOverlayZOrders(a,b,c)
1975 #define IDirectDrawSurface_Flip(p,a,b) (p)->Flip(a,b)
1976 #define IDirectDrawSurface_GetAttachedSurface(p,a,b) (p)->GetAttachedSurface(a,b)
1977 #define IDirectDrawSurface_GetBltStatus(p,a) (p)->GetBltStatus(a)
1978 #define IDirectDrawSurface_GetCaps(p,b) (p)->GetCaps(b)
1979 #define IDirectDrawSurface_GetClipper(p,a) (p)->GetClipper(a)
1980 #define IDirectDrawSurface_GetColorKey(p,a,b) (p)->GetColorKey(a,b)
1981 #define IDirectDrawSurface_GetDC(p,a) (p)->GetDC(a)
1982 #define IDirectDrawSurface_GetFlipStatus(p,a) (p)->GetFlipStatus(a)
1983 #define IDirectDrawSurface_GetOverlayPosition(p,a,b) (p)->GetOverlayPosition(a,b)
1984 #define IDirectDrawSurface_GetPalette(p,a) (p)->GetPalette(a)
1985 #define IDirectDrawSurface_GetPixelFormat(p,a) (p)->GetPixelFormat(a)
1986 #define IDirectDrawSurface_GetSurfaceDesc(p,a) (p)->GetSurfaceDesc(a)
1987 #define IDirectDrawSurface_Initialize(p,a,b) (p)->Initialize(a,b)
1988 #define IDirectDrawSurface_IsLost(p) (p)->IsLost()
1989 #define IDirectDrawSurface_Lock(p,a,b,c,d) (p)->Lock(a,b,c,d)
1990 #define IDirectDrawSurface_ReleaseDC(p,a) (p)->ReleaseDC(a)
1991 #define IDirectDrawSurface_Restore(p) (p)->Restore()
1992 #define IDirectDrawSurface_SetClipper(p,a) (p)->SetClipper(a)
1993 #define IDirectDrawSurface_SetColorKey(p,a,b) (p)->SetColorKey(a,b)
1994 #define IDirectDrawSurface_SetOverlayPosition(p,a,b) (p)->SetOverlayPosition(a,b)
1995 #define IDirectDrawSurface_SetPalette(p,a) (p)->SetPalette(a)
1996 #define IDirectDrawSurface_Unlock(p,b) (p)->Unlock(b)
1997 #define IDirectDrawSurface_UpdateOverlay(p,a,b,c,d,e) (p)->UpdateOverlay(a,b,c,d,e)
1998 #define IDirectDrawSurface_UpdateOverlayDisplay(p,a) (p)->UpdateOverlayDisplay(a)
1999 #define IDirectDrawSurface_UpdateOverlayZOrder(p,a,b) (p)->UpdateOverlayZOrder(a,b)
2000 #endif
2001 #endif
2002
2003 #if defined( _WIN32 ) && !defined( _NO_COM )
2004 #undef INTERFACE
2005 #define INTERFACE IDirectDrawSurface2
2006 DECLARE_INTERFACE_( IDirectDrawSurface2, IUnknown )
2007 {
2008 STDMETHOD(QueryInterface) (THIS_ REFIID riid, LPVOID * ppvObj) PURE;
2009 STDMETHOD_(ULONG,AddRef) (THIS) PURE;
2010 STDMETHOD_(ULONG,Release) (THIS) PURE;
2011 STDMETHOD(AddAttachedSurface)(THIS_ LPDIRECTDRAWSURFACE2) PURE;
2012 STDMETHOD(AddOverlayDirtyRect)(THIS_ LPRECT) PURE;
2013 STDMETHOD(Blt)(THIS_ LPRECT,LPDIRECTDRAWSURFACE2, LPRECT,DWORD, LPDDBLTFX) PURE;
2014 STDMETHOD(BltBatch)(THIS_ LPDDBLTBATCH, DWORD, DWORD ) PURE;
2015 STDMETHOD(BltFast)(THIS_ DWORD,DWORD,LPDIRECTDRAWSURFACE2, LPRECT,DWORD) PURE;
2016 STDMETHOD(DeleteAttachedSurface)(THIS_ DWORD,LPDIRECTDRAWSURFACE2) PURE;
2017 STDMETHOD(EnumAttachedSurfaces)(THIS_ LPVOID,LPDDENUMSURFACESCALLBACK) PURE;
2018 STDMETHOD(EnumOverlayZOrders)(THIS_ DWORD,LPVOID,LPDDENUMSURFACESCALLBACK) PURE;
2019 STDMETHOD(Flip)(THIS_ LPDIRECTDRAWSURFACE2, DWORD) PURE;
2020 STDMETHOD(GetAttachedSurface)(THIS_ LPDDSCAPS, LPDIRECTDRAWSURFACE2 *) PURE;
2021 STDMETHOD(GetBltStatus)(THIS_ DWORD) PURE;
2022 STDMETHOD(GetCaps)(THIS_ LPDDSCAPS) PURE;
2023 STDMETHOD(GetClipper)(THIS_ LPDIRECTDRAWCLIPPER *) PURE;
2024 STDMETHOD(GetColorKey)(THIS_ DWORD, LPDDCOLORKEY) PURE;
2025 STDMETHOD(GetDC)(THIS_ HDC *) PURE;
2026 STDMETHOD(GetFlipStatus)(THIS_ DWORD) PURE;
2027 STDMETHOD(GetOverlayPosition)(THIS_ LPLONG, LPLONG ) PURE;
2028 STDMETHOD(GetPalette)(THIS_ LPDIRECTDRAWPALETTE *) PURE;
2029 STDMETHOD(GetPixelFormat)(THIS_ LPDDPIXELFORMAT) PURE;
2030 STDMETHOD(GetSurfaceDesc)(THIS_ LPDDSURFACEDESC) PURE;
2031 STDMETHOD(Initialize)(THIS_ LPDIRECTDRAW, LPDDSURFACEDESC) PURE;
2032 STDMETHOD(IsLost)(THIS) PURE;
2033 STDMETHOD(Lock)(THIS_ LPRECT,LPDDSURFACEDESC,DWORD,HANDLE) PURE;
2034 STDMETHOD(ReleaseDC)(THIS_ HDC) PURE;
2035 STDMETHOD(Restore)(THIS) PURE;
2036 STDMETHOD(SetClipper)(THIS_ LPDIRECTDRAWCLIPPER) PURE;
2037 STDMETHOD(SetColorKey)(THIS_ DWORD, LPDDCOLORKEY) PURE;
2038 STDMETHOD(SetOverlayPosition)(THIS_ LONG, LONG ) PURE;
2039 STDMETHOD(SetPalette)(THIS_ LPDIRECTDRAWPALETTE) PURE;
2040 STDMETHOD(Unlock)(THIS_ LPVOID) PURE;
2041 STDMETHOD(UpdateOverlay)(THIS_ LPRECT, LPDIRECTDRAWSURFACE2,LPRECT,DWORD, LPDDOVERLAYFX) PURE;
2042 STDMETHOD(UpdateOverlayDisplay)(THIS_ DWORD) PURE;
2043 STDMETHOD(UpdateOverlayZOrder)(THIS_ DWORD, LPDIRECTDRAWSURFACE2) PURE;
2044 STDMETHOD(GetDDInterface)(THIS_ LPVOID *) PURE;
2045 STDMETHOD(PageLock)(THIS_ DWORD) PURE;
2046 STDMETHOD(PageUnlock)(THIS_ DWORD) PURE;
2047 };
2048
2049 #if !defined(__cplusplus) || defined(CINTERFACE)
2050 #define IDirectDrawSurface2_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
2051 #define IDirectDrawSurface2_AddRef(p) (p)->lpVtbl->AddRef(p)
2052 #define IDirectDrawSurface2_Release(p) (p)->lpVtbl->Release(p)
2053 #define IDirectDrawSurface2_AddAttachedSurface(p,a) (p)->lpVtbl->AddAttachedSurface(p,a)
2054 #define IDirectDrawSurface2_AddOverlayDirtyRect(p,a) (p)->lpVtbl->AddOverlayDirtyRect(p,a)
2055 #define IDirectDrawSurface2_Blt(p,a,b,c,d,e) (p)->lpVtbl->Blt(p,a,b,c,d,e)
2056 #define IDirectDrawSurface2_BltBatch(p,a,b,c) (p)->lpVtbl->BltBatch(p,a,b,c)
2057 #define IDirectDrawSurface2_BltFast(p,a,b,c,d,e) (p)->lpVtbl->BltFast(p,a,b,c,d,e)
2058 #define IDirectDrawSurface2_DeleteAttachedSurface(p,a,b) (p)->lpVtbl->DeleteAttachedSurface(p,a,b)
2059 #define IDirectDrawSurface2_EnumAttachedSurfaces(p,a,b) (p)->lpVtbl->EnumAttachedSurfaces(p,a,b)
2060 #define IDirectDrawSurface2_EnumOverlayZOrders(p,a,b,c) (p)->lpVtbl->EnumOverlayZOrders(p,a,b,c)
2061 #define IDirectDrawSurface2_Flip(p,a,b) (p)->lpVtbl->Flip(p,a,b)
2062 #define IDirectDrawSurface2_GetAttachedSurface(p,a,b) (p)->lpVtbl->GetAttachedSurface(p,a,b)
2063 #define IDirectDrawSurface2_GetBltStatus(p,a) (p)->lpVtbl->GetBltStatus(p,a)
2064 #define IDirectDrawSurface2_GetCaps(p,b) (p)->lpVtbl->GetCaps(p,b)
2065 #define IDirectDrawSurface2_GetClipper(p,a) (p)->lpVtbl->GetClipper(p,a)
2066 #define IDirectDrawSurface2_GetColorKey(p,a,b) (p)->lpVtbl->GetColorKey(p,a,b)
2067 #define IDirectDrawSurface2_GetDC(p,a) (p)->lpVtbl->GetDC(p,a)
2068 #define IDirectDrawSurface2_GetFlipStatus(p,a) (p)->lpVtbl->GetFlipStatus(p,a)
2069 #define IDirectDrawSurface2_GetOverlayPosition(p,a,b) (p)->lpVtbl->GetOverlayPosition(p,a,b)
2070 #define IDirectDrawSurface2_GetPalette(p,a) (p)->lpVtbl->GetPalette(p,a)
2071 #define IDirectDrawSurface2_GetPixelFormat(p,a) (p)->lpVtbl->GetPixelFormat(p,a)
2072 #define IDirectDrawSurface2_GetSurfaceDesc(p,a) (p)->lpVtbl->GetSurfaceDesc(p,a)
2073 #define IDirectDrawSurface2_Initialize(p,a,b) (p)->lpVtbl->Initialize(p,a,b)
2074 #define IDirectDrawSurface2_IsLost(p) (p)->lpVtbl->IsLost(p)
2075 #define IDirectDrawSurface2_Lock(p,a,b,c,d) (p)->lpVtbl->Lock(p,a,b,c,d)
2076 #define IDirectDrawSurface2_ReleaseDC(p,a) (p)->lpVtbl->ReleaseDC(p,a)
2077 #define IDirectDrawSurface2_Restore(p) (p)->lpVtbl->Restore(p)
2078 #define IDirectDrawSurface2_SetClipper(p,a) (p)->lpVtbl->SetClipper(p,a)
2079 #define IDirectDrawSurface2_SetColorKey(p,a,b) (p)->lpVtbl->SetColorKey(p,a,b)
2080 #define IDirectDrawSurface2_SetOverlayPosition(p,a,b) (p)->lpVtbl->SetOverlayPosition(p,a,b)
2081 #define IDirectDrawSurface2_SetPalette(p,a) (p)->lpVtbl->SetPalette(p,a)
2082 #define IDirectDrawSurface2_Unlock(p,b) (p)->lpVtbl->Unlock(p,b)
2083 #define IDirectDrawSurface2_UpdateOverlay(p,a,b,c,d,e) (p)->lpVtbl->UpdateOverlay(p,a,b,c,d,e)
2084 #define IDirectDrawSurface2_UpdateOverlayDisplay(p,a) (p)->lpVtbl->UpdateOverlayDisplay(p,a)
2085 #define IDirectDrawSurface2_UpdateOverlayZOrder(p,a,b) (p)->lpVtbl->UpdateOverlayZOrder(p,a,b)
2086 #define IDirectDrawSurface2_GetDDInterface(p,a) (p)->lpVtbl->GetDDInterface(p,a)
2087 #define IDirectDrawSurface2_PageLock(p,a) (p)->lpVtbl->PageLock(p,a)
2088 #define IDirectDrawSurface2_PageUnlock(p,a) (p)->lpVtbl->PageUnlock(p,a)
2089 #else
2090 #define IDirectDrawSurface2_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
2091 #define IDirectDrawSurface2_AddRef(p) (p)->AddRef()
2092 #define IDirectDrawSurface2_Release(p) (p)->Release()
2093 #define IDirectDrawSurface2_AddAttachedSurface(p,a) (p)->AddAttachedSurface(a)
2094 #define IDirectDrawSurface2_AddOverlayDirtyRect(p,a) (p)->AddOverlayDirtyRect(a)
2095 #define IDirectDrawSurface2_Blt(p,a,b,c,d,e) (p)->Blt(a,b,c,d,e)
2096 #define IDirectDrawSurface2_BltBatch(p,a,b,c) (p)->BltBatch(a,b,c)
2097 #define IDirectDrawSurface2_BltFast(p,a,b,c,d,e) (p)->BltFast(a,b,c,d,e)
2098 #define IDirectDrawSurface2_DeleteAttachedSurface(p,a,b) (p)->DeleteAttachedSurface(a,b)
2099 #define IDirectDrawSurface2_EnumAttachedSurfaces(p,a,b) (p)->EnumAttachedSurfaces(a,b)
2100 #define IDirectDrawSurface2_EnumOverlayZOrders(p,a,b,c) (p)->EnumOverlayZOrders(a,b,c)
2101 #define IDirectDrawSurface2_Flip(p,a,b) (p)->Flip(a,b)
2102 #define IDirectDrawSurface2_GetAttachedSurface(p,a,b) (p)->GetAttachedSurface(a,b)
2103 #define IDirectDrawSurface2_GetBltStatus(p,a) (p)->GetBltStatus(a)
2104 #define IDirectDrawSurface2_GetCaps(p,b) (p)->GetCaps(b)
2105 #define IDirectDrawSurface2_GetClipper(p,a) (p)->GetClipper(a)
2106 #define IDirectDrawSurface2_GetColorKey(p,a,b) (p)->GetColorKey(a,b)
2107 #define IDirectDrawSurface2_GetDC(p,a) (p)->GetDC(a)
2108 #define IDirectDrawSurface2_GetFlipStatus(p,a) (p)->GetFlipStatus(a)
2109 #define IDirectDrawSurface2_GetOverlayPosition(p,a,b) (p)->GetOverlayPosition(a,b)
2110 #define IDirectDrawSurface2_GetPalette(p,a) (p)->GetPalette(a)
2111 #define IDirectDrawSurface2_GetPixelFormat(p,a) (p)->GetPixelFormat(a)
2112 #define IDirectDrawSurface2_GetSurfaceDesc(p,a) (p)->GetSurfaceDesc(a)
2113 #define IDirectDrawSurface2_Initialize(p,a,b) (p)->Initialize(a,b)
2114 #define IDirectDrawSurface2_IsLost(p) (p)->IsLost()
2115 #define IDirectDrawSurface2_Lock(p,a,b,c,d) (p)->Lock(a,b,c,d)
2116 #define IDirectDrawSurface2_ReleaseDC(p,a) (p)->ReleaseDC(a)
2117 #define IDirectDrawSurface2_Restore(p) (p)->Restore()
2118 #define IDirectDrawSurface2_SetClipper(p,a) (p)->SetClipper(a)
2119 #define IDirectDrawSurface2_SetColorKey(p,a,b) (p)->SetColorKey(a,b)
2120 #define IDirectDrawSurface2_SetOverlayPosition(p,a,b) (p)->SetOverlayPosition(a,b)
2121 #define IDirectDrawSurface2_SetPalette(p,a) (p)->SetPalette(a)
2122 #define IDirectDrawSurface2_Unlock(p,b) (p)->Unlock(b)
2123 #define IDirectDrawSurface2_UpdateOverlay(p,a,b,c,d,e) (p)->UpdateOverlay(a,b,c,d,e)
2124 #define IDirectDrawSurface2_UpdateOverlayDisplay(p,a) (p)->UpdateOverlayDisplay(a)
2125 #define IDirectDrawSurface2_UpdateOverlayZOrder(p,a,b) (p)->UpdateOverlayZOrder(a,b)
2126 #define IDirectDrawSurface2_GetDDInterface(p,a) (p)->GetDDInterface(a)
2127 #define IDirectDrawSurface2_PageLock(p,a) (p)->PageLock(a)
2128 #define IDirectDrawSurface2_PageUnlock(p,a) (p)->PageUnlock(a)
2129 #endif
2130 #endif
2131
2132 #if defined( _WIN32 ) && !defined( _NO_COM )
2133 #undef INTERFACE
2134 #define INTERFACE IDirectDrawSurface3
2135 DECLARE_INTERFACE_( IDirectDrawSurface3, IUnknown )
2136 {
2137 STDMETHOD(QueryInterface) (THIS_ REFIID riid, LPVOID * ppvObj) PURE;
2138 STDMETHOD_(ULONG,AddRef) (THIS) PURE;
2139 STDMETHOD_(ULONG,Release) (THIS) PURE;
2140 STDMETHOD(AddAttachedSurface)(THIS_ LPDIRECTDRAWSURFACE3) PURE;
2141 STDMETHOD(AddOverlayDirtyRect)(THIS_ LPRECT) PURE;
2142 STDMETHOD(Blt)(THIS_ LPRECT,LPDIRECTDRAWSURFACE3, LPRECT,DWORD, LPDDBLTFX) PURE;
2143 STDMETHOD(BltBatch)(THIS_ LPDDBLTBATCH, DWORD, DWORD ) PURE;
2144 STDMETHOD(BltFast)(THIS_ DWORD,DWORD,LPDIRECTDRAWSURFACE3, LPRECT,DWORD) PURE;
2145 STDMETHOD(DeleteAttachedSurface)(THIS_ DWORD,LPDIRECTDRAWSURFACE3) PURE;
2146 STDMETHOD(EnumAttachedSurfaces)(THIS_ LPVOID,LPDDENUMSURFACESCALLBACK) PURE;
2147 STDMETHOD(EnumOverlayZOrders)(THIS_ DWORD,LPVOID,LPDDENUMSURFACESCALLBACK) PURE;
2148 STDMETHOD(Flip)(THIS_ LPDIRECTDRAWSURFACE3, DWORD) PURE;
2149 STDMETHOD(GetAttachedSurface)(THIS_ LPDDSCAPS, LPDIRECTDRAWSURFACE3 *) PURE;
2150 STDMETHOD(GetBltStatus)(THIS_ DWORD) PURE;
2151 STDMETHOD(GetCaps)(THIS_ LPDDSCAPS) PURE;
2152 STDMETHOD(GetClipper)(THIS_ LPDIRECTDRAWCLIPPER *) PURE;
2153 STDMETHOD(GetColorKey)(THIS_ DWORD, LPDDCOLORKEY) PURE;
2154 STDMETHOD(GetDC)(THIS_ HDC *) PURE;
2155 STDMETHOD(GetFlipStatus)(THIS_ DWORD) PURE;
2156 STDMETHOD(GetOverlayPosition)(THIS_ LPLONG, LPLONG ) PURE;
2157 STDMETHOD(GetPalette)(THIS_ LPDIRECTDRAWPALETTE *) PURE;
2158 STDMETHOD(GetPixelFormat)(THIS_ LPDDPIXELFORMAT) PURE;
2159 STDMETHOD(GetSurfaceDesc)(THIS_ LPDDSURFACEDESC) PURE;
2160 STDMETHOD(Initialize)(THIS_ LPDIRECTDRAW, LPDDSURFACEDESC) PURE;
2161 STDMETHOD(IsLost)(THIS) PURE;
2162 STDMETHOD(Lock)(THIS_ LPRECT,LPDDSURFACEDESC,DWORD,HANDLE) PURE;
2163 STDMETHOD(ReleaseDC)(THIS_ HDC) PURE;
2164 STDMETHOD(Restore)(THIS) PURE;
2165 STDMETHOD(SetClipper)(THIS_ LPDIRECTDRAWCLIPPER) PURE;
2166 STDMETHOD(SetColorKey)(THIS_ DWORD, LPDDCOLORKEY) PURE;
2167 STDMETHOD(SetOverlayPosition)(THIS_ LONG, LONG ) PURE;
2168 STDMETHOD(SetPalette)(THIS_ LPDIRECTDRAWPALETTE) PURE;
2169 STDMETHOD(Unlock)(THIS_ LPVOID) PURE;
2170 STDMETHOD(UpdateOverlay)(THIS_ LPRECT, LPDIRECTDRAWSURFACE3,LPRECT,DWORD, LPDDOVERLAYFX) PURE;
2171 STDMETHOD(UpdateOverlayDisplay)(THIS_ DWORD) PURE;
2172 STDMETHOD(UpdateOverlayZOrder)(THIS_ DWORD, LPDIRECTDRAWSURFACE3) PURE;
2173 STDMETHOD(GetDDInterface)(THIS_ LPVOID *) PURE;
2174 STDMETHOD(PageLock)(THIS_ DWORD) PURE;
2175 STDMETHOD(PageUnlock)(THIS_ DWORD) PURE;
2176 STDMETHOD(SetSurfaceDesc)(THIS_ LPDDSURFACEDESC, DWORD) PURE;
2177 };
2178
2179 #if !defined(__cplusplus) || defined(CINTERFACE)
2180 #define IDirectDrawSurface3_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
2181 #define IDirectDrawSurface3_AddRef(p) (p)->lpVtbl->AddRef(p)
2182 #define IDirectDrawSurface3_Release(p) (p)->lpVtbl->Release(p)
2183 #define IDirectDrawSurface3_AddAttachedSurface(p,a) (p)->lpVtbl->AddAttachedSurface(p,a)
2184 #define IDirectDrawSurface3_AddOverlayDirtyRect(p,a) (p)->lpVtbl->AddOverlayDirtyRect(p,a)
2185 #define IDirectDrawSurface3_Blt(p,a,b,c,d,e) (p)->lpVtbl->Blt(p,a,b,c,d,e)
2186 #define IDirectDrawSurface3_BltBatch(p,a,b,c) (p)->lpVtbl->BltBatch(p,a,b,c)
2187 #define IDirectDrawSurface3_BltFast(p,a,b,c,d,e) (p)->lpVtbl->BltFast(p,a,b,c,d,e)
2188 #define IDirectDrawSurface3_DeleteAttachedSurface(p,a,b) (p)->lpVtbl->DeleteAttachedSurface(p,a,b)
2189 #define IDirectDrawSurface3_EnumAttachedSurfaces(p,a,b) (p)->lpVtbl->EnumAttachedSurfaces(p,a,b)
2190 #define IDirectDrawSurface3_EnumOverlayZOrders(p,a,b,c) (p)->lpVtbl->EnumOverlayZOrders(p,a,b,c)
2191 #define IDirectDrawSurface3_Flip(p,a,b) (p)->lpVtbl->Flip(p,a,b)
2192 #define IDirectDrawSurface3_GetAttachedSurface(p,a,b) (p)->lpVtbl->GetAttachedSurface(p,a,b)
2193 #define IDirectDrawSurface3_GetBltStatus(p,a) (p)->lpVtbl->GetBltStatus(p,a)
2194 #define IDirectDrawSurface3_GetCaps(p,b) (p)->lpVtbl->GetCaps(p,b)
2195 #define IDirectDrawSurface3_GetClipper(p,a) (p)->lpVtbl->GetClipper(p,a)
2196 #define IDirectDrawSurface3_GetColorKey(p,a,b) (p)->lpVtbl->GetColorKey(p,a,b)
2197 #define IDirectDrawSurface3_GetDC(p,a) (p)->lpVtbl->GetDC(p,a)
2198 #define IDirectDrawSurface3_GetFlipStatus(p,a) (p)->lpVtbl->GetFlipStatus(p,a)
2199 #define IDirectDrawSurface3_GetOverlayPosition(p,a,b) (p)->lpVtbl->GetOverlayPosition(p,a,b)
2200 #define IDirectDrawSurface3_GetPalette(p,a) (p)->lpVtbl->GetPalette(p,a)
2201 #define IDirectDrawSurface3_GetPixelFormat(p,a) (p)->lpVtbl->GetPixelFormat(p,a)
2202 #define IDirectDrawSurface3_GetSurfaceDesc(p,a) (p)->lpVtbl->GetSurfaceDesc(p,a)
2203 #define IDirectDrawSurface3_Initialize(p,a,b) (p)->lpVtbl->Initialize(p,a,b)
2204 #define IDirectDrawSurface3_IsLost(p) (p)->lpVtbl->IsLost(p)
2205 #define IDirectDrawSurface3_Lock(p,a,b,c,d) (p)->lpVtbl->Lock(p,a,b,c,d)
2206 #define IDirectDrawSurface3_ReleaseDC(p,a) (p)->lpVtbl->ReleaseDC(p,a)
2207 #define IDirectDrawSurface3_Restore(p) (p)->lpVtbl->Restore(p)
2208 #define IDirectDrawSurface3_SetClipper(p,a) (p)->lpVtbl->SetClipper(p,a)
2209 #define IDirectDrawSurface3_SetColorKey(p,a,b) (p)->lpVtbl->SetColorKey(p,a,b)
2210 #define IDirectDrawSurface3_SetOverlayPosition(p,a,b) (p)->lpVtbl->SetOverlayPosition(p,a,b)
2211 #define IDirectDrawSurface3_SetPalette(p,a) (p)->lpVtbl->SetPalette(p,a)
2212 #define IDirectDrawSurface3_Unlock(p,b) (p)->lpVtbl->Unlock(p,b)
2213 #define IDirectDrawSurface3_UpdateOverlay(p,a,b,c,d,e) (p)->lpVtbl->UpdateOverlay(p,a,b,c,d,e)
2214 #define IDirectDrawSurface3_UpdateOverlayDisplay(p,a) (p)->lpVtbl->UpdateOverlayDisplay(p,a)
2215 #define IDirectDrawSurface3_UpdateOverlayZOrder(p,a,b) (p)->lpVtbl->UpdateOverlayZOrder(p,a,b)
2216 #define IDirectDrawSurface3_GetDDInterface(p,a) (p)->lpVtbl->GetDDInterface(p,a)
2217 #define IDirectDrawSurface3_PageLock(p,a) (p)->lpVtbl->PageLock(p,a)
2218 #define IDirectDrawSurface3_PageUnlock(p,a) (p)->lpVtbl->PageUnlock(p,a)
2219 #define IDirectDrawSurface3_SetSurfaceDesc(p,a,b) (p)->lpVtbl->SetSurfaceDesc(p,a,b)
2220 #else
2221 #define IDirectDrawSurface3_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
2222 #define IDirectDrawSurface3_AddRef(p) (p)->AddRef()
2223 #define IDirectDrawSurface3_Release(p) (p)->Release()
2224 #define IDirectDrawSurface3_AddAttachedSurface(p,a) (p)->AddAttachedSurface(a)
2225 #define IDirectDrawSurface3_AddOverlayDirtyRect(p,a) (p)->AddOverlayDirtyRect(a)
2226 #define IDirectDrawSurface3_Blt(p,a,b,c,d,e) (p)->Blt(a,b,c,d,e)
2227 #define IDirectDrawSurface3_BltBatch(p,a,b,c) (p)->BltBatch(a,b,c)
2228 #define IDirectDrawSurface3_BltFast(p,a,b,c,d,e) (p)->BltFast(a,b,c,d,e)
2229 #define IDirectDrawSurface3_DeleteAttachedSurface(p,a,b) (p)->DeleteAttachedSurface(a,b)
2230 #define IDirectDrawSurface3_EnumAttachedSurfaces(p,a,b) (p)->EnumAttachedSurfaces(a,b)
2231 #define IDirectDrawSurface3_EnumOverlayZOrders(p,a,b,c) (p)->EnumOverlayZOrders(a,b,c)
2232 #define IDirectDrawSurface3_Flip(p,a,b) (p)->Flip(a,b)
2233 #define IDirectDrawSurface3_GetAttachedSurface(p,a,b) (p)->GetAttachedSurface(a,b)
2234 #define IDirectDrawSurface3_GetBltStatus(p,a) (p)->GetBltStatus(a)
2235 #define IDirectDrawSurface3_GetCaps(p,b) (p)->GetCaps(b)
2236 #define IDirectDrawSurface3_GetClipper(p,a) (p)->GetClipper(a)
2237 #define IDirectDrawSurface3_GetColorKey(p,a,b) (p)->GetColorKey(a,b)
2238 #define IDirectDrawSurface3_GetDC(p,a) (p)->GetDC(a)
2239 #define IDirectDrawSurface3_GetFlipStatus(p,a) (p)->GetFlipStatus(a)
2240 #define IDirectDrawSurface3_GetOverlayPosition(p,a,b) (p)->GetOverlayPosition(a,b)
2241 #define IDirectDrawSurface3_GetPalette(p,a) (p)->GetPalette(a)
2242 #define IDirectDrawSurface3_GetPixelFormat(p,a) (p)->GetPixelFormat(a)
2243 #define IDirectDrawSurface3_GetSurfaceDesc(p,a) (p)->GetSurfaceDesc(a)
2244 #define IDirectDrawSurface3_Initialize(p,a,b) (p)->Initialize(a,b)
2245 #define IDirectDrawSurface3_IsLost(p) (p)->IsLost()
2246 #define IDirectDrawSurface3_Lock(p,a,b,c,d) (p)->Lock(a,b,c,d)
2247 #define IDirectDrawSurface3_ReleaseDC(p,a) (p)->ReleaseDC(a)
2248 #define IDirectDrawSurface3_Restore(p) (p)->Restore()
2249 #define IDirectDrawSurface3_SetClipper(p,a) (p)->SetClipper(a)
2250 #define IDirectDrawSurface3_SetColorKey(p,a,b) (p)->SetColorKey(a,b)
2251 #define IDirectDrawSurface3_SetOverlayPosition(p,a,b) (p)->SetOverlayPosition(a,b)
2252 #define IDirectDrawSurface3_SetPalette(p,a) (p)->SetPalette(a)
2253 #define IDirectDrawSurface3_Unlock(p,b) (p)->Unlock(b)
2254 #define IDirectDrawSurface3_UpdateOverlay(p,a,b,c,d,e) (p)->UpdateOverlay(a,b,c,d,e)
2255 #define IDirectDrawSurface3_UpdateOverlayDisplay(p,a) (p)->UpdateOverlayDisplay(a)
2256 #define IDirectDrawSurface3_UpdateOverlayZOrder(p,a,b) (p)->UpdateOverlayZOrder(a,b)
2257 #define IDirectDrawSurface3_GetDDInterface(p,a) (p)->GetDDInterface(a)
2258 #define IDirectDrawSurface3_PageLock(p,a) (p)->PageLock(a)
2259 #define IDirectDrawSurface3_PageUnlock(p,a) (p)->PageUnlock(a)
2260 #define IDirectDrawSurface3_SetSurfaceDesc(p,a,b) (p)->SetSurfaceDesc(a,b)
2261 #endif
2262 #endif
2263
2264 #if defined( _WIN32 ) && !defined( _NO_COM )
2265 #undef INTERFACE
2266 #define INTERFACE IDirectDrawSurface4
2267
2268 DECLARE_INTERFACE_( IDirectDrawSurface4, IUnknown )
2269 {
2270 STDMETHOD(QueryInterface) (THIS_ REFIID riid, LPVOID * ppvObj) PURE;
2271 STDMETHOD_(ULONG,AddRef) (THIS) PURE;
2272 STDMETHOD_(ULONG,Release) (THIS) PURE;
2273 STDMETHOD(AddAttachedSurface)(THIS_ LPDIRECTDRAWSURFACE4) PURE;
2274 STDMETHOD(AddOverlayDirtyRect)(THIS_ LPRECT) PURE;
2275 STDMETHOD(Blt)(THIS_ LPRECT,LPDIRECTDRAWSURFACE4, LPRECT,DWORD, LPDDBLTFX) PURE;
2276 STDMETHOD(BltBatch)(THIS_ LPDDBLTBATCH, DWORD, DWORD ) PURE;
2277 STDMETHOD(BltFast)(THIS_ DWORD,DWORD,LPDIRECTDRAWSURFACE4, LPRECT,DWORD) PURE;
2278 STDMETHOD(DeleteAttachedSurface)(THIS_ DWORD,LPDIRECTDRAWSURFACE4) PURE;
2279 STDMETHOD(EnumAttachedSurfaces)(THIS_ LPVOID,LPDDENUMSURFACESCALLBACK2) PURE;
2280 STDMETHOD(EnumOverlayZOrders)(THIS_ DWORD,LPVOID,LPDDENUMSURFACESCALLBACK2) PURE;
2281 STDMETHOD(Flip)(THIS_ LPDIRECTDRAWSURFACE4, DWORD) PURE;
2282 STDMETHOD(GetAttachedSurface)(THIS_ LPDDSCAPS2, LPDIRECTDRAWSURFACE4 *) PURE;
2283 STDMETHOD(GetBltStatus)(THIS_ DWORD) PURE;
2284 STDMETHOD(GetCaps)(THIS_ LPDDSCAPS2) PURE;
2285 STDMETHOD(GetClipper)(THIS_ LPDIRECTDRAWCLIPPER *) PURE;
2286 STDMETHOD(GetColorKey)(THIS_ DWORD, LPDDCOLORKEY) PURE;
2287 STDMETHOD(GetDC)(THIS_ HDC *) PURE;
2288 STDMETHOD(GetFlipStatus)(THIS_ DWORD) PURE;
2289 STDMETHOD(GetOverlayPosition)(THIS_ LPLONG, LPLONG ) PURE;
2290 STDMETHOD(GetPalette)(THIS_ LPDIRECTDRAWPALETTE *) PURE;
2291 STDMETHOD(GetPixelFormat)(THIS_ LPDDPIXELFORMAT) PURE;
2292 STDMETHOD(GetSurfaceDesc)(THIS_ LPDDSURFACEDESC2) PURE;
2293 STDMETHOD(Initialize)(THIS_ LPDIRECTDRAW, LPDDSURFACEDESC2) PURE;
2294 STDMETHOD(IsLost)(THIS) PURE;
2295 STDMETHOD(Lock)(THIS_ LPRECT,LPDDSURFACEDESC2,DWORD,HANDLE) PURE;
2296 STDMETHOD(ReleaseDC)(THIS_ HDC) PURE;
2297 STDMETHOD(Restore)(THIS) PURE;
2298 STDMETHOD(SetClipper)(THIS_ LPDIRECTDRAWCLIPPER) PURE;
2299 STDMETHOD(SetColorKey)(THIS_ DWORD, LPDDCOLORKEY) PURE;
2300 STDMETHOD(SetOverlayPosition)(THIS_ LONG, LONG ) PURE;
2301 STDMETHOD(SetPalette)(THIS_ LPDIRECTDRAWPALETTE) PURE;
2302 STDMETHOD(Unlock)(THIS_ LPRECT) PURE;
2303 STDMETHOD(UpdateOverlay)(THIS_ LPRECT, LPDIRECTDRAWSURFACE4,LPRECT,DWORD, LPDDOVERLAYFX) PURE;
2304 STDMETHOD(UpdateOverlayDisplay)(THIS_ DWORD) PURE;
2305 STDMETHOD(UpdateOverlayZOrder)(THIS_ DWORD, LPDIRECTDRAWSURFACE4) PURE;
2306 STDMETHOD(GetDDInterface)(THIS_ LPVOID *) PURE;
2307 STDMETHOD(PageLock)(THIS_ DWORD) PURE;
2308 STDMETHOD(PageUnlock)(THIS_ DWORD) PURE;
2309 STDMETHOD(SetSurfaceDesc)(THIS_ LPDDSURFACEDESC2, DWORD) PURE;
2310 STDMETHOD(SetPrivateData)(THIS_ REFGUID, LPVOID, DWORD, DWORD) PURE;
2311 STDMETHOD(GetPrivateData)(THIS_ REFGUID, LPVOID, LPDWORD) PURE;
2312 STDMETHOD(FreePrivateData)(THIS_ REFGUID) PURE;
2313 STDMETHOD(GetUniquenessValue)(THIS_ LPDWORD) PURE;
2314 STDMETHOD(ChangeUniquenessValue)(THIS) PURE;
2315 };
2316 #if !defined(__cplusplus) || defined(CINTERFACE)
2317 #define IDirectDrawSurface4_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
2318 #define IDirectDrawSurface4_AddRef(p) (p)->lpVtbl->AddRef(p)
2319 #define IDirectDrawSurface4_Release(p) (p)->lpVtbl->Release(p)
2320 #define IDirectDrawSurface4_AddAttachedSurface(p,a) (p)->lpVtbl->AddAttachedSurface(p,a)
2321 #define IDirectDrawSurface4_AddOverlayDirtyRect(p,a) (p)->lpVtbl->AddOverlayDirtyRect(p,a)
2322 #define IDirectDrawSurface4_Blt(p,a,b,c,d,e) (p)->lpVtbl->Blt(p,a,b,c,d,e)
2323 #define IDirectDrawSurface4_BltBatch(p,a,b,c) (p)->lpVtbl->BltBatch(p,a,b,c)
2324 #define IDirectDrawSurface4_BltFast(p,a,b,c,d,e) (p)->lpVtbl->BltFast(p,a,b,c,d,e)
2325 #define IDirectDrawSurface4_DeleteAttachedSurface(p,a,b) (p)->lpVtbl->DeleteAttachedSurface(p,a,b)
2326 #define IDirectDrawSurface4_EnumAttachedSurfaces(p,a,b) (p)->lpVtbl->EnumAttachedSurfaces(p,a,b)
2327 #define IDirectDrawSurface4_EnumOverlayZOrders(p,a,b,c) (p)->lpVtbl->EnumOverlayZOrders(p,a,b,c)
2328 #define IDirectDrawSurface4_Flip(p,a,b) (p)->lpVtbl->Flip(p,a,b)
2329 #define IDirectDrawSurface4_GetAttachedSurface(p,a,b) (p)->lpVtbl->GetAttachedSurface(p,a,b)
2330 #define IDirectDrawSurface4_GetBltStatus(p,a) (p)->lpVtbl->GetBltStatus(p,a)
2331 #define IDirectDrawSurface4_GetCaps(p,b) (p)->lpVtbl->GetCaps(p,b)
2332 #define IDirectDrawSurface4_GetClipper(p,a) (p)->lpVtbl->GetClipper(p,a)
2333 #define IDirectDrawSurface4_GetColorKey(p,a,b) (p)->lpVtbl->GetColorKey(p,a,b)
2334 #define IDirectDrawSurface4_GetDC(p,a) (p)->lpVtbl->GetDC(p,a)
2335 #define IDirectDrawSurface4_GetFlipStatus(p,a) (p)->lpVtbl->GetFlipStatus(p,a)
2336 #define IDirectDrawSurface4_GetOverlayPosition(p,a,b) (p)->lpVtbl->GetOverlayPosition(p,a,b)
2337 #define IDirectDrawSurface4_GetPalette(p,a) (p)->lpVtbl->GetPalette(p,a)
2338 #define IDirectDrawSurface4_GetPixelFormat(p,a) (p)->lpVtbl->GetPixelFormat(p,a)
2339 #define IDirectDrawSurface4_GetSurfaceDesc(p,a) (p)->lpVtbl->GetSurfaceDesc(p,a)
2340 #define IDirectDrawSurface4_Initialize(p,a,b) (p)->lpVtbl->Initialize(p,a,b)
2341 #define IDirectDrawSurface4_IsLost(p) (p)->lpVtbl->IsLost(p)
2342 #define IDirectDrawSurface4_Lock(p,a,b,c,d) (p)->lpVtbl->Lock(p,a,b,c,d)
2343 #define IDirectDrawSurface4_ReleaseDC(p,a) (p)->lpVtbl->ReleaseDC(p,a)
2344 #define IDirectDrawSurface4_Restore(p) (p)->lpVtbl->Restore(p)
2345 #define IDirectDrawSurface4_SetClipper(p,a) (p)->lpVtbl->SetClipper(p,a)
2346 #define IDirectDrawSurface4_SetColorKey(p,a,b) (p)->lpVtbl->SetColorKey(p,a,b)
2347 #define IDirectDrawSurface4_SetOverlayPosition(p,a,b) (p)->lpVtbl->SetOverlayPosition(p,a,b)
2348 #define IDirectDrawSurface4_SetPalette(p,a) (p)->lpVtbl->SetPalette(p,a)
2349 #define IDirectDrawSurface4_Unlock(p,b) (p)->lpVtbl->Unlock(p,b)
2350 #define IDirectDrawSurface4_UpdateOverlay(p,a,b,c,d,e) (p)->lpVtbl->UpdateOverlay(p,a,b,c,d,e)
2351 #define IDirectDrawSurface4_UpdateOverlayDisplay(p,a) (p)->lpVtbl->UpdateOverlayDisplay(p,a)
2352 #define IDirectDrawSurface4_UpdateOverlayZOrder(p,a,b) (p)->lpVtbl->UpdateOverlayZOrder(p,a,b)
2353 #define IDirectDrawSurface4_GetDDInterface(p,a) (p)->lpVtbl->GetDDInterface(p,a)
2354 #define IDirectDrawSurface4_PageLock(p,a) (p)->lpVtbl->PageLock(p,a)
2355 #define IDirectDrawSurface4_PageUnlock(p,a) (p)->lpVtbl->PageUnlock(p,a)
2356 #define IDirectDrawSurface4_SetSurfaceDesc(p,a,b) (p)->lpVtbl->SetSurfaceDesc(p,a,b)
2357 #define IDirectDrawSurface4_SetPrivateData(p,a,b,c,d) (p)->lpVtbl->SetPrivateData(p,a,b,c,d)
2358 #define IDirectDrawSurface4_GetPrivateData(p,a,b,c) (p)->lpVtbl->GetPrivateData(p,a,b,c)
2359 #define IDirectDrawSurface4_FreePrivateData(p,a) (p)->lpVtbl->FreePrivateData(p,a)
2360 #define IDirectDrawSurface4_GetUniquenessValue(p, a) (p)->lpVtbl->GetUniquenessValue(p, a)
2361 #define IDirectDrawSurface4_ChangeUniquenessValue(p) (p)->lpVtbl->ChangeUniquenessValue(p)
2362 #else
2363 #define IDirectDrawSurface4_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
2364 #define IDirectDrawSurface4_AddRef(p) (p)->AddRef()
2365 #define IDirectDrawSurface4_Release(p) (p)->Release()
2366 #define IDirectDrawSurface4_AddAttachedSurface(p,a) (p)->AddAttachedSurface(a)
2367 #define IDirectDrawSurface4_AddOverlayDirtyRect(p,a) (p)->AddOverlayDirtyRect(a)
2368 #define IDirectDrawSurface4_Blt(p,a,b,c,d,e) (p)->Blt(a,b,c,d,e)
2369 #define IDirectDrawSurface4_BltBatch(p,a,b,c) (p)->BltBatch(a,b,c)
2370 #define IDirectDrawSurface4_BltFast(p,a,b,c,d,e) (p)->BltFast(a,b,c,d,e)
2371 #define IDirectDrawSurface4_DeleteAttachedSurface(p,a,b) (p)->DeleteAttachedSurface(a,b)
2372 #define IDirectDrawSurface4_EnumAttachedSurfaces(p,a,b) (p)->EnumAttachedSurfaces(a,b)
2373 #define IDirectDrawSurface4_EnumOverlayZOrders(p,a,b,c) (p)->EnumOverlayZOrders(a,b,c)
2374 #define IDirectDrawSurface4_Flip(p,a,b) (p)->Flip(a,b)
2375 #define IDirectDrawSurface4_GetAttachedSurface(p,a,b) (p)->GetAttachedSurface(a,b)
2376 #define IDirectDrawSurface4_GetBltStatus(p,a) (p)->GetBltStatus(a)
2377 #define IDirectDrawSurface4_GetCaps(p,b) (p)->GetCaps(b)
2378 #define IDirectDrawSurface4_GetClipper(p,a) (p)->GetClipper(a)
2379 #define IDirectDrawSurface4_GetColorKey(p,a,b) (p)->GetColorKey(a,b)
2380 #define IDirectDrawSurface4_GetDC(p,a) (p)->GetDC(a)
2381 #define IDirectDrawSurface4_GetFlipStatus(p,a) (p)->GetFlipStatus(a)
2382 #define IDirectDrawSurface4_GetOverlayPosition(p,a,b) (p)->GetOverlayPosition(a,b)
2383 #define IDirectDrawSurface4_GetPalette(p,a) (p)->GetPalette(a)
2384 #define IDirectDrawSurface4_GetPixelFormat(p,a) (p)->GetPixelFormat(a)
2385 #define IDirectDrawSurface4_GetSurfaceDesc(p,a) (p)->GetSurfaceDesc(a)
2386 #define IDirectDrawSurface4_Initialize(p,a,b) (p)->Initialize(a,b)
2387 #define IDirectDrawSurface4_IsLost(p) (p)->IsLost()
2388 #define IDirectDrawSurface4_Lock(p,a,b,c,d) (p)->Lock(a,b,c,d)
2389 #define IDirectDrawSurface4_ReleaseDC(p,a) (p)->ReleaseDC(a)
2390 #define IDirectDrawSurface4_Restore(p) (p)->Restore()
2391 #define IDirectDrawSurface4_SetClipper(p,a) (p)->SetClipper(a)
2392 #define IDirectDrawSurface4_SetColorKey(p,a,b) (p)->SetColorKey(a,b)
2393 #define IDirectDrawSurface4_SetOverlayPosition(p,a,b) (p)->SetOverlayPosition(a,b)
2394 #define IDirectDrawSurface4_SetPalette(p,a) (p)->SetPalette(a)
2395 #define IDirectDrawSurface4_Unlock(p,b) (p)->Unlock(b)
2396 #define IDirectDrawSurface4_UpdateOverlay(p,a,b,c,d,e) (p)->UpdateOverlay(a,b,c,d,e)
2397 #define IDirectDrawSurface4_UpdateOverlayDisplay(p,a) (p)->UpdateOverlayDisplay(a)
2398 #define IDirectDrawSurface4_UpdateOverlayZOrder(p,a,b) (p)->UpdateOverlayZOrder(a,b)
2399 #define IDirectDrawSurface4_GetDDInterface(p,a) (p)->GetDDInterface(a)
2400 #define IDirectDrawSurface4_PageLock(p,a) (p)->PageLock(a)
2401 #define IDirectDrawSurface4_PageUnlock(p,a) (p)->PageUnlock(a)
2402 #define IDirectDrawSurface4_SetSurfaceDesc(p,a,b) (p)->SetSurfaceDesc(a,b)
2403 #define IDirectDrawSurface4_SetPrivateData(p,a,b,c,d) (p)->SetPrivateData(a,b,c,d)
2404 #define IDirectDrawSurface4_GetPrivateData(p,a,b,c) (p)->GetPrivateData(a,b,c)
2405 #define IDirectDrawSurface4_FreePrivateData(p,a) (p)->FreePrivateData(a)
2406 #define IDirectDrawSurface4_GetUniquenessValue(p, a) (p)->GetUniquenessValue(a)
2407 #define IDirectDrawSurface4_ChangeUniquenessValue(p) (p)->ChangeUniquenessValue()
2408 #endif
2409 #endif
2410
2411 #if defined( _WIN32 ) && !defined( _NO_COM )
2412 #undef INTERFACE
2413 #define INTERFACE IDirectDrawSurface7
2414
2415 DECLARE_INTERFACE_( IDirectDrawSurface7, IUnknown )
2416 {
2417 STDMETHOD(QueryInterface) (THIS_ REFIID riid, LPVOID * ppvObj) PURE;
2418 STDMETHOD_(ULONG,AddRef) (THIS) PURE;
2419 STDMETHOD_(ULONG,Release) (THIS) PURE;
2420 STDMETHOD(AddAttachedSurface)(THIS_ LPDIRECTDRAWSURFACE7) PURE;
2421 STDMETHOD(AddOverlayDirtyRect)(THIS_ LPRECT) PURE;
2422 STDMETHOD(Blt)(THIS_ LPRECT,LPDIRECTDRAWSURFACE7, LPRECT,DWORD, LPDDBLTFX) PURE;
2423 STDMETHOD(BltBatch)(THIS_ LPDDBLTBATCH, DWORD, DWORD ) PURE;
2424 STDMETHOD(BltFast)(THIS_ DWORD,DWORD,LPDIRECTDRAWSURFACE7, LPRECT,DWORD) PURE;
2425 STDMETHOD(DeleteAttachedSurface)(THIS_ DWORD,LPDIRECTDRAWSURFACE7) PURE;
2426 STDMETHOD(EnumAttachedSurfaces)(THIS_ LPVOID,LPDDENUMSURFACESCALLBACK7) PURE;
2427 STDMETHOD(EnumOverlayZOrders)(THIS_ DWORD,LPVOID,LPDDENUMSURFACESCALLBACK7) PURE;
2428 STDMETHOD(Flip)(THIS_ LPDIRECTDRAWSURFACE7, DWORD) PURE;
2429 STDMETHOD(GetAttachedSurface)(THIS_ LPDDSCAPS2, LPDIRECTDRAWSURFACE7 *) PURE;
2430 STDMETHOD(GetBltStatus)(THIS_ DWORD) PURE;
2431 STDMETHOD(GetCaps)(THIS_ LPDDSCAPS2) PURE;
2432 STDMETHOD(GetClipper)(THIS_ LPDIRECTDRAWCLIPPER *) PURE;
2433 STDMETHOD(GetColorKey)(THIS_ DWORD, LPDDCOLORKEY) PURE;
2434 STDMETHOD(GetDC)(THIS_ HDC *) PURE;
2435 STDMETHOD(GetFlipStatus)(THIS_ DWORD) PURE;
2436 STDMETHOD(GetOverlayPosition)(THIS_ LPLONG, LPLONG ) PURE;
2437 STDMETHOD(GetPalette)(THIS_ LPDIRECTDRAWPALETTE *) PURE;
2438 STDMETHOD(GetPixelFormat)(THIS_ LPDDPIXELFORMAT) PURE;
2439 STDMETHOD(GetSurfaceDesc)(THIS_ LPDDSURFACEDESC2) PURE;
2440 STDMETHOD(Initialize)(THIS_ LPDIRECTDRAW, LPDDSURFACEDESC2) PURE;
2441 STDMETHOD(IsLost)(THIS) PURE;
2442 STDMETHOD(Lock)(THIS_ LPRECT,LPDDSURFACEDESC2,DWORD,HANDLE) PURE;
2443 STDMETHOD(ReleaseDC)(THIS_ HDC) PURE;
2444 STDMETHOD(Restore)(THIS) PURE;
2445 STDMETHOD(SetClipper)(THIS_ LPDIRECTDRAWCLIPPER) PURE;
2446 STDMETHOD(SetColorKey)(THIS_ DWORD, LPDDCOLORKEY) PURE;
2447 STDMETHOD(SetOverlayPosition)(THIS_ LONG, LONG ) PURE;
2448 STDMETHOD(SetPalette)(THIS_ LPDIRECTDRAWPALETTE) PURE;
2449 STDMETHOD(Unlock)(THIS_ LPRECT) PURE;
2450 STDMETHOD(UpdateOverlay)(THIS_ LPRECT, LPDIRECTDRAWSURFACE7,LPRECT,DWORD, LPDDOVERLAYFX) PURE;
2451 STDMETHOD(UpdateOverlayDisplay)(THIS_ DWORD) PURE;
2452 STDMETHOD(UpdateOverlayZOrder)(THIS_ DWORD, LPDIRECTDRAWSURFACE7) PURE;
2453 STDMETHOD(GetDDInterface)(THIS_ LPVOID *) PURE;
2454 STDMETHOD(PageLock)(THIS_ DWORD) PURE;
2455 STDMETHOD(PageUnlock)(THIS_ DWORD) PURE;
2456 STDMETHOD(SetSurfaceDesc)(THIS_ LPDDSURFACEDESC2, DWORD) PURE;
2457 STDMETHOD(SetPrivateData)(THIS_ REFGUID, LPVOID, DWORD, DWORD) PURE;
2458 STDMETHOD(GetPrivateData)(THIS_ REFGUID, LPVOID, LPDWORD) PURE;
2459 STDMETHOD(FreePrivateData)(THIS_ REFGUID) PURE;
2460 STDMETHOD(GetUniquenessValue)(THIS_ LPDWORD) PURE;
2461 STDMETHOD(ChangeUniquenessValue)(THIS) PURE;
2462 STDMETHOD(SetPriority)(THIS_ DWORD) PURE;
2463 STDMETHOD(GetPriority)(THIS_ LPDWORD) PURE;
2464 STDMETHOD(SetLOD)(THIS_ DWORD) PURE;
2465 STDMETHOD(GetLOD)(THIS_ LPDWORD) PURE;
2466 };
2467 #if !defined(__cplusplus) || defined(CINTERFACE)
2468 #define IDirectDrawSurface7_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
2469 #define IDirectDrawSurface7_AddRef(p) (p)->lpVtbl->AddRef(p)
2470 #define IDirectDrawSurface7_Release(p) (p)->lpVtbl->Release(p)
2471 #define IDirectDrawSurface7_AddAttachedSurface(p,a) (p)->lpVtbl->AddAttachedSurface(p,a)
2472 #define IDirectDrawSurface7_AddOverlayDirtyRect(p,a) (p)->lpVtbl->AddOverlayDirtyRect(p,a)
2473 #define IDirectDrawSurface7_Blt(p,a,b,c,d,e) (p)->lpVtbl->Blt(p,a,b,c,d,e)
2474 #define IDirectDrawSurface7_BltBatch(p,a,b,c) (p)->lpVtbl->BltBatch(p,a,b,c)
2475 #define IDirectDrawSurface7_BltFast(p,a,b,c,d,e) (p)->lpVtbl->BltFast(p,a,b,c,d,e)
2476 #define IDirectDrawSurface7_DeleteAttachedSurface(p,a,b) (p)->lpVtbl->DeleteAttachedSurface(p,a,b)
2477 #define IDirectDrawSurface7_EnumAttachedSurfaces(p,a,b) (p)->lpVtbl->EnumAttachedSurfaces(p,a,b)
2478 #define IDirectDrawSurface7_EnumOverlayZOrders(p,a,b,c) (p)->lpVtbl->EnumOverlayZOrders(p,a,b,c)
2479 #define IDirectDrawSurface7_Flip(p,a,b) (p)->lpVtbl->Flip(p,a,b)
2480 #define IDirectDrawSurface7_GetAttachedSurface(p,a,b) (p)->lpVtbl->GetAttachedSurface(p,a,b)
2481 #define IDirectDrawSurface7_GetBltStatus(p,a) (p)->lpVtbl->GetBltStatus(p,a)
2482 #define IDirectDrawSurface7_GetCaps(p,b) (p)->lpVtbl->GetCaps(p,b)
2483 #define IDirectDrawSurface7_GetClipper(p,a) (p)->lpVtbl->GetClipper(p,a)
2484 #define IDirectDrawSurface7_GetColorKey(p,a,b) (p)->lpVtbl->GetColorKey(p,a,b)
2485 #define IDirectDrawSurface7_GetDC(p,a) (p)->lpVtbl->GetDC(p,a)
2486 #define IDirectDrawSurface7_GetFlipStatus(p,a) (p)->lpVtbl->GetFlipStatus(p,a)
2487 #define IDirectDrawSurface7_GetOverlayPosition(p,a,b) (p)->lpVtbl->GetOverlayPosition(p,a,b)
2488 #define IDirectDrawSurface7_GetPalette(p,a) (p)->lpVtbl->GetPalette(p,a)
2489 #define IDirectDrawSurface7_GetPixelFormat(p,a) (p)->lpVtbl->GetPixelFormat(p,a)
2490 #define IDirectDrawSurface7_GetSurfaceDesc(p,a) (p)->lpVtbl->GetSurfaceDesc(p,a)
2491 #define IDirectDrawSurface7_Initialize(p,a,b) (p)->lpVtbl->Initialize(p,a,b)
2492 #define IDirectDrawSurface7_IsLost(p) (p)->lpVtbl->IsLost(p)
2493 #define IDirectDrawSurface7_Lock(p,a,b,c,d) (p)->lpVtbl->Lock(p,a,b,c,d)
2494 #define IDirectDrawSurface7_ReleaseDC(p,a) (p)->lpVtbl->ReleaseDC(p,a)
2495 #define IDirectDrawSurface7_Restore(p) (p)->lpVtbl->Restore(p)
2496 #define IDirectDrawSurface7_SetClipper(p,a) (p)->lpVtbl->SetClipper(p,a)
2497 #define IDirectDrawSurface7_SetColorKey(p,a,b) (p)->lpVtbl->SetColorKey(p,a,b)
2498 #define IDirectDrawSurface7_SetOverlayPosition(p,a,b) (p)->lpVtbl->SetOverlayPosition(p,a,b)
2499 #define IDirectDrawSurface7_SetPalette(p,a) (p)->lpVtbl->SetPalette(p,a)
2500 #define IDirectDrawSurface7_Unlock(p,b) (p)->lpVtbl->Unlock(p,b)
2501 #define IDirectDrawSurface7_UpdateOverlay(p,a,b,c,d,e) (p)->lpVtbl->UpdateOverlay(p,a,b,c,d,e)
2502 #define IDirectDrawSurface7_UpdateOverlayDisplay(p,a) (p)->lpVtbl->UpdateOverlayDisplay(p,a)
2503 #define IDirectDrawSurface7_UpdateOverlayZOrder(p,a,b) (p)->lpVtbl->UpdateOverlayZOrder(p,a,b)
2504 #define IDirectDrawSurface7_GetDDInterface(p,a) (p)->lpVtbl->GetDDInterface(p,a)
2505 #define IDirectDrawSurface7_PageLock(p,a) (p)->lpVtbl->PageLock(p,a)
2506 #define IDirectDrawSurface7_PageUnlock(p,a) (p)->lpVtbl->PageUnlock(p,a)
2507 #define IDirectDrawSurface7_SetSurfaceDesc(p,a,b) (p)->lpVtbl->SetSurfaceDesc(p,a,b)
2508 #define IDirectDrawSurface7_SetPrivateData(p,a,b,c,d) (p)->lpVtbl->SetPrivateData(p,a,b,c,d)
2509 #define IDirectDrawSurface7_GetPrivateData(p,a,b,c) (p)->lpVtbl->GetPrivateData(p,a,b,c)
2510 #define IDirectDrawSurface7_FreePrivateData(p,a) (p)->lpVtbl->FreePrivateData(p,a)
2511 #define IDirectDrawSurface7_GetUniquenessValue(p, a) (p)->lpVtbl->GetUniquenessValue(p, a)
2512 #define IDirectDrawSurface7_ChangeUniquenessValue(p) (p)->lpVtbl->ChangeUniquenessValue(p)
2513 #define IDirectDrawSurface7_SetPriority(p,a) (p)->lpVtbl->SetPriority(p,a)
2514 #define IDirectDrawSurface7_GetPriority(p,a) (p)->lpVtbl->GetPriority(p,a)
2515 #define IDirectDrawSurface7_SetLOD(p,a) (p)->lpVtbl->SetLOD(p,a)
2516 #define IDirectDrawSurface7_GetLOD(p,a) (p)->lpVtbl->GetLOD(p,a)
2517 #else
2518 #define IDirectDrawSurface7_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
2519 #define IDirectDrawSurface7_AddRef(p) (p)->AddRef()
2520 #define IDirectDrawSurface7_Release(p) (p)->Release()
2521 #define IDirectDrawSurface7_AddAttachedSurface(p,a) (p)->AddAttachedSurface(a)
2522 #define IDirectDrawSurface7_AddOverlayDirtyRect(p,a) (p)->AddOverlayDirtyRect(a)
2523 #define IDirectDrawSurface7_Blt(p,a,b,c,d,e) (p)->Blt(a,b,c,d,e)
2524 #define IDirectDrawSurface7_BltBatch(p,a,b,c) (p)->BltBatch(a,b,c)
2525 #define IDirectDrawSurface7_BltFast(p,a,b,c,d,e) (p)->BltFast(a,b,c,d,e)
2526 #define IDirectDrawSurface7_DeleteAttachedSurface(p,a,b) (p)->DeleteAttachedSurface(a,b)
2527 #define IDirectDrawSurface7_EnumAttachedSurfaces(p,a,b) (p)->EnumAttachedSurfaces(a,b)
2528 #define IDirectDrawSurface7_EnumOverlayZOrders(p,a,b,c) (p)->EnumOverlayZOrders(a,b,c)
2529 #define IDirectDrawSurface7_Flip(p,a,b) (p)->Flip(a,b)
2530 #define IDirectDrawSurface7_GetAttachedSurface(p,a,b) (p)->GetAttachedSurface(a,b)
2531 #define IDirectDrawSurface7_GetBltStatus(p,a) (p)->GetBltStatus(a)
2532 #define IDirectDrawSurface7_GetCaps(p,b) (p)->GetCaps(b)
2533 #define IDirectDrawSurface7_GetClipper(p,a) (p)->GetClipper(a)
2534 #define IDirectDrawSurface7_GetColorKey(p,a,b) (p)->GetColorKey(a,b)
2535 #define IDirectDrawSurface7_GetDC(p,a) (p)->GetDC(a)
2536 #define IDirectDrawSurface7_GetFlipStatus(p,a) (p)->GetFlipStatus(a)
2537 #define IDirectDrawSurface7_GetOverlayPosition(p,a,b) (p)->GetOverlayPosition(a,b)
2538 #define IDirectDrawSurface7_GetPalette(p,a) (p)->GetPalette(a)
2539 #define IDirectDrawSurface7_GetPixelFormat(p,a) (p)->GetPixelFormat(a)
2540 #define IDirectDrawSurface7_GetSurfaceDesc(p,a) (p)->GetSurfaceDesc(a)
2541 #define IDirectDrawSurface7_Initialize(p,a,b) (p)->Initialize(a,b)
2542 #define IDirectDrawSurface7_IsLost(p) (p)->IsLost()
2543 #define IDirectDrawSurface7_Lock(p,a,b,c,d) (p)->Lock(a,b,c,d)
2544 #define IDirectDrawSurface7_ReleaseDC(p,a) (p)->ReleaseDC(a)
2545 #define IDirectDrawSurface7_Restore(p) (p)->Restore()
2546 #define IDirectDrawSurface7_SetClipper(p,a) (p)->SetClipper(a)
2547 #define IDirectDrawSurface7_SetColorKey(p,a,b) (p)->SetColorKey(a,b)
2548 #define IDirectDrawSurface7_SetOverlayPosition(p,a,b) (p)->SetOverlayPosition(a,b)
2549 #define IDirectDrawSurface7_SetPalette(p,a) (p)->SetPalette(a)
2550 #define IDirectDrawSurface7_Unlock(p,b) (p)->Unlock(b)
2551 #define IDirectDrawSurface7_UpdateOverlay(p,a,b,c,d,e) (p)->UpdateOverlay(a,b,c,d,e)
2552 #define IDirectDrawSurface7_UpdateOverlayDisplay(p,a) (p)->UpdateOverlayDisplay(a)
2553 #define IDirectDrawSurface7_UpdateOverlayZOrder(p,a,b) (p)->UpdateOverlayZOrder(a,b)
2554 #define IDirectDrawSurface7_GetDDInterface(p,a) (p)->GetDDInterface(a)
2555 #define IDirectDrawSurface7_PageLock(p,a) (p)->PageLock(a)
2556 #define IDirectDrawSurface7_PageUnlock(p,a) (p)->PageUnlock(a)
2557 #define IDirectDrawSurface7_SetSurfaceDesc(p,a,b) (p)->SetSurfaceDesc(a,b)
2558 #define IDirectDrawSurface7_SetPrivateData(p,a,b,c,d) (p)->SetPrivateData(a,b,c,d)
2559 #define IDirectDrawSurface7_GetPrivateData(p,a,b,c) (p)->GetPrivateData(a,b,c)
2560 #define IDirectDrawSurface7_FreePrivateData(p,a) (p)->FreePrivateData(a)
2561 #define IDirectDrawSurface7_GetUniquenessValue(p, a) (p)->GetUniquenessValue(a)
2562 #define IDirectDrawSurface7_ChangeUniquenessValue(p) (p)->ChangeUniquenessValue()
2563 #define IDirectDrawSurface7_SetPriority(p,a) (p)->SetPriority(a)
2564 #define IDirectDrawSurface7_GetPriority(p,a) (p)->GetPriority(a)
2565 #define IDirectDrawSurface7_SetLOD(p,a) (p)->SetLOD(a)
2566 #define IDirectDrawSurface7_GetLOD(p,a) (p)->GetLOD(a)
2567 #endif
2568 #endif
2569 #undef INTERFACE
2570
2571 #ifdef __cplusplus
2572 }
2573 #endif
2574
2575 #ifdef ENABLE_NAMELESS_UNION_PRAGMA
2576 #pragma warning(default:4201)
2577 #endif
2578
2579 #endif