- Merge from trunk up to r45543
[reactos.git] / dll / win32 / gdi32 / misc / historic.c
1 /* $Id: stubs.c 28709 2007-08-31 15:09:51Z greatlrd $
2 *
3 * reactos/lib/gdi32/misc/historic.c
4 *
5 * GDI32.DLL Stubs
6 *
7 * Api that does basic nothing, but is here for backwords compatible with older windows
8 *
9 */
10
11 #include "precomp.h"
12 #include <ddraw.h>
13 #include <ddrawi.h>
14 #include <ddrawint.h>
15 #include <ddrawgdi.h>
16 #include <ntgdi.h>
17 #include <d3dhal.h>
18
19 /*
20 * @implemented
21 */
22 BOOL
23 WINAPI
24 EngQueryEMFInfo(HDEV hdev,
25 EMFINFO *pEMFInfo)
26 {
27 return FALSE;
28 }
29
30 /*
31 * @implemented
32 */
33 BOOL
34 WINAPI
35 GdiPlayDCScript(DWORD a0,
36 DWORD a1,
37 DWORD a2,
38 DWORD a3,
39 DWORD a4,
40 DWORD a5)
41 {
42 /* FIXME fix the prototype right */
43 return FALSE;
44 }
45
46 /*
47 * @implemented
48 */
49 BOOL
50 WINAPI
51 GdiPlayJournal(DWORD a0,
52 DWORD a1,
53 DWORD a2,
54 DWORD a3,
55 DWORD a4)
56 {
57 /* FIXME fix the prototype right */
58 return FALSE;
59 }
60
61 /*
62 * @implemented
63 */
64 BOOL
65 WINAPI
66 GdiPlayScript(DWORD a0,
67 DWORD a1,
68 DWORD a2,
69 DWORD a3,
70 DWORD a4,
71 DWORD a5,
72 DWORD a6)
73 {
74 /* FIXME fix the prototype right */
75 return FALSE;
76 }
77
78 /*
79 * @implemented
80 */
81 HBITMAP
82 WINAPI
83 GdiConvertBitmap(HBITMAP hbm)
84 {
85 /* Note Windows 2000/XP/VISTA always returns hbm */
86 return hbm;
87 }
88
89 /*
90 * @implemented
91 */
92 HBRUSH
93 WINAPI
94 GdiConvertBrush(HBRUSH hbr)
95 {
96 /* Note Windows 2000/XP/VISTA always returns hbr */
97 return hbr;
98 }
99
100 /*
101 * @implemented
102 */
103 HDC
104 WINAPI
105 GdiConvertDC(HDC hdc)
106 {
107 /* Note Windows 2000/XP/VISTA always returns hdc */
108 return hdc;
109 }
110
111 /*
112 * @implemented
113 */
114 HFONT
115 WINAPI
116 GdiConvertFont(HFONT hfont)
117 {
118 /* Note Windows 2000/XP/VISTA always returns hfont */
119 return hfont;
120 }
121
122 /*
123 * @implemented
124 */
125 HPALETTE
126 WINAPI
127 GdiConvertPalette(HPALETTE hpal)
128 {
129 /* Note Windows 2000/XP/VISTA always returns hpal */
130 return hpal;
131 }
132
133 /*
134 * @implemented
135 */
136 HRGN
137 WINAPI
138 GdiConvertRegion(HRGN hregion)
139 {
140 /* Note Windows 2000/XP/VISTA always returns hregion */
141 return hregion;
142 }
143
144 /*
145 * @implemented
146 */
147 BOOL
148 WINAPI
149 GdiSetAttrs(HDC hdc)
150 {
151 /* Note Windows 2000/XP/VISTA always returns TRUE */
152 return TRUE;
153 }
154
155 /*
156 * @implemented
157 */
158 BOOL
159 WINAPI
160 GdiDeleteLocalDC(HDC hdc)
161 {
162 /* Note Windows 2000/XP/VISTA always returns TRUE */
163 return TRUE;
164 }
165
166
167 /*
168 * @implemented
169 */
170 VOID
171 WINAPI
172 GdiSetServerAttr(HDC hdc,DWORD attr)
173 {
174 /* it does do nothing */
175 }
176
177
178 /*
179 * @implemented
180 */
181 int
182 WINAPI
183 DeviceCapabilitiesExA(LPCSTR pDevice,
184 LPCSTR pPort,
185 WORD fwCapability,
186 LPSTR pOutput,
187 CONST DEVMODEA *pDevMode)
188 {
189 /* Note Windows 2000/XP/VISTA always returns -1 */
190 return -1;
191 }
192
193 /*
194 * @implemented
195 */
196 int
197 WINAPI
198 DeviceCapabilitiesExW(LPCWSTR pDevice,
199 LPCWSTR pPort,
200 WORD fwCapability,
201 LPWSTR pOutput,
202 CONST DEVMODEW *pDevMode)
203 {
204 /* Note Windows 2000/XP/VISTA always returns -1 */
205 return -1;
206 }
207
208 /*
209 * @implemented
210 */
211 BOOL
212 WINAPI
213 FixBrushOrgEx(HDC hDC,
214 INT nXOrg,
215 INT nYOrg,
216 LPPOINT lpPoint)
217 {
218 /* Note Windows 2000/XP/VISTA always returns FALSE */
219 return FALSE;
220 }
221
222 /*
223 * @implemented
224 *
225 * GDIEntry 16
226 */
227 DWORD
228 WINAPI
229 DdSwapTextureHandles(LPDDRAWI_DIRECTDRAW_LCL pDDraw,
230 LPDDRAWI_DDRAWSURFACE_LCL pDDSLcl1,
231 LPDDRAWI_DDRAWSURFACE_LCL pDDSLcl2)
232 {
233 /* Note Windows 2000/XP/VISTA always returns success */
234 return TRUE;
235 }
236
237 /*
238 * @implemented
239 */
240 BOOL
241 WINAPI
242 GdiReleaseLocalDC(HDC hdc)
243 {
244 /* Note Windows 2000/XP/VISTA always returns TRUE */
245 return TRUE;
246 }
247
248 /*
249 * @implemented
250 */
251 HBRUSH
252 WINAPI
253 SelectBrushLocal(HBRUSH Currenthbm,
254 HBRUSH Newhbm)
255 {
256 return Newhbm;
257 }
258
259 /*
260 * @implemented
261 */
262 HFONT
263 WINAPI
264 SelectFontLocal(HFONT Currenthfnt,
265 HFONT newhfnt)
266 {
267 return newhfnt;
268 }
269
270 /*
271 * @implemented
272 */
273 HBRUSH
274 WINAPI
275 GdiGetLocalBrush(HBRUSH hbr)
276 {
277 return hbr;
278 }
279
280 /*
281 * @implemented
282 */
283 HDC
284 WINAPI
285 GdiGetLocalDC(HDC hdc)
286 {
287 return hdc;
288 }
289
290 /*
291 * @implemented
292 */
293 HFONT
294 WINAPI
295 GdiGetLocalFont(HFONT hfont)
296 {
297 return hfont;
298 }
299