Move MS DDK files to DDK
Deleted: trunk/reactos/include/ddk/d3dhal.h
Deleted: trunk/reactos/include/ddk/d3dnthal.h
Deleted: trunk/reactos/include/ddk/ddrawi.h
Deleted: trunk/reactos/include/ddk/ddrawint.h
Added: trunk/reactos/w32api/include/ddk/d3dnthal.h
Added: trunk/reactos/w32api/include/ddk/ddrawi.h
Added: trunk/reactos/w32api/include/ddk/ddrawint.h

Deleted: trunk/reactos/include/ddk/d3dhal.h
--- trunk/reactos/include/ddk/d3dhal.h	2005-06-28 20:30:26 UTC (rev 16312)
+++ trunk/reactos/include/ddk/d3dhal.h	2005-06-28 21:01:50 UTC (rev 16313)
@@ -1,535 +0,0 @@
-/*
- * Direct3D driver interface
- * (DirectX 7 version)
- *
- * Copyright (C) 2001 Ove Kaaven
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
- */
-
-#ifndef __WINE_D3DHAL_H
-#define __WINE_D3DHAL_H
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-#include <ddk/ddrawi.h>
-#include <d3d.h>
-
-/*****************************************************************************
- * device info structures
- */
-typedef struct _D3DDeviceDesc_V1 {
-  DWORD			dwSize;
-  DWORD			dwFlags;
-  D3DCOLORMODEL		dcmColorModel;
-  DWORD			dwDevCaps;
-  D3DTRANSFORMCAPS	dtcTransformCaps;
-  BOOL			bClipping;
-  D3DLIGHTINGCAPS	dlcLightingCaps;
-  D3DPRIMCAPS		dpcLineCaps;
-  D3DPRIMCAPS		dpcTriCaps;
-  DWORD			dwDeviceRenderBitDepth;
-  DWORD			dwDeviceZBufferBitDepth;
-  DWORD			dwMaxBufferSize;
-  DWORD			dwMaxVertexCount;
-} D3DDEVICEDESC_V1,*LPD3DDEVICEDESC_V1;
-
-/* this is to allow keeping the bulk of our OpenGL code out of x11drv */
-#define D3DDD_WINE_OPENGL_DEVICE 0x00008000
-
-typedef struct _D3DHAL_GLOBALDRIVERDATA {
-  DWORD			dwSize;
-  D3DDEVICEDESC_V1	hwCaps;
-  DWORD			dwNumVertices;
-  DWORD			dwNumClipVertices;
-  DWORD			dwNumTextureFormats;
-  LPDDSURFACEDESC	lpTextureFormats;
-} D3DHAL_GLOBALDRIVERDATA,*LPD3DHAL_GLOBALDRIVERDATA;
-
-typedef struct _D3DHAL_D3DEXTENDEDCAPS {
-  DWORD			dwSize;
-  /* DirectX 5 */
-  DWORD			dwMinTextureWidth, dwMaxTextureWidth;
-  DWORD			dwMinTextureHeight, dwMaxTextureHeight;
-  DWORD			dwMinStippleWidth, dwMaxStippleWidth;
-  DWORD			dwMinStippleHeight, dwMaxStippleHeight;
-  /* DirectX 6 */
-  DWORD			dwMaxTextureRepeat;
-  DWORD			dwMaxTextureAspectRatio;
-  DWORD			dwMaxAnisotropy;
-  D3DVALUE		dvGuardBandLeft;
-  D3DVALUE		dvGuardBandTop;
-  D3DVALUE		dvGuardBandRight;
-  D3DVALUE		dvGuardBandBottom;
-  D3DVALUE		dvExtentsAdjust;
-  DWORD			dwStencilCaps;
-  DWORD			dwFVFCaps;
-  DWORD			dwTextureOpCaps;
-  WORD			wMaxTextureBlendStages;
-  WORD			wMaxSimultaneousTextures;
-  /* DirectX 7 */
-  DWORD			dwMaxActiveLights;
-  D3DVALUE		dvMaxVertexW;
-  WORD			wMaxUserClipPlanes;
-  WORD			wMaxVertexBlendMatrices;
-  DWORD			dwVertexProcessingCaps;
-  DWORD			dwReserved1;
-  DWORD			dwReserved2;
-  DWORD			dwReserved3;
-  DWORD			dwReserved4;
-} D3DHAL_D3DEXTENDEDCAPS,*LPD3DHAL_D3DEXTENDEDCAPS;
-
-/*****************************************************************************
- * d3d->driver callbacks
- */
-typedef struct _D3DHAL_CONTEXTCREATEDATA	*LPD3DHAL_CONTEXTCREATEDATA;
-typedef struct _D3DHAL_CONTEXTDESTROYDATA	*LPD3DHAL_CONTEXTDESTROYDATA;
-typedef struct _D3DHAL_CONTEXTDESTROYALLDATA	*LPD3DHAL_CONTEXTDESTROYALLDATA;
-typedef struct _D3DHAL_SCENECAPTUREDATA		*LPD3DHAL_SCENECAPTUREDATA;
-typedef struct _D3DHAL_RENDERSTATEDATA		*LPD3DHAL_RENDERSTATEDATA;
-typedef struct _D3DHAL_RENDERPRIMITIVEDATA	*LPD3DHAL_RENDERPRIMITIVEDATA;
-typedef struct _D3DHAL_TEXTURECREATEDATA	*LPD3DHAL_TEXTURECREATEDATA;
-typedef struct _D3DHAL_TEXTUREDESTROYDATA	*LPD3DHAL_TEXTUREDESTROYDATA;
-typedef struct _D3DHAL_TEXTURESWAPDATA		*LPD3DHAL_TEXTURESWAPDATA;
-typedef struct _D3DHAL_TEXTUREGETSURFDATA	*LPD3DHAL_TEXTUREGETSURFDATA;
-typedef struct _D3DHAL_GETSTATEDATA		*LPD3DHAL_GETSTATEDATA;
-
-typedef DWORD (PASCAL *LPD3DHAL_CONTEXTCREATECB)    (LPD3DHAL_CONTEXTCREATEDATA);
-typedef DWORD (PASCAL *LPD3DHAL_CONTEXTDESTROYCB)   (LPD3DHAL_CONTEXTDESTROYDATA);
-typedef DWORD (PASCAL *LPD3DHAL_CONTEXTDESTROYALLCB)(LPD3DHAL_CONTEXTDESTROYALLDATA);
-typedef DWORD (PASCAL *LPD3DHAL_SCENECAPTURECB)	    (LPD3DHAL_SCENECAPTUREDATA);
-typedef DWORD (PASCAL *LPD3DHAL_RENDERSTATECB)	    (LPD3DHAL_RENDERSTATEDATA);
-typedef DWORD (PASCAL *LPD3DHAL_RENDERPRIMITIVECB)  (LPD3DHAL_RENDERPRIMITIVEDATA);
-typedef DWORD (PASCAL *LPD3DHAL_TEXTURECREATECB)    (LPD3DHAL_TEXTURECREATEDATA);
-typedef DWORD (PASCAL *LPD3DHAL_TEXTUREDESTROYCB)   (LPD3DHAL_TEXTUREDESTROYDATA);
-typedef DWORD (PASCAL *LPD3DHAL_TEXTURESWAPCB)	    (LPD3DHAL_TEXTURESWAPDATA);
-typedef DWORD (PASCAL *LPD3DHAL_TEXTUREGETSURFCB)   (LPD3DHAL_TEXTUREGETSURFDATA);
-typedef DWORD (PASCAL *LPD3DHAL_GETSTATECB)	    (LPD3DHAL_GETSTATEDATA);
-
-typedef struct _D3DHAL_CALLBACKS {
-  DWORD				dwSize;
-  LPD3DHAL_CONTEXTCREATECB	ContextCreate;
-  LPD3DHAL_CONTEXTDESTROYCB	ContextDestroy;
-  LPD3DHAL_CONTEXTDESTROYALLCB	ContextDestroyAll;
-  LPD3DHAL_SCENECAPTURECB	SceneCapture;
-  LPVOID			lpReserved10;
-  LPVOID			lpReserved11;
-  LPD3DHAL_RENDERSTATECB	RenderState;
-  LPD3DHAL_RENDERPRIMITIVECB	RenderPrimitive;
-  DWORD				dwReserved;
-  LPD3DHAL_TEXTURECREATECB	TextureCreate;
-  LPD3DHAL_TEXTUREDESTROYCB	TextureDestroy;
-  LPD3DHAL_TEXTURESWAPCB	TextureSwap;
-  LPD3DHAL_TEXTUREGETSURFCB	TextureGetSurf;
-  /* now why did MS create CALLBACKS2 and CALLBACKS3 structures if
-   * all these reserved fields were available? we may never know */
-  LPVOID			lpReserved12;
-  LPVOID			lpReserved13;
-  LPVOID			lpReserved14;
-  LPVOID			lpReserved15;
-  LPVOID			lpReserved16;
-  LPVOID			lpReserved17;
-  LPVOID			lpReserved18;
-  LPVOID			lpReserved19;
-  LPVOID			lpReserved20;
-  LPVOID			lpReserved21;
-  LPD3DHAL_GETSTATECB		GetState;
-  DWORD				dwReserved0;
-  DWORD				dwReserved1;
-  DWORD				dwReserved2;
-  DWORD				dwReserved3;
-  DWORD				dwReserved4;
-  DWORD				dwReserved5;
-  DWORD				dwReserved6;
-  DWORD				dwReserved7;
-  DWORD				dwReserved8;
-  DWORD				dwReserved9;
-} D3DHAL_CALLBACKS,*LPD3DHAL_CALLBACKS;
-
-typedef struct _D3DHAL_SETRENDERTARGETDATA		*LPD3DHAL_SETRENDERTARGETDATA;
-typedef struct _D3DHAL_CLEARDATA			*LPD3DHAL_CLEARDATA;
-typedef struct _D3DHAL_DRAWONEPRIMITIVEDATA		*LPD3DHAL_DRAWONEPRIMITIVEDATA;
-typedef struct _D3DHAL_DRAWONEINDEXEDPRIMITIVEDATA	*LPD3DHAL_DRAWONEINDEXEDPRIMITIVEDATA;
-typedef struct _D3DHAL_DRAWPRIMITIVESDATA		*LPD3DHAL_DRAWPRIMITIVESDATA;
-
-typedef DWORD (PASCAL *LPD3DHAL_SETRENDERTARGETCB)	  (LPD3DHAL_SETRENDERTARGETDATA);
-typedef DWORD (PASCAL *LPD3DHAL_CLEARCB)		  (LPD3DHAL_CLEARDATA);
-typedef DWORD (PASCAL *LPD3DHAL_DRAWONEPRIMITIVECB)	  (LPD3DHAL_DRAWONEPRIMITIVEDATA);
-typedef DWORD (PASCAL *LPD3DHAL_DRAWONEINDEXEDPRIMITIVECB)(LPD3DHAL_DRAWONEINDEXEDPRIMITIVEDATA);
-typedef DWORD (PASCAL *LPD3DHAL_DRAWPRIMITIVESCB)	  (LPD3DHAL_DRAWPRIMITIVESDATA);
-
-typedef struct _D3DHAL_CALLBACKS2 {
-  DWORD					dwSize;
-  DWORD					dwFlags;
-  LPD3DHAL_SETRENDERTARGETCB		SetRenderTarget;
-  LPD3DHAL_CLEARCB			Clear;
-  LPD3DHAL_DRAWONEPRIMITIVECB		DrawOnePrimitive;
-  LPD3DHAL_DRAWONEINDEXEDPRIMITIVECB	DrawOneIndexedPrimitive;
-  LPD3DHAL_DRAWPRIMITIVESCB		DrawPrimitives;
-} D3DHAL_CALLBACKS2,*LPD3DHAL_CALLBACKS2;
-
-typedef struct _D3DHAL_CLEAR2DATA			*LPD3DHAL_CLEAR2DATA;
-typedef struct _D3DHAL_VALIDATETEXTURESTAGESTATEDATA	*LPD3DHAL_VALIDATETEXTURESTAGESTATEDATA;
-typedef struct _D3DHAL_DRAWPRIMITIVES2DATA		*LPD3DHAL_DRAWPRIMITIVES2DATA;
-
-typedef DWORD (PASCAL *LPD3DHAL_CLEAR2CB)		  (LPD3DHAL_CLEAR2DATA);
-typedef DWORD (PASCAL *LPD3DHAL_VALIDATETEXTURESTAGESTATECB)(LPD3DHAL_VALIDATETEXTURESTAGESTATEDATA);
-typedef DWORD (PASCAL *LPD3DHAL_DRAWPRIMITIVES2CB)	  (LPD3DHAL_DRAWPRIMITIVES2DATA);
-
-typedef struct _D3DHAL_CALLBACKS3 {
-  DWORD					dwSize;
-  DWORD					dwFlags;
-  LPD3DHAL_CLEAR2CB			Clear2;
-  LPVOID				lpvReserved;
-  LPD3DHAL_VALIDATETEXTURESTAGESTATECB	ValidateTextureStageState;
-  LPD3DHAL_DRAWPRIMITIVES2CB		DrawPrimitives2;
-} D3DHAL_CALLBACKS3,*LPD3DHAL_CALLBACKS3;
-
-/*****************************************************************************
- * parameter structures
- */
-typedef struct _D3DHAL_CONTEXTCREATEDATA {
-  union {
-    LPDDRAWI_DIRECTDRAW_GBL	lpDDGbl; /* pre-DirectX 7 */
-    LPDDRAWI_DIRECTDRAW_LCL	lpDDLcl; /* DirectX 7 */
-  } DUMMYUNIONNAME1;
-  union {
-    LPDIRECTDRAWSURFACE		lpDDS;
-    LPDDRAWI_DDRAWSURFACE_LCL	lpDDSLcl; /* DirectX 7 */
-  } DUMMYUNIONNAME2;
-  union {
-    LPDIRECTDRAWSURFACE		lpDDSZ;
-    LPDDRAWI_DDRAWSURFACE_LCL	lpDDSZLcl; /* DirectX 7 */
-  } DUMMYUNIONNAME3;
-  union {
-    DWORD			dwPID;
-    ULONG_PTR			dwrstates;
-  } DUMMYUNIONNAME4;
-  ULONG_PTR			dwhContext;
-  HRESULT			ddrval;
-} D3DHAL_CONTEXTCREATEDATA;
-
-typedef struct _D3DHAL_CONTEXTDESTROYDATA {
-  ULONG_PTR			dwhContext;
-  HRESULT			ddrval;
-} D3DHAL_CONTEXTDESTROYDATA;
-
-typedef struct _D3DHAL_CONTEXTDESTROYALLDATA {
-  DWORD				dwPID;
-  HRESULT			ddrval;
-} D3DHAL_CONTEXTDESTROYALLDATA;
-
-typedef struct _D3DHAL_SCENECAPTUREDATA {
-  ULONG_PTR			dwhContext;
-  DWORD				dwFlag;
-  HRESULT			ddrval;
-} D3DHAL_SCENECAPTUREDATA;
-
-#define D3DHAL_SCENE_CAPTURE_START	0x00000000
-#define D3DHAL_SCENE_CAPTURE_END	0x00000001
-
-typedef struct _D3DHAL_SETRENDERTARGETDATA {
-  ULONG_PTR			dwhContext;
-  union {
-    LPDIRECTDRAWSURFACE		lpDDS;
-    LPDDRAWI_DDRAWSURFACE_LCL	lpDDSLcl;
-  } DUMMYUNIONNAME1;
-  union {
-    LPDIRECTDRAWSURFACE		lpDDSZ;
-    LPDDRAWI_DDRAWSURFACE_LCL	lpDDSZLcl;
-  } DUMMYUNIONNAME2;
-  HRESULT			ddrval;
-} D3DHAL_SETRENDERTARGETDATA;
-
-typedef struct _D3DHAL_DRAWPRIMITIVES2DATA {
-  ULONG_PTR			dwhContext;
-  DWORD				dwFlags;
-  DWORD				dwVertexType;
-  LPDDRAWI_DDRAWSURFACE_LCL	lpDDCommands;
-  DWORD				dwCommandOffset;
-  DWORD				dwCommandLength;
-  union {
-    LPDDRAWI_DDRAWSURFACE_LCL	lpDDVertex;
-    LPVOID			lpVertices;
-  } DUMMYUNIONNAME1;
-  DWORD				dwVertexOffset;
-  DWORD				dwVertexLength;
-  DWORD				dwReqVertexBufSize;
-  DWORD				dwReqCommandBufSize;
-  LPDWORD			lpdwRStates;
-  union {
-    DWORD			dwVertexSize;
-    HRESULT			ddrval;
-  } DUMMYUNIONNAME2;
-  DWORD				dwErrorOffset;
-} D3DHAL_DRAWPRIMITIVES2DATA;
-
-#define D3DHALDP2_USERMEMVERTICES	0x00000001
-#define D3DHALDP2_EXECUTEBUFFER		0x00000002
-#define D3DHALDP2_SWAPVERTEXBUFFER	0x00000004
-#define D3DHALDP2_SWAPCOMMANDBUFFER	0x00000008
-#define D3DHALDP2_REQVERTEXBUFSIZE	0x00000010
-#define D3DHALDP2_REQCOMMANDBUFSIZE	0x00000020
-#define D3DHALDP2_VIDMEMVERTEXBUF	0x00000040
-#define D3DHALDP2_VIDMEMCOMMANDBUF	0x00000080
-
-/*****************************************************************************
- * DrawPrimitives2 command structures
- */
-typedef struct _D3DHAL_DP2COMMAND {
-  BYTE bCommand;
-  BYTE bReserved;
-  union {
-    WORD wPrimitiveCount;
-    WORD wStateCount;
-  } DUMMYUNIONNAME;
-} D3DHAL_DP2COMMAND,*LPD3DHAL_DP2COMMAND;
-
-typedef enum _D3DHAL_DP2OPERATION {
-  D3DDP2OP_POINTS		= 1,
-  D3DDP2OP_INDEXEDLINELIST	= 2,
-  D3DDP2OP_INDEXEDTRIANGLELIST	= 3,
-  D3DDP2OP_RESERVED0		= 4,
-  D3DDP2OP_RENDERSTATE		= 8,
-  D3DDP2OP_LINELIST		= 15,
-  D3DDP2OP_LINESTRIP		= 16,
-  D3DDP2OP_INDEXEDLINESTRIP	= 17,
-  D3DDP2OP_TRIANGLELIST		= 18,
-  D3DDP2OP_TRIANGLESTRIP	= 19,
-  D3DDP2OP_INDEXEDTRIANGLESTRIP	= 20,
-  D3DDP2OP_TRIANGLEFAN		= 21,
-  D3DDP2OP_INDEXEDTRIANGLEFAN	= 22,
-  D3DDP2OP_TRIANGLEFAN_IMM	= 23,
-  D3DDP2OP_LINELIST_IMM		= 24,
-  D3DDP2OP_TEXTURESTAGESTATE	= 25,
-  D3DDP2OP_INDEXEDTRIANGLELIST2	= 26,
-  D3DDP2OP_INDEXEDLINELIST2	= 27,
-  D3DDP2OP_VIEWPORTINFO		= 28,
-  D3DDP2OP_WINFO		= 29,
-  /* pre-DirectX 7 interfaces */
-  D3DDP2OP_SETPALETTE		= 30,
-  D3DDP2OP_UPDATEPALETTE	= 31,
-  /* DirectX 7 interfaces */
-  D3DDP2OP_ZRANGE		= 32,
-  D3DDP2OP_SETMATERIAL		= 33,
-  D3DDP2OP_SETLIGHT		= 34,
-  D3DDP2OP_CREATELIGHT		= 35,
-  D3DDP2OP_SETTRANSFORM		= 36,
-  D3DDP2OP_EXT			= 37,
-  D3DDP2OP_TEXBLT		= 38,
-  D3DDP2OP_STATESET		= 39,
-  D3DDP2OP_SETPRIORITY		= 40,
-  /* all interfaces */
-  D3DDP2OP_SETRENDERTARGET	= 41,
-  D3DDP2OP_CLEAR		= 42,
-  /* DirectX 7 interfaces */
-  D3DDP2OP_SETTEXLOD		= 43,
-  D3DPP2OP_SETCLIPPLANE		= 44
-} D3DHAL_DP2OPERATION;
-
-/* point primitives */
-
-typedef struct _D3DHAL_POINTS {
-  WORD wCount;
-  WORD wVStart;
-} D3DHAL_DP2POINTS,*LPD3DHAL_DP2POINTS;
-
-/* line primitives */
-
-typedef struct _D3DHAL_DP2STARTVERTEX {
-  WORD wVStart;
-} D3DHAL_DP2STARTVERTEX,*LPD3DHAL_DP2STARTVERTEX;
-
-typedef struct _D3DHAL_DP2LINELIST {
-  WORD wVStart;
-} D3DHAL_DP2LINELIST,*LPD3DHAL_DP2LINELIST;
-
-typedef struct _D3DHAL_DP2INDEXEDLINELIST {
-  WORD wV1;
-  WORD wV2;
-} D3DHAL_DP2INDEXEDLINELIST,*LPD3DHAL_DP2INDEXEDLINELIST;
-
-typedef struct _D3DHAL_DP2LINESTRIP {
-  WORD wVStart;
-} D3DHAL_DP2LINESTRIP,*LPD3DHAL_DP2LINESTRIP;
-
-typedef struct _D3DHAL_DP2INDEXEDLINESTRIP {
-  WORD wV[2];
-} D3DHAL_DP2INDEXEDLINESTRIP,*LPD3DHAL_DP2INDEXEDLINESTRIP;
-
-/* triangle primitives */
-
-typedef struct _D3DHAL_DP2TRIANGLELIST {
-  WORD wVStart;
-} D3DHAL_DP2TRIANGLELIST,*LPD3DHAL_DP2TRIANGLELIST;
-
-typedef struct _D3DHAL_DP2INDEXEDTRIANGLELIST {
-  WORD wV1;
-  WORD wV2;
-  WORD wV3;
-  WORD wFlags;
-} D3DHAL_DP2INDEXEDTRIANGLELIST,*LPD3DHAL_DP2INDEXEDTRIANGLELIST;
-
-typedef struct _D3DHAL_DP2INDEXEDTRIANGLELIST2 {
-  WORD wV1;
-  WORD wV2;
-  WORD wV3;
-} D3DHAL_DP2INDEXEDTRIANGLELIST2,*LPD3DHAL_DP2INDEXEDTRIANGLELIST2;
-
-typedef struct _D3DHAL_DP2TRIANGLESTRIP {
-  WORD wVStart;
-} D3DHAL_DP2TRIANGLESTRIP,*LPD3DHAL_DP2TRIANGLESTRIP;
-
-typedef struct _D3DHAL_DP2INDEXEDTRIANGLESTRIP {
-  WORD wV[3];
-} D3DHAL_DP2INDEXEDTRIANGLESTRIP,*LPD3DHAL_DP2INDEXEDTRIANGLESTRIP;
-
-typedef struct _D3DHAL_DP2TRIANGLEFAN {
-  WORD wVStart;
-} D3DHAL_DP2TRIANGLEFAN,*LPD3DHAL_DP2TRIANGLEFAN;
-
-typedef struct _D3DHAL_DP2INDEXEDTRIANGLEFAN {
-  WORD wV[3];
-} D3DHAL_DP2INDEXEDTRIANGLEFAN,*LPD3DHAL_DP2INDEXEDTRIANGLEFAN;
-
-typedef struct _D3DHAL_DP2TRIANGLEFAN_IMM {
-  DWORD dwEdgeFlags;
-} D3DHAL_DP2TRIANGLEFAN_IMM,*LPD3DHAL_DP2TRIANGLEFAN_IMM;
-
-/* render states */
-typedef struct _D3DHAL_DP2RENDERSTATE {
-  D3DRENDERSTATETYPE	RenderState;
-  union {
-    D3DVALUE dvState;
-    DWORD dwState;
-  } DUMMYUNIONNAME;
-} D3DHAL_DP2RENDERSTATE,*LPD3DHAL_DP2RENDERSTATE;
-
-typedef struct _D3DHAL_DP2TEXTURESTAGESTATE {
-  WORD	wStage;
-  WORD	TSState;
-  DWORD dwValue;
-} D3DHAL_DP2TEXTURESTAGESTATE,*LPD3DHAL_DP2TEXTURESTAGESTATE;
-
-#define D3DTSS_TEXTUREMAP 0
-
-typedef struct _D3DHAL_DP2VIEWPORTINFO {
-  DWORD dwX;
-  DWORD dwY;
-  DWORD dwWidth;
-  DWORD dwHeight;
-} D3DHAL_DP2VIEWPORTINFO,*LPD3DHAL_DP2VIEWPORTINFO;
-
-typedef struct _D3DHAL_DP2WINFO {
-  D3DVALUE dwWNear;
-  D3DVALUE dwWFar;
-} D3DHAL_DP2WINFO,*LPD3DHAL_DP2WINFO;
-
-typedef struct _D3DHAL_DP2SETPALETTE {
-  DWORD dwPaletteHandle;
-  DWORD dwPaletteFlags;
-  DWORD dwSurfaceHandle;
-} D3DHAL_DP2SETPALETTE,*LPD3DHAL_DP2SETPALETTE;
-
-typedef struct _D3DHAL_DP2UPDATEPALETTE {
-  DWORD dwPaletteHandle;
-  WORD	wStartIndex;
-  WORD	wNumEntries;
-} D3DHAL_DP2UPDATEPALETTE,*LPD3DHAL_DP2UPDATEPALETTE;
-
-typedef struct _D3DHAL_DP2ZRANGE {
-  D3DVALUE dvMinZ;
-  D3DVALUE dvMaxZ;
-} D3DHAL_DP2ZRANGE,*LPD3DHAL_DP2ZRANGE;
-
-typedef D3DMATERIAL7 D3DHAL_DP2SETMATERIAL,*LPD3DHAL_DP2SETMATERIAL;
-
-typedef struct _D3DHAL_DP2SETLIGHT {
-  DWORD dwIndex;
-  DWORD dwDataType;
-} D3DHAL_DP2SETLIGHT,*LPD3DHAL_DP2SETLIGHT;
-
-#define D3DHAL_SETLIGHT_ENABLE	0
-#define D3DHAL_SETLIGHT_DISABLE	1
-#define D3DHAL_SETLIGHT_DATA	2
-
-typedef struct _D3DHAL_DP2CREATELIGHT {
-  DWORD dwIndex;
-} D3DHAL_DP2CREATELIGHT,*LPD3DHAL_DP2CREATELIGHT;
-
-typedef struct _D3DHAL_DP2SETTRANSFORM {
-  D3DTRANSFORMSTATETYPE	xfrmType;
-  D3DMATRIX		matrix;
-} D3DHAL_DP2SETTRANSFORM,*LPD3DHAL_DP2SETTRANSFORM;
-
-typedef struct _D3DHAL_DP2TEXBLT {
-  DWORD dwDDDestSurface;
-  DWORD dwDDSrcSurface;
-  POINT pDest;
-  RECTL rSrc;
-  DWORD dwFlags;
-} D3DHAL_DP2TEXBLT,*LPD3DHAL_DP2TEXBLT;
-
-typedef struct _D3DHAL_DP2STATESET {
-  DWORD               dwOperation;
-  DWORD               dwParam;
-  D3DSTATEBLOCKTYPE   sbType;
-} D3DHAL_DP2STATESET,*LPD3DHAL_DP2STATESET;
-
-#define D3DHAL_STATESETBEGIN	0
-#define D3DHAL_STATESETEND	1
-#define D3DHAL_STATESETDELETE	2
-#define D3DHAL_STATESETEXECUTE	3
-#define D3DHAL_STATESETCAPTURE	4
-
-typedef struct _D3DHAL_DP2SETPRIORITY {
-  DWORD dwDDSurface;
-  DWORD dwPriority;
-} D3DHAL_DP2SETPRIORITY,*LPD3DHAL_DP2SETPRIORITY;
-
-typedef struct _D3DHAL_DP2SETRENDERTARGET {
-  DWORD hRenderTarget;
-  DWORD hZBuffer;
-} D3DHAL_DP2SETRENDERTARGET,*LPD3DHAL_DP2SETRENDERTARGET;
-
-typedef struct _D3DHAL_DP2CLEAR {
-  DWORD		dwFlags;
-  DWORD		dwFillColor;
-  D3DVALUE	dvFillDepth;
-  DWORD		dwFillStencil;
-  RECT		Rects[1];
-} D3DHAL_DP2CLEAR,*LPD3DHAL_DP2CLEAR;
-
-typedef struct _D3DHAL_DP2SETTEXLOD {
-  DWORD dwDDSurface;
-  DWORD dwLOD;
-} D3DHAL_DP2SETTEXLOD,*LPD3DHAL_DP2SETTEXLOD;
-
-typedef struct _D3DHAL_VALIDATETEXTURESTAGESTATEDATA
-{
-    ULONG_PTR           dwhContext;
-    DWORD           dwFlags;
-    DWORD           dwReserved;
-    DWORD           dwNumPasses;
-    HRESULT         ddrval;
-} D3DHAL_VALIDATETEXTURESTAGESTATEDATA;
-
-#ifdef __cplusplus
-} /* extern "C" */
-#endif
-
-#endif /* __WINE_DDRAWI_H */

