2 * Copyright (C) the Wine project
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
19 #ifndef __WINE_DDRAW_H
20 #define __WINE_DDRAW_H
22 #define COM_NO_WINDOWS_H
27 #endif /* defined(__cplusplus) */
29 #ifndef DIRECTDRAW_VERSION
30 #define DIRECTDRAW_VERSION 0x0700
31 #endif /* DIRECTDRAW_VERSION */
33 /*****************************************************************************
34 * Predeclare the interfaces
36 #ifndef __DDRAW_GUID_DEFINED__
37 DEFINE_GUID( CLSID_DirectDraw
, 0xD7B70EE0,0x4340,0x11CF,0xB0,0x63,0x00,0x20,0xAF,0xC2,0xCD,0x35 );
38 DEFINE_GUID( CLSID_DirectDraw7
, 0x3C305196,0x50DB,0x11D3,0x9C,0xFE,0x00,0xC0,0x4F,0xD9,0x30,0xC5 );
39 DEFINE_GUID( CLSID_DirectDrawClipper
, 0x593817A0,0x7DB3,0x11CF,0xA2,0xDE,0x00,0xAA,0x00,0xb9,0x33,0x56 );
40 DEFINE_GUID( IID_IDirectDraw
, 0x6C14DB80,0xA733,0x11CE,0xA5,0x21,0x00,0x20,0xAF,0x0B,0xE5,0x60 );
41 DEFINE_GUID( IID_IDirectDraw2
, 0xB3A6F3E0,0x2B43,0x11CF,0xA2,0xDE,0x00,0xAA,0x00,0xB9,0x33,0x56 );
42 DEFINE_GUID( IID_IDirectDraw4
, 0x9c59509a,0x39bd,0x11d1,0x8c,0x4a,0x00,0xc0,0x4f,0xd9,0x30,0xc5 );
43 DEFINE_GUID( IID_IDirectDraw7
, 0x15e65ec0,0x3b9c,0x11d2,0xb9,0x2f,0x00,0x60,0x97,0x97,0xea,0x5b );
44 DEFINE_GUID( IID_IDirectDrawSurface
, 0x6C14DB81,0xA733,0x11CE,0xA5,0x21,0x00,0x20,0xAF,0x0B,0xE5,0x60 );
45 DEFINE_GUID( IID_IDirectDrawSurface2
, 0x57805885,0x6eec,0x11cf,0x94,0x41,0xa8,0x23,0x03,0xc1,0x0e,0x27 );
46 DEFINE_GUID( IID_IDirectDrawSurface3
, 0xDA044E00,0x69B2,0x11D0,0xA1,0xD5,0x00,0xAA,0x00,0xB8,0xDF,0xBB );
47 DEFINE_GUID( IID_IDirectDrawSurface4
, 0x0B2B8630,0xAD35,0x11D0,0x8E,0xA6,0x00,0x60,0x97,0x97,0xEA,0x5B );
48 DEFINE_GUID( IID_IDirectDrawSurface7
, 0x06675a80,0x3b9b,0x11d2,0xb9,0x2f,0x00,0x60,0x97,0x97,0xea,0x5b );
49 DEFINE_GUID( IID_IDirectDrawPalette
, 0x6C14DB84,0xA733,0x11CE,0xA5,0x21,0x00,0x20,0xAF,0x0B,0xE5,0x60 );
50 DEFINE_GUID( IID_IDirectDrawClipper
, 0x6C14DB85,0xA733,0x11CE,0xA5,0x21,0x00,0x20,0xAF,0x0B,0xE5,0x60 );
51 DEFINE_GUID( IID_IDirectDrawColorControl
,0x4B9F0EE0,0x0D7E,0x11D0,0x9B,0x06,0x00,0xA0,0xC9,0x03,0xA3,0xB8 );
52 DEFINE_GUID( IID_IDirectDrawGammaControl
,0x69C11C3E,0xB46B,0x11D1,0xAD,0x7A,0x00,0xC0,0x4F,0xC2,0x9B,0x4E );
55 typedef struct IDirectDraw
*LPDIRECTDRAW
;
56 typedef struct IDirectDraw2
*LPDIRECTDRAW2
;
57 typedef struct IDirectDraw4
*LPDIRECTDRAW4
;
58 typedef struct IDirectDraw7
*LPDIRECTDRAW7
;
59 typedef struct IDirectDrawClipper
*LPDIRECTDRAWCLIPPER
;
60 typedef struct IDirectDrawPalette
*LPDIRECTDRAWPALETTE
;
61 typedef struct IDirectDrawSurface
*LPDIRECTDRAWSURFACE
;
62 typedef struct IDirectDrawSurface2
*LPDIRECTDRAWSURFACE2
;
63 typedef struct IDirectDrawSurface3
*LPDIRECTDRAWSURFACE3
;
64 typedef struct IDirectDrawSurface4
*LPDIRECTDRAWSURFACE4
;
65 typedef struct IDirectDrawSurface7
*LPDIRECTDRAWSURFACE7
;
66 typedef struct IDirectDrawColorControl
*LPDIRECTDRAWCOLORCONTROL
;
67 typedef struct IDirectDrawGammaControl
*LPDIRECTDRAWGAMMACONTROL
;
70 #define DDENUMRET_CANCEL 0
71 #define DDENUMRET_OK 1
77 #define MAKE_DDHRESULT( code ) MAKE_HRESULT( 1, _FACDD, code )
79 #define DDERR_ALREADYINITIALIZED MAKE_DDHRESULT( 5 )
80 #define DDERR_CANNOTATTACHSURFACE MAKE_DDHRESULT( 10 )
81 #define DDERR_CANNOTDETACHSURFACE MAKE_DDHRESULT( 20 )
82 #define DDERR_CURRENTLYNOTAVAIL MAKE_DDHRESULT( 40 )
83 #define DDERR_EXCEPTION MAKE_DDHRESULT( 55 )
84 #define DDERR_GENERIC E_FAIL
85 #define DDERR_HEIGHTALIGN MAKE_DDHRESULT( 90 )
86 #define DDERR_INCOMPATIBLEPRIMARY MAKE_DDHRESULT( 95 )
87 #define DDERR_INVALIDCAPS MAKE_DDHRESULT( 100 )
88 #define DDERR_INVALIDCLIPLIST MAKE_DDHRESULT( 110 )
89 #define DDERR_INVALIDMODE MAKE_DDHRESULT( 120 )
90 #define DDERR_INVALIDOBJECT MAKE_DDHRESULT( 130 )
91 #define DDERR_INVALIDPARAMS E_INVALIDARG
92 #define DDERR_INVALIDPIXELFORMAT MAKE_DDHRESULT( 145 )
93 #define DDERR_INVALIDRECT MAKE_DDHRESULT( 150 )
94 #define DDERR_LOCKEDSURFACES MAKE_DDHRESULT( 160 )
95 #define DDERR_NO3D MAKE_DDHRESULT( 170 )
96 #define DDERR_NOALPHAHW MAKE_DDHRESULT( 180 )
97 #define DDERR_NOSTEREOHARDWARE MAKE_DDHRESULT( 181 )
98 #define DDERR_NOSURFACELEFT MAKE_DDHRESULT( 182 )
99 #define DDERR_NOCLIPLIST MAKE_DDHRESULT( 205 )
100 #define DDERR_NOCOLORCONVHW MAKE_DDHRESULT( 210 )
101 #define DDERR_NOCOOPERATIVELEVELSET MAKE_DDHRESULT( 212 )
102 #define DDERR_NOCOLORKEY MAKE_DDHRESULT( 215 )
103 #define DDERR_NOCOLORKEYHW MAKE_DDHRESULT( 220 )
104 #define DDERR_NODIRECTDRAWSUPPORT MAKE_DDHRESULT( 222 )
105 #define DDERR_NOEXCLUSIVEMODE MAKE_DDHRESULT( 225 )
106 #define DDERR_NOFLIPHW MAKE_DDHRESULT( 230 )
107 #define DDERR_NOGDI MAKE_DDHRESULT( 240 )
108 #define DDERR_NOMIRRORHW MAKE_DDHRESULT( 250 )
109 #define DDERR_NOTFOUND MAKE_DDHRESULT( 255 )
110 #define DDERR_NOOVERLAYHW MAKE_DDHRESULT( 260 )
111 #define DDERR_OVERLAPPINGRECTS MAKE_DDHRESULT( 270 )
112 #define DDERR_NORASTEROPHW MAKE_DDHRESULT( 280 )
113 #define DDERR_NOROTATIONHW MAKE_DDHRESULT( 290 )
114 #define DDERR_NOSTRETCHHW MAKE_DDHRESULT( 310 )
115 #define DDERR_NOT4BITCOLOR MAKE_DDHRESULT( 316 )
116 #define DDERR_NOT4BITCOLORINDEX MAKE_DDHRESULT( 317 )
117 #define DDERR_NOT8BITCOLOR MAKE_DDHRESULT( 320 )
118 #define DDERR_NOTEXTUREHW MAKE_DDHRESULT( 330 )
119 #define DDERR_NOVSYNCHW MAKE_DDHRESULT( 335 )
120 #define DDERR_NOZBUFFERHW MAKE_DDHRESULT( 340 )
121 #define DDERR_NOZOVERLAYHW MAKE_DDHRESULT( 350 )
122 #define DDERR_OUTOFCAPS MAKE_DDHRESULT( 360 )
123 #define DDERR_OUTOFMEMORY E_OUTOFMEMORY
124 #define DDERR_OUTOFVIDEOMEMORY MAKE_DDHRESULT( 380 )
125 #define DDERR_OVERLAYCANTCLIP MAKE_DDHRESULT( 382 )
126 #define DDERR_OVERLAYCOLORKEYONLYONEACTIVE MAKE_DDHRESULT( 384 )
127 #define DDERR_PALETTEBUSY MAKE_DDHRESULT( 387 )
128 #define DDERR_COLORKEYNOTSET MAKE_DDHRESULT( 400 )
129 #define DDERR_SURFACEALREADYATTACHED MAKE_DDHRESULT( 410 )
130 #define DDERR_SURFACEALREADYDEPENDENT MAKE_DDHRESULT( 420 )
131 #define DDERR_SURFACEBUSY MAKE_DDHRESULT( 430 )
132 #define DDERR_CANTLOCKSURFACE MAKE_DDHRESULT( 435 )
133 #define DDERR_SURFACEISOBSCURED MAKE_DDHRESULT( 440 )
134 #define DDERR_SURFACELOST MAKE_DDHRESULT( 450 )
135 #define DDERR_SURFACENOTATTACHED MAKE_DDHRESULT( 460 )
136 #define DDERR_TOOBIGHEIGHT MAKE_DDHRESULT( 470 )
137 #define DDERR_TOOBIGSIZE MAKE_DDHRESULT( 480 )
138 #define DDERR_TOOBIGWIDTH MAKE_DDHRESULT( 490 )
139 #define DDERR_UNSUPPORTED E_NOTIMPL
140 #define DDERR_UNSUPPORTEDFORMAT MAKE_DDHRESULT( 510 )
141 #define DDERR_UNSUPPORTEDMASK MAKE_DDHRESULT( 520 )
142 #define DDERR_INVALIDSTREAM MAKE_DDHRESULT( 521 )
143 #define DDERR_VERTICALBLANKINPROGRESS MAKE_DDHRESULT( 537 )
144 #define DDERR_WASSTILLDRAWING MAKE_DDHRESULT( 540 )
145 #define DDERR_DDSCAPSCOMPLEXREQUIRED MAKE_DDHRESULT( 542 )
146 #define DDERR_XALIGN MAKE_DDHRESULT( 560 )
147 #define DDERR_INVALIDDIRECTDRAWGUID MAKE_DDHRESULT( 561 )
148 #define DDERR_DIRECTDRAWALREADYCREATED MAKE_DDHRESULT( 562 )
149 #define DDERR_NODIRECTDRAWHW MAKE_DDHRESULT( 563 )
150 #define DDERR_PRIMARYSURFACEALREADYEXISTS MAKE_DDHRESULT( 564 )
151 #define DDERR_NOEMULATION MAKE_DDHRESULT( 565 )
152 #define DDERR_REGIONTOOSMALL MAKE_DDHRESULT( 566 )
153 #define DDERR_CLIPPERISUSINGHWND MAKE_DDHRESULT( 567 )
154 #define DDERR_NOCLIPPERATTACHED MAKE_DDHRESULT( 568 )
155 #define DDERR_NOHWND MAKE_DDHRESULT( 569 )
156 #define DDERR_HWNDSUBCLASSED MAKE_DDHRESULT( 570 )
157 #define DDERR_HWNDALREADYSET MAKE_DDHRESULT( 571 )
158 #define DDERR_NOPALETTEATTACHED MAKE_DDHRESULT( 572 )
159 #define DDERR_NOPALETTEHW MAKE_DDHRESULT( 573 )
160 #define DDERR_BLTFASTCANTCLIP MAKE_DDHRESULT( 574 )
161 #define DDERR_NOBLTHW MAKE_DDHRESULT( 575 )
162 #define DDERR_NODDROPSHW MAKE_DDHRESULT( 576 )
163 #define DDERR_OVERLAYNOTVISIBLE MAKE_DDHRESULT( 577 )
164 #define DDERR_NOOVERLAYDEST MAKE_DDHRESULT( 578 )
165 #define DDERR_INVALIDPOSITION MAKE_DDHRESULT( 579 )
166 #define DDERR_NOTAOVERLAYSURFACE MAKE_DDHRESULT( 580 )
167 #define DDERR_EXCLUSIVEMODEALREADYSET MAKE_DDHRESULT( 581 )
168 #define DDERR_NOTFLIPPABLE MAKE_DDHRESULT( 582 )
169 #define DDERR_CANTDUPLICATE MAKE_DDHRESULT( 583 )
170 #define DDERR_NOTLOCKED MAKE_DDHRESULT( 584 )
171 #define DDERR_CANTCREATEDC MAKE_DDHRESULT( 585 )
172 #define DDERR_NODC MAKE_DDHRESULT( 586 )
173 #define DDERR_WRONGMODE MAKE_DDHRESULT( 587 )
174 #define DDERR_IMPLICITLYCREATED MAKE_DDHRESULT( 588 )
175 #define DDERR_NOTPALETTIZED MAKE_DDHRESULT( 589 )
176 #define DDERR_UNSUPPORTEDMODE MAKE_DDHRESULT( 590 )
177 #define DDERR_NOMIPMAPHW MAKE_DDHRESULT( 591 )
178 #define DDERR_INVALIDSURFACETYPE MAKE_DDHRESULT( 592 )
179 #define DDERR_NOOPTIMIZEHW MAKE_DDHRESULT( 600 )
180 #define DDERR_NOTLOADED MAKE_DDHRESULT( 601 )
181 #define DDERR_NOFOCUSWINDOW MAKE_DDHRESULT( 602 )
182 #define DDERR_NOTONMIPMAPSUBLEVEL MAKE_DDHRESULT( 603 )
183 #define DDERR_DCALREADYCREATED MAKE_DDHRESULT( 620 )
184 #define DDERR_NONONLOCALVIDMEM MAKE_DDHRESULT( 630 )
185 #define DDERR_CANTPAGELOCK MAKE_DDHRESULT( 640 )
186 #define DDERR_CANTPAGEUNLOCK MAKE_DDHRESULT( 660 )
187 #define DDERR_NOTPAGELOCKED MAKE_DDHRESULT( 680 )
188 #define DDERR_MOREDATA MAKE_DDHRESULT( 690 )
189 #define DDERR_EXPIRED MAKE_DDHRESULT( 691 )
190 #define DDERR_TESTFINISHED MAKE_DDHRESULT( 692 )
191 #define DDERR_NEWMODE MAKE_DDHRESULT( 693 )
192 #define DDERR_D3DNOTINITIALIZED MAKE_DDHRESULT( 694 )
193 #define DDERR_VIDEONOTACTIVE MAKE_DDHRESULT( 695 )
194 #define DDERR_NOMONITORINFORMATION MAKE_DDHRESULT( 696 )
195 #define DDERR_NODRIVERSUPPORT MAKE_DDHRESULT( 697 )
196 #define DDERR_DEVICEDOESNTOWNSURFACE MAKE_DDHRESULT( 699 )
197 #define DDERR_NOTINITIALIZED CO_E_NOTINITIALIZED
199 /* dwFlags for Blt* */
200 #define DDBLT_ALPHADEST 0x00000001
201 #define DDBLT_ALPHADESTCONSTOVERRIDE 0x00000002
202 #define DDBLT_ALPHADESTNEG 0x00000004
203 #define DDBLT_ALPHADESTSURFACEOVERRIDE 0x00000008
204 #define DDBLT_ALPHAEDGEBLEND 0x00000010
205 #define DDBLT_ALPHASRC 0x00000020
206 #define DDBLT_ALPHASRCCONSTOVERRIDE 0x00000040
207 #define DDBLT_ALPHASRCNEG 0x00000080
208 #define DDBLT_ALPHASRCSURFACEOVERRIDE 0x00000100
209 #define DDBLT_ASYNC 0x00000200
210 #define DDBLT_COLORFILL 0x00000400
211 #define DDBLT_DDFX 0x00000800
212 #define DDBLT_DDROPS 0x00001000
213 #define DDBLT_KEYDEST 0x00002000
214 #define DDBLT_KEYDESTOVERRIDE 0x00004000
215 #define DDBLT_KEYSRC 0x00008000
216 #define DDBLT_KEYSRCOVERRIDE 0x00010000
217 #define DDBLT_ROP 0x00020000
218 #define DDBLT_ROTATIONANGLE 0x00040000
219 #define DDBLT_ZBUFFER 0x00080000
220 #define DDBLT_ZBUFFERDESTCONSTOVERRIDE 0x00100000
221 #define DDBLT_ZBUFFERDESTOVERRIDE 0x00200000
222 #define DDBLT_ZBUFFERSRCCONSTOVERRIDE 0x00400000
223 #define DDBLT_ZBUFFERSRCOVERRIDE 0x00800000
224 #define DDBLT_WAIT 0x01000000
225 #define DDBLT_DEPTHFILL 0x02000000
226 #define DDBLT_DONOTWAIT 0x08000000
228 /* dwTrans for BltFast */
229 #define DDBLTFAST_NOCOLORKEY 0x00000000
230 #define DDBLTFAST_SRCCOLORKEY 0x00000001
231 #define DDBLTFAST_DESTCOLORKEY 0x00000002
232 #define DDBLTFAST_WAIT 0x00000010
233 #define DDBLTFAST_DONOTWAIT 0x00000020
235 /* dwFlags for Flip */
236 #define DDFLIP_WAIT 0x00000001
237 #define DDFLIP_EVEN 0x00000002 /* only valid for overlay */
238 #define DDFLIP_ODD 0x00000004 /* only valid for overlay */
239 #define DDFLIP_NOVSYNC 0x00000008
240 #define DDFLIP_STEREO 0x00000010
241 #define DDFLIP_DONOTWAIT 0x00000020
243 /* dwFlags for GetBltStatus */
244 #define DDGBS_CANBLT 0x00000001
245 #define DDGBS_ISBLTDONE 0x00000002
247 /* dwFlags for IDirectDrawSurface7::GetFlipStatus */
248 #define DDGFS_CANFLIP 1L
249 #define DDGFS_ISFLIPDONE 2L
251 /* dwFlags for IDirectDrawSurface7::SetPrivateData */
252 #define DDSPD_IUNKNOWNPTR 1L
253 #define DDSPD_VOLATILE 2L
256 /* reserved1, was 3d capable */
257 #define DDSCAPS_RESERVED1 0x00000001
258 /* surface contains alpha information */
259 #define DDSCAPS_ALPHA 0x00000002
260 /* this surface is a backbuffer */
261 #define DDSCAPS_BACKBUFFER 0x00000004
262 /* complex surface structure */
263 #define DDSCAPS_COMPLEX 0x00000008
264 /* part of surface flipping structure */
265 #define DDSCAPS_FLIP 0x00000010
266 /* this surface is the frontbuffer surface */
267 #define DDSCAPS_FRONTBUFFER 0x00000020
268 /* this is a plain offscreen surface */
269 #define DDSCAPS_OFFSCREENPLAIN 0x00000040
271 #define DDSCAPS_OVERLAY 0x00000080
272 /* palette objects can be created and attached to us */
273 #define DDSCAPS_PALETTE 0x00000100
274 /* primary surface (the one the user looks at currently)(right eye)*/
275 #define DDSCAPS_PRIMARYSURFACE 0x00000200
276 /* primary surface for left eye */
277 #define DDSCAPS_PRIMARYSURFACELEFT 0x00000400
278 /* surface exists in systemmemory */
279 #define DDSCAPS_SYSTEMMEMORY 0x00000800
280 /* surface can be used as a texture */
281 #define DDSCAPS_TEXTURE 0x00001000
282 /* surface may be destination for 3d rendering */
283 #define DDSCAPS_3DDEVICE 0x00002000
284 /* surface exists in videomemory */
285 #define DDSCAPS_VIDEOMEMORY 0x00004000
286 /* surface changes immediately visible */
287 #define DDSCAPS_VISIBLE 0x00008000
288 /* write only surface */
289 #define DDSCAPS_WRITEONLY 0x00010000
290 /* zbuffer surface */
291 #define DDSCAPS_ZBUFFER 0x00020000
293 #define DDSCAPS_OWNDC 0x00040000
294 /* surface should be able to receive live video */
295 #define DDSCAPS_LIVEVIDEO 0x00080000
296 /* should be able to have a hw codec decompress stuff into it */
297 #define DDSCAPS_HWCODEC 0x00100000
298 /* mode X (320x200 or 320x240) surface */
299 #define DDSCAPS_MODEX 0x00200000
300 /* one mipmap surface (1 level) */
301 #define DDSCAPS_MIPMAP 0x00400000
302 #define DDSCAPS_RESERVED2 0x00800000
303 /* memory allocation delayed until Load() */
304 #define DDSCAPS_ALLOCONLOAD 0x04000000
305 /* Indicates that the surface will receive data from a video port */
306 #define DDSCAPS_VIDEOPORT 0x08000000
307 /* surface is in local videomemory */
308 #define DDSCAPS_LOCALVIDMEM 0x10000000
309 /* surface is in nonlocal videomemory */
310 #define DDSCAPS_NONLOCALVIDMEM 0x20000000
311 /* surface is a standard VGA mode surface (NOT ModeX) */
312 #define DDSCAPS_STANDARDVGAMODE 0x40000000
313 /* optimized? surface */
314 #define DDSCAPS_OPTIMIZED 0x80000000
316 typedef struct _DDSCAPS
{
317 DWORD dwCaps
; /* capabilities of surface wanted */
318 } DDSCAPS
,*LPDDSCAPS
;
320 /* DDSCAPS2.dwCaps2 */
321 /* indicates the surface will receive data from a video port using
322 deinterlacing hardware. */
323 #define DDSCAPS2_HARDWAREDEINTERLACE 0x00000002
324 /* indicates the surface will be locked very frequently. */
325 #define DDSCAPS2_HINTDYNAMIC 0x00000004
326 /* indicates surface can be re-ordered or retiled on load() */
327 #define DDSCAPS2_HINTSTATIC 0x00000008
328 /* indicates surface to be managed by directdraw/direct3D */
329 #define DDSCAPS2_TEXTUREMANAGE 0x00000010
331 #define DDSCAPS2_RESERVED1 0x00000020
332 #define DDSCAPS2_RESERVED2 0x00000040
333 /* indicates surface will never be locked again */
334 #define DDSCAPS2_OPAQUE 0x00000080
335 /* set at CreateSurface() time to indicate antialising will be used */
336 #define DDSCAPS2_HINTANTIALIASING 0x00000100
337 /* set at CreateSurface() time to indicate cubic environment map */
338 #define DDSCAPS2_CUBEMAP 0x00000200
339 /* face flags for cube maps */
340 #define DDSCAPS2_CUBEMAP_POSITIVEX 0x00000400
341 #define DDSCAPS2_CUBEMAP_NEGATIVEX 0x00000800
342 #define DDSCAPS2_CUBEMAP_POSITIVEY 0x00001000
343 #define DDSCAPS2_CUBEMAP_NEGATIVEY 0x00002000
344 #define DDSCAPS2_CUBEMAP_POSITIVEZ 0x00004000
345 #define DDSCAPS2_CUBEMAP_NEGATIVEZ 0x00008000
346 /* specifies all faces of a cube for CreateSurface() */
347 #define DDSCAPS2_CUBEMAP_ALLFACES ( DDSCAPS2_CUBEMAP_POSITIVEX |\
348 DDSCAPS2_CUBEMAP_NEGATIVEX |\
349 DDSCAPS2_CUBEMAP_POSITIVEY |\
350 DDSCAPS2_CUBEMAP_NEGATIVEY |\
351 DDSCAPS2_CUBEMAP_POSITIVEZ |\
352 DDSCAPS2_CUBEMAP_NEGATIVEZ )
353 /* set for mipmap sublevels on DirectX7 and later. ignored by CreateSurface() */
354 #define DDSCAPS2_MIPMAPSUBLEVEL 0x00010000
355 /* indicates texture surface to be managed by Direct3D *only* */
356 #define DDSCAPS2_D3DTEXTUREMANAGE 0x00020000
357 /* indicates managed surface that can safely be lost */
358 #define DDSCAPS2_DONOTPERSIST 0x00040000
359 /* indicates surface is part of a stereo flipping chain */
360 #define DDSCAPS2_STEREOSURFACELEFT 0x00080000
362 typedef struct _DDSCAPS2
{
363 DWORD dwCaps
; /* capabilities of surface wanted */
364 DWORD dwCaps2
; /* additional capabilities */
365 DWORD dwCaps3
; /* reserved capabilities */
366 DWORD dwCaps4
; /* more reserved capabilities */
367 } DDSCAPS2
,*LPDDSCAPS2
;
369 #define DD_ROP_SPACE (256/32) /* space required to store ROP array */
371 typedef struct _DDCAPS_DX7
/* DirectX 7 version of caps struct */
373 DWORD dwSize
; /* size of the DDDRIVERCAPS structure */
374 DWORD dwCaps
; /* driver specific capabilities */
375 DWORD dwCaps2
; /* more driver specific capabilites */
376 DWORD dwCKeyCaps
; /* color key capabilities of the surface */
377 DWORD dwFXCaps
; /* driver specific stretching and effects capabilites */
378 DWORD dwFXAlphaCaps
; /* alpha driver specific capabilities */
379 DWORD dwPalCaps
; /* palette capabilities */
380 DWORD dwSVCaps
; /* stereo vision capabilities */
381 DWORD dwAlphaBltConstBitDepths
; /* DDBD_2,4,8 */
382 DWORD dwAlphaBltPixelBitDepths
; /* DDBD_1,2,4,8 */
383 DWORD dwAlphaBltSurfaceBitDepths
; /* DDBD_1,2,4,8 */
384 DWORD dwAlphaOverlayConstBitDepths
; /* DDBD_2,4,8 */
385 DWORD dwAlphaOverlayPixelBitDepths
; /* DDBD_1,2,4,8 */
386 DWORD dwAlphaOverlaySurfaceBitDepths
; /* DDBD_1,2,4,8 */
387 DWORD dwZBufferBitDepths
; /* DDBD_8,16,24,32 */
388 DWORD dwVidMemTotal
; /* total amount of video memory */
389 DWORD dwVidMemFree
; /* amount of free video memory */
390 DWORD dwMaxVisibleOverlays
; /* maximum number of visible overlays */
391 DWORD dwCurrVisibleOverlays
; /* current number of visible overlays */
392 DWORD dwNumFourCCCodes
; /* number of four cc codes */
393 DWORD dwAlignBoundarySrc
; /* source rectangle alignment */
394 DWORD dwAlignSizeSrc
; /* source rectangle byte size */
395 DWORD dwAlignBoundaryDest
; /* dest rectangle alignment */
396 DWORD dwAlignSizeDest
; /* dest rectangle byte size */
397 DWORD dwAlignStrideAlign
; /* stride alignment */
398 DWORD dwRops
[DD_ROP_SPACE
]; /* ROPS supported */
399 DDSCAPS ddsOldCaps
; /* old DDSCAPS - superseded for DirectX6+ */
400 DWORD dwMinOverlayStretch
; /* minimum overlay stretch factor multiplied by 1000, eg 1000 == 1.0, 1300 == 1.3 */
401 DWORD dwMaxOverlayStretch
; /* maximum overlay stretch factor multiplied by 1000, eg 1000 == 1.0, 1300 == 1.3 */
402 DWORD dwMinLiveVideoStretch
; /* minimum live video stretch factor multiplied by 1000, eg 1000 == 1.0, 1300 == 1.3 */
403 DWORD dwMaxLiveVideoStretch
; /* maximum live video stretch factor multiplied by 1000, eg 1000 == 1.0, 1300 == 1.3 */
404 DWORD dwMinHwCodecStretch
; /* minimum hardware codec stretch factor multiplied by 1000, eg 1000 == 1.0, 1300 == 1.3 */
405 DWORD dwMaxHwCodecStretch
; /* maximum hardware codec stretch factor multiplied by 1000, eg 1000 == 1.0, 1300 == 1.3 */
409 DWORD dwSVBCaps
; /* driver specific capabilities for System->Vmem blts */
410 DWORD dwSVBCKeyCaps
; /* driver color key capabilities for System->Vmem blts */
411 DWORD dwSVBFXCaps
; /* driver FX capabilities for System->Vmem blts */
412 DWORD dwSVBRops
[DD_ROP_SPACE
];/* ROPS supported for System->Vmem blts */
413 DWORD dwVSBCaps
; /* driver specific capabilities for Vmem->System blts */
414 DWORD dwVSBCKeyCaps
; /* driver color key capabilities for Vmem->System blts */
415 DWORD dwVSBFXCaps
; /* driver FX capabilities for Vmem->System blts */
416 DWORD dwVSBRops
[DD_ROP_SPACE
];/* ROPS supported for Vmem->System blts */
417 DWORD dwSSBCaps
; /* driver specific capabilities for System->System blts */
418 DWORD dwSSBCKeyCaps
; /* driver color key capabilities for System->System blts */
419 DWORD dwSSBFXCaps
; /* driver FX capabilities for System->System blts */
420 DWORD dwSSBRops
[DD_ROP_SPACE
];/* ROPS supported for System->System blts */
421 DWORD dwMaxVideoPorts
; /* maximum number of usable video ports */
422 DWORD dwCurrVideoPorts
; /* current number of video ports used */
423 DWORD dwSVBCaps2
; /* more driver specific capabilities for System->Vmem blts */
424 DWORD dwNLVBCaps
; /* driver specific capabilities for non-local->local vidmem blts */
425 DWORD dwNLVBCaps2
; /* more driver specific capabilities non-local->local vidmem blts */
426 DWORD dwNLVBCKeyCaps
; /* driver color key capabilities for non-local->local vidmem blts */
427 DWORD dwNLVBFXCaps
; /* driver FX capabilities for non-local->local blts */
428 DWORD dwNLVBRops
[DD_ROP_SPACE
]; /* ROPS supported for non-local->local blts */
429 DDSCAPS2 ddsCaps
; /* surface capabilities */
430 } DDCAPS_DX7
,*LPDDCAPS_DX7
;
432 typedef struct _DDCAPS_DX6
/* DirectX 6 version of caps struct */
434 DWORD dwSize
; /* size of the DDDRIVERCAPS structure */
435 DWORD dwCaps
; /* driver specific capabilities */
436 DWORD dwCaps2
; /* more driver specific capabilites */
437 DWORD dwCKeyCaps
; /* color key capabilities of the surface */
438 DWORD dwFXCaps
; /* driver specific stretching and effects capabilites */
439 DWORD dwFXAlphaCaps
; /* alpha driver specific capabilities */
440 DWORD dwPalCaps
; /* palette capabilities */
441 DWORD dwSVCaps
; /* stereo vision capabilities */
442 DWORD dwAlphaBltConstBitDepths
; /* DDBD_2,4,8 */
443 DWORD dwAlphaBltPixelBitDepths
; /* DDBD_1,2,4,8 */
444 DWORD dwAlphaBltSurfaceBitDepths
; /* DDBD_1,2,4,8 */
445 DWORD dwAlphaOverlayConstBitDepths
; /* DDBD_2,4,8 */
446 DWORD dwAlphaOverlayPixelBitDepths
; /* DDBD_1,2,4,8 */
447 DWORD dwAlphaOverlaySurfaceBitDepths
; /* DDBD_1,2,4,8 */
448 DWORD dwZBufferBitDepths
; /* DDBD_8,16,24,32 */
449 DWORD dwVidMemTotal
; /* total amount of video memory */
450 DWORD dwVidMemFree
; /* amount of free video memory */
451 DWORD dwMaxVisibleOverlays
; /* maximum number of visible overlays */
452 DWORD dwCurrVisibleOverlays
; /* current number of visible overlays */
453 DWORD dwNumFourCCCodes
; /* number of four cc codes */
454 DWORD dwAlignBoundarySrc
; /* source rectangle alignment */
455 DWORD dwAlignSizeSrc
; /* source rectangle byte size */
456 DWORD dwAlignBoundaryDest
; /* dest rectangle alignment */
457 DWORD dwAlignSizeDest
; /* dest rectangle byte size */
458 DWORD dwAlignStrideAlign
; /* stride alignment */
459 DWORD dwRops
[DD_ROP_SPACE
]; /* ROPS supported */
460 DDSCAPS ddsOldCaps
; /* old DDSCAPS - superseded for DirectX6+ */
461 DWORD dwMinOverlayStretch
; /* minimum overlay stretch factor multiplied by 1000, eg 1000 == 1.0, 1300 == 1.3 */
462 DWORD dwMaxOverlayStretch
; /* maximum overlay stretch factor multiplied by 1000, eg 1000 == 1.0, 1300 == 1.3 */
463 DWORD dwMinLiveVideoStretch
; /* minimum live video stretch factor multiplied by 1000, eg 1000 == 1.0, 1300 == 1.3 */
464 DWORD dwMaxLiveVideoStretch
; /* maximum live video stretch factor multiplied by 1000, eg 1000 == 1.0, 1300 == 1.3 */
465 DWORD dwMinHwCodecStretch
; /* minimum hardware codec stretch factor multiplied by 1000, eg 1000 == 1.0, 1300 == 1.3 */
466 DWORD dwMaxHwCodecStretch
; /* maximum hardware codec stretch factor multiplied by 1000, eg 1000 == 1.0, 1300 == 1.3 */
470 DWORD dwSVBCaps
; /* driver specific capabilities for System->Vmem blts */
471 DWORD dwSVBCKeyCaps
; /* driver color key capabilities for System->Vmem blts */
472 DWORD dwSVBFXCaps
; /* driver FX capabilities for System->Vmem blts */
473 DWORD dwSVBRops
[DD_ROP_SPACE
];/* ROPS supported for System->Vmem blts */
474 DWORD dwVSBCaps
; /* driver specific capabilities for Vmem->System blts */
475 DWORD dwVSBCKeyCaps
; /* driver color key capabilities for Vmem->System blts */
476 DWORD dwVSBFXCaps
; /* driver FX capabilities for Vmem->System blts */
477 DWORD dwVSBRops
[DD_ROP_SPACE
];/* ROPS supported for Vmem->System blts */
478 DWORD dwSSBCaps
; /* driver specific capabilities for System->System blts */
479 DWORD dwSSBCKeyCaps
; /* driver color key capabilities for System->System blts */
480 DWORD dwSSBFXCaps
; /* driver FX capabilities for System->System blts */
481 DWORD dwSSBRops
[DD_ROP_SPACE
];/* ROPS supported for System->System blts */
482 DWORD dwMaxVideoPorts
; /* maximum number of usable video ports */
483 DWORD dwCurrVideoPorts
; /* current number of video ports used */
484 DWORD dwSVBCaps2
; /* more driver specific capabilities for System->Vmem blts */
485 DWORD dwNLVBCaps
; /* driver specific capabilities for non-local->local vidmem blts */
486 DWORD dwNLVBCaps2
; /* more driver specific capabilities non-local->local vidmem blts */
487 DWORD dwNLVBCKeyCaps
; /* driver color key capabilities for non-local->local vidmem blts */
488 DWORD dwNLVBFXCaps
; /* driver FX capabilities for non-local->local blts */
489 DWORD dwNLVBRops
[DD_ROP_SPACE
]; /* ROPS supported for non-local->local blts */
490 /* and one new member for DirectX 6 */
491 DDSCAPS2 ddsCaps
; /* surface capabilities */
492 } DDCAPS_DX6
,*LPDDCAPS_DX6
;
494 typedef struct _DDCAPS_DX5
/* DirectX5 version of caps struct */
496 DWORD dwSize
; /* size of the DDDRIVERCAPS structure */
497 DWORD dwCaps
; /* driver specific capabilities */
498 DWORD dwCaps2
; /* more driver specific capabilites */
499 DWORD dwCKeyCaps
; /* color key capabilities of the surface */
500 DWORD dwFXCaps
; /* driver specific stretching and effects capabilites */
501 DWORD dwFXAlphaCaps
; /* alpha driver specific capabilities */
502 DWORD dwPalCaps
; /* palette capabilities */
503 DWORD dwSVCaps
; /* stereo vision capabilities */
504 DWORD dwAlphaBltConstBitDepths
; /* DDBD_2,4,8 */
505 DWORD dwAlphaBltPixelBitDepths
; /* DDBD_1,2,4,8 */
506 DWORD dwAlphaBltSurfaceBitDepths
; /* DDBD_1,2,4,8 */
507 DWORD dwAlphaOverlayConstBitDepths
; /* DDBD_2,4,8 */
508 DWORD dwAlphaOverlayPixelBitDepths
; /* DDBD_1,2,4,8 */
509 DWORD dwAlphaOverlaySurfaceBitDepths
; /* DDBD_1,2,4,8 */
510 DWORD dwZBufferBitDepths
; /* DDBD_8,16,24,32 */
511 DWORD dwVidMemTotal
; /* total amount of video memory */
512 DWORD dwVidMemFree
; /* amount of free video memory */
513 DWORD dwMaxVisibleOverlays
; /* maximum number of visible overlays */
514 DWORD dwCurrVisibleOverlays
; /* current number of visible overlays */
515 DWORD dwNumFourCCCodes
; /* number of four cc codes */
516 DWORD dwAlignBoundarySrc
; /* source rectangle alignment */
517 DWORD dwAlignSizeSrc
; /* source rectangle byte size */
518 DWORD dwAlignBoundaryDest
; /* dest rectangle alignment */
519 DWORD dwAlignSizeDest
; /* dest rectangle byte size */
520 DWORD dwAlignStrideAlign
; /* stride alignment */
521 DWORD dwRops
[DD_ROP_SPACE
]; /* ROPS supported */
522 DDSCAPS ddsCaps
; /* DDSCAPS structure has all the general capabilities */
523 DWORD dwMinOverlayStretch
; /* minimum overlay stretch factor multiplied by 1000, eg 1000 == 1.0, 1300 == 1.3 */
524 DWORD dwMaxOverlayStretch
; /* maximum overlay stretch factor multiplied by 1000, eg 1000 == 1.0, 1300 == 1.3 */
525 DWORD dwMinLiveVideoStretch
; /* minimum live video stretch factor multiplied by 1000, eg 1000 == 1.0, 1300 == 1.3 */
526 DWORD dwMaxLiveVideoStretch
; /* maximum live video stretch factor multiplied by 1000, eg 1000 == 1.0, 1300 == 1.3 */
527 DWORD dwMinHwCodecStretch
; /* minimum hardware codec stretch factor multiplied by 1000, eg 1000 == 1.0, 1300 == 1.3 */
528 DWORD dwMaxHwCodecStretch
; /* maximum hardware codec stretch factor multiplied by 1000, eg 1000 == 1.0, 1300 == 1.3 */
532 DWORD dwSVBCaps
; /* driver specific capabilities for System->Vmem blts */
533 DWORD dwSVBCKeyCaps
; /* driver color key capabilities for System->Vmem blts */
534 DWORD dwSVBFXCaps
; /* driver FX capabilities for System->Vmem blts */
535 DWORD dwSVBRops
[DD_ROP_SPACE
];/* ROPS supported for System->Vmem blts */
536 DWORD dwVSBCaps
; /* driver specific capabilities for Vmem->System blts */
537 DWORD dwVSBCKeyCaps
; /* driver color key capabilities for Vmem->System blts */
538 DWORD dwVSBFXCaps
; /* driver FX capabilities for Vmem->System blts */
539 DWORD dwVSBRops
[DD_ROP_SPACE
];/* ROPS supported for Vmem->System blts */
540 DWORD dwSSBCaps
; /* driver specific capabilities for System->System blts */
541 DWORD dwSSBCKeyCaps
; /* driver color key capabilities for System->System blts */
542 DWORD dwSSBFXCaps
; /* driver FX capabilities for System->System blts */
543 DWORD dwSSBRops
[DD_ROP_SPACE
];/* ROPS supported for System->System blts */
544 /* the following are the new DirectX 5 members */
545 DWORD dwMaxVideoPorts
; /* maximum number of usable video ports */
546 DWORD dwCurrVideoPorts
; /* current number of video ports used */
547 DWORD dwSVBCaps2
; /* more driver specific capabilities for System->Vmem blts */
548 DWORD dwNLVBCaps
; /* driver specific capabilities for non-local->local vidmem blts */
549 DWORD dwNLVBCaps2
; /* more driver specific capabilities non-local->local vidmem blts */
550 DWORD dwNLVBCKeyCaps
; /* driver color key capabilities for non-local->local vidmem blts */
551 DWORD dwNLVBFXCaps
; /* driver FX capabilities for non-local->local blts */
552 DWORD dwNLVBRops
[DD_ROP_SPACE
]; /* ROPS supported for non-local->local blts */
553 } DDCAPS_DX5
,*LPDDCAPS_DX5
;
555 typedef struct _DDCAPS_DX3
/* DirectX3 version of caps struct */
557 DWORD dwSize
; /* size of the DDDRIVERCAPS structure */
558 DWORD dwCaps
; /* driver specific capabilities */
559 DWORD dwCaps2
; /* more driver specific capabilites */
560 DWORD dwCKeyCaps
; /* color key capabilities of the surface */
561 DWORD dwFXCaps
; /* driver specific stretching and effects capabilites */
562 DWORD dwFXAlphaCaps
; /* alpha driver specific capabilities */
563 DWORD dwPalCaps
; /* palette capabilities */
564 DWORD dwSVCaps
; /* stereo vision capabilities */
565 DWORD dwAlphaBltConstBitDepths
; /* DDBD_2,4,8 */
566 DWORD dwAlphaBltPixelBitDepths
; /* DDBD_1,2,4,8 */
567 DWORD dwAlphaBltSurfaceBitDepths
; /* DDBD_1,2,4,8 */
568 DWORD dwAlphaOverlayConstBitDepths
; /* DDBD_2,4,8 */
569 DWORD dwAlphaOverlayPixelBitDepths
; /* DDBD_1,2,4,8 */
570 DWORD dwAlphaOverlaySurfaceBitDepths
; /* DDBD_1,2,4,8 */
571 DWORD dwZBufferBitDepths
; /* DDBD_8,16,24,32 */
572 DWORD dwVidMemTotal
; /* total amount of video memory */
573 DWORD dwVidMemFree
; /* amount of free video memory */
574 DWORD dwMaxVisibleOverlays
; /* maximum number of visible overlays */
575 DWORD dwCurrVisibleOverlays
; /* current number of visible overlays */
576 DWORD dwNumFourCCCodes
; /* number of four cc codes */
577 DWORD dwAlignBoundarySrc
; /* source rectangle alignment */
578 DWORD dwAlignSizeSrc
; /* source rectangle byte size */
579 DWORD dwAlignBoundaryDest
; /* dest rectangle alignment */
580 DWORD dwAlignSizeDest
; /* dest rectangle byte size */
581 DWORD dwAlignStrideAlign
; /* stride alignment */
582 DWORD dwRops
[DD_ROP_SPACE
]; /* ROPS supported */
583 DDSCAPS ddsCaps
; /* DDSCAPS structure has all the general capabilities */
584 DWORD dwMinOverlayStretch
; /* minimum overlay stretch factor multiplied by 1000, eg 1000 == 1.0, 1300 == 1.3 */
585 DWORD dwMaxOverlayStretch
; /* maximum overlay stretch factor multiplied by 1000, eg 1000 == 1.0, 1300 == 1.3 */
586 DWORD dwMinLiveVideoStretch
; /* minimum live video stretch factor multiplied by 1000, eg 1000 == 1.0, 1300 == 1.3 */
587 DWORD dwMaxLiveVideoStretch
; /* maximum live video stretch factor multiplied by 1000, eg 1000 == 1.0, 1300 == 1.3 */
588 DWORD dwMinHwCodecStretch
; /* minimum hardware codec stretch factor multiplied by 1000, eg 1000 == 1.0, 1300 == 1.3 */
589 DWORD dwMaxHwCodecStretch
; /* maximum hardware codec stretch factor multiplied by 1000, eg 1000 == 1.0, 1300 == 1.3 */
593 DWORD dwSVBCaps
; /* driver specific capabilities for System->Vmem blts */
594 DWORD dwSVBCKeyCaps
; /* driver color key capabilities for System->Vmem blts */
595 DWORD dwSVBFXCaps
; /* driver FX capabilities for System->Vmem blts */
596 DWORD dwSVBRops
[DD_ROP_SPACE
];/* ROPS supported for System->Vmem blts */
597 DWORD dwVSBCaps
; /* driver specific capabilities for Vmem->System blts */
598 DWORD dwVSBCKeyCaps
; /* driver color key capabilities for Vmem->System blts */
599 DWORD dwVSBFXCaps
; /* driver FX capabilities for Vmem->System blts */
600 DWORD dwVSBRops
[DD_ROP_SPACE
];/* ROPS supported for Vmem->System blts */
601 DWORD dwSSBCaps
; /* driver specific capabilities for System->System blts */
602 DWORD dwSSBCKeyCaps
; /* driver color key capabilities for System->System blts */
603 DWORD dwSSBFXCaps
; /* driver FX capabilities for System->System blts */
604 DWORD dwSSBRops
[DD_ROP_SPACE
];/* ROPS supported for System->System blts */
608 } DDCAPS_DX3
,*LPDDCAPS_DX3
;
610 /* set caps struct according to DIRECTDRAW_VERSION */
612 #if DIRECTDRAW_VERSION <= 0x300
613 typedef DDCAPS_DX3 DDCAPS
;
614 #elif DIRECTDRAW_VERSION <= 0x500
615 typedef DDCAPS_DX5 DDCAPS
;
616 #elif DIRECTDRAW_VERSION <= 0x600
617 typedef DDCAPS_DX6 DDCAPS
;
619 typedef DDCAPS_DX7 DDCAPS
;
622 typedef DDCAPS
*LPDDCAPS
;
625 #define DDCAPS_3D 0x00000001
626 #define DDCAPS_ALIGNBOUNDARYDEST 0x00000002
627 #define DDCAPS_ALIGNSIZEDEST 0x00000004
628 #define DDCAPS_ALIGNBOUNDARYSRC 0x00000008
629 #define DDCAPS_ALIGNSIZESRC 0x00000010
630 #define DDCAPS_ALIGNSTRIDE 0x00000020
631 #define DDCAPS_BLT 0x00000040
632 #define DDCAPS_BLTQUEUE 0x00000080
633 #define DDCAPS_BLTFOURCC 0x00000100
634 #define DDCAPS_BLTSTRETCH 0x00000200
635 #define DDCAPS_GDI 0x00000400
636 #define DDCAPS_OVERLAY 0x00000800
637 #define DDCAPS_OVERLAYCANTCLIP 0x00001000
638 #define DDCAPS_OVERLAYFOURCC 0x00002000
639 #define DDCAPS_OVERLAYSTRETCH 0x00004000
640 #define DDCAPS_PALETTE 0x00008000
641 #define DDCAPS_PALETTEVSYNC 0x00010000
642 #define DDCAPS_READSCANLINE 0x00020000
643 #define DDCAPS_STEREOVIEW 0x00040000
644 #define DDCAPS_VBI 0x00080000
645 #define DDCAPS_ZBLTS 0x00100000
646 #define DDCAPS_ZOVERLAYS 0x00200000
647 #define DDCAPS_COLORKEY 0x00400000
648 #define DDCAPS_ALPHA 0x00800000
649 #define DDCAPS_COLORKEYHWASSIST 0x01000000
650 #define DDCAPS_NOHARDWARE 0x02000000
651 #define DDCAPS_BLTCOLORFILL 0x04000000
652 #define DDCAPS_BANKSWITCHED 0x08000000
653 #define DDCAPS_BLTDEPTHFILL 0x10000000
654 #define DDCAPS_CANCLIP 0x20000000
655 #define DDCAPS_CANCLIPSTRETCHED 0x40000000
656 #define DDCAPS_CANBLTSYSMEM 0x80000000
659 #define DDCAPS2_CERTIFIED 0x00000001
660 #define DDCAPS2_NO2DDURING3DSCENE 0x00000002
661 #define DDCAPS2_VIDEOPORT 0x00000004
662 #define DDCAPS2_AUTOFLIPOVERLAY 0x00000008
663 #define DDCAPS2_CANBOBINTERLEAVED 0x00000010
664 #define DDCAPS2_CANBOBNONINTERLEAVED 0x00000020
665 #define DDCAPS2_COLORCONTROLOVERLAY 0x00000040
666 #define DDCAPS2_COLORCONTROLPRIMARY 0x00000080
667 #define DDCAPS2_CANDROPZ16BIT 0x00000100
668 #define DDCAPS2_NONLOCALVIDMEM 0x00000200
669 #define DDCAPS2_NONLOCALVIDMEMCAPS 0x00000400
670 #define DDCAPS2_NOPAGELOCKREQUIRED 0x00000800
671 #define DDCAPS2_WIDESURFACES 0x00001000
672 #define DDCAPS2_CANFLIPODDEVEN 0x00002000
673 #define DDCAPS2_CANBOBHARDWARE 0x00004000
674 #define DDCAPS2_COPYFOURCC 0x00008000
675 #define DDCAPS2_PRIMARYGAMMA 0x00020000
676 #define DDCAPS2_CANRENDERWINDOWED 0x00080000
677 #define DDCAPS2_CANCALIBRATEGAMMA 0x00100000
678 #define DDCAPS2_FLIPINTERVAL 0x00200000
679 #define DDCAPS2_FLIPNOVSYNC 0x00400000
680 #define DDCAPS2_CANMANAGETEXTURE 0x00800000
681 #define DDCAPS2_TEXMANINNONLOCALVIDMEM 0x01000000
682 #define DDCAPS2_STEREO 0x02000000
683 #define DDCAPS2_SYSTONONLOCAL_AS_SYSTOLOCAL 0x04000000
686 /* Set/Get Colour Key Flags */
687 #define DDCKEY_COLORSPACE 0x00000001 /* Struct is single colour space */
688 #define DDCKEY_DESTBLT 0x00000002 /* To be used as dest for blt */
689 #define DDCKEY_DESTOVERLAY 0x00000004 /* To be used as dest for CK overlays */
690 #define DDCKEY_SRCBLT 0x00000008 /* To be used as src for blt */
691 #define DDCKEY_SRCOVERLAY 0x00000010 /* To be used as src for CK overlays */
693 typedef struct _DDCOLORKEY
695 DWORD dwColorSpaceLowValue
;/* low boundary of color space that is to
696 * be treated as Color Key, inclusive
698 DWORD dwColorSpaceHighValue
;/* high boundary of color space that is
699 * to be treated as Color Key, inclusive
701 } DDCOLORKEY
,*LPDDCOLORKEY
;
703 /* ddCKEYCAPS bits */
704 #define DDCKEYCAPS_DESTBLT 0x00000001
705 #define DDCKEYCAPS_DESTBLTCLRSPACE 0x00000002
706 #define DDCKEYCAPS_DESTBLTCLRSPACEYUV 0x00000004
707 #define DDCKEYCAPS_DESTBLTYUV 0x00000008
708 #define DDCKEYCAPS_DESTOVERLAY 0x00000010
709 #define DDCKEYCAPS_DESTOVERLAYCLRSPACE 0x00000020
710 #define DDCKEYCAPS_DESTOVERLAYCLRSPACEYUV 0x00000040
711 #define DDCKEYCAPS_DESTOVERLAYONEACTIVE 0x00000080
712 #define DDCKEYCAPS_DESTOVERLAYYUV 0x00000100
713 #define DDCKEYCAPS_SRCBLT 0x00000200
714 #define DDCKEYCAPS_SRCBLTCLRSPACE 0x00000400
715 #define DDCKEYCAPS_SRCBLTCLRSPACEYUV 0x00000800
716 #define DDCKEYCAPS_SRCBLTYUV 0x00001000
717 #define DDCKEYCAPS_SRCOVERLAY 0x00002000
718 #define DDCKEYCAPS_SRCOVERLAYCLRSPACE 0x00004000
719 #define DDCKEYCAPS_SRCOVERLAYCLRSPACEYUV 0x00008000
720 #define DDCKEYCAPS_SRCOVERLAYONEACTIVE 0x00010000
721 #define DDCKEYCAPS_SRCOVERLAYYUV 0x00020000
722 #define DDCKEYCAPS_NOCOSTOVERLAY 0x00040000
724 typedef struct _DDPIXELFORMAT
{
725 DWORD dwSize
; /* 0: size of structure */
726 DWORD dwFlags
; /* 4: pixel format flags */
727 DWORD dwFourCC
; /* 8: (FOURCC code) */
729 DWORD dwRGBBitCount
; /* C: how many bits per pixel */
730 DWORD dwYUVBitCount
; /* C: how many bits per pixel */
731 DWORD dwZBufferBitDepth
; /* C: how many bits for z buffers */
732 DWORD dwAlphaBitDepth
; /* C: how many bits for alpha channels*/
733 DWORD dwLuminanceBitCount
;
734 DWORD dwBumpBitCount
;
737 DWORD dwRBitMask
; /* 10: mask for red bit*/
738 DWORD dwYBitMask
; /* 10: mask for Y bits*/
739 DWORD dwStencilBitDepth
;
740 DWORD dwLuminanceBitMask
;
741 DWORD dwBumpDuBitMask
;
744 DWORD dwGBitMask
; /* 14: mask for green bits*/
745 DWORD dwUBitMask
; /* 14: mask for U bits*/
747 DWORD dwBumpDvBitMask
;
750 DWORD dwBBitMask
; /* 18: mask for blue bits*/
751 DWORD dwVBitMask
; /* 18: mask for V bits*/
752 DWORD dwStencilBitMask
;
753 DWORD dwBumpLuminanceBitMask
;
756 DWORD dwRGBAlphaBitMask
; /* 1C: mask for alpha channel */
757 DWORD dwYUVAlphaBitMask
; /* 1C: mask for alpha channel */
758 DWORD dwLuminanceAlphaBitMask
;
759 DWORD dwRGBZBitMask
; /* 1C: mask for Z channel */
760 DWORD dwYUVZBitMask
; /* 1C: mask for Z channel */
762 /* 20: next structure */
763 } DDPIXELFORMAT
,*LPDDPIXELFORMAT
;
765 #define MAKEFOURCC(ch0, ch1, ch2, ch3) \
766 ((DWORD)(BYTE)(ch0) | ((DWORD)(BYTE)(ch1) << 8) | \
767 ((DWORD)(BYTE)(ch2) << 16) | ((DWORD)(BYTE)(ch3) << 24 ))
769 /* DDCAPS.dwFXCaps */
770 #define DDFXCAPS_BLTALPHA 0x00000001
771 #define DDFXCAPS_OVERLAYALPHA 0x00000004
772 #define DDFXCAPS_BLTARITHSTRETCHYN 0x00000010
773 #define DDFXCAPS_BLTARITHSTRETCHY 0x00000020
774 #define DDFXCAPS_BLTMIRRORLEFTRIGHT 0x00000040
775 #define DDFXCAPS_BLTMIRRORUPDOWN 0x00000080
776 #define DDFXCAPS_BLTROTATION 0x00000100
777 #define DDFXCAPS_BLTROTATION90 0x00000200
778 #define DDFXCAPS_BLTSHRINKX 0x00000400
779 #define DDFXCAPS_BLTSHRINKXN 0x00000800
780 #define DDFXCAPS_BLTSHRINKY 0x00001000
781 #define DDFXCAPS_BLTSHRINKYN 0x00002000
782 #define DDFXCAPS_BLTSTRETCHX 0x00004000
783 #define DDFXCAPS_BLTSTRETCHXN 0x00008000
784 #define DDFXCAPS_BLTSTRETCHY 0x00010000
785 #define DDFXCAPS_BLTSTRETCHYN 0x00020000
786 #define DDFXCAPS_OVERLAYARITHSTRETCHY 0x00040000
787 #define DDFXCAPS_OVERLAYARITHSTRETCHYN 0x00000008
788 #define DDFXCAPS_OVERLAYSHRINKX 0x00080000
789 #define DDFXCAPS_OVERLAYSHRINKXN 0x00100000
790 #define DDFXCAPS_OVERLAYSHRINKY 0x00200000
791 #define DDFXCAPS_OVERLAYSHRINKYN 0x00400000
792 #define DDFXCAPS_OVERLAYSTRETCHX 0x00800000
793 #define DDFXCAPS_OVERLAYSTRETCHXN 0x01000000
794 #define DDFXCAPS_OVERLAYSTRETCHY 0x02000000
795 #define DDFXCAPS_OVERLAYSTRETCHYN 0x04000000
796 #define DDFXCAPS_OVERLAYMIRRORLEFTRIGHT 0x08000000
797 #define DDFXCAPS_OVERLAYMIRRORUPDOWN 0x10000000
799 #define DDFXCAPS_OVERLAYFILTER DDFXCAPS_OVERLAYARITHSTRETCHY
801 /* DDCAPS.dwFXAlphaCaps */
802 #define DDFXALPHACAPS_BLTALPHAEDGEBLEND 0x00000001
803 #define DDFXALPHACAPS_BLTALPHAPIXELS 0x00000002
804 #define DDFXALPHACAPS_BLTALPHAPIXELSNEG 0x00000004
805 #define DDFXALPHACAPS_BLTALPHASURFACES 0x00000008
806 #define DDFXALPHACAPS_BLTALPHASURFACESNEG 0x00000010
807 #define DDFXALPHACAPS_OVERLAYALPHAEDGEBLEND 0x00000020
808 #define DDFXALPHACAPS_OVERLAYALPHAPIXELS 0x00000040
809 #define DDFXALPHACAPS_OVERLAYALPHAPIXELSNEG 0x00000080
810 #define DDFXALPHACAPS_OVERLAYALPHASURFACES 0x00000100
811 #define DDFXALPHACAPS_OVERLAYALPHASURFACESNEG 0x00000200
813 /* DDCAPS.dwPalCaps */
814 #define DDPCAPS_4BIT 0x00000001
815 #define DDPCAPS_8BITENTRIES 0x00000002
816 #define DDPCAPS_8BIT 0x00000004
817 #define DDPCAPS_INITIALIZE 0x00000008
818 #define DDPCAPS_PRIMARYSURFACE 0x00000010
819 #define DDPCAPS_PRIMARYSURFACELEFT 0x00000020
820 #define DDPCAPS_ALLOW256 0x00000040
821 #define DDPCAPS_VSYNC 0x00000080
822 #define DDPCAPS_1BIT 0x00000100
823 #define DDPCAPS_2BIT 0x00000200
824 #define DDPCAPS_ALPHA 0x00000400
826 /* DDCAPS.dwSVCaps */
827 /* the first 4 of these are now obsolete */
828 #if DIRECTDRAW_VERSION >= 0x700 /* FIXME: I'm not sure when this switch occurred */
829 #define DDSVCAPS_RESERVED1 0x00000001
830 #define DDSVCAPS_RESERVED2 0x00000002
831 #define DDSVCAPS_RESERVED3 0x00000004
832 #define DDSVCAPS_RESERVED4 0x00000008
834 #define DDSVCAPS_ENIGMA 0x00000001
835 #define DDSVCAPS_FLICKER 0x00000002
836 #define DDSVCAPS_REDBLUE 0x00000004
837 #define DDSVCAPS_SPLIT 0x00000008
839 #define DDSVCAPS_STEREOSEQUENTIAL 0x00000010
842 #define DDBD_1 0x00004000
843 #define DDBD_2 0x00002000
844 #define DDBD_4 0x00001000
845 #define DDBD_8 0x00000800
846 #define DDBD_16 0x00000400
847 #define DDBD_24 0x00000200
848 #define DDBD_32 0x00000100
850 /* DDOVERLAYFX.dwDDFX */
851 #define DDOVERFX_ARITHSTRETCHY 0x00000001
852 #define DDOVERFX_MIRRORLEFTRIGHT 0x00000002
853 #define DDOVERFX_MIRRORUPDOWN 0x00000004
855 /* UpdateOverlay flags */
856 #define DDOVER_ALPHADEST 0x00000001
857 #define DDOVER_ALPHADESTCONSTOVERRIDE 0x00000002
858 #define DDOVER_ALPHADESTNEG 0x00000004
859 #define DDOVER_ALPHADESTSURFACEOVERRIDE 0x00000008
860 #define DDOVER_ALPHAEDGEBLEND 0x00000010
861 #define DDOVER_ALPHASRC 0x00000020
862 #define DDOVER_ALPHASRCCONSTOVERRIDE 0x00000040
863 #define DDOVER_ALPHASRCNEG 0x00000080
864 #define DDOVER_ALPHASRCSURFACEOVERRIDE 0x00000100
865 #define DDOVER_HIDE 0x00000200
866 #define DDOVER_KEYDEST 0x00000400
867 #define DDOVER_KEYDESTOVERRIDE 0x00000800
868 #define DDOVER_KEYSRC 0x00001000
869 #define DDOVER_KEYSRCOVERRIDE 0x00002000
870 #define DDOVER_SHOW 0x00004000
871 #define DDOVER_ADDDIRTYRECT 0x00008000
872 #define DDOVER_REFRESHDIRTYRECTS 0x00010000
873 #define DDOVER_REFRESHALL 0x00020000
874 #define DDOVER_DDFX 0x00080000
875 #define DDOVER_AUTOFLIP 0x00100000
876 #define DDOVER_BOB 0x00200000
877 #define DDOVER_OVERRIDEBOBWEAVE 0x00400000
878 #define DDOVER_INTERLEAVED 0x00800000
880 /* DDCOLORKEY.dwFlags */
881 #define DDPF_ALPHAPIXELS 0x00000001
882 #define DDPF_ALPHA 0x00000002
883 #define DDPF_FOURCC 0x00000004
884 #define DDPF_PALETTEINDEXED4 0x00000008
885 #define DDPF_PALETTEINDEXEDTO8 0x00000010
886 #define DDPF_PALETTEINDEXED8 0x00000020
887 #define DDPF_RGB 0x00000040
888 #define DDPF_COMPRESSED 0x00000080
889 #define DDPF_RGBTOYUV 0x00000100
890 #define DDPF_YUV 0x00000200
891 #define DDPF_ZBUFFER 0x00000400
892 #define DDPF_PALETTEINDEXED1 0x00000800
893 #define DDPF_PALETTEINDEXED2 0x00001000
894 #define DDPF_ZPIXELS 0x00002000
895 #define DDPF_STENCILBUFFER 0x00004000
896 #define DDPF_ALPHAPREMULT 0x00008000
897 #define DDPF_LUMINANCE 0x00020000
898 #define DDPF_BUMPLUMINANCE 0x00040000
899 #define DDPF_BUMPDUDV 0x00080000
901 /* SetCooperativeLevel dwFlags */
902 #define DDSCL_FULLSCREEN 0x00000001
903 #define DDSCL_ALLOWREBOOT 0x00000002
904 #define DDSCL_NOWINDOWCHANGES 0x00000004
905 #define DDSCL_NORMAL 0x00000008
906 #define DDSCL_EXCLUSIVE 0x00000010
907 #define DDSCL_ALLOWMODEX 0x00000040
908 #define DDSCL_SETFOCUSWINDOW 0x00000080
909 #define DDSCL_SETDEVICEWINDOW 0x00000100
910 #define DDSCL_CREATEDEVICEWINDOW 0x00000200
911 #define DDSCL_MULTITHREADED 0x00000400
912 #define DDSCL_FPUSETUP 0x00000800
913 #define DDSCL_FPUPRESERVE 0x00001000
916 /* DDSURFACEDESC.dwFlags */
917 #define DDSD_CAPS 0x00000001
918 #define DDSD_HEIGHT 0x00000002
919 #define DDSD_WIDTH 0x00000004
920 #define DDSD_PITCH 0x00000008
921 #define DDSD_BACKBUFFERCOUNT 0x00000020
922 #define DDSD_ZBUFFERBITDEPTH 0x00000040
923 #define DDSD_ALPHABITDEPTH 0x00000080
924 #define DDSD_LPSURFACE 0x00000800
925 #define DDSD_PIXELFORMAT 0x00001000
926 #define DDSD_CKDESTOVERLAY 0x00002000
927 #define DDSD_CKDESTBLT 0x00004000
928 #define DDSD_CKSRCOVERLAY 0x00008000
929 #define DDSD_CKSRCBLT 0x00010000
930 #define DDSD_MIPMAPCOUNT 0x00020000
931 #define DDSD_REFRESHRATE 0x00040000
932 #define DDSD_LINEARSIZE 0x00080000
933 #define DDSD_TEXTURESTAGE 0x00100000
934 #define DDSD_FVF 0x00200000
935 #define DDSD_SRCVBHANDLE 0x00400000
936 #define DDSD_ALL 0x007ff9ee
938 /* EnumSurfaces flags */
939 #define DDENUMSURFACES_ALL 0x00000001
940 #define DDENUMSURFACES_MATCH 0x00000002
941 #define DDENUMSURFACES_NOMATCH 0x00000004
942 #define DDENUMSURFACES_CANBECREATED 0x00000008
943 #define DDENUMSURFACES_DOESEXIST 0x00000010
945 /* SetDisplayMode flags */
946 #define DDSDM_STANDARDVGAMODE 0x00000001
948 /* EnumDisplayModes flags */
949 #define DDEDM_REFRESHRATES 0x00000001
950 #define DDEDM_STANDARDVGAMODES 0x00000002
952 /* WaitForVerticalDisplay flags */
954 #define DDWAITVB_BLOCKBEGIN 0x00000001
955 #define DDWAITVB_BLOCKBEGINEVENT 0x00000002
956 #define DDWAITVB_BLOCKEND 0x00000004
958 typedef struct _DDSURFACEDESC
960 DWORD dwSize
; /* 0: size of the DDSURFACEDESC structure*/
961 DWORD dwFlags
; /* 4: determines what fields are valid*/
962 DWORD dwHeight
; /* 8: height of surface to be created*/
963 DWORD dwWidth
; /* C: width of input surface*/
965 LONG lPitch
; /* 10: distance to start of next line (return value only)*/
968 DWORD dwBackBufferCount
;/* 14: number of back buffers requested*/
970 DWORD dwMipMapCount
;/* 18:number of mip-map levels requested*/
971 DWORD dwZBufferBitDepth
;/*18: depth of Z buffer requested*/
972 DWORD dwRefreshRate
;/* 18:refresh rate (used when display mode is described)*/
974 DWORD dwAlphaBitDepth
;/* 1C:depth of alpha buffer requested*/
975 DWORD dwReserved
; /* 20:reserved*/
976 LPVOID lpSurface
; /* 24:pointer to the associated surface memory*/
977 DDCOLORKEY ddckCKDestOverlay
;/* 28: CK for dest overlay use*/
978 DDCOLORKEY ddckCKDestBlt
; /* 30: CK for destination blt use*/
979 DDCOLORKEY ddckCKSrcOverlay
;/* 38: CK for source overlay use*/
980 DDCOLORKEY ddckCKSrcBlt
; /* 40: CK for source blt use*/
981 DDPIXELFORMAT ddpfPixelFormat
;/* 48: pixel format description of the surface*/
982 DDSCAPS ddsCaps
; /* 68: direct draw surface caps */
983 } DDSURFACEDESC
,*LPDDSURFACEDESC
;
985 typedef struct _DDSURFACEDESC2
987 DWORD dwSize
; /* 0: size of the DDSURFACEDESC2 structure*/
988 DWORD dwFlags
; /* 4: determines what fields are valid*/
989 DWORD dwHeight
; /* 8: height of surface to be created*/
990 DWORD dwWidth
; /* C: width of input surface*/
992 LONG lPitch
; /*10: distance to start of next line (return value only)*/
993 DWORD dwLinearSize
; /*10: formless late-allocated optimized surface size */
995 DWORD dwBackBufferCount
;/* 14: number of back buffers requested*/
997 DWORD dwMipMapCount
;/* 18:number of mip-map levels requested*/
998 DWORD dwRefreshRate
;/* 18:refresh rate (used when display mode is described)*/
999 DWORD dwSrcVBHandle
;/* 18:source used in VB::Optimize */
1001 DWORD dwAlphaBitDepth
;/* 1C:depth of alpha buffer requested*/
1002 DWORD dwReserved
; /* 20:reserved*/
1003 LPVOID lpSurface
; /* 24:pointer to the associated surface memory*/
1005 DDCOLORKEY ddckCKDestOverlay
; /* 28: CK for dest overlay use*/
1006 DWORD dwEmptyFaceColor
; /* 28: color for empty cubemap faces */
1008 DDCOLORKEY ddckCKDestBlt
; /* 30: CK for destination blt use*/
1009 DDCOLORKEY ddckCKSrcOverlay
;/* 38: CK for source overlay use*/
1010 DDCOLORKEY ddckCKSrcBlt
; /* 40: CK for source blt use*/
1013 DDPIXELFORMAT ddpfPixelFormat
;/* 48: pixel format description of the surface*/
1014 DWORD dwFVF
; /* 48: vertex format description of vertex buffers */
1016 DDSCAPS2 ddsCaps
; /* 68: DDraw surface caps */
1017 DWORD dwTextureStage
; /* 78: stage in multitexture cascade */
1018 } DDSURFACEDESC2
,*LPDDSURFACEDESC2
;
1020 /* DDCOLORCONTROL.dwFlags */
1021 #define DDCOLOR_BRIGHTNESS 0x00000001
1022 #define DDCOLOR_CONTRAST 0x00000002
1023 #define DDCOLOR_HUE 0x00000004
1024 #define DDCOLOR_SATURATION 0x00000008
1025 #define DDCOLOR_SHARPNESS 0x00000010
1026 #define DDCOLOR_GAMMA 0x00000020
1027 #define DDCOLOR_COLORENABLE 0x00000040
1040 } DDCOLORCONTROL
,*LPDDCOLORCONTROL
;
1046 } DDGAMMARAMP
,*LPDDGAMMARAMP
;
1048 typedef BOOL (CALLBACK
*LPDDENUMCALLBACKA
)(GUID
*, LPSTR
, LPSTR
, LPVOID
);
1049 typedef BOOL (CALLBACK
*LPDDENUMCALLBACKW
)(GUID
*, LPWSTR
, LPWSTR
, LPVOID
);
1050 DECL_WINELIB_TYPE_AW(LPDDENUMCALLBACK
)
1052 typedef HRESULT (CALLBACK
*LPDDENUMMODESCALLBACK
)(LPDDSURFACEDESC
, LPVOID
);
1053 typedef HRESULT (CALLBACK
*LPDDENUMMODESCALLBACK2
)(LPDDSURFACEDESC2
, LPVOID
);
1054 typedef HRESULT (CALLBACK
*LPDDENUMSURFACESCALLBACK
)(LPDIRECTDRAWSURFACE
, LPDDSURFACEDESC
, LPVOID
);
1055 typedef HRESULT (CALLBACK
*LPDDENUMSURFACESCALLBACK2
)(LPDIRECTDRAWSURFACE4
, LPDDSURFACEDESC2
, LPVOID
);
1056 typedef HRESULT (CALLBACK
*LPDDENUMSURFACESCALLBACK7
)(LPDIRECTDRAWSURFACE7
, LPDDSURFACEDESC2
, LPVOID
);
1058 typedef BOOL (CALLBACK
*LPDDENUMCALLBACKEXA
)(GUID
*, LPSTR
, LPSTR
, LPVOID
, HMONITOR
);
1059 typedef BOOL (CALLBACK
*LPDDENUMCALLBACKEXW
)(GUID
*, LPWSTR
, LPWSTR
, LPVOID
, HMONITOR
);
1060 DECL_WINELIB_TYPE_AW(LPDDENUMCALLBACKEX
)
1062 HRESULT WINAPI
DirectDrawEnumerateExA( LPDDENUMCALLBACKEXA lpCallback
, LPVOID lpContext
, DWORD dwFlags
);
1063 HRESULT WINAPI
DirectDrawEnumerateExW( LPDDENUMCALLBACKEXW lpCallback
, LPVOID lpContext
, DWORD dwFlags
);
1064 #define DirectDrawEnumerateEx WINELIB_NAME_AW(DirectDrawEnumerateEx)
1066 typedef HRESULT (WINAPI
* LPDIRECTDRAWENUMERATEEXA
)( LPDDENUMCALLBACKEXA lpCallback
, LPVOID lpContext
, DWORD dwFlags
);
1067 typedef HRESULT (WINAPI
* LPDIRECTDRAWENUMERATEEXW
)( LPDDENUMCALLBACKEXW lpCallback
, LPVOID lpContext
, DWORD dwFlags
);
1068 DECL_WINELIB_TYPE_AW(LPDIRECTDRAWENUMERATEEX
)
1070 /* flags for DirectDrawEnumerateEx */
1071 #define DDENUM_ATTACHEDSECONDARYDEVICES 0x00000001
1072 #define DDENUM_DETACHEDSECONDARYDEVICES 0x00000002
1073 #define DDENUM_NONDISPLAYDEVICES 0x00000004
1075 /* flags for DirectDrawCreate or IDirectDraw::Initialize */
1076 #define DDCREATE_HARDWAREONLY 1L
1077 #define DDCREATE_EMULATIONONLY 2L
1079 typedef struct _DDBLTFX
1081 DWORD dwSize
; /* size of structure */
1082 DWORD dwDDFX
; /* FX operations */
1083 DWORD dwROP
; /* Win32 raster operations */
1084 DWORD dwDDROP
; /* Raster operations new for DirectDraw */
1085 DWORD dwRotationAngle
; /* Rotation angle for blt */
1086 DWORD dwZBufferOpCode
; /* ZBuffer compares */
1087 DWORD dwZBufferLow
; /* Low limit of Z buffer */
1088 DWORD dwZBufferHigh
; /* High limit of Z buffer */
1089 DWORD dwZBufferBaseDest
; /* Destination base value */
1090 DWORD dwZDestConstBitDepth
; /* Bit depth used to specify Z constant for destination */
1093 DWORD dwZDestConst
; /* Constant to use as Z buffer for dest */
1094 LPDIRECTDRAWSURFACE lpDDSZBufferDest
; /* Surface to use as Z buffer for dest */
1096 DWORD dwZSrcConstBitDepth
; /* Bit depth used to specify Z constant for source */
1099 DWORD dwZSrcConst
; /* Constant to use as Z buffer for src */
1100 LPDIRECTDRAWSURFACE lpDDSZBufferSrc
; /* Surface to use as Z buffer for src */
1102 DWORD dwAlphaEdgeBlendBitDepth
; /* Bit depth used to specify constant for alpha edge blend */
1103 DWORD dwAlphaEdgeBlend
; /* Alpha for edge blending */
1105 DWORD dwAlphaDestConstBitDepth
; /* Bit depth used to specify alpha constant for destination */
1108 DWORD dwAlphaDestConst
; /* Constant to use as Alpha Channel */
1109 LPDIRECTDRAWSURFACE lpDDSAlphaDest
; /* Surface to use as Alpha Channel */
1111 DWORD dwAlphaSrcConstBitDepth
; /* Bit depth used to specify alpha constant for source */
1114 DWORD dwAlphaSrcConst
; /* Constant to use as Alpha Channel */
1115 LPDIRECTDRAWSURFACE lpDDSAlphaSrc
; /* Surface to use as Alpha Channel */
1119 DWORD dwFillColor
; /* color in RGB or Palettized */
1120 DWORD dwFillDepth
; /* depth value for z-buffer */
1121 DWORD dwFillPixel
; /* pixel val for RGBA or RGBZ */
1122 LPDIRECTDRAWSURFACE lpDDSPattern
; /* Surface to use as pattern */
1124 DDCOLORKEY ddckDestColorkey
; /* DestColorkey override */
1125 DDCOLORKEY ddckSrcColorkey
; /* SrcColorkey override */
1126 } DDBLTFX
,*LPDDBLTFX
;
1129 /* arithmetic stretching along y axis */
1130 #define DDBLTFX_ARITHSTRETCHY 0x00000001
1131 /* mirror on y axis */
1132 #define DDBLTFX_MIRRORLEFTRIGHT 0x00000002
1133 /* mirror on x axis */
1134 #define DDBLTFX_MIRRORUPDOWN 0x00000004
1136 #define DDBLTFX_NOTEARING 0x00000008
1137 /* 180 degrees clockwise rotation */
1138 #define DDBLTFX_ROTATE180 0x00000010
1139 /* 270 degrees clockwise rotation */
1140 #define DDBLTFX_ROTATE270 0x00000020
1141 /* 90 degrees clockwise rotation */
1142 #define DDBLTFX_ROTATE90 0x00000040
1143 /* dwZBufferLow and dwZBufferHigh specify limits to the copied Z values */
1144 #define DDBLTFX_ZBUFFERRANGE 0x00000080
1145 /* add dwZBufferBaseDest to every source z value before compare */
1146 #define DDBLTFX_ZBUFFERBASEDEST 0x00000100
1148 typedef struct _DDOVERLAYFX
1150 DWORD dwSize
; /* size of structure */
1151 DWORD dwAlphaEdgeBlendBitDepth
; /* Bit depth used to specify constant for alpha edge blend */
1152 DWORD dwAlphaEdgeBlend
; /* Constant to use as alpha for edge blend */
1154 DWORD dwAlphaDestConstBitDepth
; /* Bit depth used to specify alpha constant for destination */
1157 DWORD dwAlphaDestConst
; /* Constant to use as alpha channel for dest */
1158 LPDIRECTDRAWSURFACE lpDDSAlphaDest
; /* Surface to use as alpha channel for dest */
1160 DWORD dwAlphaSrcConstBitDepth
; /* Bit depth used to specify alpha constant for source */
1163 DWORD dwAlphaSrcConst
; /* Constant to use as alpha channel for src */
1164 LPDIRECTDRAWSURFACE lpDDSAlphaSrc
; /* Surface to use as alpha channel for src */
1166 DDCOLORKEY dckDestColorkey
; /* DestColorkey override */
1167 DDCOLORKEY dckSrcColorkey
; /* DestColorkey override */
1168 DWORD dwDDFX
; /* Overlay FX */
1169 DWORD dwFlags
; /* flags */
1170 } DDOVERLAYFX
,*LPDDOVERLAYFX
;
1172 typedef struct _DDBLTBATCH
1175 LPDIRECTDRAWSURFACE lpDDSSrc
;
1178 LPDDBLTFX lpDDBltFx
;
1179 } DDBLTBATCH
,*LPDDBLTBATCH
;
1181 #define MAX_DDDEVICEID_STRING 512
1183 #define DDGDI_GETHOSTIDENTIFIER 1
1185 typedef struct tagDDDEVICEIDENTIFIER
{
1186 char szDriver
[MAX_DDDEVICEID_STRING
];
1187 char szDescription
[MAX_DDDEVICEID_STRING
];
1188 LARGE_INTEGER liDriverVersion
;
1193 GUID guidDeviceIdentifier
;
1194 } DDDEVICEIDENTIFIER
, * LPDDDEVICEIDENTIFIER
;
1196 typedef struct tagDDDEVICEIDENTIFIER2
{
1197 char szDriver
[MAX_DDDEVICEID_STRING
]; /* user readable driver name */
1198 char szDescription
[MAX_DDDEVICEID_STRING
]; /* user readable description */
1199 LARGE_INTEGER liDriverVersion
; /* driver version */
1200 DWORD dwVendorId
; /* vendor ID, zero if unknown */
1201 DWORD dwDeviceId
; /* chipset ID, zero if unknown */
1202 DWORD dwSubSysId
; /* board ID, zero if unknown */
1203 DWORD dwRevision
; /* chipset version, zero if unknown */
1204 GUID guidDeviceIdentifier
; /* unique ID for this driver/chipset combination */
1205 DWORD dwWHQLLevel
; /* Windows Hardware Quality Lab certification level */
1206 } DDDEVICEIDENTIFIER2
, * LPDDDEVICEIDENTIFIER2
;
1208 /*****************************************************************************
1209 * IDirectDrawPalette interface
1211 #define INTERFACE IDirectDrawPalette
1212 DECLARE_INTERFACE_(IDirectDrawPalette
,IUnknown
)
1214 /*** IUnknown methods ***/
1215 STDMETHOD_(HRESULT
,QueryInterface
)(THIS_ REFIID riid
, void** ppvObject
) PURE
;
1216 STDMETHOD_(ULONG
,AddRef
)(THIS
) PURE
;
1217 STDMETHOD_(ULONG
,Release
)(THIS
) PURE
;
1218 /*** IDirectDrawPalette methods ***/
1219 STDMETHOD(GetCaps
)(THIS_ LPDWORD lpdwCaps
) PURE
;
1220 STDMETHOD(GetEntries
)(THIS_ DWORD dwFlags
, DWORD dwBase
, DWORD dwNumEntries
, LPPALETTEENTRY lpEntries
) PURE
;
1221 STDMETHOD(Initialize
)(THIS_ LPDIRECTDRAW lpDD
, DWORD dwFlags
, LPPALETTEENTRY lpDDColorTable
) PURE
;
1222 STDMETHOD(SetEntries
)(THIS_ DWORD dwFlags
, DWORD dwStartingEntry
, DWORD dwCount
, LPPALETTEENTRY lpEntries
) PURE
;
1226 #if !defined(__cplusplus) || defined(CINTERFACE)
1227 /*** IUnknown methods ***/
1228 #define IDirectDrawPalette_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
1229 #define IDirectDrawPalette_AddRef(p) (p)->lpVtbl->AddRef(p)
1230 #define IDirectDrawPalette_Release(p) (p)->lpVtbl->Release(p)
1231 /*** IDirectDrawPalette methods ***/
1232 #define IDirectDrawPalette_GetCaps(p,a) (p)->lpVtbl->GetCaps(p,a)
1233 #define IDirectDrawPalette_GetEntries(p,a,b,c,d) (p)->lpVtbl->GetEntries(p,a,b,c,d)
1234 #define IDirectDrawPalette_Initialize(p,a,b,c) (p)->lpVtbl->Initialize(p,a,b,c)
1235 #define IDirectDrawPalette_SetEntries(p,a,b,c,d) (p)->lpVtbl->SetEntries(p,a,b,c,d)
1237 /*** IUnknown methods ***/
1238 #define IDirectDrawPalette_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
1239 #define IDirectDrawPalette_AddRef(p) (p)->AddRef()
1240 #define IDirectDrawPalette_Release(p) (p)->Release()
1241 /*** IDirectDrawPalette methods ***/
1242 #define IDirectDrawPalette_GetCaps(p,a) (p)->GetCaps(a)
1243 #define IDirectDrawPalette_GetEntries(p,a,b,c,d) (p)->GetEntries(a,b,c,d)
1244 #define IDirectDrawPalette_Initialize(p,a,b,c) (p)->Initialize(a,b,c)
1245 #define IDirectDrawPalette_SetEntries(p,a,b,c,d) (p)->SetEntries(a,b,c,d)
1249 /*****************************************************************************
1250 * IDirectDrawClipper interface
1252 #define INTERFACE IDirectDrawClipper
1253 DECLARE_INTERFACE_(IDirectDrawClipper
,IUnknown
)
1255 /*** IUnknown methods ***/
1256 STDMETHOD_(HRESULT
,QueryInterface
)(THIS_ REFIID riid
, void** ppvObject
) PURE
;
1257 STDMETHOD_(ULONG
,AddRef
)(THIS
) PURE
;
1258 STDMETHOD_(ULONG
,Release
)(THIS
) PURE
;
1259 /*** IDirectDrawClipper methods ***/
1260 STDMETHOD(GetClipList
)(THIS_ LPRECT lpRect
, LPRGNDATA lpClipList
, LPDWORD lpdwSize
) PURE
;
1261 STDMETHOD(GetHWnd
)(THIS_ HWND
*lphWnd
) PURE
;
1262 STDMETHOD(Initialize
)(THIS_ LPDIRECTDRAW lpDD
, DWORD dwFlags
) PURE
;
1263 STDMETHOD(IsClipListChanged
)(THIS_ BOOL
*lpbChanged
) PURE
;
1264 STDMETHOD(SetClipList
)(THIS_ LPRGNDATA lpClipList
, DWORD dwFlags
) PURE
;
1265 STDMETHOD(SetHWnd
)(THIS_ DWORD dwFlags
, HWND hWnd
) PURE
;
1269 #if !defined(__cplusplus) || defined(CINTERFACE)
1270 /*** IUnknown methods ***/
1271 #define IDirectDrawClipper_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
1272 #define IDirectDrawClipper_AddRef(p) (p)->lpVtbl->AddRef(p)
1273 #define IDirectDrawClipper_Release(p) (p)->lpVtbl->Release(p)
1274 /*** IDirectDrawClipper methods ***/
1275 #define IDirectDrawClipper_GetClipList(p,a,b,c) (p)->lpVtbl->GetClipList(p,a,b,c)
1276 #define IDirectDrawClipper_GetHWnd(p,a) (p)->lpVtbl->GetHWnd(p,a)
1277 #define IDirectDrawClipper_Initialize(p,a,b) (p)->lpVtbl->Initialize(p,a,b)
1278 #define IDirectDrawClipper_IsClipListChanged(p,a) (p)->lpVtbl->IsClipListChanged(p,a)
1279 #define IDirectDrawClipper_SetClipList(p,a,b) (p)->lpVtbl->SetClipList(p,a,b)
1280 #define IDirectDrawClipper_SetHWnd(p,a,b) (p)->lpVtbl->SetHWnd(p,a,b)
1282 /*** IUnknown methods ***/
1283 #define IDirectDrawClipper_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
1284 #define IDirectDrawClipper_AddRef(p) (p)->AddRef()
1285 #define IDirectDrawClipper_Release(p) (p)->Release()
1286 /*** IDirectDrawClipper methods ***/
1287 #define IDirectDrawClipper_GetClipList(p,a,b,c) (p)->GetClipList(a,b,c)
1288 #define IDirectDrawClipper_GetHWnd(p,a) (p)->GetHWnd(a)
1289 #define IDirectDrawClipper_Initialize(p,a,b) (p)->Initialize(a,b)
1290 #define IDirectDrawClipper_IsClipListChanged(p,a) (p)->IsClipListChanged(a)
1291 #define IDirectDrawClipper_SetClipList(p,a,b) (p)->SetClipList(a,b)
1292 #define IDirectDrawClipper_SetHWnd(p,a,b) (p)->SetHWnd(a,b)
1296 /*****************************************************************************
1297 * IDirectDraw interface
1299 #define INTERFACE IDirectDraw
1300 DECLARE_INTERFACE_(IDirectDraw
,IUnknown
)
1302 /*** IUnknown methods ***/
1303 STDMETHOD_(HRESULT
,QueryInterface
)(THIS_ REFIID riid
, void** ppvObject
) PURE
;
1304 STDMETHOD_(ULONG
,AddRef
)(THIS
) PURE
;
1305 STDMETHOD_(ULONG
,Release
)(THIS
) PURE
;
1306 /*** IDirectDraw methods ***/
1307 STDMETHOD(Compact
)(THIS
) PURE
;
1308 STDMETHOD(CreateClipper
)(THIS_ DWORD dwFlags
, LPDIRECTDRAWCLIPPER
*lplpDDClipper
, IUnknown
*pUnkOuter
) PURE
;
1309 STDMETHOD(CreatePalette
)(THIS_ DWORD dwFlags
, LPPALETTEENTRY lpColorTable
, LPDIRECTDRAWPALETTE
*lplpDDPalette
, IUnknown
*pUnkOuter
) PURE
;
1310 STDMETHOD(CreateSurface
)(THIS_ LPDDSURFACEDESC lpDDSurfaceDesc
, LPDIRECTDRAWSURFACE
*lplpDDSurface
, IUnknown
*pUnkOuter
) PURE
;
1311 STDMETHOD(DuplicateSurface
)(THIS_ LPDIRECTDRAWSURFACE lpDDSurface
, LPDIRECTDRAWSURFACE
*lplpDupDDSurface
) PURE
;
1312 STDMETHOD(EnumDisplayModes
)(THIS_ DWORD dwFlags
, LPDDSURFACEDESC lpDDSurfaceDesc
, LPVOID lpContext
, LPDDENUMMODESCALLBACK lpEnumModesCallback
) PURE
;
1313 STDMETHOD(EnumSurfaces
)(THIS_ DWORD dwFlags
, LPDDSURFACEDESC lpDDSD
, LPVOID lpContext
, LPDDENUMSURFACESCALLBACK lpEnumSurfacesCallback
) PURE
;
1314 STDMETHOD(FlipToGDISurface
)(THIS
) PURE
;
1315 STDMETHOD(GetCaps
)(THIS_ LPDDCAPS lpDDDriverCaps
, LPDDCAPS lpDDHELCaps
) PURE
;
1316 STDMETHOD(GetDisplayMode
)(THIS_ LPDDSURFACEDESC lpDDSurfaceDesc
) PURE
;
1317 STDMETHOD(GetFourCCCodes
)(THIS_ LPDWORD lpNumCodes
, LPDWORD lpCodes
) PURE
;
1318 STDMETHOD(GetGDISurface
)(THIS_ LPDIRECTDRAWSURFACE
*lplpGDIDDSurface
) PURE
;
1319 STDMETHOD(GetMonitorFrequency
)(THIS_ LPDWORD lpdwFrequency
) PURE
;
1320 STDMETHOD(GetScanLine
)(THIS_ LPDWORD lpdwScanLine
) PURE
;
1321 STDMETHOD(GetVerticalBlankStatus
)(THIS_ BOOL
*lpbIsInVB
) PURE
;
1322 STDMETHOD(Initialize
)(THIS_ GUID
*lpGUID
) PURE
;
1323 STDMETHOD(RestoreDisplayMode
)(THIS
) PURE
;
1324 STDMETHOD(SetCooperativeLevel
)(THIS_ HWND hWnd
, DWORD dwFlags
) PURE
;
1325 STDMETHOD(SetDisplayMode
)(THIS_ DWORD dwWidth
, DWORD dwHeight
, DWORD dwBPP
) PURE
;
1326 STDMETHOD(WaitForVerticalBlank
)(THIS_ DWORD dwFlags
, HANDLE hEvent
) PURE
;
1330 #if !defined(__cplusplus) || defined(CINTERFACE)
1331 /*** IUnknown methods ***/
1332 #define IDirectDraw_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
1333 #define IDirectDraw_AddRef(p) (p)->lpVtbl->AddRef(p)
1334 #define IDirectDraw_Release(p) (p)->lpVtbl->Release(p)
1335 /*** IDirectDraw methods ***/
1336 #define IDirectDraw_Compact(p) (p)->lpVtbl->Compact(p)
1337 #define IDirectDraw_CreateClipper(p,a,b,c) (p)->lpVtbl->CreateClipper(p,a,b,c)
1338 #define IDirectDraw_CreatePalette(p,a,b,c,d) (p)->lpVtbl->CreatePalette(p,a,b,c,d)
1339 #define IDirectDraw_CreateSurface(p,a,b,c) (p)->lpVtbl->CreateSurface(p,a,b,c)
1340 #define IDirectDraw_DuplicateSurface(p,a,b) (p)->lpVtbl->DuplicateSurface(p,a,b)
1341 #define IDirectDraw_EnumDisplayModes(p,a,b,c,d) (p)->lpVtbl->EnumDisplayModes(p,a,b,c,d)
1342 #define IDirectDraw_EnumSurfaces(p,a,b,c,d) (p)->lpVtbl->EnumSurfaces(p,a,b,c,d)
1343 #define IDirectDraw_FlipToGDISurface(p) (p)->lpVtbl->FlipToGDISurface(p)
1344 #define IDirectDraw_GetCaps(p,a,b) (p)->lpVtbl->GetCaps(p,a,b)
1345 #define IDirectDraw_GetDisplayMode(p,a) (p)->lpVtbl->GetDisplayMode(p,a)
1346 #define IDirectDraw_GetFourCCCodes(p,a,b) (p)->lpVtbl->GetFourCCCodes(p,a,b)
1347 #define IDirectDraw_GetGDISurface(p,a) (p)->lpVtbl->GetGDISurface(p,a)
1348 #define IDirectDraw_GetMonitorFrequency(p,a) (p)->lpVtbl->GetMonitorFrequency(p,a)
1349 #define IDirectDraw_GetScanLine(p,a) (p)->lpVtbl->GetScanLine(p,a)
1350 #define IDirectDraw_GetVerticalBlankStatus(p,a) (p)->lpVtbl->GetVerticalBlankStatus(p,a)
1351 #define IDirectDraw_Initialize(p,a) (p)->lpVtbl->Initialize(p,a)
1352 #define IDirectDraw_RestoreDisplayMode(p) (p)->lpVtbl->RestoreDisplayMode(p)
1353 #define IDirectDraw_SetCooperativeLevel(p,a,b) (p)->lpVtbl->SetCooperativeLevel(p,a,b)
1354 #define IDirectDraw_SetDisplayMode(p,a,b,c) (p)->lpVtbl->SetDisplayMode(p,a,b,c)
1355 #define IDirectDraw_WaitForVerticalBlank(p,a,b) (p)->lpVtbl->WaitForVerticalBlank(p,a,b)
1357 /*** IUnknown methods ***/
1358 #define IDirectDraw_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
1359 #define IDirectDraw_AddRef(p) (p)->AddRef()
1360 #define IDirectDraw_Release(p) (p)->Release()
1361 /*** IDirectDraw methods ***/
1362 #define IDirectDraw_Compact(p) (p)->Compact()
1363 #define IDirectDraw_CreateClipper(p,a,b,c) (p)->CreateClipper(a,b,c)
1364 #define IDirectDraw_CreatePalette(p,a,b,c,d) (p)->CreatePalette(a,b,c,d)
1365 #define IDirectDraw_CreateSurface(p,a,b,c) (p)->CreateSurface(a,b,c)
1366 #define IDirectDraw_DuplicateSurface(p,a,b) (p)->DuplicateSurface(a,b)
1367 #define IDirectDraw_EnumDisplayModes(p,a,b,c,d) (p)->EnumDisplayModes(a,b,c,d)
1368 #define IDirectDraw_EnumSurfaces(p,a,b,c,d) (p)->EnumSurfaces(a,b,c,d)
1369 #define IDirectDraw_FlipToGDISurface(p) (p)->FlipToGDISurface()
1370 #define IDirectDraw_GetCaps(p,a,b) (p)->GetCaps(a,b)
1371 #define IDirectDraw_GetDisplayMode(p,a) (p)->GetDisplayMode(a)
1372 #define IDirectDraw_GetFourCCCodes(p,a,b) (p)->GetFourCCCodes(a,b)
1373 #define IDirectDraw_GetGDISurface(p,a) (p)->GetGDISurface(a)
1374 #define IDirectDraw_GetMonitorFrequency(p,a) (p)->GetMonitorFrequency(a)
1375 #define IDirectDraw_GetScanLine(p,a) (p)->GetScanLine(a)
1376 #define IDirectDraw_GetVerticalBlankStatus(p,a) (p)->GetVerticalBlankStatus(a)
1377 #define IDirectDraw_Initialize(p,a) (p)->Initialize(a)
1378 #define IDirectDraw_RestoreDisplayMode(p) (p)->RestoreDisplayMode()
1379 #define IDirectDraw_SetCooperativeLevel(p,a,b) (p)->SetCooperativeLevel(a,b)
1380 #define IDirectDraw_SetDisplayMode(p,a,b,c) (p)->SetDisplayMode(a,b,c)
1381 #define IDirectDraw_WaitForVerticalBlank(p,a,b) (p)->WaitForVerticalBlank(a,b)
1385 /* flags for Lock() */
1386 #define DDLOCK_SURFACEMEMORYPTR 0x00000000
1387 #define DDLOCK_WAIT 0x00000001
1388 #define DDLOCK_EVENT 0x00000002
1389 #define DDLOCK_READONLY 0x00000010
1390 #define DDLOCK_WRITEONLY 0x00000020
1391 #define DDLOCK_NOSYSLOCK 0x00000800
1392 #define DDLOCK_NOOVERWRITE 0x00001000
1393 #define DDLOCK_DISCARDCONTENTS 0x00002000
1396 /*****************************************************************************
1397 * IDirectDraw2 interface
1399 /* Note: IDirectDraw2 cannot derive from IDirectDraw because the number of
1400 * arguments of SetDisplayMode has changed !
1402 #define INTERFACE IDirectDraw2
1403 DECLARE_INTERFACE_(IDirectDraw2
,IUnknown
)
1405 /*** IUnknown methods ***/
1406 /*00*/ STDMETHOD_(HRESULT
,QueryInterface
)(THIS_ REFIID riid
, void** ppvObject
) PURE
;
1407 /*04*/ STDMETHOD_(ULONG
,AddRef
)(THIS
) PURE
;
1408 /*08*/ STDMETHOD_(ULONG
,Release
)(THIS
) PURE
;
1409 /*** IDirectDraw2 methods ***/
1410 /*0c*/ STDMETHOD(Compact
)(THIS
) PURE
;
1411 /*10*/ STDMETHOD(CreateClipper
)(THIS_ DWORD dwFlags
, LPDIRECTDRAWCLIPPER
*lplpDDClipper
, IUnknown
*pUnkOuter
) PURE
;
1412 /*14*/ STDMETHOD(CreatePalette
)(THIS_ DWORD dwFlags
, LPPALETTEENTRY lpColorTable
, LPDIRECTDRAWPALETTE
*lplpDDPalette
, IUnknown
*pUnkOuter
) PURE
;
1413 /*18*/ STDMETHOD(CreateSurface
)(THIS_ LPDDSURFACEDESC lpDDSurfaceDesc
, LPDIRECTDRAWSURFACE
*lplpDDSurface
, IUnknown
*pUnkOuter
) PURE
;
1414 /*1c*/ STDMETHOD(DuplicateSurface
)(THIS_ LPDIRECTDRAWSURFACE lpDDSurface
, LPDIRECTDRAWSURFACE
*lplpDupDDSurface
) PURE
;
1415 /*20*/ STDMETHOD(EnumDisplayModes
)(THIS_ DWORD dwFlags
, LPDDSURFACEDESC lpDDSurfaceDesc
, LPVOID lpContext
, LPDDENUMMODESCALLBACK lpEnumModesCallback
) PURE
;
1416 /*24*/ STDMETHOD(EnumSurfaces
)(THIS_ DWORD dwFlags
, LPDDSURFACEDESC lpDDSD
, LPVOID lpContext
, LPDDENUMSURFACESCALLBACK lpEnumSurfacesCallback
) PURE
;
1417 /*28*/ STDMETHOD(FlipToGDISurface
)(THIS
) PURE
;
1418 /*2c*/ STDMETHOD(GetCaps
)(THIS_ LPDDCAPS lpDDDriverCaps
, LPDDCAPS lpDDHELCaps
) PURE
;
1419 /*30*/ STDMETHOD(GetDisplayMode
)(THIS_ LPDDSURFACEDESC lpDDSurfaceDesc
) PURE
;
1420 /*34*/ STDMETHOD(GetFourCCCodes
)(THIS_ LPDWORD lpNumCodes
, LPDWORD lpCodes
) PURE
;
1421 /*38*/ STDMETHOD(GetGDISurface
)(THIS_ LPDIRECTDRAWSURFACE
*lplpGDIDDSurface
) PURE
;
1422 /*3c*/ STDMETHOD(GetMonitorFrequency
)(THIS_ LPDWORD lpdwFrequency
) PURE
;
1423 /*40*/ STDMETHOD(GetScanLine
)(THIS_ LPDWORD lpdwScanLine
) PURE
;
1424 /*44*/ STDMETHOD(GetVerticalBlankStatus
)(THIS_ BOOL
*lpbIsInVB
) PURE
;
1425 /*48*/ STDMETHOD(Initialize
)(THIS_ GUID
*lpGUID
) PURE
;
1426 /*4c*/ STDMETHOD(RestoreDisplayMode
)(THIS
) PURE
;
1427 /*50*/ STDMETHOD(SetCooperativeLevel
)(THIS_ HWND hWnd
, DWORD dwFlags
) PURE
;
1428 /*54*/ STDMETHOD(SetDisplayMode
)(THIS_ DWORD dwWidth
, DWORD dwHeight
, DWORD dwBPP
, DWORD dwRefreshRate
, DWORD dwFlags
) PURE
;
1429 /*58*/ STDMETHOD(WaitForVerticalBlank
)(THIS_ DWORD dwFlags
, HANDLE hEvent
) PURE
;
1431 /*5c*/ STDMETHOD(GetAvailableVidMem
)(THIS_ LPDDSCAPS lpDDCaps
, LPDWORD lpdwTotal
, LPDWORD lpdwFree
) PURE
;
1435 #if !defined(__cplusplus) || defined(CINTERFACE)
1436 /*** IUnknown methods ***/
1437 #define IDirectDraw2_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
1438 #define IDirectDraw2_AddRef(p) (p)->lpVtbl->AddRef(p)
1439 #define IDirectDraw2_Release(p) (p)->lpVtbl->Release(p)
1440 /*** IDirectDraw methods ***/
1441 #define IDirectDraw2_Compact(p) (p)->lpVtbl->Compact(p)
1442 #define IDirectDraw2_CreateClipper(p,a,b,c) (p)->lpVtbl->CreateClipper(p,a,b,c)
1443 #define IDirectDraw2_CreatePalette(p,a,b,c,d) (p)->lpVtbl->CreatePalette(p,a,b,c,d)
1444 #define IDirectDraw2_CreateSurface(p,a,b,c) (p)->lpVtbl->CreateSurface(p,a,b,c)
1445 #define IDirectDraw2_DuplicateSurface(p,a,b) (p)->lpVtbl->DuplicateSurface(p,a,b)
1446 #define IDirectDraw2_EnumDisplayModes(p,a,b,c,d) (p)->lpVtbl->EnumDisplayModes(p,a,b,c,d)
1447 #define IDirectDraw2_EnumSurfaces(p,a,b,c,d) (p)->lpVtbl->EnumSurfaces(p,a,b,c,d)
1448 #define IDirectDraw2_FlipToGDISurface(p) (p)->lpVtbl->FlipToGDISurface(p)
1449 #define IDirectDraw2_GetCaps(p,a,b) (p)->lpVtbl->GetCaps(p,a,b)
1450 #define IDirectDraw2_GetDisplayMode(p,a) (p)->lpVtbl->GetDisplayMode(p,a)
1451 #define IDirectDraw2_GetFourCCCodes(p,a,b) (p)->lpVtbl->GetFourCCCodes(p,a,b)
1452 #define IDirectDraw2_GetGDISurface(p,a) (p)->lpVtbl->GetGDISurface(p,a)
1453 #define IDirectDraw2_GetMonitorFrequency(p,a) (p)->lpVtbl->GetMonitorFrequency(p,a)
1454 #define IDirectDraw2_GetScanLine(p,a) (p)->lpVtbl->GetScanLine(p,a)
1455 #define IDirectDraw2_GetVerticalBlankStatus(p,a) (p)->lpVtbl->GetVerticalBlankStatus(p,a)
1456 #define IDirectDraw2_Initialize(p,a) (p)->lpVtbl->Initialize(p,a)
1457 #define IDirectDraw2_RestoreDisplayMode(p) (p)->lpVtbl->RestoreDisplayMode(p)
1458 #define IDirectDraw2_SetCooperativeLevel(p,a,b) (p)->lpVtbl->SetCooperativeLevel(p,a,b)
1459 #define IDirectDraw2_SetDisplayMode(p,a,b,c,d,e) (p)->lpVtbl->SetDisplayMode(p,a,b,c,d,e)
1460 #define IDirectDraw2_WaitForVerticalBlank(p,a,b) (p)->lpVtbl->WaitForVerticalBlank(p,a,b)
1461 /*** IDirectDraw2 methods ***/
1462 #define IDirectDraw2_GetAvailableVidMem(p,a,b,c) (p)->lpVtbl->GetAvailableVidMem(p,a,b,c)
1464 /*** IUnknown methods ***/
1465 #define IDirectDraw2_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
1466 #define IDirectDraw2_AddRef(p) (p)->AddRef()
1467 #define IDirectDraw2_Release(p) (p)->Release()
1468 /*** IDirectDraw methods ***/
1469 #define IDirectDraw2_Compact(p) (p)->Compact()
1470 #define IDirectDraw2_CreateClipper(p,a,b,c) (p)->CreateClipper(a,b,c)
1471 #define IDirectDraw2_CreatePalette(p,a,b,c,d) (p)->CreatePalette(a,b,c,d)
1472 #define IDirectDraw2_CreateSurface(p,a,b,c) (p)->CreateSurface(a,b,c)
1473 #define IDirectDraw2_DuplicateSurface(p,a,b) (p)->DuplicateSurface(a,b)
1474 #define IDirectDraw2_EnumDisplayModes(p,a,b,c,d) (p)->EnumDisplayModes(a,b,c,d)
1475 #define IDirectDraw2_EnumSurfaces(p,a,b,c,d) (p)->EnumSurfaces(a,b,c,d)
1476 #define IDirectDraw2_FlipToGDISurface(p) (p)->FlipToGDISurface()
1477 #define IDirectDraw2_GetCaps(p,a,b) (p)->GetCaps(a,b)
1478 #define IDirectDraw2_GetDisplayMode(p,a) (p)->GetDisplayMode(a)
1479 #define IDirectDraw2_GetFourCCCodes(p,a,b) (p)->GetFourCCCodes(a,b)
1480 #define IDirectDraw2_GetGDISurface(p,a) (p)->GetGDISurface(a)
1481 #define IDirectDraw2_GetMonitorFrequency(p,a) (p)->GetMonitorFrequency(a)
1482 #define IDirectDraw2_GetScanLine(p,a) (p)->GetScanLine(a)
1483 #define IDirectDraw2_GetVerticalBlankStatus(p,a) (p)->GetVerticalBlankStatus(a)
1484 #define IDirectDraw2_Initialize(p,a) (p)->Initialize(a)
1485 #define IDirectDraw2_RestoreDisplayMode(p) (p)->RestoreDisplayMode()
1486 #define IDirectDraw2_SetCooperativeLevel(p,a,b) (p)->SetCooperativeLevel(a,b)
1487 #define IDirectDraw2_SetDisplayMode(p,a,b,c,d,e) (p)->SetDisplayMode(a,b,c,d,e)
1488 #define IDirectDraw2_WaitForVerticalBlank(p,a,b) (p)->WaitForVerticalBlank(a,b)
1489 /*** IDirectDraw2 methods ***/
1490 #define IDirectDraw2_GetAvailableVidMem(p,a,b,c) (p)->GetAvailableVidMem(a,b,c)
1494 /*****************************************************************************
1495 * IDirectDraw4 interface
1497 #define INTERFACE IDirectDraw4
1498 DECLARE_INTERFACE_(IDirectDraw4
,IUnknown
)
1500 /*** IUnknown methods ***/
1501 /*00*/ STDMETHOD_(HRESULT
,QueryInterface
)(THIS_ REFIID riid
, void** ppvObject
) PURE
;
1502 /*04*/ STDMETHOD_(ULONG
,AddRef
)(THIS
) PURE
;
1503 /*08*/ STDMETHOD_(ULONG
,Release
)(THIS
) PURE
;
1504 /*** IDirectDraw4 methods ***/
1505 /*0c*/ STDMETHOD(Compact
)(THIS
) PURE
;
1506 /*10*/ STDMETHOD(CreateClipper
)(THIS_ DWORD dwFlags
, LPDIRECTDRAWCLIPPER
*lplpDDClipper
, IUnknown
*pUnkOuter
) PURE
;
1507 /*14*/ STDMETHOD(CreatePalette
)(THIS_ DWORD dwFlags
, LPPALETTEENTRY lpColorTable
, LPDIRECTDRAWPALETTE
*lplpDDPalette
, IUnknown
*pUnkOuter
) PURE
;
1508 /*18*/ STDMETHOD(CreateSurface
)(THIS_ LPDDSURFACEDESC2 lpDDSurfaceDesc
, LPDIRECTDRAWSURFACE4
*lplpDDSurface
, IUnknown
*pUnkOuter
) PURE
;
1509 /*1c*/ STDMETHOD(DuplicateSurface
)(THIS_ LPDIRECTDRAWSURFACE4 lpDDSurface
, LPDIRECTDRAWSURFACE4
*lplpDupDDSurface
) PURE
;
1510 /*20*/ STDMETHOD(EnumDisplayModes
)(THIS_ DWORD dwFlags
, LPDDSURFACEDESC2 lpDDSurfaceDesc
, LPVOID lpContext
, LPDDENUMMODESCALLBACK2 lpEnumModesCallback
) PURE
;
1511 /*24*/ STDMETHOD(EnumSurfaces
)(THIS_ DWORD dwFlags
, LPDDSURFACEDESC2 lpDDSD
, LPVOID lpContext
, LPDDENUMSURFACESCALLBACK2 lpEnumSurfacesCallback
) PURE
;
1512 /*28*/ STDMETHOD(FlipToGDISurface
)(THIS
) PURE
;
1513 /*2c*/ STDMETHOD(GetCaps
)(THIS_ LPDDCAPS lpDDDriverCaps
, LPDDCAPS lpDDHELCaps
) PURE
;
1514 /*30*/ STDMETHOD(GetDisplayMode
)(THIS_ LPDDSURFACEDESC2 lpDDSurfaceDesc
) PURE
;
1515 /*34*/ STDMETHOD(GetFourCCCodes
)(THIS_ LPDWORD lpNumCodes
, LPDWORD lpCodes
) PURE
;
1516 /*38*/ STDMETHOD(GetGDISurface
)(THIS_ LPDIRECTDRAWSURFACE4
*lplpGDIDDSurface
) PURE
;
1517 /*3c*/ STDMETHOD(GetMonitorFrequency
)(THIS_ LPDWORD lpdwFrequency
) PURE
;
1518 /*40*/ STDMETHOD(GetScanLine
)(THIS_ LPDWORD lpdwScanLine
) PURE
;
1519 /*44*/ STDMETHOD(GetVerticalBlankStatus
)(THIS_ BOOL
*lpbIsInVB
) PURE
;
1520 /*48*/ STDMETHOD(Initialize
)(THIS_ GUID
*lpGUID
) PURE
;
1521 /*4c*/ STDMETHOD(RestoreDisplayMode
)(THIS
) PURE
;
1522 /*50*/ STDMETHOD(SetCooperativeLevel
)(THIS_ HWND hWnd
, DWORD dwFlags
) PURE
;
1523 /*54*/ STDMETHOD(SetDisplayMode
)(THIS_ DWORD dwWidth
, DWORD dwHeight
, DWORD dwBPP
, DWORD dwRefreshRate
, DWORD dwFlags
) PURE
;
1524 /*58*/ STDMETHOD(WaitForVerticalBlank
)(THIS_ DWORD dwFlags
, HANDLE hEvent
) PURE
;
1526 /*5c*/ STDMETHOD(GetAvailableVidMem
)(THIS_ LPDDSCAPS2 lpDDCaps
, LPDWORD lpdwTotal
, LPDWORD lpdwFree
) PURE
;
1528 /*60*/ STDMETHOD(GetSurfaceFromDC
)(THIS_ HDC hdc
, LPDIRECTDRAWSURFACE4
*pSurf
) PURE
;
1529 /*64*/ STDMETHOD(RestoreAllSurfaces
)(THIS
) PURE
;
1530 /*68*/ STDMETHOD(TestCooperativeLevel
)(THIS
) PURE
;
1531 /*6c*/ STDMETHOD(GetDeviceIdentifier
)(THIS_ LPDDDEVICEIDENTIFIER pDDDI
, DWORD dwFlags
) PURE
;
1535 #if !defined(__cplusplus) || defined(CINTERFACE)
1536 /*** IUnknown methods ***/
1537 #define IDirectDraw4_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
1538 #define IDirectDraw4_AddRef(p) (p)->lpVtbl->AddRef(p)
1539 #define IDirectDraw4_Release(p) (p)->lpVtbl->Release(p)
1540 /*** IDirectDraw methods ***/
1541 #define IDirectDraw4_Compact(p) (p)->lpVtbl->Compact(p)
1542 #define IDirectDraw4_CreateClipper(p,a,b,c) (p)->lpVtbl->CreateClipper(p,a,b,c)
1543 #define IDirectDraw4_CreatePalette(p,a,b,c,d) (p)->lpVtbl->CreatePalette(p,a,b,c,d)
1544 #define IDirectDraw4_CreateSurface(p,a,b,c) (p)->lpVtbl->CreateSurface(p,a,b,c)
1545 #define IDirectDraw4_DuplicateSurface(p,a,b) (p)->lpVtbl->DuplicateSurface(p,a,b)
1546 #define IDirectDraw4_EnumDisplayModes(p,a,b,c,d) (p)->lpVtbl->EnumDisplayModes(p,a,b,c,d)
1547 #define IDirectDraw4_EnumSurfaces(p,a,b,c,d) (p)->lpVtbl->EnumSurfaces(p,a,b,c,d)
1548 #define IDirectDraw4_FlipToGDISurface(p) (p)->lpVtbl->FlipToGDISurface(p)
1549 #define IDirectDraw4_GetCaps(p,a,b) (p)->lpVtbl->GetCaps(p,a,b)
1550 #define IDirectDraw4_GetDisplayMode(p,a) (p)->lpVtbl->GetDisplayMode(p,a)
1551 #define IDirectDraw4_GetFourCCCodes(p,a,b) (p)->lpVtbl->GetFourCCCodes(p,a,b)
1552 #define IDirectDraw4_GetGDISurface(p,a) (p)->lpVtbl->GetGDISurface(p,a)
1553 #define IDirectDraw4_GetMonitorFrequency(p,a) (p)->lpVtbl->GetMonitorFrequency(p,a)
1554 #define IDirectDraw4_GetScanLine(p,a) (p)->lpVtbl->GetScanLine(p,a)
1555 #define IDirectDraw4_GetVerticalBlankStatus(p,a) (p)->lpVtbl->GetVerticalBlankStatus(p,a)
1556 #define IDirectDraw4_Initialize(p,a) (p)->lpVtbl->Initialize(p,a)
1557 #define IDirectDraw4_RestoreDisplayMode(p) (p)->lpVtbl->RestoreDisplayMode(p)
1558 #define IDirectDraw4_SetCooperativeLevel(p,a,b) (p)->lpVtbl->SetCooperativeLevel(p,a,b)
1559 #define IDirectDraw4_SetDisplayMode(p,a,b,c,d,e) (p)->lpVtbl->SetDisplayMode(p,a,b,c,d,e)
1560 #define IDirectDraw4_WaitForVerticalBlank(p,a,b) (p)->lpVtbl->WaitForVerticalBlank(p,a,b)
1561 /*** IDirectDraw2 methods ***/
1562 #define IDirectDraw4_GetAvailableVidMem(p,a,b,c) (p)->lpVtbl->GetAvailableVidMem(p,a,b,c)
1563 /*** IDirectDraw4 methods ***/
1564 #define IDirectDraw4_GetSurfaceFromDC(p,a,b) (p)->lpVtbl->GetSurfaceFromDC(p,a,b)
1565 #define IDirectDraw4_RestoreAllSurfaces(pc) (p)->lpVtbl->RestoreAllSurfaces(p)
1566 #define IDirectDraw4_TestCooperativeLevel(p) (p)->lpVtbl->TestCooperativeLevel(p)
1567 #define IDirectDraw4_GetDeviceIdentifier(p,a,b) (p)->lpVtbl->GetDeviceIdentifier(p,a,b)
1569 /*** IUnknown methods ***/
1570 #define IDirectDraw4_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
1571 #define IDirectDraw4_AddRef(p) (p)->AddRef()
1572 #define IDirectDraw4_Release(p) (p)->Release()
1573 /*** IDirectDraw methods ***/
1574 #define IDirectDraw4_Compact(p) (p)->Compact()
1575 #define IDirectDraw4_CreateClipper(p,a,b,c) (p)->CreateClipper(a,b,c)
1576 #define IDirectDraw4_CreatePalette(p,a,b,c,d) (p)->CreatePalette(a,b,c,d)
1577 #define IDirectDraw4_CreateSurface(p,a,b,c) (p)->CreateSurface(a,b,c)
1578 #define IDirectDraw4_DuplicateSurface(p,a,b) (p)->DuplicateSurface(a,b)
1579 #define IDirectDraw4_EnumDisplayModes(p,a,b,c,d) (p)->EnumDisplayModes(a,b,c,d)
1580 #define IDirectDraw4_EnumSurfaces(p,a,b,c,d) (p)->EnumSurfaces(a,b,c,d)
1581 #define IDirectDraw4_FlipToGDISurface(p) (p)->FlipToGDISurface()
1582 #define IDirectDraw4_GetCaps(p,a,b) (p)->GetCaps(a,b)
1583 #define IDirectDraw4_GetDisplayMode(p,a) (p)->GetDisplayMode(a)
1584 #define IDirectDraw4_GetFourCCCodes(p,a,b) (p)->GetFourCCCodes(a,b)
1585 #define IDirectDraw4_GetGDISurface(p,a) (p)->GetGDISurface(a)
1586 #define IDirectDraw4_GetMonitorFrequency(p,a) (p)->GetMonitorFrequency(a)
1587 #define IDirectDraw4_GetScanLine(p,a) (p)->GetScanLine(a)
1588 #define IDirectDraw4_GetVerticalBlankStatus(p,a) (p)->GetVerticalBlankStatus(a)
1589 #define IDirectDraw4_Initialize(p,a) (p)->Initialize(a)
1590 #define IDirectDraw4_RestoreDisplayMode(p) (p)->RestoreDisplayMode()
1591 #define IDirectDraw4_SetCooperativeLevel(p,a,b) (p)->SetCooperativeLevel(a,b)
1592 #define IDirectDraw4_SetDisplayMode(p,a,b,c,d,e) (p)->SetDisplayMode(a,b,c,d,e)
1593 #define IDirectDraw4_WaitForVerticalBlank(p,a,b) (p)->WaitForVerticalBlank(a,b)
1594 /*** IDirectDraw2 methods ***/
1595 #define IDirectDraw4_GetAvailableVidMem(p,a,b,c) (p)->GetAvailableVidMem(a,b,c)
1596 /*** IDirectDraw4 methods ***/
1597 #define IDirectDraw4_GetSurfaceFromDC(p,a,b) (p)->GetSurfaceFromDC(a,b)
1598 #define IDirectDraw4_RestoreAllSurfaces(pc) (p)->RestoreAllSurfaces()
1599 #define IDirectDraw4_TestCooperativeLevel(p) (p)->TestCooperativeLevel()
1600 #define IDirectDraw4_GetDeviceIdentifier(p,a,b) (p)->GetDeviceIdentifier(a,b)
1604 /*****************************************************************************
1605 * IDirectDraw7 interface
1607 /* Note: IDirectDraw7 cannot derive from IDirectDraw4; it is even documented
1608 * as not interchangeable with earlier DirectDraw interfaces.
1610 #define INTERFACE IDirectDraw7
1611 DECLARE_INTERFACE_(IDirectDraw7
,IUnknown
)
1613 /*** IUnknown methods ***/
1614 /*00*/ STDMETHOD_(HRESULT
,QueryInterface
)(THIS_ REFIID riid
, void** ppvObject
) PURE
;
1615 /*04*/ STDMETHOD_(ULONG
,AddRef
)(THIS
) PURE
;
1616 /*08*/ STDMETHOD_(ULONG
,Release
)(THIS
) PURE
;
1617 /*** IDirectDraw7 methods ***/
1618 /*0c*/ STDMETHOD(Compact
)(THIS
) PURE
;
1619 /*10*/ STDMETHOD(CreateClipper
)(THIS_ DWORD dwFlags
, LPDIRECTDRAWCLIPPER
*lplpDDClipper
, IUnknown
*pUnkOuter
) PURE
;
1620 /*14*/ STDMETHOD(CreatePalette
)(THIS_ DWORD dwFlags
, LPPALETTEENTRY lpColorTable
, LPDIRECTDRAWPALETTE
*lplpDDPalette
, IUnknown
*pUnkOuter
) PURE
;
1621 /*18*/ STDMETHOD(CreateSurface
)(THIS_ LPDDSURFACEDESC2 lpDDSurfaceDesc
, LPDIRECTDRAWSURFACE7
*lplpDDSurface
, IUnknown
*pUnkOuter
) PURE
;
1622 /*1c*/ STDMETHOD(DuplicateSurface
)(THIS_ LPDIRECTDRAWSURFACE7 lpDDSurface
, LPDIRECTDRAWSURFACE7
*lplpDupDDSurface
) PURE
;
1623 /*20*/ STDMETHOD(EnumDisplayModes
)(THIS_ DWORD dwFlags
, LPDDSURFACEDESC2 lpDDSurfaceDesc
, LPVOID lpContext
, LPDDENUMMODESCALLBACK2 lpEnumModesCallback
) PURE
;
1624 /*24*/ STDMETHOD(EnumSurfaces
)(THIS_ DWORD dwFlags
, LPDDSURFACEDESC2 lpDDSD
, LPVOID lpContext
, LPDDENUMSURFACESCALLBACK7 lpEnumSurfacesCallback
) PURE
;
1625 /*28*/ STDMETHOD(FlipToGDISurface
)(THIS
) PURE
;
1626 /*2c*/ STDMETHOD(GetCaps
)(THIS_ LPDDCAPS lpDDDriverCaps
, LPDDCAPS lpDDHELCaps
) PURE
;
1627 /*30*/ STDMETHOD(GetDisplayMode
)(THIS_ LPDDSURFACEDESC2 lpDDSurfaceDesc
) PURE
;
1628 /*34*/ STDMETHOD(GetFourCCCodes
)(THIS_ LPDWORD lpNumCodes
, LPDWORD lpCodes
) PURE
;
1629 /*38*/ STDMETHOD(GetGDISurface
)(THIS_ LPDIRECTDRAWSURFACE7
*lplpGDIDDSurface
) PURE
;
1630 /*3c*/ STDMETHOD(GetMonitorFrequency
)(THIS_ LPDWORD lpdwFrequency
) PURE
;
1631 /*40*/ STDMETHOD(GetScanLine
)(THIS_ LPDWORD lpdwScanLine
) PURE
;
1632 /*44*/ STDMETHOD(GetVerticalBlankStatus
)(THIS_ BOOL
*lpbIsInVB
) PURE
;
1633 /*48*/ STDMETHOD(Initialize
)(THIS_ GUID
*lpGUID
) PURE
;
1634 /*4c*/ STDMETHOD(RestoreDisplayMode
)(THIS
) PURE
;
1635 /*50*/ STDMETHOD(SetCooperativeLevel
)(THIS_ HWND hWnd
, DWORD dwFlags
) PURE
;
1636 /*54*/ STDMETHOD(SetDisplayMode
)(THIS_ DWORD dwWidth
, DWORD dwHeight
, DWORD dwBPP
, DWORD dwRefreshRate
, DWORD dwFlags
) PURE
;
1637 /*58*/ STDMETHOD(WaitForVerticalBlank
)(THIS_ DWORD dwFlags
, HANDLE hEvent
) PURE
;
1639 /*5c*/ STDMETHOD(GetAvailableVidMem
)(THIS_ LPDDSCAPS2 lpDDCaps
, LPDWORD lpdwTotal
, LPDWORD lpdwFree
) PURE
;
1641 /*60*/ STDMETHOD(GetSurfaceFromDC
)(THIS_ HDC hdc
, LPDIRECTDRAWSURFACE7
*pSurf
) PURE
;
1642 /*64*/ STDMETHOD(RestoreAllSurfaces
)(THIS
) PURE
;
1643 /*68*/ STDMETHOD(TestCooperativeLevel
)(THIS
) PURE
;
1644 /*6c*/ STDMETHOD(GetDeviceIdentifier
)(THIS_ LPDDDEVICEIDENTIFIER2 pDDDI
, DWORD dwFlags
) PURE
;
1646 /*70*/ STDMETHOD(StartModeTest
)(THIS_ LPSIZE pModes
, DWORD dwNumModes
, DWORD dwFlags
) PURE
;
1647 /*74*/ STDMETHOD(EvaluateMode
)(THIS_ DWORD dwFlags
, DWORD
*pTimeout
) PURE
;
1651 #if !defined(__cplusplus) || defined(CINTERFACE)
1652 /*** IUnknown methods ***/
1653 #define IDirectDraw7_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
1654 #define IDirectDraw7_AddRef(p) (p)->lpVtbl->AddRef(p)
1655 #define IDirectDraw7_Release(p) (p)->lpVtbl->Release(p)
1656 /*** IDirectDraw methods ***/
1657 #define IDirectDraw7_Compact(p) (p)->lpVtbl->Compact(p)
1658 #define IDirectDraw7_CreateClipper(p,a,b,c) (p)->lpVtbl->CreateClipper(p,a,b,c)
1659 #define IDirectDraw7_CreatePalette(p,a,b,c,d) (p)->lpVtbl->CreatePalette(p,a,b,c,d)
1660 #define IDirectDraw7_CreateSurface(p,a,b,c) (p)->lpVtbl->CreateSurface(p,a,b,c)
1661 #define IDirectDraw7_DuplicateSurface(p,a,b) (p)->lpVtbl->DuplicateSurface(p,a,b)
1662 #define IDirectDraw7_EnumDisplayModes(p,a,b,c,d) (p)->lpVtbl->EnumDisplayModes(p,a,b,c,d)
1663 #define IDirectDraw7_EnumSurfaces(p,a,b,c,d) (p)->lpVtbl->EnumSurfaces(p,a,b,c,d)
1664 #define IDirectDraw7_FlipToGDISurface(p) (p)->lpVtbl->FlipToGDISurface(p)
1665 #define IDirectDraw7_GetCaps(p,a,b) (p)->lpVtbl->GetCaps(p,a,b)
1666 #define IDirectDraw7_GetDisplayMode(p,a) (p)->lpVtbl->GetDisplayMode(p,a)
1667 #define IDirectDraw7_GetFourCCCodes(p,a,b) (p)->lpVtbl->GetFourCCCodes(p,a,b)
1668 #define IDirectDraw7_GetGDISurface(p,a) (p)->lpVtbl->GetGDISurface(p,a)
1669 #define IDirectDraw7_GetMonitorFrequency(p,a) (p)->lpVtbl->GetMonitorFrequency(p,a)
1670 #define IDirectDraw7_GetScanLine(p,a) (p)->lpVtbl->GetScanLine(p,a)
1671 #define IDirectDraw7_GetVerticalBlankStatus(p,a) (p)->lpVtbl->GetVerticalBlankStatus(p,a)
1672 #define IDirectDraw7_Initialize(p,a) (p)->lpVtbl->Initialize(p,a)
1673 #define IDirectDraw7_RestoreDisplayMode(p) (p)->lpVtbl->RestoreDisplayMode(p)
1674 #define IDirectDraw7_SetCooperativeLevel(p,a,b) (p)->lpVtbl->SetCooperativeLevel(p,a,b)
1675 #define IDirectDraw7_SetDisplayMode(p,a,b,c,d,e) (p)->lpVtbl->SetDisplayMode(p,a,b,c,d,e)
1676 #define IDirectDraw7_WaitForVerticalBlank(p,a,b) (p)->lpVtbl->WaitForVerticalBlank(p,a,b)
1677 /*** added in IDirectDraw2 ***/
1678 #define IDirectDraw7_GetAvailableVidMem(p,a,b,c) (p)->lpVtbl->GetAvailableVidMem(p,a,b,c)
1679 /*** added in IDirectDraw4 ***/
1680 #define IDirectDraw7_GetSurfaceFromDC(p,a,b) (p)->lpVtbl->GetSurfaceFromDC(p,a,b)
1681 #define IDirectDraw7_RestoreAllSurfaces(p) (p)->lpVtbl->RestoreAllSurfaces(p)
1682 #define IDirectDraw7_TestCooperativeLevel(p) (p)->lpVtbl->TestCooperativeLevel(p)
1683 #define IDirectDraw7_GetDeviceIdentifier(p,a,b) (p)->lpVtbl->GetDeviceIdentifier(p,a,b)
1684 /*** added in IDirectDraw 7 ***/
1685 #define IDirectDraw7_StartModeTest(p,a,b,c) (p)->lpVtbl->StartModeTest(p,a,b,c)
1686 #define IDirectDraw7_EvaluateMode(p,a,b) (p)->lpVtbl->EvaluateMode(p,a,b)
1688 /*** IUnknown methods ***/
1689 #define IDirectDraw7_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
1690 #define IDirectDraw7_AddRef(p) (p)->AddRef()
1691 #define IDirectDraw7_Release(p) (p)->Release()
1692 /*** IDirectDraw methods ***/
1693 #define IDirectDraw7_Compact(p) (p)->Compact()
1694 #define IDirectDraw7_CreateClipper(p,a,b,c) (p)->CreateClipper(a,b,c)
1695 #define IDirectDraw7_CreatePalette(p,a,b,c,d) (p)->CreatePalette(a,b,c,d)
1696 #define IDirectDraw7_CreateSurface(p,a,b,c) (p)->CreateSurface(a,b,c)
1697 #define IDirectDraw7_DuplicateSurface(p,a,b) (p)->DuplicateSurface(a,b)
1698 #define IDirectDraw7_EnumDisplayModes(p,a,b,c,d) (p)->EnumDisplayModes(a,b,c,d)
1699 #define IDirectDraw7_EnumSurfaces(p,a,b,c,d) (p)->EnumSurfaces(a,b,c,d)
1700 #define IDirectDraw7_FlipToGDISurface(p) (p)->FlipToGDISurface()
1701 #define IDirectDraw7_GetCaps(p,a,b) (p)->GetCaps(a,b)
1702 #define IDirectDraw7_GetDisplayMode(p,a) (p)->GetDisplayMode(a)
1703 #define IDirectDraw7_GetFourCCCodes(p,a,b) (p)->GetFourCCCodes(a,b)
1704 #define IDirectDraw7_GetGDISurface(p,a) (p)->GetGDISurface(a)
1705 #define IDirectDraw7_GetMonitorFrequency(p,a) (p)->GetMonitorFrequency(a)
1706 #define IDirectDraw7_GetScanLine(p,a) (p)->GetScanLine(a)
1707 #define IDirectDraw7_GetVerticalBlankStatus(p,a) (p)->GetVerticalBlankStatus(a)
1708 #define IDirectDraw7_Initialize(p,a) (p)->Initialize(a)
1709 #define IDirectDraw7_RestoreDisplayMode(p) (p)->RestoreDisplayMode()
1710 #define IDirectDraw7_SetCooperativeLevel(p,a,b) (p)->SetCooperativeLevel(a,b)
1711 #define IDirectDraw7_SetDisplayMode(p,a,b,c,d,e) (p)->SetDisplayMode(a,b,c,d,e)
1712 #define IDirectDraw7_WaitForVerticalBlank(p,a,b) (p)->WaitForVerticalBlank(a,b)
1713 /*** added in IDirectDraw2 ***/
1714 #define IDirectDraw7_GetAvailableVidMem(p,a,b,c) (p)->GetAvailableVidMem(a,b,c)
1715 /*** added in IDirectDraw4 ***/
1716 #define IDirectDraw7_GetSurfaceFromDC(p,a,b) (p)->GetSurfaceFromDC(a,b)
1717 #define IDirectDraw7_RestoreAllSurfaces(p) (p)->RestoreAllSurfaces()
1718 #define IDirectDraw7_TestCooperativeLevel(p) (p)->TestCooperativeLevel()
1719 #define IDirectDraw7_GetDeviceIdentifier(p,a,b) (p)->GetDeviceIdentifier(a,b)
1720 /*** added in IDirectDraw 7 ***/
1721 #define IDirectDraw7_StartModeTest(p,a,b,c) (p)->StartModeTest(a,b,c)
1722 #define IDirectDraw7_EvaluateMode(p,a,b) (p)->EvaluateMode(a,b)
1726 /*****************************************************************************
1727 * IDirectDrawSurface interface
1729 #define INTERFACE IDirectDrawSurface
1730 DECLARE_INTERFACE_(IDirectDrawSurface
,IUnknown
)
1732 /*** IUnknown methods ***/
1733 /*00*/ STDMETHOD_(HRESULT
,QueryInterface
)(THIS_ REFIID riid
, void** ppvObject
) PURE
;
1734 /*04*/ STDMETHOD_(ULONG
,AddRef
)(THIS
) PURE
;
1735 /*08*/ STDMETHOD_(ULONG
,Release
)(THIS
) PURE
;
1736 /*** IDirectDrawSurface methods ***/
1737 /*0c*/ STDMETHOD(AddAttachedSurface
)(THIS_ LPDIRECTDRAWSURFACE lpDDSAttachedSurface
) PURE
;
1738 /*10*/ STDMETHOD(AddOverlayDirtyRect
)(THIS_ LPRECT lpRect
) PURE
;
1739 /*14*/ STDMETHOD(Blt
)(THIS_ LPRECT lpDestRect
, LPDIRECTDRAWSURFACE lpDDSrcSurface
, LPRECT lpSrcRect
, DWORD dwFlags
, LPDDBLTFX lpDDBltFx
) PURE
;
1740 /*18*/ STDMETHOD(BltBatch
)(THIS_ LPDDBLTBATCH lpDDBltBatch
, DWORD dwCount
, DWORD dwFlags
) PURE
;
1741 /*1c*/ STDMETHOD(BltFast
)(THIS_ DWORD dwX
, DWORD dwY
, LPDIRECTDRAWSURFACE lpDDSrcSurface
, LPRECT lpSrcRect
, DWORD dwTrans
) PURE
;
1742 /*20*/ STDMETHOD(DeleteAttachedSurface
)(THIS_ DWORD dwFlags
, LPDIRECTDRAWSURFACE lpDDSAttachedSurface
) PURE
;
1743 /*24*/ STDMETHOD(EnumAttachedSurfaces
)(THIS_ LPVOID lpContext
, LPDDENUMSURFACESCALLBACK lpEnumSurfacesCallback
) PURE
;
1744 /*28*/ STDMETHOD(EnumOverlayZOrders
)(THIS_ DWORD dwFlags
, LPVOID lpContext
, LPDDENUMSURFACESCALLBACK lpfnCallback
) PURE
;
1745 /*2c*/ STDMETHOD(Flip
)(THIS_ LPDIRECTDRAWSURFACE lpDDSurfaceTargetOverride
, DWORD dwFlags
) PURE
;
1746 /*30*/ STDMETHOD(GetAttachedSurface
)(THIS_ LPDDSCAPS lpDDSCaps
, LPDIRECTDRAWSURFACE
*lplpDDAttachedSurface
) PURE
;
1747 /*34*/ STDMETHOD(GetBltStatus
)(THIS_ DWORD dwFlags
) PURE
;
1748 /*38*/ STDMETHOD(GetCaps
)(THIS_ LPDDSCAPS lpDDSCaps
) PURE
;
1749 /*3c*/ STDMETHOD(GetClipper
)(THIS_ LPDIRECTDRAWCLIPPER
*lplpDDClipper
) PURE
;
1750 /*40*/ STDMETHOD(GetColorKey
)(THIS_ DWORD dwFlags
, LPDDCOLORKEY lpDDColorKey
) PURE
;
1751 /*44*/ STDMETHOD(GetDC
)(THIS_ HDC
*lphDC
) PURE
;
1752 /*48*/ STDMETHOD(GetFlipStatus
)(THIS_ DWORD dwFlags
) PURE
;
1753 /*4c*/ STDMETHOD(GetOverlayPosition
)(THIS_ LPLONG lplX
, LPLONG lplY
) PURE
;
1754 /*50*/ STDMETHOD(GetPalette
)(THIS_ LPDIRECTDRAWPALETTE
*lplpDDPalette
) PURE
;
1755 /*54*/ STDMETHOD(GetPixelFormat
)(THIS_ LPDDPIXELFORMAT lpDDPixelFormat
) PURE
;
1756 /*58*/ STDMETHOD(GetSurfaceDesc
)(THIS_ LPDDSURFACEDESC lpDDSurfaceDesc
) PURE
;
1757 /*5c*/ STDMETHOD(Initialize
)(THIS_ LPDIRECTDRAW lpDD
, LPDDSURFACEDESC lpDDSurfaceDesc
) PURE
;
1758 /*60*/ STDMETHOD(IsLost
)(THIS
) PURE
;
1759 /*64*/ STDMETHOD(Lock
)(THIS_ LPRECT lpDestRect
, LPDDSURFACEDESC lpDDSurfaceDesc
, DWORD dwFlags
, HANDLE hEvent
) PURE
;
1760 /*68*/ STDMETHOD(ReleaseDC
)(THIS_ HDC hDC
) PURE
;
1761 /*6c*/ STDMETHOD(Restore
)(THIS
) PURE
;
1762 /*70*/ STDMETHOD(SetClipper
)(THIS_ LPDIRECTDRAWCLIPPER lpDDClipper
) PURE
;
1763 /*74*/ STDMETHOD(SetColorKey
)(THIS_ DWORD dwFlags
, LPDDCOLORKEY lpDDColorKey
) PURE
;
1764 /*78*/ STDMETHOD(SetOverlayPosition
)(THIS_ LONG lX
, LONG lY
) PURE
;
1765 /*7c*/ STDMETHOD(SetPalette
)(THIS_ LPDIRECTDRAWPALETTE lpDDPalette
) PURE
;
1766 /*80*/ STDMETHOD(Unlock
)(THIS_ LPVOID lpSurfaceData
) PURE
;
1767 /*84*/ STDMETHOD(UpdateOverlay
)(THIS_ LPRECT lpSrcRect
, LPDIRECTDRAWSURFACE lpDDDestSurface
, LPRECT lpDestRect
, DWORD dwFlags
, LPDDOVERLAYFX lpDDOverlayFx
) PURE
;
1768 /*88*/ STDMETHOD(UpdateOverlayDisplay
)(THIS_ DWORD dwFlags
) PURE
;
1769 /*8c*/ STDMETHOD(UpdateOverlayZOrder
)(THIS_ DWORD dwFlags
, LPDIRECTDRAWSURFACE lpDDSReference
) PURE
;
1773 #if !defined(__cplusplus) || defined(CINTERFACE)
1774 /*** IUnknown methods ***/
1775 #define IDirectDrawSurface_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
1776 #define IDirectDrawSurface_AddRef(p) (p)->lpVtbl->AddRef(p)
1777 #define IDirectDrawSurface_Release(p) (p)->lpVtbl->Release(p)
1778 /*** IDirectDrawSurface methods ***/
1779 #define IDirectDrawSurface_AddAttachedSurface(p,a) (p)->lpVtbl->AddAttachedSurface(p,a)
1780 #define IDirectDrawSurface_AddOverlayDirtyRect(p,a) (p)->lpVtbl->AddOverlayDirtyRect(p,a)
1781 #define IDirectDrawSurface_Blt(p,a,b,c,d,e) (p)->lpVtbl->Blt(p,a,b,c,d,e)
1782 #define IDirectDrawSurface_BltBatch(p,a,b,c) (p)->lpVtbl->BltBatch(p,a,b,c)
1783 #define IDirectDrawSurface_BltFast(p,a,b,c,d,e) (p)->lpVtbl->BltFast(p,a,b,c,d,e)
1784 #define IDirectDrawSurface_DeleteAttachedSurface(p,a,b) (p)->lpVtbl->DeleteAttachedSurface(p,a,b)
1785 #define IDirectDrawSurface_EnumAttachedSurfaces(p,a,b) (p)->lpVtbl->EnumAttachedSurfaces(p,a,b)
1786 #define IDirectDrawSurface_EnumOverlayZOrders(p,a,b,c) (p)->lpVtbl->EnumOverlayZOrders(p,a,b,c)
1787 #define IDirectDrawSurface_Flip(p,a,b) (p)->lpVtbl->Flip(p,a,b)
1788 #define IDirectDrawSurface_GetAttachedSurface(p,a,b) (p)->lpVtbl->GetAttachedSurface(p,a,b)
1789 #define IDirectDrawSurface_GetBltStatus(p,a) (p)->lpVtbl->GetBltStatus(p,a)
1790 #define IDirectDrawSurface_GetCaps(p,a) (p)->lpVtbl->GetCaps(p,a)
1791 #define IDirectDrawSurface_GetClipper(p,a) (p)->lpVtbl->GetClipper(p,a)
1792 #define IDirectDrawSurface_GetColorKey(p,a,b) (p)->lpVtbl->GetColorKey(p,a,b)
1793 #define IDirectDrawSurface_GetDC(p,a) (p)->lpVtbl->GetDC(p,a)
1794 #define IDirectDrawSurface_GetFlipStatus(p,a) (p)->lpVtbl->GetFlipStatus(p,a)
1795 #define IDirectDrawSurface_GetOverlayPosition(p,a,b) (p)->lpVtbl->GetOverlayPosition(p,a,b)
1796 #define IDirectDrawSurface_GetPalette(p,a) (p)->lpVtbl->GetPalette(p,a)
1797 #define IDirectDrawSurface_GetPixelFormat(p,a) (p)->lpVtbl->GetPixelFormat(p,a)
1798 #define IDirectDrawSurface_GetSurfaceDesc(p,a) (p)->lpVtbl->GetSurfaceDesc(p,a)
1799 #define IDirectDrawSurface_Initialize(p,a,b) (p)->lpVtbl->Initialize(p,a,b)
1800 #define IDirectDrawSurface_IsLost(p) (p)->lpVtbl->IsLost(p)
1801 #define IDirectDrawSurface_Lock(p,a,b,c,d) (p)->lpVtbl->Lock(p,a,b,c,d)
1802 #define IDirectDrawSurface_ReleaseDC(p,a) (p)->lpVtbl->ReleaseDC(p,a)
1803 #define IDirectDrawSurface_Restore(p) (p)->lpVtbl->Restore(p)
1804 #define IDirectDrawSurface_SetClipper(p,a) (p)->lpVtbl->SetClipper(p,a)
1805 #define IDirectDrawSurface_SetColorKey(p,a,b) (p)->lpVtbl->SetColorKey(p,a,b)
1806 #define IDirectDrawSurface_SetOverlayPosition(p,a,b) (p)->lpVtbl->SetOverlayPosition(p,a,b)
1807 #define IDirectDrawSurface_SetPalette(p,a) (p)->lpVtbl->SetPalette(p,a)
1808 #define IDirectDrawSurface_Unlock(p,a) (p)->lpVtbl->Unlock(p,a)
1809 #define IDirectDrawSurface_UpdateOverlay(p,a,b,c,d,e) (p)->lpVtbl->UpdateOverlay(p,a,b,c,d,e)
1810 #define IDirectDrawSurface_UpdateOverlayDisplay(p,a) (p)->lpVtbl->UpdateOverlayDisplay(p,a)
1811 #define IDirectDrawSurface_UpdateOverlayZOrder(p,a,b) (p)->lpVtbl->UpdateOverlayZOrder(p,a,b)
1813 /*** IUnknown methods ***/
1814 #define IDirectDrawSurface_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
1815 #define IDirectDrawSurface_AddRef(p) (p)->AddRef()
1816 #define IDirectDrawSurface_Release(p) (p)->Release()
1817 /*** IDirectDrawSurface methods ***/
1818 #define IDirectDrawSurface_AddAttachedSurface(p,a) (p)->AddAttachedSurface(a)
1819 #define IDirectDrawSurface_AddOverlayDirtyRect(p,a) (p)->AddOverlayDirtyRect(a)
1820 #define IDirectDrawSurface_Blt(p,a,b,c,d,e) (p)->Blt(a,b,c,d,e)
1821 #define IDirectDrawSurface_BltBatch(p,a,b,c) (p)->BltBatch(a,b,c)
1822 #define IDirectDrawSurface_BltFast(p,a,b,c,d,e) (p)->BltFast(a,b,c,d,e)
1823 #define IDirectDrawSurface_DeleteAttachedSurface(p,a,b) (p)->DeleteAttachedSurface(a,b)
1824 #define IDirectDrawSurface_EnumAttachedSurfaces(p,a,b) (p)->EnumAttachedSurfaces(a,b)
1825 #define IDirectDrawSurface_EnumOverlayZOrders(p,a,b,c) (p)->EnumOverlayZOrders(a,b,c)
1826 #define IDirectDrawSurface_Flip(p,a,b) (p)->Flip(a,b)
1827 #define IDirectDrawSurface_GetAttachedSurface(p,a,b) (p)->GetAttachedSurface(a,b)
1828 #define IDirectDrawSurface_GetBltStatus(p,a) (p)->GetBltStatus(a)
1829 #define IDirectDrawSurface_GetCaps(p,a) (p)->GetCaps(a)
1830 #define IDirectDrawSurface_GetClipper(p,a) (p)->GetClipper(a)
1831 #define IDirectDrawSurface_GetColorKey(p,a,b) (p)->GetColorKey(a,b)
1832 #define IDirectDrawSurface_GetDC(p,a) (p)->GetDC(a)
1833 #define IDirectDrawSurface_GetFlipStatus(p,a) (p)->GetFlipStatus(a)
1834 #define IDirectDrawSurface_GetOverlayPosition(p,a,b) (p)->GetOverlayPosition(a,b)
1835 #define IDirectDrawSurface_GetPalette(p,a) (p)->GetPalette(a)
1836 #define IDirectDrawSurface_GetPixelFormat(p,a) (p)->GetPixelFormat(a)
1837 #define IDirectDrawSurface_GetSurfaceDesc(p,a) (p)->GetSurfaceDesc(a)
1838 #define IDirectDrawSurface_Initialize(p,a,b) (p)->Initialize(a,b)
1839 #define IDirectDrawSurface_IsLost(p) (p)->IsLost()
1840 #define IDirectDrawSurface_Lock(p,a,b,c,d) (p)->Lock(a,b,c,d)
1841 #define IDirectDrawSurface_ReleaseDC(p,a) (p)->ReleaseDC(a)
1842 #define IDirectDrawSurface_Restore(p) (p)->Restore()
1843 #define IDirectDrawSurface_SetClipper(p,a) (p)->SetClipper(a)
1844 #define IDirectDrawSurface_SetColorKey(p,a,b) (p)->SetColorKey(a,b)
1845 #define IDirectDrawSurface_SetOverlayPosition(p,a,b) (p)->SetOverlayPosition(a,b)
1846 #define IDirectDrawSurface_SetPalette(p,a) (p)->SetPalette(a)
1847 #define IDirectDrawSurface_Unlock(p,a) (p)->Unlock(a)
1848 #define IDirectDrawSurface_UpdateOverlay(p,a,b,c,d,e) (p)->UpdateOverlay(a,b,c,d,e)
1849 #define IDirectDrawSurface_UpdateOverlayDisplay(p,a) (p)->UpdateOverlayDisplay(a)
1850 #define IDirectDrawSurface_UpdateOverlayZOrder(p,a,b) (p)->UpdateOverlayZOrder(a,b)
1854 /*****************************************************************************
1855 * IDirectDrawSurface2 interface
1857 /* Cannot inherit from IDirectDrawSurface because the LPDIRECTDRAWSURFACE parameters
1858 * have been converted to LPDIRECTDRAWSURFACE2.
1860 #define INTERFACE IDirectDrawSurface2
1861 DECLARE_INTERFACE_(IDirectDrawSurface2
,IUnknown
)
1863 /*** IUnknown methods ***/
1864 STDMETHOD_(HRESULT
,QueryInterface
)(THIS_ REFIID riid
, void** ppvObject
) PURE
;
1865 STDMETHOD_(ULONG
,AddRef
)(THIS
) PURE
;
1866 STDMETHOD_(ULONG
,Release
)(THIS
) PURE
;
1867 /*** IDirectDrawSurface2 methods ***/
1868 STDMETHOD(AddAttachedSurface
)(THIS_ LPDIRECTDRAWSURFACE2 lpDDSAttachedSurface
) PURE
;
1869 STDMETHOD(AddOverlayDirtyRect
)(THIS_ LPRECT lpRect
) PURE
;
1870 STDMETHOD(Blt
)(THIS_ LPRECT lpDestRect
, LPDIRECTDRAWSURFACE2 lpDDSrcSurface
, LPRECT lpSrcRect
, DWORD dwFlags
, LPDDBLTFX lpDDBltFx
) PURE
;
1871 STDMETHOD(BltBatch
)(THIS_ LPDDBLTBATCH lpDDBltBatch
, DWORD dwCount
, DWORD dwFlags
) PURE
;
1872 STDMETHOD(BltFast
)(THIS_ DWORD dwX
, DWORD dwY
, LPDIRECTDRAWSURFACE2 lpDDSrcSurface
, LPRECT lpSrcRect
, DWORD dwTrans
) PURE
;
1873 STDMETHOD(DeleteAttachedSurface
)(THIS_ DWORD dwFlags
, LPDIRECTDRAWSURFACE2 lpDDSAttachedSurface
) PURE
;
1874 STDMETHOD(EnumAttachedSurfaces
)(THIS_ LPVOID lpContext
, LPDDENUMSURFACESCALLBACK lpEnumSurfacesCallback
) PURE
;
1875 STDMETHOD(EnumOverlayZOrders
)(THIS_ DWORD dwFlags
, LPVOID lpContext
, LPDDENUMSURFACESCALLBACK lpfnCallback
) PURE
;
1876 STDMETHOD(Flip
)(THIS_ LPDIRECTDRAWSURFACE2 lpDDSurfaceTargetOverride
, DWORD dwFlags
) PURE
;
1877 STDMETHOD(GetAttachedSurface
)(THIS_ LPDDSCAPS lpDDSCaps
, LPDIRECTDRAWSURFACE2
*lplpDDAttachedSurface
) PURE
;
1878 STDMETHOD(GetBltStatus
)(THIS_ DWORD dwFlags
) PURE
;
1879 STDMETHOD(GetCaps
)(THIS_ LPDDSCAPS lpDDSCaps
) PURE
;
1880 STDMETHOD(GetClipper
)(THIS_ LPDIRECTDRAWCLIPPER
*lplpDDClipper
) PURE
;
1881 STDMETHOD(GetColorKey
)(THIS_ DWORD dwFlags
, LPDDCOLORKEY lpDDColorKey
) PURE
;
1882 STDMETHOD(GetDC
)(THIS_ HDC
*lphDC
) PURE
;
1883 STDMETHOD(GetFlipStatus
)(THIS_ DWORD dwFlags
) PURE
;
1884 STDMETHOD(GetOverlayPosition
)(THIS_ LPLONG lplX
, LPLONG lplY
) PURE
;
1885 STDMETHOD(GetPalette
)(THIS_ LPDIRECTDRAWPALETTE
*lplpDDPalette
) PURE
;
1886 STDMETHOD(GetPixelFormat
)(THIS_ LPDDPIXELFORMAT lpDDPixelFormat
) PURE
;
1887 STDMETHOD(GetSurfaceDesc
)(THIS_ LPDDSURFACEDESC lpDDSurfaceDesc
) PURE
;
1888 STDMETHOD(Initialize
)(THIS_ LPDIRECTDRAW lpDD
, LPDDSURFACEDESC lpDDSurfaceDesc
) PURE
;
1889 STDMETHOD(IsLost
)(THIS
) PURE
;
1890 STDMETHOD(Lock
)(THIS_ LPRECT lpDestRect
, LPDDSURFACEDESC lpDDSurfaceDesc
, DWORD dwFlags
, HANDLE hEvent
) PURE
;
1891 STDMETHOD(ReleaseDC
)(THIS_ HDC hDC
) PURE
;
1892 STDMETHOD(Restore
)(THIS
) PURE
;
1893 STDMETHOD(SetClipper
)(THIS_ LPDIRECTDRAWCLIPPER lpDDClipper
) PURE
;
1894 STDMETHOD(SetColorKey
)(THIS_ DWORD dwFlags
, LPDDCOLORKEY lpDDColorKey
) PURE
;
1895 STDMETHOD(SetOverlayPosition
)(THIS_ LONG lX
, LONG lY
) PURE
;
1896 STDMETHOD(SetPalette
)(THIS_ LPDIRECTDRAWPALETTE lpDDPalette
) PURE
;
1897 STDMETHOD(Unlock
)(THIS_ LPVOID lpSurfaceData
) PURE
;
1898 STDMETHOD(UpdateOverlay
)(THIS_ LPRECT lpSrcRect
, LPDIRECTDRAWSURFACE2 lpDDDestSurface
, LPRECT lpDestRect
, DWORD dwFlags
, LPDDOVERLAYFX lpDDOverlayFx
) PURE
;
1899 STDMETHOD(UpdateOverlayDisplay
)(THIS_ DWORD dwFlags
) PURE
;
1900 STDMETHOD(UpdateOverlayZOrder
)(THIS_ DWORD dwFlags
, LPDIRECTDRAWSURFACE2 lpDDSReference
) PURE
;
1902 STDMETHOD(GetDDInterface
)(THIS_ LPVOID
*lplpDD
) PURE
;
1903 STDMETHOD(PageLock
)(THIS_ DWORD dwFlags
) PURE
;
1904 STDMETHOD(PageUnlock
)(THIS_ DWORD dwFlags
) PURE
;
1908 #if !defined(__cplusplus) || defined(CINTERFACE)
1909 /*** IUnknown methods ***/
1910 #define IDirectDrawSurface2_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
1911 #define IDirectDrawSurface2_AddRef(p) (p)->lpVtbl->AddRef(p)
1912 #define IDirectDrawSurface2_Release(p) (p)->lpVtbl->Release(p)
1913 /*** IDirectDrawSurface methods (almost) ***/
1914 #define IDirectDrawSurface2_AddAttachedSurface(p,a) (p)->lpVtbl->AddAttachedSurface(p,a)
1915 #define IDirectDrawSurface2_AddOverlayDirtyRect(p,a) (p)->lpVtbl->AddOverlayDirtyRect(p,a)
1916 #define IDirectDrawSurface2_Blt(p,a,b,c,d,e) (p)->lpVtbl->Blt(p,a,b,c,d,e)
1917 #define IDirectDrawSurface2_BltBatch(p,a,b,c) (p)->lpVtbl->BltBatch(p,a,b,c)
1918 #define IDirectDrawSurface2_BltFast(p,a,b,c,d,e) (p)->lpVtbl->BltFast(p,a,b,c,d,e)
1919 #define IDirectDrawSurface2_DeleteAttachedSurface(p,a,b) (p)->lpVtbl->DeleteAttachedSurface(p,a,b)
1920 #define IDirectDrawSurface2_EnumAttachedSurfaces(p,a,b) (p)->lpVtbl->EnumAttachedSurfaces(p,a,b)
1921 #define IDirectDrawSurface2_EnumOverlayZOrders(p,a,b,c) (p)->lpVtbl->EnumOverlayZOrders(p,a,b,c)
1922 #define IDirectDrawSurface2_Flip(p,a,b) (p)->lpVtbl->Flip(p,a,b)
1923 #define IDirectDrawSurface2_GetAttachedSurface(p,a,b) (p)->lpVtbl->GetAttachedSurface(p,a,b)
1924 #define IDirectDrawSurface2_GetBltStatus(p,a) (p)->lpVtbl->GetBltStatus(p,a)
1925 #define IDirectDrawSurface2_GetCaps(p,a) (p)->lpVtbl->GetCaps(p,a)
1926 #define IDirectDrawSurface2_GetClipper(p,a) (p)->lpVtbl->GetClipper(p,a)
1927 #define IDirectDrawSurface2_GetColorKey(p,a,b) (p)->lpVtbl->GetColorKey(p,a,b)
1928 #define IDirectDrawSurface2_GetDC(p,a) (p)->lpVtbl->GetDC(p,a)
1929 #define IDirectDrawSurface2_GetFlipStatus(p,a) (p)->lpVtbl->GetFlipStatus(p,a)
1930 #define IDirectDrawSurface2_GetOverlayPosition(p,a,b) (p)->lpVtbl->GetOverlayPosition(p,a,b)
1931 #define IDirectDrawSurface2_GetPalette(p,a) (p)->lpVtbl->GetPalette(p,a)
1932 #define IDirectDrawSurface2_GetPixelFormat(p,a) (p)->lpVtbl->GetPixelFormat(p,a)
1933 #define IDirectDrawSurface2_GetSurfaceDesc(p,a) (p)->lpVtbl->GetSurfaceDesc(p,a)
1934 #define IDirectDrawSurface2_Initialize(p,a,b) (p)->lpVtbl->Initialize(p,a,b)
1935 #define IDirectDrawSurface2_IsLost(p) (p)->lpVtbl->IsLost(p)
1936 #define IDirectDrawSurface2_Lock(p,a,b,c,d) (p)->lpVtbl->Lock(p,a,b,c,d)
1937 #define IDirectDrawSurface2_ReleaseDC(p,a) (p)->lpVtbl->ReleaseDC(p,a)
1938 #define IDirectDrawSurface2_Restore(p) (p)->lpVtbl->Restore(p)
1939 #define IDirectDrawSurface2_SetClipper(p,a) (p)->lpVtbl->SetClipper(p,a)
1940 #define IDirectDrawSurface2_SetColorKey(p,a,b) (p)->lpVtbl->SetColorKey(p,a,b)
1941 #define IDirectDrawSurface2_SetOverlayPosition(p,a,b) (p)->lpVtbl->SetOverlayPosition(p,a,b)
1942 #define IDirectDrawSurface2_SetPalette(p,a) (p)->lpVtbl->SetPalette(p,a)
1943 #define IDirectDrawSurface2_Unlock(p,a) (p)->lpVtbl->Unlock(p,a)
1944 #define IDirectDrawSurface2_UpdateOverlay(p,a,b,c,d,e) (p)->lpVtbl->UpdateOverlay(p,a,b,c,d,e)
1945 #define IDirectDrawSurface2_UpdateOverlayDisplay(p,a) (p)->lpVtbl->UpdateOverlayDisplay(p,a)
1946 #define IDirectDrawSurface2_UpdateOverlayZOrder(p,a,b) (p)->lpVtbl->UpdateOverlayZOrder(p,a,b)
1947 /*** IDirectDrawSurface2 methods ***/
1948 #define IDirectDrawSurface2_GetDDInterface(p,a) (p)->lpVtbl->GetDDInterface(p,a)
1949 #define IDirectDrawSurface2_PageLock(p,a) (p)->lpVtbl->PageLock(p,a)
1950 #define IDirectDrawSurface2_PageUnlock(p,a) (p)->lpVtbl->PageUnlock(p,a)
1952 /*** IUnknown methods ***/
1953 #define IDirectDrawSurface2_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
1954 #define IDirectDrawSurface2_AddRef(p) (p)->AddRef()
1955 #define IDirectDrawSurface2_Release(p) (p)->Release()
1956 /*** IDirectDrawSurface methods (almost) ***/
1957 #define IDirectDrawSurface2_AddAttachedSurface(p,a) (p)->AddAttachedSurface(a)
1958 #define IDirectDrawSurface2_AddOverlayDirtyRect(p,a) (p)->AddOverlayDirtyRect(a)
1959 #define IDirectDrawSurface2_Blt(p,a,b,c,d,e) (p)->Blt(a,b,c,d,e)
1960 #define IDirectDrawSurface2_BltBatch(p,a,b,c) (p)->BltBatch(a,b,c)
1961 #define IDirectDrawSurface2_BltFast(p,a,b,c,d,e) (p)->BltFast(a,b,c,d,e)
1962 #define IDirectDrawSurface2_DeleteAttachedSurface(p,a,b) (p)->DeleteAttachedSurface(a,b)
1963 #define IDirectDrawSurface2_EnumAttachedSurfaces(p,a,b) (p)->EnumAttachedSurfaces(a,b)
1964 #define IDirectDrawSurface2_EnumOverlayZOrders(p,a,b,c) (p)->EnumOverlayZOrders(a,b,c)
1965 #define IDirectDrawSurface2_Flip(p,a,b) (p)->Flip(a,b)
1966 #define IDirectDrawSurface2_GetAttachedSurface(p,a,b) (p)->GetAttachedSurface(a,b)
1967 #define IDirectDrawSurface2_GetBltStatus(p,a) (p)->GetBltStatus(a)
1968 #define IDirectDrawSurface2_GetCaps(p,a) (p)->GetCaps(a)
1969 #define IDirectDrawSurface2_GetClipper(p,a) (p)->GetClipper(a)
1970 #define IDirectDrawSurface2_GetColorKey(p,a,b) (p)->GetColorKey(a,b)
1971 #define IDirectDrawSurface2_GetDC(p,a) (p)->GetDC(a)
1972 #define IDirectDrawSurface2_GetFlipStatus(p,a) (p)->GetFlipStatus(a)
1973 #define IDirectDrawSurface2_GetOverlayPosition(p,a,b) (p)->GetOverlayPosition(a,b)
1974 #define IDirectDrawSurface2_GetPalette(p,a) (p)->GetPalette(a)
1975 #define IDirectDrawSurface2_GetPixelFormat(p,a) (p)->GetPixelFormat(a)
1976 #define IDirectDrawSurface2_GetSurfaceDesc(p,a) (p)->GetSurfaceDesc(a)
1977 #define IDirectDrawSurface2_Initialize(p,a,b) (p)->Initialize(a,b)
1978 #define IDirectDrawSurface2_IsLost(p) (p)->IsLost()
1979 #define IDirectDrawSurface2_Lock(p,a,b,c,d) (p)->Lock(a,b,c,d)
1980 #define IDirectDrawSurface2_ReleaseDC(p,a) (p)->ReleaseDC(a)
1981 #define IDirectDrawSurface2_Restore(p) (p)->Restore()
1982 #define IDirectDrawSurface2_SetClipper(p,a) (p)->SetClipper(a)
1983 #define IDirectDrawSurface2_SetColorKey(p,a,b) (p)->SetColorKey(a,b)
1984 #define IDirectDrawSurface2_SetOverlayPosition(p,a,b) (p)->SetOverlayPosition(a,b)
1985 #define IDirectDrawSurface2_SetPalette(p,a) (p)->SetPalette(a)
1986 #define IDirectDrawSurface2_Unlock(p,a) (p)->Unlock(a)
1987 #define IDirectDrawSurface2_UpdateOverlay(p,a,b,c,d,e) (p)->UpdateOverlay(a,b,c,d,e)
1988 #define IDirectDrawSurface2_UpdateOverlayDisplay(p,a) (p)->UpdateOverlayDisplay(a)
1989 #define IDirectDrawSurface2_UpdateOverlayZOrder(p,a,b) (p)->UpdateOverlayZOrder(a,b)
1990 /*** IDirectDrawSurface2 methods ***/
1991 #define IDirectDrawSurface2_GetDDInterface(p,a) (p)->GetDDInterface(a)
1992 #define IDirectDrawSurface2_PageLock(p,a) (p)->PageLock(a)
1993 #define IDirectDrawSurface2_PageUnlock(p,a) (p)->PageUnlock(a)
1997 /*****************************************************************************
1998 * IDirectDrawSurface3 interface
2000 /* Cannot inherit from IDirectDrawSurface2 because the LPDIRECTDRAWSURFACE2 parameters
2001 * have been converted to LPDIRECTDRAWSURFACE3.
2003 #define INTERFACE IDirectDrawSurface3
2004 DECLARE_INTERFACE_(IDirectDrawSurface3
,IUnknown
)
2006 /*** IUnknown methods ***/
2007 STDMETHOD_(HRESULT
,QueryInterface
)(THIS_ REFIID riid
, void** ppvObject
) PURE
;
2008 STDMETHOD_(ULONG
,AddRef
)(THIS
) PURE
;
2009 STDMETHOD_(ULONG
,Release
)(THIS
) PURE
;
2010 /*** IDirectDrawSurface3 methods ***/
2011 STDMETHOD(AddAttachedSurface
)(THIS_ LPDIRECTDRAWSURFACE3 lpDDSAttachedSurface
) PURE
;
2012 STDMETHOD(AddOverlayDirtyRect
)(THIS_ LPRECT lpRect
) PURE
;
2013 STDMETHOD(Blt
)(THIS_ LPRECT lpDestRect
, LPDIRECTDRAWSURFACE3 lpDDSrcSurface
, LPRECT lpSrcRect
, DWORD dwFlags
, LPDDBLTFX lpDDBltFx
) PURE
;
2014 STDMETHOD(BltBatch
)(THIS_ LPDDBLTBATCH lpDDBltBatch
, DWORD dwCount
, DWORD dwFlags
) PURE
;
2015 STDMETHOD(BltFast
)(THIS_ DWORD dwX
, DWORD dwY
, LPDIRECTDRAWSURFACE3 lpDDSrcSurface
, LPRECT lpSrcRect
, DWORD dwTrans
) PURE
;
2016 STDMETHOD(DeleteAttachedSurface
)(THIS_ DWORD dwFlags
, LPDIRECTDRAWSURFACE3 lpDDSAttachedSurface
) PURE
;
2017 STDMETHOD(EnumAttachedSurfaces
)(THIS_ LPVOID lpContext
, LPDDENUMSURFACESCALLBACK lpEnumSurfacesCallback
) PURE
;
2018 STDMETHOD(EnumOverlayZOrders
)(THIS_ DWORD dwFlags
, LPVOID lpContext
, LPDDENUMSURFACESCALLBACK lpfnCallback
) PURE
;
2019 STDMETHOD(Flip
)(THIS_ LPDIRECTDRAWSURFACE3 lpDDSurfaceTargetOverride
, DWORD dwFlags
) PURE
;
2020 STDMETHOD(GetAttachedSurface
)(THIS_ LPDDSCAPS lpDDSCaps
, LPDIRECTDRAWSURFACE3
*lplpDDAttachedSurface
) PURE
;
2021 STDMETHOD(GetBltStatus
)(THIS_ DWORD dwFlags
) PURE
;
2022 STDMETHOD(GetCaps
)(THIS_ LPDDSCAPS lpDDSCaps
) PURE
;
2023 STDMETHOD(GetClipper
)(THIS_ LPDIRECTDRAWCLIPPER
*lplpDDClipper
) PURE
;
2024 STDMETHOD(GetColorKey
)(THIS_ DWORD dwFlags
, LPDDCOLORKEY lpDDColorKey
) PURE
;
2025 STDMETHOD(GetDC
)(THIS_ HDC
*lphDC
) PURE
;
2026 STDMETHOD(GetFlipStatus
)(THIS_ DWORD dwFlags
) PURE
;
2027 STDMETHOD(GetOverlayPosition
)(THIS_ LPLONG lplX
, LPLONG lplY
) PURE
;
2028 STDMETHOD(GetPalette
)(THIS_ LPDIRECTDRAWPALETTE
*lplpDDPalette
) PURE
;
2029 STDMETHOD(GetPixelFormat
)(THIS_ LPDDPIXELFORMAT lpDDPixelFormat
) PURE
;
2030 STDMETHOD(GetSurfaceDesc
)(THIS_ LPDDSURFACEDESC lpDDSurfaceDesc
) PURE
;
2031 STDMETHOD(Initialize
)(THIS_ LPDIRECTDRAW lpDD
, LPDDSURFACEDESC lpDDSurfaceDesc
) PURE
;
2032 STDMETHOD(IsLost
)(THIS
) PURE
;
2033 STDMETHOD(Lock
)(THIS_ LPRECT lpDestRect
, LPDDSURFACEDESC lpDDSurfaceDesc
, DWORD dwFlags
, HANDLE hEvent
) PURE
;
2034 STDMETHOD(ReleaseDC
)(THIS_ HDC hDC
) PURE
;
2035 STDMETHOD(Restore
)(THIS
) PURE
;
2036 STDMETHOD(SetClipper
)(THIS_ LPDIRECTDRAWCLIPPER lpDDClipper
) PURE
;
2037 STDMETHOD(SetColorKey
)(THIS_ DWORD dwFlags
, LPDDCOLORKEY lpDDColorKey
) PURE
;
2038 STDMETHOD(SetOverlayPosition
)(THIS_ LONG lX
, LONG lY
) PURE
;
2039 STDMETHOD(SetPalette
)(THIS_ LPDIRECTDRAWPALETTE lpDDPalette
) PURE
;
2040 STDMETHOD(Unlock
)(THIS_ LPVOID lpSurfaceData
) PURE
;
2041 STDMETHOD(UpdateOverlay
)(THIS_ LPRECT lpSrcRect
, LPDIRECTDRAWSURFACE3 lpDDDestSurface
, LPRECT lpDestRect
, DWORD dwFlags
, LPDDOVERLAYFX lpDDOverlayFx
) PURE
;
2042 STDMETHOD(UpdateOverlayDisplay
)(THIS_ DWORD dwFlags
) PURE
;
2043 STDMETHOD(UpdateOverlayZOrder
)(THIS_ DWORD dwFlags
, LPDIRECTDRAWSURFACE3 lpDDSReference
) PURE
;
2045 STDMETHOD(GetDDInterface
)(THIS_ LPVOID
*lplpDD
) PURE
;
2046 STDMETHOD(PageLock
)(THIS_ DWORD dwFlags
) PURE
;
2047 STDMETHOD(PageUnlock
)(THIS_ DWORD dwFlags
) PURE
;
2049 STDMETHOD(SetSurfaceDesc
)(THIS_ LPDDSURFACEDESC lpDDSD
, DWORD dwFlags
) PURE
;
2053 #if !defined(__cplusplus) || defined(CINTERFACE)
2054 /*** IUnknown methods ***/
2055 #define IDirectDrawSurface3_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
2056 #define IDirectDrawSurface3_AddRef(p) (p)->lpVtbl->AddRef(p)
2057 #define IDirectDrawSurface3_Release(p) (p)->lpVtbl->Release(p)
2058 /*** IDirectDrawSurface methods (almost) ***/
2059 #define IDirectDrawSurface3_AddAttachedSurface(p,a) (p)->lpVtbl->AddAttachedSurface(p,a)
2060 #define IDirectDrawSurface3_AddOverlayDirtyRect(p,a) (p)->lpVtbl->AddOverlayDirtyRect(p,a)
2061 #define IDirectDrawSurface3_Blt(p,a,b,c,d,e) (p)->lpVtbl->Blt(p,a,b,c,d,e)
2062 #define IDirectDrawSurface3_BltBatch(p,a,b,c) (p)->lpVtbl->BltBatch(p,a,b,c)
2063 #define IDirectDrawSurface3_BltFast(p,a,b,c,d,e) (p)->lpVtbl->BltFast(p,a,b,c,d,e)
2064 #define IDirectDrawSurface3_DeleteAttachedSurface(p,a,b) (p)->lpVtbl->DeleteAttachedSurface(p,a,b)
2065 #define IDirectDrawSurface3_EnumAttachedSurfaces(p,a,b) (p)->lpVtbl->EnumAttachedSurfaces(p,a,b)
2066 #define IDirectDrawSurface3_EnumOverlayZOrders(p,a,b,c) (p)->lpVtbl->EnumOverlayZOrders(p,a,b,c)
2067 #define IDirectDrawSurface3_Flip(p,a,b) (p)->lpVtbl->Flip(p,a,b)
2068 #define IDirectDrawSurface3_GetAttachedSurface(p,a,b) (p)->lpVtbl->GetAttachedSurface(p,a,b)
2069 #define IDirectDrawSurface3_GetBltStatus(p,a) (p)->lpVtbl->GetBltStatus(p,a)
2070 #define IDirectDrawSurface3_GetCaps(p,a) (p)->lpVtbl->GetCaps(p,a)
2071 #define IDirectDrawSurface3_GetClipper(p,a) (p)->lpVtbl->GetClipper(p,a)
2072 #define IDirectDrawSurface3_GetColorKey(p,a,b) (p)->lpVtbl->GetColorKey(p,a,b)
2073 #define IDirectDrawSurface3_GetDC(p,a) (p)->lpVtbl->GetDC(p,a)
2074 #define IDirectDrawSurface3_GetFlipStatus(p,a) (p)->lpVtbl->GetFlipStatus(p,a)
2075 #define IDirectDrawSurface3_GetOverlayPosition(p,a,b) (p)->lpVtbl->GetOverlayPosition(p,a,b)
2076 #define IDirectDrawSurface3_GetPalette(p,a) (p)->lpVtbl->GetPalette(p,a)
2077 #define IDirectDrawSurface3_GetPixelFormat(p,a) (p)->lpVtbl->GetPixelFormat(p,a)
2078 #define IDirectDrawSurface3_GetSurfaceDesc(p,a) (p)->lpVtbl->GetSurfaceDesc(p,a)
2079 #define IDirectDrawSurface3_Initialize(p,a,b) (p)->lpVtbl->Initialize(p,a,b)
2080 #define IDirectDrawSurface3_IsLost(p) (p)->lpVtbl->IsLost(p)
2081 #define IDirectDrawSurface3_Lock(p,a,b,c,d) (p)->lpVtbl->Lock(p,a,b,c,d)
2082 #define IDirectDrawSurface3_ReleaseDC(p,a) (p)->lpVtbl->ReleaseDC(p,a)
2083 #define IDirectDrawSurface3_Restore(p) (p)->lpVtbl->Restore(p)
2084 #define IDirectDrawSurface3_SetClipper(p,a) (p)->lpVtbl->SetClipper(p,a)
2085 #define IDirectDrawSurface3_SetColorKey(p,a,b) (p)->lpVtbl->SetColorKey(p,a,b)
2086 #define IDirectDrawSurface3_SetOverlayPosition(p,a,b) (p)->lpVtbl->SetOverlayPosition(p,a,b)
2087 #define IDirectDrawSurface3_SetPalette(p,a) (p)->lpVtbl->SetPalette(p,a)
2088 #define IDirectDrawSurface3_Unlock(p,a) (p)->lpVtbl->Unlock(p,a)
2089 #define IDirectDrawSurface3_UpdateOverlay(p,a,b,c,d,e) (p)->lpVtbl->UpdateOverlay(p,a,b,c,d,e)
2090 #define IDirectDrawSurface3_UpdateOverlayDisplay(p,a) (p)->lpVtbl->UpdateOverlayDisplay(p,a)
2091 #define IDirectDrawSurface3_UpdateOverlayZOrder(p,a,b) (p)->lpVtbl->UpdateOverlayZOrder(p,a,b)
2092 /*** IDirectDrawSurface2 methods ***/
2093 #define IDirectDrawSurface3_GetDDInterface(p,a) (p)->lpVtbl->GetDDInterface(p,a)
2094 #define IDirectDrawSurface3_PageLock(p,a) (p)->lpVtbl->PageLock(p,a)
2095 #define IDirectDrawSurface3_PageUnlock(p,a) (p)->lpVtbl->PageUnlock(p,a)
2096 /*** IDirectDrawSurface3 methods ***/
2097 #define IDirectDrawSurface3_SetSurfaceDesc(p,a,b) (p)->lpVtbl->SetSurfaceDesc(p,a,b)
2099 /*** IUnknown methods ***/
2100 #define IDirectDrawSurface3_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
2101 #define IDirectDrawSurface3_AddRef(p) (p)->AddRef()
2102 #define IDirectDrawSurface3_Release(p) (p)->Release()
2103 /*** IDirectDrawSurface methods (almost) ***/
2104 #define IDirectDrawSurface3_AddAttachedSurface(p,a) (p)->AddAttachedSurface(a)
2105 #define IDirectDrawSurface3_AddOverlayDirtyRect(p,a) (p)->AddOverlayDirtyRect(a)
2106 #define IDirectDrawSurface3_Blt(p,a,b,c,d,e) (p)->Blt(a,b,c,d,e)
2107 #define IDirectDrawSurface3_BltBatch(p,a,b,c) (p)->BltBatch(a,b,c)
2108 #define IDirectDrawSurface3_BltFast(p,a,b,c,d,e) (p)->BltFast(a,b,c,d,e)
2109 #define IDirectDrawSurface3_DeleteAttachedSurface(p,a,b) (p)->DeleteAttachedSurface(a,b)
2110 #define IDirectDrawSurface3_EnumAttachedSurfaces(p,a,b) (p)->EnumAttachedSurfaces(a,b)
2111 #define IDirectDrawSurface3_EnumOverlayZOrders(p,a,b,c) (p)->EnumOverlayZOrders(a,b,c)
2112 #define IDirectDrawSurface3_Flip(p,a,b) (p)->Flip(a,b)
2113 #define IDirectDrawSurface3_GetAttachedSurface(p,a,b) (p)->GetAttachedSurface(a,b)
2114 #define IDirectDrawSurface3_GetBltStatus(p,a) (p)->GetBltStatus(a)
2115 #define IDirectDrawSurface3_GetCaps(p,a) (p)->GetCaps(a)
2116 #define IDirectDrawSurface3_GetClipper(p,a) (p)->GetClipper(a)
2117 #define IDirectDrawSurface3_GetColorKey(p,a,b) (p)->GetColorKey(a,b)
2118 #define IDirectDrawSurface3_GetDC(p,a) (p)->GetDC(a)
2119 #define IDirectDrawSurface3_GetFlipStatus(p,a) (p)->GetFlipStatus(a)
2120 #define IDirectDrawSurface3_GetOverlayPosition(p,a,b) (p)->GetOverlayPosition(a,b)
2121 #define IDirectDrawSurface3_GetPalette(p,a) (p)->GetPalette(a)
2122 #define IDirectDrawSurface3_GetPixelFormat(p,a) (p)->GetPixelFormat(a)
2123 #define IDirectDrawSurface3_GetSurfaceDesc(p,a) (p)->GetSurfaceDesc(a)
2124 #define IDirectDrawSurface3_Initialize(p,a,b) (p)->Initialize(a,b)
2125 #define IDirectDrawSurface3_IsLost(p) (p)->IsLost()
2126 #define IDirectDrawSurface3_Lock(p,a,b,c,d) (p)->Lock(a,b,c,d)
2127 #define IDirectDrawSurface3_ReleaseDC(p,a) (p)->ReleaseDC(a)
2128 #define IDirectDrawSurface3_Restore(p) (p)->Restore()
2129 #define IDirectDrawSurface3_SetClipper(p,a) (p)->SetClipper(a)
2130 #define IDirectDrawSurface3_SetColorKey(p,a,b) (p)->SetColorKey(a,b)
2131 #define IDirectDrawSurface3_SetOverlayPosition(p,a,b) (p)->SetOverlayPosition(a,b)
2132 #define IDirectDrawSurface3_SetPalette(p,a) (p)->SetPalette(a)
2133 #define IDirectDrawSurface3_Unlock(p,a) (p)->Unlock(a)
2134 #define IDirectDrawSurface3_UpdateOverlay(p,a,b,c,d,e) (p)->UpdateOverlay(a,b,c,d,e)
2135 #define IDirectDrawSurface3_UpdateOverlayDisplay(p,a) (p)->UpdateOverlayDisplay(a)
2136 #define IDirectDrawSurface3_UpdateOverlayZOrder(p,a,b) (p)->UpdateOverlayZOrder(a,b)
2137 /*** IDirectDrawSurface2 methods ***/
2138 #define IDirectDrawSurface3_GetDDInterface(p,a) (p)->GetDDInterface(a)
2139 #define IDirectDrawSurface3_PageLock(p,a) (p)->PageLock(a)
2140 #define IDirectDrawSurface3_PageUnlock(p,a) (p)->PageUnlock(a)
2141 /*** IDirectDrawSurface3 methods ***/
2142 #define IDirectDrawSurface3_SetSurfaceDesc(p,a,b) (p)->SetSurfaceDesc(a,b)
2146 /*****************************************************************************
2147 * IDirectDrawSurface4 interface
2149 /* Cannot inherit from IDirectDrawSurface2 because DDSCAPS changed to DDSCAPS2.
2151 #define INTERFACE IDirectDrawSurface4
2152 DECLARE_INTERFACE_(IDirectDrawSurface4
,IUnknown
)
2154 /*** IUnknown methods ***/
2155 STDMETHOD_(HRESULT
,QueryInterface
)(THIS_ REFIID riid
, void** ppvObject
) PURE
;
2156 STDMETHOD_(ULONG
,AddRef
)(THIS
) PURE
;
2157 STDMETHOD_(ULONG
,Release
)(THIS
) PURE
;
2158 /*** IDirectDrawSurface4 methods ***/
2159 STDMETHOD(AddAttachedSurface
)(THIS_ LPDIRECTDRAWSURFACE4 lpDDSAttachedSurface
) PURE
;
2160 STDMETHOD(AddOverlayDirtyRect
)(THIS_ LPRECT lpRect
) PURE
;
2161 STDMETHOD(Blt
)(THIS_ LPRECT lpDestRect
, LPDIRECTDRAWSURFACE4 lpDDSrcSurface
, LPRECT lpSrcRect
, DWORD dwFlags
, LPDDBLTFX lpDDBltFx
) PURE
;
2162 STDMETHOD(BltBatch
)(THIS_ LPDDBLTBATCH lpDDBltBatch
, DWORD dwCount
, DWORD dwFlags
) PURE
;
2163 STDMETHOD(BltFast
)(THIS_ DWORD dwX
, DWORD dwY
, LPDIRECTDRAWSURFACE4 lpDDSrcSurface
, LPRECT lpSrcRect
, DWORD dwTrans
) PURE
;
2164 STDMETHOD(DeleteAttachedSurface
)(THIS_ DWORD dwFlags
, LPDIRECTDRAWSURFACE4 lpDDSAttachedSurface
) PURE
;
2165 STDMETHOD(EnumAttachedSurfaces
)(THIS_ LPVOID lpContext
, LPDDENUMSURFACESCALLBACK lpEnumSurfacesCallback
) PURE
;
2166 STDMETHOD(EnumOverlayZOrders
)(THIS_ DWORD dwFlags
, LPVOID lpContext
, LPDDENUMSURFACESCALLBACK lpfnCallback
) PURE
;
2167 STDMETHOD(Flip
)(THIS_ LPDIRECTDRAWSURFACE4 lpDDSurfaceTargetOverride
, DWORD dwFlags
) PURE
;
2168 STDMETHOD(GetAttachedSurface
)(THIS_ LPDDSCAPS2 lpDDSCaps
, LPDIRECTDRAWSURFACE4
*lplpDDAttachedSurface
) PURE
;
2169 STDMETHOD(GetBltStatus
)(THIS_ DWORD dwFlags
) PURE
;
2170 STDMETHOD(GetCaps
)(THIS_ LPDDSCAPS2 lpDDSCaps
) PURE
;
2171 STDMETHOD(GetClipper
)(THIS_ LPDIRECTDRAWCLIPPER
*lplpDDClipper
) PURE
;
2172 STDMETHOD(GetColorKey
)(THIS_ DWORD dwFlags
, LPDDCOLORKEY lpDDColorKey
) PURE
;
2173 STDMETHOD(GetDC
)(THIS_ HDC
*lphDC
) PURE
;
2174 STDMETHOD(GetFlipStatus
)(THIS_ DWORD dwFlags
) PURE
;
2175 STDMETHOD(GetOverlayPosition
)(THIS_ LPLONG lplX
, LPLONG lplY
) PURE
;
2176 STDMETHOD(GetPalette
)(THIS_ LPDIRECTDRAWPALETTE
*lplpDDPalette
) PURE
;
2177 STDMETHOD(GetPixelFormat
)(THIS_ LPDDPIXELFORMAT lpDDPixelFormat
) PURE
;
2178 STDMETHOD(GetSurfaceDesc
)(THIS_ LPDDSURFACEDESC2 lpDDSurfaceDesc
) PURE
;
2179 STDMETHOD(Initialize
)(THIS_ LPDIRECTDRAW lpDD
, LPDDSURFACEDESC2 lpDDSurfaceDesc
) PURE
;
2180 STDMETHOD(IsLost
)(THIS
) PURE
;
2181 STDMETHOD(Lock
)(THIS_ LPRECT lpDestRect
, LPDDSURFACEDESC2 lpDDSurfaceDesc
, DWORD dwFlags
, HANDLE hEvent
) PURE
;
2182 STDMETHOD(ReleaseDC
)(THIS_ HDC hDC
) PURE
;
2183 STDMETHOD(Restore
)(THIS
) PURE
;
2184 STDMETHOD(SetClipper
)(THIS_ LPDIRECTDRAWCLIPPER lpDDClipper
) PURE
;
2185 STDMETHOD(SetColorKey
)(THIS_ DWORD dwFlags
, LPDDCOLORKEY lpDDColorKey
) PURE
;
2186 STDMETHOD(SetOverlayPosition
)(THIS_ LONG lX
, LONG lY
) PURE
;
2187 STDMETHOD(SetPalette
)(THIS_ LPDIRECTDRAWPALETTE lpDDPalette
) PURE
;
2188 STDMETHOD(Unlock
)(THIS_ LPRECT lpSurfaceData
) PURE
;
2189 STDMETHOD(UpdateOverlay
)(THIS_ LPRECT lpSrcRect
, LPDIRECTDRAWSURFACE4 lpDDDestSurface
, LPRECT lpDestRect
, DWORD dwFlags
, LPDDOVERLAYFX lpDDOverlayFx
) PURE
;
2190 STDMETHOD(UpdateOverlayDisplay
)(THIS_ DWORD dwFlags
) PURE
;
2191 STDMETHOD(UpdateOverlayZOrder
)(THIS_ DWORD dwFlags
, LPDIRECTDRAWSURFACE4 lpDDSReference
) PURE
;
2193 STDMETHOD(GetDDInterface
)(THIS_ LPVOID
*lplpDD
) PURE
;
2194 STDMETHOD(PageLock
)(THIS_ DWORD dwFlags
) PURE
;
2195 STDMETHOD(PageUnlock
)(THIS_ DWORD dwFlags
) PURE
;
2197 STDMETHOD(SetSurfaceDesc
)(THIS_ LPDDSURFACEDESC2 lpDDSD
, DWORD dwFlags
) PURE
;
2199 STDMETHOD(SetPrivateData
)(THIS_ REFGUID tag
, LPVOID pData
, DWORD cbSize
, DWORD dwFlags
) PURE
;
2200 STDMETHOD(GetPrivateData
)(THIS_ REFGUID tag
, LPVOID pBuffer
, LPDWORD pcbBufferSize
) PURE
;
2201 STDMETHOD(FreePrivateData
)(THIS_ REFGUID tag
) PURE
;
2202 STDMETHOD(GetUniquenessValue
)(THIS_ LPDWORD pValue
) PURE
;
2203 STDMETHOD(ChangeUniquenessValue
)(THIS
) PURE
;
2207 #if !defined(__cplusplus) || defined(CINTERFACE)
2208 /*** IUnknown methods ***/
2209 #define IDirectDrawSurface4_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
2210 #define IDirectDrawSurface4_AddRef(p) (p)->lpVtbl->AddRef(p)
2211 #define IDirectDrawSurface4_Release(p) (p)->lpVtbl->Release(p)
2212 /*** IDirectDrawSurface (almost) methods ***/
2213 #define IDirectDrawSurface4_AddAttachedSurface(p,a) (p)->lpVtbl->AddAttachedSurface(p,a)
2214 #define IDirectDrawSurface4_AddOverlayDirtyRect(p,a) (p)->lpVtbl->AddOverlayDirtyRect(p,a)
2215 #define IDirectDrawSurface4_Blt(p,a,b,c,d,e) (p)->lpVtbl->Blt(p,a,b,c,d,e)
2216 #define IDirectDrawSurface4_BltBatch(p,a,b,c) (p)->lpVtbl->BltBatch(p,a,b,c)
2217 #define IDirectDrawSurface4_BltFast(p,a,b,c,d,e) (p)->lpVtbl->BltFast(p,a,b,c,d,e)
2218 #define IDirectDrawSurface4_DeleteAttachedSurface(p,a,b) (p)->lpVtbl->DeleteAttachedSurface(p,a,b)
2219 #define IDirectDrawSurface4_EnumAttachedSurfaces(p,a,b) (p)->lpVtbl->EnumAttachedSurfaces(p,a,b)
2220 #define IDirectDrawSurface4_EnumOverlayZOrders(p,a,b,c) (p)->lpVtbl->EnumOverlayZOrders(p,a,b,c)
2221 #define IDirectDrawSurface4_Flip(p,a,b) (p)->lpVtbl->Flip(p,a,b)
2222 #define IDirectDrawSurface4_GetAttachedSurface(p,a,b) (p)->lpVtbl->GetAttachedSurface(p,a,b)
2223 #define IDirectDrawSurface4_GetBltStatus(p,a) (p)->lpVtbl->GetBltStatus(p,a)
2224 #define IDirectDrawSurface4_GetCaps(p,a) (p)->lpVtbl->GetCaps(p,a)
2225 #define IDirectDrawSurface4_GetClipper(p,a) (p)->lpVtbl->GetClipper(p,a)
2226 #define IDirectDrawSurface4_GetColorKey(p,a,b) (p)->lpVtbl->GetColorKey(p,a,b)
2227 #define IDirectDrawSurface4_GetDC(p,a) (p)->lpVtbl->GetDC(p,a)
2228 #define IDirectDrawSurface4_GetFlipStatus(p,a) (p)->lpVtbl->GetFlipStatus(p,a)
2229 #define IDirectDrawSurface4_GetOverlayPosition(p,a,b) (p)->lpVtbl->GetOverlayPosition(p,a,b)
2230 #define IDirectDrawSurface4_GetPalette(p,a) (p)->lpVtbl->GetPalette(p,a)
2231 #define IDirectDrawSurface4_GetPixelFormat(p,a) (p)->lpVtbl->GetPixelFormat(p,a)
2232 #define IDirectDrawSurface4_GetSurfaceDesc(p,a) (p)->lpVtbl->GetSurfaceDesc(p,a)
2233 #define IDirectDrawSurface4_Initialize(p,a,b) (p)->lpVtbl->Initialize(p,a,b)
2234 #define IDirectDrawSurface4_IsLost(p) (p)->lpVtbl->IsLost(p)
2235 #define IDirectDrawSurface4_Lock(p,a,b,c,d) (p)->lpVtbl->Lock(p,a,b,c,d)
2236 #define IDirectDrawSurface4_ReleaseDC(p,a) (p)->lpVtbl->ReleaseDC(p,a)
2237 #define IDirectDrawSurface4_Restore(p) (p)->lpVtbl->Restore(p)
2238 #define IDirectDrawSurface4_SetClipper(p,a) (p)->lpVtbl->SetClipper(p,a)
2239 #define IDirectDrawSurface4_SetColorKey(p,a,b) (p)->lpVtbl->SetColorKey(p,a,b)
2240 #define IDirectDrawSurface4_SetOverlayPosition(p,a,b) (p)->lpVtbl->SetOverlayPosition(p,a,b)
2241 #define IDirectDrawSurface4_SetPalette(p,a) (p)->lpVtbl->SetPalette(p,a)
2242 #define IDirectDrawSurface4_Unlock(p,a) (p)->lpVtbl->Unlock(p,a)
2243 #define IDirectDrawSurface4_UpdateOverlay(p,a,b,c,d,e) (p)->lpVtbl->UpdateOverlay(p,a,b,c,d,e)
2244 #define IDirectDrawSurface4_UpdateOverlayDisplay(p,a) (p)->lpVtbl->UpdateOverlayDisplay(p,a)
2245 #define IDirectDrawSurface4_UpdateOverlayZOrder(p,a,b) (p)->lpVtbl->UpdateOverlayZOrder(p,a,b)
2246 /*** IDirectDrawSurface2 methods ***/
2247 #define IDirectDrawSurface4_GetDDInterface(p,a) (p)->lpVtbl->GetDDInterface(p,a)
2248 #define IDirectDrawSurface4_PageLock(p,a) (p)->lpVtbl->PageLock(p,a)
2249 #define IDirectDrawSurface4_PageUnlock(p,a) (p)->lpVtbl->PageUnlock(p,a)
2250 /*** IDirectDrawSurface3 methods ***/
2251 #define IDirectDrawSurface4_SetSurfaceDesc(p,a,b) (p)->lpVtbl->SetSurfaceDesc(p,a,b)
2252 /*** IDirectDrawSurface4 methods ***/
2253 #define IDirectDrawSurface4_SetPrivateData(p,a,b,c,d) (p)->lpVtbl->SetPrivateData(p,a,b,c,d)
2254 #define IDirectDrawSurface4_GetPrivateData(p,a,b,c) (p)->lpVtbl->GetPrivateData(p,a,b,c)
2255 #define IDirectDrawSurface4_FreePrivateData(p,a) (p)->lpVtbl->FreePrivateData(p,a)
2256 #define IDirectDrawSurface4_GetUniquenessValue(p,a) (p)->lpVtbl->GetUniquenessValue(p,a)
2257 #define IDirectDrawSurface4_ChangeUniquenessValue(p) (p)->lpVtbl->ChangeUniquenessValue(p)
2259 /*** IUnknown methods ***/
2260 #define IDirectDrawSurface4_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
2261 #define IDirectDrawSurface4_AddRef(p) (p)->AddRef()
2262 #define IDirectDrawSurface4_Release(p) (p)->Release()
2263 /*** IDirectDrawSurface (almost) methods ***/
2264 #define IDirectDrawSurface4_AddAttachedSurface(p,a) (p)->AddAttachedSurface(a)
2265 #define IDirectDrawSurface4_AddOverlayDirtyRect(p,a) (p)->AddOverlayDirtyRect(a)
2266 #define IDirectDrawSurface4_Blt(p,a,b,c,d,e) (p)->Blt(a,b,c,d,e)
2267 #define IDirectDrawSurface4_BltBatch(p,a,b,c) (p)->BltBatch(a,b,c)
2268 #define IDirectDrawSurface4_BltFast(p,a,b,c,d,e) (p)->BltFast(a,b,c,d,e)
2269 #define IDirectDrawSurface4_DeleteAttachedSurface(p,a,b) (p)->DeleteAttachedSurface(a,b)
2270 #define IDirectDrawSurface4_EnumAttachedSurfaces(p,a,b) (p)->EnumAttachedSurfaces(a,b)
2271 #define IDirectDrawSurface4_EnumOverlayZOrders(p,a,b,c) (p)->EnumOverlayZOrders(a,b,c)
2272 #define IDirectDrawSurface4_Flip(p,a,b) (p)->Flip(a,b)
2273 #define IDirectDrawSurface4_GetAttachedSurface(p,a,b) (p)->GetAttachedSurface(a,b)
2274 #define IDirectDrawSurface4_GetBltStatus(p,a) (p)->GetBltStatus(a)
2275 #define IDirectDrawSurface4_GetCaps(p,a) (p)->GetCaps(a)
2276 #define IDirectDrawSurface4_GetClipper(p,a) (p)->GetClipper(a)
2277 #define IDirectDrawSurface4_GetColorKey(p,a,b) (p)->GetColorKey(a,b)
2278 #define IDirectDrawSurface4_GetDC(p,a) (p)->GetDC(a)
2279 #define IDirectDrawSurface4_GetFlipStatus(p,a) (p)->GetFlipStatus(a)
2280 #define IDirectDrawSurface4_GetOverlayPosition(p,a,b) (p)->GetOverlayPosition(a,b)
2281 #define IDirectDrawSurface4_GetPalette(p,a) (p)->GetPalette(a)
2282 #define IDirectDrawSurface4_GetPixelFormat(p,a) (p)->GetPixelFormat(a)
2283 #define IDirectDrawSurface4_GetSurfaceDesc(p,a) (p)->GetSurfaceDesc(a)
2284 #define IDirectDrawSurface4_Initialize(p,a,b) (p)->Initialize(a,b)
2285 #define IDirectDrawSurface4_IsLost(p) (p)->IsLost()
2286 #define IDirectDrawSurface4_Lock(p,a,b,c,d) (p)->Lock(a,b,c,d)
2287 #define IDirectDrawSurface4_ReleaseDC(p,a) (p)->ReleaseDC(a)
2288 #define IDirectDrawSurface4_Restore(p) (p)->Restore()
2289 #define IDirectDrawSurface4_SetClipper(p,a) (p)->SetClipper(a)
2290 #define IDirectDrawSurface4_SetColorKey(p,a,b) (p)->SetColorKey(a,b)
2291 #define IDirectDrawSurface4_SetOverlayPosition(p,a,b) (p)->SetOverlayPosition(a,b)
2292 #define IDirectDrawSurface4_SetPalette(p,a) (p)->SetPalette(a)
2293 #define IDirectDrawSurface4_Unlock(p,a) (p)->Unlock(a)
2294 #define IDirectDrawSurface4_UpdateOverlay(p,a,b,c,d,e) (p)->UpdateOverlay(a,b,c,d,e)
2295 #define IDirectDrawSurface4_UpdateOverlayDisplay(p,a) (p)->UpdateOverlayDisplay(a)
2296 #define IDirectDrawSurface4_UpdateOverlayZOrder(p,a,b) (p)->UpdateOverlayZOrder(a,b)
2297 /*** IDirectDrawSurface2 methods ***/
2298 #define IDirectDrawSurface4_GetDDInterface(p,a) (p)->GetDDInterface(a)
2299 #define IDirectDrawSurface4_PageLock(p,a) (p)->PageLock(a)
2300 #define IDirectDrawSurface4_PageUnlock(p,a) (p)->PageUnlock(a)
2301 /*** IDirectDrawSurface3 methods ***/
2302 #define IDirectDrawSurface4_SetSurfaceDesc(p,a,b) (p)->SetSurfaceDesc(a,b)
2303 /*** IDirectDrawSurface4 methods ***/
2304 #define IDirectDrawSurface4_SetPrivateData(p,a,b,c,d) (p)->SetPrivateData(a,b,c,d)
2305 #define IDirectDrawSurface4_GetPrivateData(p,a,b,c) (p)->GetPrivateData(a,b,c)
2306 #define IDirectDrawSurface4_FreePrivateData(p,a) (p)->FreePrivateData(a)
2307 #define IDirectDrawSurface4_GetUniquenessValue(p,a) (p)->GetUniquenessValue(a)
2308 #define IDirectDrawSurface4_ChangeUniquenessValue(p) (p)->ChangeUniquenessValue()
2312 /*****************************************************************************
2313 * IDirectDrawSurface7 interface
2315 #define INTERFACE IDirectDrawSurface7
2316 DECLARE_INTERFACE_(IDirectDrawSurface7
,IUnknown
)
2318 /*** IUnknown methods ***/
2319 STDMETHOD_(HRESULT
,QueryInterface
)(THIS_ REFIID riid
, void** ppvObject
) PURE
;
2320 STDMETHOD_(ULONG
,AddRef
)(THIS
) PURE
;
2321 STDMETHOD_(ULONG
,Release
)(THIS
) PURE
;
2322 /*** IDirectDrawSurface7 methods ***/
2323 STDMETHOD(AddAttachedSurface
)(THIS_ LPDIRECTDRAWSURFACE7 lpDDSAttachedSurface
) PURE
;
2324 STDMETHOD(AddOverlayDirtyRect
)(THIS_ LPRECT lpRect
) PURE
;
2325 STDMETHOD(Blt
)(THIS_ LPRECT lpDestRect
, LPDIRECTDRAWSURFACE7 lpDDSrcSurface
, LPRECT lpSrcRect
, DWORD dwFlags
, LPDDBLTFX lpDDBltFx
) PURE
;
2326 STDMETHOD(BltBatch
)(THIS_ LPDDBLTBATCH lpDDBltBatch
, DWORD dwCount
, DWORD dwFlags
) PURE
;
2327 STDMETHOD(BltFast
)(THIS_ DWORD dwX
, DWORD dwY
, LPDIRECTDRAWSURFACE7 lpDDSrcSurface
, LPRECT lpSrcRect
, DWORD dwTrans
) PURE
;
2328 STDMETHOD(DeleteAttachedSurface
)(THIS_ DWORD dwFlags
, LPDIRECTDRAWSURFACE7 lpDDSAttachedSurface
) PURE
;
2329 STDMETHOD(EnumAttachedSurfaces
)(THIS_ LPVOID lpContext
, LPDDENUMSURFACESCALLBACK7 lpEnumSurfacesCallback
) PURE
;
2330 STDMETHOD(EnumOverlayZOrders
)(THIS_ DWORD dwFlags
, LPVOID lpContext
, LPDDENUMSURFACESCALLBACK7 lpfnCallback
) PURE
;
2331 STDMETHOD(Flip
)(THIS_ LPDIRECTDRAWSURFACE7 lpDDSurfaceTargetOverride
, DWORD dwFlags
) PURE
;
2332 STDMETHOD(GetAttachedSurface
)(THIS_ LPDDSCAPS2 lpDDSCaps
, LPDIRECTDRAWSURFACE7
*lplpDDAttachedSurface
) PURE
;
2333 STDMETHOD(GetBltStatus
)(THIS_ DWORD dwFlags
) PURE
;
2334 STDMETHOD(GetCaps
)(THIS_ LPDDSCAPS2 lpDDSCaps
) PURE
;
2335 STDMETHOD(GetClipper
)(THIS_ LPDIRECTDRAWCLIPPER
*lplpDDClipper
) PURE
;
2336 STDMETHOD(GetColorKey
)(THIS_ DWORD dwFlags
, LPDDCOLORKEY lpDDColorKey
) PURE
;
2337 STDMETHOD(GetDC
)(THIS_ HDC
*lphDC
) PURE
;
2338 STDMETHOD(GetFlipStatus
)(THIS_ DWORD dwFlags
) PURE
;
2339 STDMETHOD(GetOverlayPosition
)(THIS_ LPLONG lplX
, LPLONG lplY
) PURE
;
2340 STDMETHOD(GetPalette
)(THIS_ LPDIRECTDRAWPALETTE
*lplpDDPalette
) PURE
;
2341 STDMETHOD(GetPixelFormat
)(THIS_ LPDDPIXELFORMAT lpDDPixelFormat
) PURE
;
2342 STDMETHOD(GetSurfaceDesc
)(THIS_ LPDDSURFACEDESC2 lpDDSurfaceDesc
) PURE
;
2343 STDMETHOD(Initialize
)(THIS_ LPDIRECTDRAW lpDD
, LPDDSURFACEDESC2 lpDDSurfaceDesc
) PURE
;
2344 STDMETHOD(IsLost
)(THIS
) PURE
;
2345 STDMETHOD(Lock
)(THIS_ LPRECT lpDestRect
, LPDDSURFACEDESC2 lpDDSurfaceDesc
, DWORD dwFlags
, HANDLE hEvent
) PURE
;
2346 STDMETHOD(ReleaseDC
)(THIS_ HDC hDC
) PURE
;
2347 STDMETHOD(Restore
)(THIS
) PURE
;
2348 STDMETHOD(SetClipper
)(THIS_ LPDIRECTDRAWCLIPPER lpDDClipper
) PURE
;
2349 STDMETHOD(SetColorKey
)(THIS_ DWORD dwFlags
, LPDDCOLORKEY lpDDColorKey
) PURE
;
2350 STDMETHOD(SetOverlayPosition
)(THIS_ LONG lX
, LONG lY
) PURE
;
2351 STDMETHOD(SetPalette
)(THIS_ LPDIRECTDRAWPALETTE lpDDPalette
) PURE
;
2352 STDMETHOD(Unlock
)(THIS_ LPRECT lpSurfaceData
) PURE
;
2353 STDMETHOD(UpdateOverlay
)(THIS_ LPRECT lpSrcRect
, LPDIRECTDRAWSURFACE7 lpDDDestSurface
, LPRECT lpDestRect
, DWORD dwFlags
, LPDDOVERLAYFX lpDDOverlayFx
) PURE
;
2354 STDMETHOD(UpdateOverlayDisplay
)(THIS_ DWORD dwFlags
) PURE
;
2355 STDMETHOD(UpdateOverlayZOrder
)(THIS_ DWORD dwFlags
, LPDIRECTDRAWSURFACE7 lpDDSReference
) PURE
;
2357 STDMETHOD(GetDDInterface
)(THIS_ LPVOID
*lplpDD
) PURE
;
2358 STDMETHOD(PageLock
)(THIS_ DWORD dwFlags
) PURE
;
2359 STDMETHOD(PageUnlock
)(THIS_ DWORD dwFlags
) PURE
;
2361 STDMETHOD(SetSurfaceDesc
)(THIS_ LPDDSURFACEDESC2 lpDDSD
, DWORD dwFlags
) PURE
;
2363 STDMETHOD(SetPrivateData
)(THIS_ REFGUID tag
, LPVOID pData
, DWORD cbSize
, DWORD dwFlags
) PURE
;
2364 STDMETHOD(GetPrivateData
)(THIS_ REFGUID tag
, LPVOID pBuffer
, LPDWORD pcbBufferSize
) PURE
;
2365 STDMETHOD(FreePrivateData
)(THIS_ REFGUID tag
) PURE
;
2366 STDMETHOD(GetUniquenessValue
)(THIS_ LPDWORD pValue
) PURE
;
2367 STDMETHOD(ChangeUniquenessValue
)(THIS
) PURE
;
2369 STDMETHOD(SetPriority
)(THIS_ DWORD prio
) PURE
;
2370 STDMETHOD(GetPriority
)(THIS_ LPDWORD prio
) PURE
;
2371 STDMETHOD(SetLOD
)(THIS_ DWORD lod
) PURE
;
2372 STDMETHOD(GetLOD
)(THIS_ LPDWORD lod
) PURE
;
2376 #if !defined(__cplusplus) || defined(CINTERFACE)
2377 /*** IUnknown methods ***/
2378 #define IDirectDrawSurface7_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
2379 #define IDirectDrawSurface7_AddRef(p) (p)->lpVtbl->AddRef(p)
2380 #define IDirectDrawSurface7_Release(p) (p)->lpVtbl->Release(p)
2381 /*** IDirectDrawSurface (almost) methods ***/
2382 #define IDirectDrawSurface7_AddAttachedSurface(p,a) (p)->lpVtbl->AddAttachedSurface(p,a)
2383 #define IDirectDrawSurface7_AddOverlayDirtyRect(p,a) (p)->lpVtbl->AddOverlayDirtyRect(p,a)
2384 #define IDirectDrawSurface7_Blt(p,a,b,c,d,e) (p)->lpVtbl->Blt(p,a,b,c,d,e)
2385 #define IDirectDrawSurface7_BltBatch(p,a,b,c) (p)->lpVtbl->BltBatch(p,a,b,c)
2386 #define IDirectDrawSurface7_BltFast(p,a,b,c,d,e) (p)->lpVtbl->BltFast(p,a,b,c,d,e)
2387 #define IDirectDrawSurface7_DeleteAttachedSurface(p,a,b) (p)->lpVtbl->DeleteAttachedSurface(p,a,b)
2388 #define IDirectDrawSurface7_EnumAttachedSurfaces(p,a,b) (p)->lpVtbl->EnumAttachedSurfaces(p,a,b)
2389 #define IDirectDrawSurface7_EnumOverlayZOrders(p,a,b,c) (p)->lpVtbl->EnumOverlayZOrders(p,a,b,c)
2390 #define IDirectDrawSurface7_Flip(p,a,b) (p)->lpVtbl->Flip(p,a,b)
2391 #define IDirectDrawSurface7_GetAttachedSurface(p,a,b) (p)->lpVtbl->GetAttachedSurface(p,a,b)
2392 #define IDirectDrawSurface7_GetBltStatus(p,a) (p)->lpVtbl->GetBltStatus(p,a)
2393 #define IDirectDrawSurface7_GetCaps(p,a) (p)->lpVtbl->GetCaps(p,a)
2394 #define IDirectDrawSurface7_GetClipper(p,a) (p)->lpVtbl->GetClipper(p,a)
2395 #define IDirectDrawSurface7_GetColorKey(p,a,b) (p)->lpVtbl->GetColorKey(p,a,b)
2396 #define IDirectDrawSurface7_GetDC(p,a) (p)->lpVtbl->GetDC(p,a)
2397 #define IDirectDrawSurface7_GetFlipStatus(p,a) (p)->lpVtbl->GetFlipStatus(p,a)
2398 #define IDirectDrawSurface7_GetOverlayPosition(p,a,b) (p)->lpVtbl->GetOverlayPosition(p,a,b)
2399 #define IDirectDrawSurface7_GetPalette(p,a) (p)->lpVtbl->GetPalette(p,a)
2400 #define IDirectDrawSurface7_GetPixelFormat(p,a) (p)->lpVtbl->GetPixelFormat(p,a)
2401 #define IDirectDrawSurface7_GetSurfaceDesc(p,a) (p)->lpVtbl->GetSurfaceDesc(p,a)
2402 #define IDirectDrawSurface7_Initialize(p,a,b) (p)->lpVtbl->Initialize(p,a,b)
2403 #define IDirectDrawSurface7_IsLost(p) (p)->lpVtbl->IsLost(p)
2404 #define IDirectDrawSurface7_Lock(p,a,b,c,d) (p)->lpVtbl->Lock(p,a,b,c,d)
2405 #define IDirectDrawSurface7_ReleaseDC(p,a) (p)->lpVtbl->ReleaseDC(p,a)
2406 #define IDirectDrawSurface7_Restore(p) (p)->lpVtbl->Restore(p)
2407 #define IDirectDrawSurface7_SetClipper(p,a) (p)->lpVtbl->SetClipper(p,a)
2408 #define IDirectDrawSurface7_SetColorKey(p,a,b) (p)->lpVtbl->SetColorKey(p,a,b)
2409 #define IDirectDrawSurface7_SetOverlayPosition(p,a,b) (p)->lpVtbl->SetOverlayPosition(p,a,b)
2410 #define IDirectDrawSurface7_SetPalette(p,a) (p)->lpVtbl->SetPalette(p,a)
2411 #define IDirectDrawSurface7_Unlock(p,a) (p)->lpVtbl->Unlock(p,a)
2412 #define IDirectDrawSurface7_UpdateOverlay(p,a,b,c,d,e) (p)->lpVtbl->UpdateOverlay(p,a,b,c,d,e)
2413 #define IDirectDrawSurface7_UpdateOverlayDisplay(p,a) (p)->lpVtbl->UpdateOverlayDisplay(p,a)
2414 #define IDirectDrawSurface7_UpdateOverlayZOrder(p,a,b) (p)->lpVtbl->UpdateOverlayZOrder(p,a,b)
2415 /*** IDirectDrawSurface2 methods ***/
2416 #define IDirectDrawSurface7_GetDDInterface(p,a) (p)->lpVtbl->GetDDInterface(p,a)
2417 #define IDirectDrawSurface7_PageLock(p,a) (p)->lpVtbl->PageLock(p,a)
2418 #define IDirectDrawSurface7_PageUnlock(p,a) (p)->lpVtbl->PageUnlock(p,a)
2419 /*** IDirectDrawSurface3 methods ***/
2420 #define IDirectDrawSurface7_SetSurfaceDesc(p,a,b) (p)->lpVtbl->SetSurfaceDesc(p,a,b)
2421 /*** IDirectDrawSurface4 methods ***/
2422 #define IDirectDrawSurface7_SetPrivateData(p,a,b,c,d) (p)->lpVtbl->SetPrivateData(p,a,b,c,d)
2423 #define IDirectDrawSurface7_GetPrivateData(p,a,b,c) (p)->lpVtbl->GetPrivateData(p,a,b,c)
2424 #define IDirectDrawSurface7_FreePrivateData(p,a) (p)->lpVtbl->FreePrivateData(p,a)
2425 #define IDirectDrawSurface7_GetUniquenessValue(p,a) (p)->lpVtbl->GetUniquenessValue(p,a)
2426 #define IDirectDrawSurface7_ChangeUniquenessValue(p) (p)->lpVtbl->ChangeUniquenessValue(p)
2427 /*** IDirectDrawSurface7 methods ***/
2428 #define IDirectDrawSurface7_SetPriority(p,a) (p)->lpVtbl->SetPriority(p,a)
2429 #define IDirectDrawSurface7_GetPriority(p,a) (p)->lpVtbl->GetPriority(p,a)
2430 #define IDirectDrawSurface7_SetLOD(p,a) (p)->lpVtbl->SetLOD(p,a)
2431 #define IDirectDrawSurface7_GetLOD(p,a) (p)->lpVtbl->GetLOD(p,a)
2433 /*** IUnknown methods ***/
2434 #define IDirectDrawSurface7_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
2435 #define IDirectDrawSurface7_AddRef(p) (p)->AddRef()
2436 #define IDirectDrawSurface7_Release(p) (p)->Release()
2437 /*** IDirectDrawSurface (almost) methods ***/
2438 #define IDirectDrawSurface7_AddAttachedSurface(p,a) (p)->AddAttachedSurface(a)
2439 #define IDirectDrawSurface7_AddOverlayDirtyRect(p,a) (p)->AddOverlayDirtyRect(a)
2440 #define IDirectDrawSurface7_Blt(p,a,b,c,d,e) (p)->Blt(a,b,c,d,e)
2441 #define IDirectDrawSurface7_BltBatch(p,a,b,c) (p)->BltBatch(a,b,c)
2442 #define IDirectDrawSurface7_BltFast(p,a,b,c,d,e) (p)->BltFast(a,b,c,d,e)
2443 #define IDirectDrawSurface7_DeleteAttachedSurface(p,a,b) (p)->DeleteAttachedSurface(a,b)
2444 #define IDirectDrawSurface7_EnumAttachedSurfaces(p,a,b) (p)->EnumAttachedSurfaces(a,b)
2445 #define IDirectDrawSurface7_EnumOverlayZOrders(p,a,b,c) (p)->EnumOverlayZOrders(a,b,c)
2446 #define IDirectDrawSurface7_Flip(p,a,b) (p)->Flip(a,b)
2447 #define IDirectDrawSurface7_GetAttachedSurface(p,a,b) (p)->GetAttachedSurface(a,b)
2448 #define IDirectDrawSurface7_GetBltStatus(p,a) (p)->GetBltStatus(a)
2449 #define IDirectDrawSurface7_GetCaps(p,a) (p)->GetCaps(a)
2450 #define IDirectDrawSurface7_GetClipper(p,a) (p)->GetClipper(a)
2451 #define IDirectDrawSurface7_GetColorKey(p,a,b) (p)->GetColorKey(a,b)
2452 #define IDirectDrawSurface7_GetDC(p,a) (p)->GetDC(a)
2453 #define IDirectDrawSurface7_GetFlipStatus(p,a) (p)->GetFlipStatus(a)
2454 #define IDirectDrawSurface7_GetOverlayPosition(p,a,b) (p)->GetOverlayPosition(a,b)
2455 #define IDirectDrawSurface7_GetPalette(p,a) (p)->GetPalette(a)
2456 #define IDirectDrawSurface7_GetPixelFormat(p,a) (p)->GetPixelFormat(a)
2457 #define IDirectDrawSurface7_GetSurfaceDesc(p,a) (p)->GetSurfaceDesc(a)
2458 #define IDirectDrawSurface7_Initialize(p,a,b) (p)->Initialize(a,b)
2459 #define IDirectDrawSurface7_IsLost(p) (p)->IsLost()
2460 #define IDirectDrawSurface7_Lock(p,a,b,c,d) (p)->Lock(a,b,c,d)
2461 #define IDirectDrawSurface7_ReleaseDC(p,a) (p)->ReleaseDC(a)
2462 #define IDirectDrawSurface7_Restore(p) (p)->Restore()
2463 #define IDirectDrawSurface7_SetClipper(p,a) (p)->SetClipper(a)
2464 #define IDirectDrawSurface7_SetColorKey(p,a,b) (p)->SetColorKey(a,b)
2465 #define IDirectDrawSurface7_SetOverlayPosition(p,a,b) (p)->SetOverlayPosition(a,b)
2466 #define IDirectDrawSurface7_SetPalette(p,a) (p)->SetPalette(a)
2467 #define IDirectDrawSurface7_Unlock(p,a) (p)->Unlock(a)
2468 #define IDirectDrawSurface7_UpdateOverlay(p,a,b,c,d,e) (p)->UpdateOverlay(a,b,c,d,e)
2469 #define IDirectDrawSurface7_UpdateOverlayDisplay(p,a) (p)->UpdateOverlayDisplay(a)
2470 #define IDirectDrawSurface7_UpdateOverlayZOrder(p,a,b) (p)->UpdateOverlayZOrder(a,b)
2471 /*** IDirectDrawSurface2 methods ***/
2472 #define IDirectDrawSurface7_GetDDInterface(p,a) (p)->GetDDInterface(a)
2473 #define IDirectDrawSurface7_PageLock(p,a) (p)->PageLock(a)
2474 #define IDirectDrawSurface7_PageUnlock(p,a) (p)->PageUnlock(a)
2475 /*** IDirectDrawSurface3 methods ***/
2476 #define IDirectDrawSurface7_SetSurfaceDesc(p,a,b) (p)->SetSurfaceDesc(a,b)
2477 /*** IDirectDrawSurface4 methods ***/
2478 #define IDirectDrawSurface7_SetPrivateData(p,a,b,c,d) (p)->SetPrivateData(a,b,c,d)
2479 #define IDirectDrawSurface7_GetPrivateData(p,a,b,c) (p)->GetPrivateData(a,b,c)
2480 #define IDirectDrawSurface7_FreePrivateData(p,a) (p)->FreePrivateData(a)
2481 #define IDirectDrawSurface7_GetUniquenessValue(p,a) (p)->GetUniquenessValue(a)
2482 #define IDirectDrawSurface7_ChangeUniquenessValue(p) (p)->ChangeUniquenessValue()
2483 /*** IDirectDrawSurface7 methods ***/
2484 #define IDirectDrawSurface7_SetPriority(p,a) (p)->SetPriority(a)
2485 #define IDirectDrawSurface7_GetPriority(p,a) (p)->GetPriority(a)
2486 #define IDirectDrawSurface7_SetLOD(p,a) (p)->SetLOD(a)
2487 #define IDirectDrawSurface7_GetLOD(p,a) (p)->GetLOD(a)
2490 /*****************************************************************************
2491 * IDirectDrawColorControl interface
2493 #define INTERFACE IDirectDrawColorControl
2494 DECLARE_INTERFACE_(IDirectDrawColorControl
,IUnknown
)
2496 /*** IUnknown methods ***/
2497 STDMETHOD_(HRESULT
,QueryInterface
)(THIS_ REFIID riid
, void** ppvObject
) PURE
;
2498 STDMETHOD_(ULONG
,AddRef
)(THIS
) PURE
;
2499 STDMETHOD_(ULONG
,Release
)(THIS
) PURE
;
2500 /*** IDirectDrawColorControl methods ***/
2501 STDMETHOD(GetColorControls
)(THIS_ LPDDCOLORCONTROL lpColorControl
) PURE
;
2502 STDMETHOD(SetColorControls
)(THIS_ LPDDCOLORCONTROL lpColorControl
) PURE
;
2506 #if !defined(__cplusplus) || defined(CINTERFACE)
2507 /*** IUnknown methods ***/
2508 #define IDirectDrawColorControl_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
2509 #define IDirectDrawColorControl_AddRef(p) (p)->lpVtbl->AddRef(p)
2510 #define IDirectDrawColorControl_Release(p) (p)->lpVtbl->Release(p)
2511 /*** IDirectDrawColorControl methods ***/
2512 #define IDirectDrawColorControl_GetColorControls(p,a) (p)->lpVtbl->GetColorControls(p,a)
2513 #define IDirectDrawColorControl_SetColorControls(p,a) (p)->lpVtbl->SetColorControls(p,a)
2515 /*** IUnknown methods ***/
2516 #define IDirectDrawColorControl_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
2517 #define IDirectDrawColorControl_AddRef(p) (p)->AddRef()
2518 #define IDirectDrawColorControl_Release(p) (p)->Release()
2519 /*** IDirectDrawColorControl methods ***/
2520 #define IDirectDrawColorControl_GetColorControls(p,a) (p)->GetColorControls(a)
2521 #define IDirectDrawColorControl_SetColorControls(p,a) (p)->SetColorControls(a)
2524 /*****************************************************************************
2525 * IDirectDrawGammaControl interface
2527 #define INTERFACE IDirectDrawGammaControl
2528 DECLARE_INTERFACE_(IDirectDrawGammaControl
,IUnknown
)
2530 /*** IUnknown methods ***/
2531 STDMETHOD_(HRESULT
,QueryInterface
)(THIS_ REFIID riid
, void** ppvObject
) PURE
;
2532 STDMETHOD_(ULONG
,AddRef
)(THIS
) PURE
;
2533 STDMETHOD_(ULONG
,Release
)(THIS
) PURE
;
2534 /*** IDirectDrawGammaControl methods ***/
2535 STDMETHOD(GetGammaRamp
)(THIS_ DWORD dwFlags
, LPDDGAMMARAMP lpGammaRamp
) PURE
;
2536 STDMETHOD(SetGammaRamp
)(THIS_ DWORD dwFlags
, LPDDGAMMARAMP lpGammaRamp
) PURE
;
2540 #if !defined(__cplusplus) || defined(CINTERFACE)
2541 /*** IUnknown methods ***/
2542 #define IDirectDrawGammaControl_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
2543 #define IDirectDrawGammaControl_AddRef(p) (p)->lpVtbl->AddRef(p)
2544 #define IDirectDrawGammaControl_Release(p) (p)->lpVtbl->Release(p)
2545 /*** IDirectDrawGammaControl methods ***/
2546 #define IDirectDrawGammaControl_GetGammaRamp(p,a,b) (p)->lpVtbl->GetGammaRamp(p,a,b)
2547 #define IDirectDrawGammaControl_SetGammaRamp(p,a,b) (p)->lpVtbl->SetGammaRamp(p,a,b)
2549 /*** IUnknown methods ***/
2550 #define IDirectDrawGammaControl_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
2551 #define IDirectDrawGammaControl_AddRef(p) (p)->AddRef()
2552 #define IDirectDrawGammaControl_Release(p) (p)->Release()
2553 /*** IDirectDrawGammaControl methods ***/
2554 #define IDirectDrawGammaControl_GetGammaRamp(p,a,b) (p)->GetGammaRamp(a,b)
2555 #define IDirectDrawGammaControl_SetGammaRamp(p,a,b) (p)->SetGammaRamp(a,b)
2559 HRESULT WINAPI
DirectDrawCreate(LPGUID
,LPDIRECTDRAW
*,LPUNKNOWN
);
2560 HRESULT WINAPI
DirectDrawCreateEx(LPGUID
,LPVOID
*,REFIID
,LPUNKNOWN
);
2561 HRESULT WINAPI
DirectDrawEnumerateA(LPDDENUMCALLBACKA
,LPVOID
);
2562 HRESULT WINAPI
DirectDrawEnumerateW(LPDDENUMCALLBACKW
,LPVOID
);
2563 #define DirectDrawEnumerate WINELIB_NAME_AW(DirectDrawEnumerate)
2564 HRESULT WINAPI
DirectDrawCreateClipper(DWORD
,LPDIRECTDRAWCLIPPER
*,LPUNKNOWN
);
2568 #endif /* defined(__cplusplus) */
2570 #endif /* __WINE_DDRAW_H */