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