Deleted: trunk/reactos/include/ddk/d3dnthal.h
--- trunk/reactos/include/ddk/d3dnthal.h	2005-06-28 20:30:26 UTC (rev 16312)
+++ trunk/reactos/include/ddk/d3dnthal.h	2005-06-28 21:01:50 UTC (rev 16313)
@@ -1,72 +0,0 @@
-/* 
- * Direct3D NT driver interface
- */
-
-#ifndef __DDK_D3DNTHAL_H
-#define __DDK_D3DNTHAL_H
-
-#include <ddk/ddrawint.h>
-#include <d3dtypes.h>
-#include <d3dcaps.h>
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-DEFINE_GUID(GUID_D3DCallbacks,                   0x7BF06990, 0x8794, 0x11D0, 0x91, 0x39, 0x08, 0x00, 0x36, 0xD2, 0xEF, 0x02);
-DEFINE_GUID(GUID_D3DCallbacks3,                  0xDDF41230, 0xEC0A, 0x11D0, 0xA9, 0xB6, 0x00, 0xAA, 0x00, 0xC0, 0x99, 0x3E);
-DEFINE_GUID(GUID_D3DExtendedCaps,                0x7DE41F80, 0x9D93, 0x11D0, 0x89, 0xAB, 0x00, 0xA0, 0xC9, 0x05, 0x41, 0x29);
-DEFINE_GUID(GUID_D3DParseUnknownCommandCallback, 0x2E04FFA0, 0x98E4, 0x11D1, 0x8C, 0xE1, 0x00, 0xA0, 0xC9, 0x06, 0x29, 0xA8);
-DEFINE_GUID(GUID_ZPixelFormats,                  0x93869880, 0x36CF, 0x11D1, 0x9B, 0x1B, 0x00, 0xAA, 0x00, 0xBB, 0xB8, 0xAE);
-DEFINE_GUID(GUID_DDStereoMode,                   0xF828169C, 0xA8E8, 0x11D2, 0xA1, 0xF2, 0x00, 0xA0, 0xC9, 0x83, 0xEA, 0xF6);
-
-typedef struct _D3DNTHAL_CONTEXTCREATEDATA *PD3DNTHAL_CONTEXTCREATEDATA;
-typedef struct _D3DNTHAL_CONTEXTDESTROYDATA *PD3DNTHAL_CONTEXTDESTROYDATA;
-typedef struct _D3DNTHAL_DRAWPRIMITIVES2DATA *PD3DNTHAL_DRAWPRIMITIVES2DATA;
-typedef struct _D3DNTHAL_VALIDATETEXTURESTAGESTATEDATA *PD3DNTHAL_VALIDATETEXTURESTAGESTATEDATA;
-
-/* DIRECT3D object callbacks */
-typedef DWORD (STDCALL *PD3DNTHAL_CONTEXTCREATECB)(PD3DNTHAL_CONTEXTCREATEDATA);
-typedef DWORD (STDCALL *PD3DNTHAL_CONTEXTDESTROYCB)(PD3DNTHAL_CONTEXTDESTROYDATA);
-
-typedef struct _D3DNTHAL_CALLBACKS {
-	DWORD                      dwSize;
-	PD3DNTHAL_CONTEXTCREATECB  ContextCreate;
-	PD3DNTHAL_CONTEXTDESTROYCB ContextDestroy;
-	PVOID                      Reserved[32];
-} D3DNTHAL_CALLBACKS;
-typedef D3DNTHAL_CALLBACKS *PD3DNTHAL_CALLBACKS;
-
-/* Structures to report driver capabilities */
-
-typedef struct _D3DNTHAL_DEVICEDESC {
-	DWORD            dwSize;
-	DWORD            dwFlags;
-	D3DCOLORMODEL    dcmColorModel;
-	DWORD            dwDevCaps;
-	D3DTRANSFORMCAPS dtcTransformCaps;
-	BOOL             bClipping;
-	D3DLIGHTINGCAPS  dlcLightingCaps;
-	D3DPRIMCAPS      dpcLineCaps;
-	D3DPRIMCAPS      dpcTriCaps;
-	DWORD            dwDeviceRenderBitDepth;
-	DWORD            dwDeviceZBufferBitDepth;
-	DWORD            dwMaxBufferSize;
-	DWORD            dwMaxVertexCount;
-} D3DNTHAL_DEVICEDESC, *PD3DNT_HALDEVICEDESC;
-
-typedef struct _D3DNTHAL_GLOBALDRIVERDATA {
-	DWORD               dwSize;
-	D3DNTHAL_DEVICEDESC hwCaps;
-	DWORD               dwNumVertices;
-	DWORD               dwNumClipVertices;
-	DWORD               dwNumTextureFormats;
-	LPDDSURFACEDESC     lpTextureFormats;
-} D3DNTHAL_GLOBALDRIVERDATA, *PD3DNTHAL_GLOBALDRIVERDATA;
-
-
-#ifdef __cplusplus
-} /* extern "C" */
-#endif
-
-#endif /* __DDK_D3DNTHAL_H */

