adding missing dx headers
[reactos.git] / reactos / w32api / include / ddrawgdi.h
1 /*
2 * DirectDraw GDI32.dll interface definitions
3 * Copyright (C) 2003 ReactOS Team
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
18 */
19
20 #include <d3dhal.h>
21
22 /* Define the real export names */
23 #define DdCreateDirectDrawObject GdiEntry1
24 #define DdQueryDirectDrawObject GdiEntry2
25 #define DdDeleteDirectDrawObject GdiEntry3
26 #define DdCreateSurfaceObject GdiEntry4
27 #define DdDeleteSurfaceObject GdiEntry5
28 #define DdResetVisrgn GdiEntry6
29 #define DdGetDC GdiEntry7
30 #define DdReleaseDC GdiEntry8
31 #define DdCreateDIBSection GdiEntry9
32 #define DdReenableDirectDrawObject GdiEntry10
33 #define DdAttachSurface GdiEntry11
34 #define DdUnattachSurface GdiEntry12
35 #define DdQueryDisplaySettingsUniqueness GdiEntry13
36 #define DdGetDxHandle GdiEntry14
37 #define DdSetGammaRamp GdiEntry15
38 #define DdSwapTextureHandles GdiEntry16
39
40
41 BOOL
42 STDCALL
43 DdCreateDirectDrawObject(
44 LPDDRAWI_DIRECTDRAW_GBL pDirectDrawGlobal,
45 HDC hdc
46 );
47
48 BOOL
49 STDCALL
50 DdQueryDirectDrawObject(
51 LPDDRAWI_DIRECTDRAW_GBL pDirectDrawGlobal,
52 LPDDHALINFO pHalInfo,
53 LPDDHAL_DDCALLBACKS pDDCallbacks,
54 LPDDHAL_DDSURFACECALLBACKS pDDSurfaceCallbacks,
55 LPDDHAL_DDPALETTECALLBACKS pDDPaletteCallbacks,
56 LPD3DHAL_CALLBACKS pD3dCallbacks,
57 LPD3DHAL_GLOBALDRIVERDATA pD3dDriverData,
58 LPDDHAL_DDEXEBUFCALLBACKS pD3dBufferCallbacks,
59 LPDDSURFACEDESC pD3dTextureFormats,
60 LPDWORD pdwFourCC,
61 LPVIDMEM pvmList
62 );
63
64 BOOL
65 STDCALL
66 DdDeleteDirectDrawObject(
67 LPDDRAWI_DIRECTDRAW_GBL pDirectDrawGlobal
68 );
69
70 BOOL
71 STDCALL
72 DdCreateSurfaceObject(
73 LPDDRAWI_DDRAWSURFACE_LCL pSurfaceLocal,
74 BOOL bPrimarySurface
75 );
76
77 BOOL
78 STDCALL
79 DdDeleteSurfaceObject(
80 LPDDRAWI_DDRAWSURFACE_LCL pSurfaceLocal
81 );
82
83 BOOL
84 STDCALL
85 DdResetVisrgn(
86 LPDDRAWI_DDRAWSURFACE_LCL pSurfaceLocal,
87 HWND hWnd
88 );
89
90 HDC
91 STDCALL
92 DdGetDC(
93 LPDDRAWI_DDRAWSURFACE_LCL pSurfaceLocal,
94 LPPALETTEENTRY pColorTable
95 );
96
97 BOOL
98 STDCALL
99 DdReleaseDC(
100 LPDDRAWI_DDRAWSURFACE_LCL pSurfaceLocal
101 );
102
103 HBITMAP
104 STDCALL
105 DdCreateDIBSection(
106 HDC hdc,
107 CONST BITMAPINFO *pbmi,
108 UINT iUsage,
109 VOID **ppvBits,
110 HANDLE hSectionApp,
111 DWORD dwOffset
112 );
113
114 BOOL
115 STDCALL
116 DdReenableDirectDrawObject(
117 LPDDRAWI_DIRECTDRAW_GBL pDirectDrawGlobal,
118 BOOL *pbNewMode
119 );
120
121 BOOL
122 STDCALL
123 DdAttachSurface(
124 LPDDRAWI_DDRAWSURFACE_LCL pSurfaceFrom,
125 LPDDRAWI_DDRAWSURFACE_LCL pSurfaceTo
126 );
127
128 VOID
129 STDCALL
130 DdUnattachSurface(
131 LPDDRAWI_DDRAWSURFACE_LCL pSurface,
132 LPDDRAWI_DDRAWSURFACE_LCL pSurfaceAttached
133 );
134
135 ULONG
136 STDCALL
137 DdQueryDisplaySettingsUniqueness(VOID);
138
139 HANDLE
140 STDCALL
141 DdGetDxHandle(
142 LPDDRAWI_DIRECTDRAW_LCL pDDraw,
143 LPDDRAWI_DDRAWSURFACE_LCL pSurface,
144 BOOL bRelease
145 );
146
147 BOOL
148 STDCALL
149 DdSetGammaRamp(
150 LPDDRAWI_DIRECTDRAW_LCL pDDraw,
151 HDC hdc,
152 LPVOID lpGammaRamp
153 );
154
155 DWORD
156 STDCALL
157 DdSwapTextureHandles(
158 LPDDRAWI_DIRECTDRAW_LCL pDDraw,
159 LPDDRAWI_DDRAWSURFACE_LCL pDDSLcl1,
160 LPDDRAWI_DDRAWSURFACE_LCL pDDSLcl2
161 );