Deleted: trunk/reactos/include/ddk/ddrawi.h
--- trunk/reactos/include/ddk/ddrawi.h	2005-06-28 20:30:26 UTC (rev 16312)
+++ trunk/reactos/include/ddk/ddrawi.h	2005-06-28 21:01:50 UTC (rev 16313)
@@ -1,1331 +0,0 @@
-/*
- * DirectDraw driver interface
- * (DirectX 7 version)
- *
- * Copyright (C) 2001 Ove Kaaven
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
- */
-
-#ifndef __DDRAWI_INCLUDED__
-#define __DDRAWI_INCLUDED__
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-#include <ddraw.h>
-
-#ifndef __DDK_DDRAWINT_H
-typedef struct _DDVIDEOPORTCAPS *LPDDVIDEOPORTCAPS; /* should be in dvp.h */
-typedef struct _DDKERNELCAPS *LPDDKERNELCAPS; /* should be in ddkernel.h */
-typedef struct _VMEMHEAP *LPVMEMHEAP; /* should be in dmemmgr.h */
-#endif
-
-#define DDAPI WINAPI
-
-/* the DirectDraw versions */
-#define DD_VERSION		0x0200 /* compatibility version */
-#define DD_RUNTIME_VERSION	0x0700 /* actual version */
-
-/* the HAL version returned from QUERYESCSUPPORT - DCICOMMAND */
-#define DD_HAL_VERSION	0x0100
-
-/* more DCICOMMAND escapes */
-#define DDCREATEDRIVEROBJECT	10
-#define DDGET32BITDRIVERNAME	11
-#define DDNEWCALLBACKFNS	12
-#define DDVERSIONINFO		13
-
-#define MAX_DRIVER_NAME		CCHDEVICENAME
-
-/*****************************************************************************
- * Initialization stuff
- */
-typedef struct {
-    char szName[260];
-    char szEntryPoint[64];
-    DWORD dwContext;
-} DD32BITDRIVERDATA,*LPDD32BITDRIVERDATA;
-
-typedef struct {
-    DWORD dwHALVersion;
-    ULONG_PTR dwReserved1;
-    ULONG_PTR dwReserved2;
-} DDVERSIONDATA,*LPDDVERSIONDATA;
-
-typedef DWORD (PASCAL *LPDD32BITDRIVERINIT)(DWORD dwContext);
-
-#ifndef __DDK_DDRAWINT_H
-/* pointer to video memory */
-typedef ULONG_PTR FLATPTR;
-#endif
-
-/* predeclare some structures */
-typedef struct _DDHALINFO *LPDDHALINFO;
-typedef struct _DDRAWI_DIRECTDRAW_INT *LPDDRAWI_DIRECTDRAW_INT;
-typedef struct _DDRAWI_DIRECTDRAW_LCL *LPDDRAWI_DIRECTDRAW_LCL;
-typedef struct _DDRAWI_DIRECTDRAW_GBL *LPDDRAWI_DIRECTDRAW_GBL;
-typedef struct _DDRAWI_DDRAWSURFACE_INT *LPDDRAWI_DDRAWSURFACE_INT;
-typedef struct _DDRAWI_DDRAWSURFACE_LCL *LPDDRAWI_DDRAWSURFACE_LCL;
-typedef struct _DDRAWI_DDRAWSURFACE_GBL *LPDDRAWI_DDRAWSURFACE_GBL;
-typedef struct _DDRAWI_DDRAWSURFACE_MORE *LPDDRAWI_DDRAWSURFACE_MORE;
-typedef struct _DDRAWI_DDRAWSURFACE_GBL_MORE *LPDDRAWI_DDRAWSURFACE_GBL_MORE;
-typedef struct _DDRAWI_DDRAWPALETTE_INT *LPDDRAWI_DDRAWPALETTE_INT;
-typedef struct _DDRAWI_DDRAWPALETTE_LCL *LPDDRAWI_DDRAWPALETTE_LCL;
-typedef struct _DDRAWI_DDRAWPALETTE_GBL *LPDDRAWI_DDRAWPALETTE_GBL;
-typedef struct _DDRAWI_DDRAWCLIPPER_INT *LPDDRAWI_DDRAWCLIPPER_INT;
-typedef struct _DDRAWI_DDRAWCLIPPER_LCL *LPDDRAWI_DDRAWCLIPPER_LCL;
-typedef struct _DDRAWI_DDRAWCLIPPER_GBL *LPDDRAWI_DDRAWCLIPPER_GBL;
-typedef struct _DDRAWI_DDVIDEOPORT_INT *LPDDRAWI_DDVIDEOPORT_INT;
-typedef struct _DDRAWI_DDVIDEOPORT_LCL *LPDDRAWI_DDVIDEOPORT_LCL;
-typedef struct _DDRAWI_DDMOTIONCOMP_INT *LPDDRAWI_DDMOTIONCOMP_INT;
-typedef struct _DDRAWI_DDMOTIONCOMP_LCL *LPDDRAWI_DDMOTIONCOMP_LCL;
-
-/*****************************************************************************
- * driver->ddraw callbacks
- */
-typedef BOOL    (DDAPI *LPDDHAL_SETINFO)(LPDDHALINFO lpDDHalInfo, BOOL reset);
-typedef FLATPTR (DDAPI *LPDDHAL_VIDMEMALLOC)(LPDDRAWI_DIRECTDRAW_GBL lpDD, int heap, DWORD dwWidth, DWORD dwHeight);
-typedef void    (DDAPI *LPDDHAL_VIDMEMFREE)(LPDDRAWI_DIRECTDRAW_GBL lpDD, int heap, FLATPTR fpMem);
-
-typedef struct {
-    DWORD		dwSize;
-    LPDDHAL_SETINFO	lpSetInfo;
-    LPDDHAL_VIDMEMALLOC	lpVidMemAlloc;
-    LPDDHAL_VIDMEMFREE	lpVidMemFree;
-} DDHALDDRAWFNS,*LPDDHALDDRAWFNS;
-
-/*****************************************************************************
- * mode info structure
- */
-typedef struct _DDHALMODEINFO {
-    DWORD	dwWidth;
-    DWORD	dwHeight;
-    LONG	lPitch;
-    DWORD	dwBPP;
-    WORD	wFlags;
-    WORD	wRefreshRate;
-    DWORD	dwRBitMask;
-    DWORD	dwGBitMask;
-    DWORD	dwBBitMask;
-    DWORD	dwAlphaBitMask;
-} DDHALMODEINFO,*LPDDHALMODEINFO;
-
-#define DDMODEINFO_PALETTIZED	0x0001
-#define DDMODEINFO_MODEX	0x0002
-#define DDMODEINFO_UNSUPPORTED	0x0004
-#define DDMODEINFO_STANDARDVGA	0x0008
-#define DDMODEINFO_MAXREFRESH	0x0010
-#define DDMODEINFO_STEREO	0x0020
-
-/*****************************************************************************
- * video memory info structure
- */
-typedef struct _VIDMEM {
-    DWORD	dwFlags;
-    FLATPTR	fpStart;
-    union {
-	FLATPTR		fpEnd;
-	DWORD		dwWidth;
-    } DUMMYUNIONNAME1;
-    DDSCAPS	ddsCaps;
-    DDSCAPS	ddsCapsAlt;
-    union {
-	LPVMEMHEAP	lpHeap;
-	DWORD		dwHeight;
-    } DUMMYUNIONNAME2;
-} VIDMEM,*LPVIDMEM;
-
-#ifndef __DDK_DDRAWINT_H
-#define VIDMEM_ISLINEAR		0x00000001
-#define VIDMEM_ISRECTANGULAR	0x00000002
-#define VIDMEM_ISHEAP		0x00000004
-#define VIDMEM_ISNONLOCAL	0x00000008
-#define VIDMEM_ISWC		0x00000010
-#define VIDMEM_ISDISABLED	0x00000020
-#endif
-
-typedef struct _VIDMEMINFO {
-    FLATPTR		fpPrimary;
-    DWORD		dwFlags;
-    DWORD		dwDisplayWidth;
-    DWORD		dwDisplayHeight;
-    LONG		lDisplayPitch;
-    DDPIXELFORMAT	ddpfDisplay;
-    DWORD		dwOffscreenAlign;
-    DWORD		dwOverlayAlign;
-    DWORD		dwTextureAlign;
-    DWORD		dwZBufferAlign;
-    DWORD		dwAlphaAlign;
-    DWORD		dwNumHeaps;
-    LPVIDMEM		pvmList;
-} VIDMEMINFO,*LPVIDMEMINFO;
-
-typedef struct _HEAPALIAS {
-    FLATPTR	fpVidMem;
-    LPVOID	lpAlias;
-    DWORD	dwAliasSize;
-} HEAPALIAS,*LPHEAPALIAS;
-
-typedef struct _HEAPALIASINFO {
-    DWORD	dwRefCnt;
-    DWORD	dwFlags;
-    DWORD	dwNumHeaps;
-    LPHEAPALIAS	lpAliases;
-} HEAPALIASINFO,*LPHEAPALIASINFO;
-
-#define HEAPALIASINFO_MAPPEDREAL	0x00000001
-#define HEAPALIASINFO_MAPPEDDUMMY	0x00000002
-
-/*****************************************************************************
- * capabilities structures
- */
-typedef struct _DDCORECAPS {
-    DWORD	dwSize;
-    DWORD	dwCaps;
-    DWORD	dwCaps2;
-    DWORD	dwCKeyCaps;
-    DWORD	dwFXCaps;
-    DWORD	dwFXAlphaCaps;
-    DWORD	dwPalCaps;
-    DWORD	dwSVCaps;
-    DWORD	dwAlphaBltConstBitDepths;
-    DWORD	dwAlphaBltPixelBitDepths;
-    DWORD	dwAlphaBltSurfaceBitDepths;
-    DWORD	dwAlphaOverlayConstBitDepths;
-    DWORD	dwAlphaOverlayPixelBitDepths;
-    DWORD	dwAlphaOverlaySurfaceBitDepths;
-    DWORD	dwZBufferBitDepths;
-    DWORD	dwVidMemTotal;
-    DWORD	dwVidMemFree;
-    DWORD	dwMaxVisibleOverlays;
-    DWORD	dwCurrVisibleOverlays;
-    DWORD	dwNumFourCCCodes;
-    DWORD	dwAlignBoundarySrc;
-    DWORD	dwAlignSizeSrc;
-    DWORD	dwAlignBoundaryDest;
-    DWORD	dwAlignSizeDest;
-    DWORD	dwAlignStrideAlign;
-    DWORD	dwRops[DD_ROP_SPACE];
-    DDSCAPS	ddsCaps;
-    DWORD	dwMinOverlayStretch;
-    DWORD	dwMaxOverlayStretch;
-    DWORD	dwMinLiveVideoStretch;
-    DWORD	dwMaxLiveVideoStretch;
-    DWORD	dwMinHwCodecStretch;
-    DWORD	dwMaxHwCodecStretch;
-    DWORD	dwReserved1;
-    DWORD	dwReserved2;
-    DWORD	dwReserved3;
-    DWORD	dwSVBCaps;
-    DWORD	dwSVBCKeyCaps;
-    DWORD	dwSVBFXCaps;
-    DWORD	dwSVBRops[DD_ROP_SPACE];
-    DWORD	dwVSBCaps;
-    DWORD	dwVSBCKeyCaps;
-    DWORD	dwVSBFXCaps;
-    DWORD	dwVSBRops[DD_ROP_SPACE];
-    DWORD	dwSSBCaps;
-    DWORD	dwSSBCKeyCaps;
-    DWORD	dwSSBFXCaps;
-    DWORD	dwSSBRops[DD_ROP_SPACE];
-    DWORD	dwMaxVideoPorts;
-    DWORD	dwCurrVideoPorts;
-    DWORD	dwSVBCaps2;
-} DDCORECAPS,*LPDDCORECAPS;
-
-typedef struct _DDNONLOCALVIDMEMCAPS {
-    DWORD	dwSize;
-    DWORD	dwNLVBCaps;
-    DWORD	dwNLVBCaps2;
-    DWORD	dwNLVBCKeyCaps;
-    DWORD	dwNLVBFXCaps;
-    DWORD	dwNLVBRops[DD_ROP_SPACE];
-} DDNONLOCALVIDMEMCAPS,*LPDDNONLOCALVIDMEMCAPS;
-
-#define DDSCAPS_EXECUTEBUFFER	DDSCAPS_RESERVED2
-#define DDSCAPS2_VERTEXBUFFER	DDSCAPS2_RESERVED1
-#define DDSCAPS2_COMMANDBUFFER	DDSCAPS2_RESERVED2
-
-/*****************************************************************************
- * ddraw->driver callbacks
- */
-#define DDHAL_DRIVER_NOTHANDLED	0
-#define DDHAL_DRIVER_HANDLED	1
-#define DDHAL_DRIVER_NOCKEYHW	2
-
-typedef struct _DDHAL_DESTROYDRIVERDATA		*LPDDHAL_DESTROYDRIVERDATA;
-typedef struct _DDHAL_CREATESURFACEDATA		*LPDDHAL_CREATESURFACEDATA;
-typedef struct _DDHAL_DRVSETCOLORKEYDATA	*LPDDHAL_DRVSETCOLORKEYDATA;
-typedef struct _DDHAL_SETMODEDATA		*LPDDHAL_SETMODEDATA;
-typedef struct _DDHAL_WAITFORVERTICALBLANKDATA	*LPDDHAL_WAITFORVERTICALBLANKDATA;
-typedef struct _DDHAL_CANCREATESURFACEDATA	*LPDDHAL_CANCREATESURFACEDATA;
-typedef struct _DDHAL_CREATEPALETTEDATA		*LPDDHAL_CREATEPALETTEDATA;
-typedef struct _DDHAL_GETSCANLINEDATA		*LPDDHAL_GETSCANLINEDATA;
-typedef struct _DDHAL_SETEXCLUSIVEMODEDATA	*LPDDHAL_SETEXCLUSIVEMODEDATA;
-typedef struct _DDHAL_FLIPTOGDISURFACEDATA	*LPDDHAL_FLIPTOGDISURFACEDATA;
-
-typedef DWORD (PASCAL *LPDDHAL_DESTROYDRIVER)	    (LPDDHAL_DESTROYDRIVERDATA);
-typedef DWORD (PASCAL *LPDDHAL_CREATESURFACE)	    (LPDDHAL_CREATESURFACEDATA);
-typedef DWORD (PASCAL *LPDDHAL_SETCOLORKEY)	    (LPDDHAL_DRVSETCOLORKEYDATA);
-typedef DWORD (PASCAL *LPDDHAL_SETMODE)		    (LPDDHAL_SETMODEDATA);
-typedef DWORD (PASCAL *LPDDHAL_WAITFORVERTICALBLANK)(LPDDHAL_WAITFORVERTICALBLANKDATA);
-typedef DWORD (PASCAL *LPDDHAL_CANCREATESURFACE)    (LPDDHAL_CANCREATESURFACEDATA );
-typedef DWORD (PASCAL *LPDDHAL_CREATEPALETTE)	    (LPDDHAL_CREATEPALETTEDATA);
-typedef DWORD (PASCAL *LPDDHAL_GETSCANLINE)	    (LPDDHAL_GETSCANLINEDATA);
-typedef DWORD (PASCAL *LPDDHAL_SETEXCLUSIVEMODE)    (LPDDHAL_SETEXCLUSIVEMODEDATA);
-typedef DWORD (PASCAL *LPDDHAL_FLIPTOGDISURFACE)    (LPDDHAL_FLIPTOGDISURFACEDATA);
-
-typedef struct _DDHAL_DDCALLBACKS {
-    DWORD				dwSize;
-    DWORD				dwFlags;
-    LPDDHAL_DESTROYDRIVER		DestroyDriver;
-    LPDDHAL_CREATESURFACE		CreateSurface;
-    LPDDHAL_SETCOLORKEY			SetColorKey;
-    LPDDHAL_SETMODE			SetMode;
-    LPDDHAL_WAITFORVERTICALBLANK	WaitForVerticalBlank;
-    LPDDHAL_CANCREATESURFACE		CanCreateSurface;
-    LPDDHAL_CREATEPALETTE		CreatePalette;
-    LPDDHAL_GETSCANLINE			GetScanLine;
-    /* DirectX 2 */
-    LPDDHAL_SETEXCLUSIVEMODE		SetExclusiveMode;
-    LPDDHAL_FLIPTOGDISURFACE		FlipToGDISurface;
-} DDHAL_DDCALLBACKS,*LPDDHAL_DDCALLBACKS;
-
-typedef struct _DDHAL_DESTROYSURFACEDATA	*LPDDHAL_DESTROYSURFACEDATA;
-typedef struct _DDHAL_FLIPDATA			*LPDDHAL_FLIPDATA;
-typedef struct _DDHAL_SETCLIPLISTDATA		*LPDDHAL_SETCLIPLISTDATA;
-typedef struct _DDHAL_LOCKDATA			*LPDDHAL_LOCKDATA;
-typedef struct _DDHAL_UNLOCKDATA		*LPDDHAL_UNLOCKDATA;
-typedef struct _DDHAL_BLTDATA			*LPDDHAL_BLTDATA;
-typedef struct _DDHAL_SETCOLORKEYDATA		*LPDDHAL_SETCOLORKEYDATA;
-typedef struct _DDHAL_ADDATTACHEDSURFACEDATA	*LPDDHAL_ADDATTACHEDSURFACEDATA;
-typedef struct _DDHAL_GETBLTSTATUSDATA		*LPDDHAL_GETBLTSTATUSDATA;
-typedef struct _DDHAL_GETFLIPSTATUSDATA		*LPDDHAL_GETFLIPSTATUSDATA;
-typedef struct _DDHAL_UPDATEOVERLAYDATA		*LPDDHAL_UPDATEOVERLAYDATA;
-typedef struct _DDHAL_SETOVERLAYPOSITIONDATA	*LPDDHAL_SETOVERLAYPOSITIONDATA;
-typedef struct _DDHAL_SETPALETTEDATA		*LPDDHAL_SETPALETTEDATA;
-
-typedef DWORD (PASCAL *LPDDHALSURFCB_DESTROYSURFACE)	(LPDDHAL_DESTROYSURFACEDATA);
-typedef DWORD (PASCAL *LPDDHALSURFCB_FLIP)		(LPDDHAL_FLIPDATA);
-typedef DWORD (PASCAL *LPDDHALSURFCB_SETCLIPLIST)	(LPDDHAL_SETCLIPLISTDATA);
-typedef DWORD (PASCAL *LPDDHALSURFCB_LOCK)		(LPDDHAL_LOCKDATA);
-typedef DWORD (PASCAL *LPDDHALSURFCB_UNLOCK)		(LPDDHAL_UNLOCKDATA);
-typedef DWORD (PASCAL *LPDDHALSURFCB_BLT)		(LPDDHAL_BLTDATA);
-typedef DWORD (PASCAL *LPDDHALSURFCB_SETCOLORKEY)	(LPDDHAL_SETCOLORKEYDATA);
-typedef DWORD (PASCAL *LPDDHALSURFCB_ADDATTACHEDSURFACE)(LPDDHAL_ADDATTACHEDSURFACEDATA);
-typedef DWORD (PASCAL *LPDDHALSURFCB_GETBLTSTATUS)	(LPDDHAL_GETBLTSTATUSDATA);
-typedef DWORD (PASCAL *LPDDHALSURFCB_GETFLIPSTATUS)	(LPDDHAL_GETFLIPSTATUSDATA);
-typedef DWORD (PASCAL *LPDDHALSURFCB_UPDATEOVERLAY)	(LPDDHAL_UPDATEOVERLAYDATA);
-typedef DWORD (PASCAL *LPDDHALSURFCB_SETOVERLAYPOSITION)(LPDDHAL_SETOVERLAYPOSITIONDATA);
-typedef DWORD (PASCAL *LPDDHALSURFCB_SETPALETTE)	(LPDDHAL_SETPALETTEDATA);
-
-typedef struct _DDHAL_DDSURFACECALLBACKS {
-    DWORD				dwSize;
-    DWORD				dwFlags;
-    LPDDHALSURFCB_DESTROYSURFACE	DestroySurface;
-    LPDDHALSURFCB_FLIP			Flip;
-    LPDDHALSURFCB_SETCLIPLIST		SetClipList;
-    LPDDHALSURFCB_LOCK			Lock;
-    LPDDHALSURFCB_UNLOCK		Unlock;
-    LPDDHALSURFCB_BLT			Blt;
-    LPDDHALSURFCB_SETCOLORKEY		SetColorKey;
-    LPDDHALSURFCB_ADDATTACHEDSURFACE	AddAttachedSurface;
-    LPDDHALSURFCB_GETBLTSTATUS		GetBltStatus;
-    LPDDHALSURFCB_GETFLIPSTATUS		GetFlipStatus;
-    LPDDHALSURFCB_UPDATEOVERLAY		UpdateOverlay;
-    LPDDHALSURFCB_SETOVERLAYPOSITION	SetOverlayPosition;
-    LPVOID				reserved4;
-    LPDDHALSURFCB_SETPALETTE		SetPalette;
-} DDHAL_DDSURFACECALLBACKS,*LPDDHAL_DDSURFACECALLBACKS;
-
-typedef struct _DDHAL_DESTROYPALETTEDATA	*LPDDHAL_DESTROYPALETTEDATA;
-typedef struct _DDHAL_SETENTRIESDATA		*LPDDHAL_SETENTRIESDATA;
-
-typedef DWORD (PASCAL *LPDDHALPALCB_DESTROYPALETTE)(LPDDHAL_DESTROYPALETTEDATA);
-typedef DWORD (PASCAL *LPDDHALPALCB_SETENTRIES)    (LPDDHAL_SETENTRIESDATA);
-
-typedef struct _DDHAL_DDPALETTECALLBACKS {
-    DWORD				dwSize;
-    DWORD				dwFlags;
-    LPDDHALPALCB_DESTROYPALETTE		DestroyPalette;
-    LPDDHALPALCB_SETENTRIES		SetEntries;
-} DDHAL_DDPALETTECALLBACKS,*LPDDHAL_DDPALETTECALLBACKS;
-
-typedef DWORD (PASCAL *LPDDHALEXEBUFCB_CANCREATEEXEBUF)(LPDDHAL_CANCREATESURFACEDATA);
-typedef DWORD (PASCAL *LPDDHALEXEBUFCB_CREATEEXEBUF)   (LPDDHAL_CREATESURFACEDATA);
-typedef DWORD (PASCAL *LPDDHALEXEBUFCB_DESTROYEXEBUF)  (LPDDHAL_DESTROYSURFACEDATA);
-typedef DWORD (PASCAL *LPDDHALEXEBUFCB_LOCKEXEBUF)     (LPDDHAL_LOCKDATA);
-typedef DWORD (PASCAL *LPDDHALEXEBUFCB_UNLOCKEXEBUF)   (LPDDHAL_UNLOCKDATA);
-
-typedef struct _DDHAL_DDEXEBUFCALLBACKS {
-    DWORD				dwSize;
-    DWORD				dwFlags;
-    LPDDHALEXEBUFCB_CANCREATEEXEBUF	CanCreateExecuteBuffer;
-    LPDDHALEXEBUFCB_CREATEEXEBUF	CreateExecuteBuffer;
[truncated at 1000 lines; 2183 more skipped]