009f353ed9173e566f95699c1e7ad2937aac6c46
[reactos.git] / reactos / dll / win32 / gdi32 / misc / stubsa.c
1 /* $Id$
2 *
3 * reactos/lib/gdi32/misc/stubs.c
4 *
5 * GDI32.DLL Stubs for ANSI functions
6 *
7 * When you implement one of these functions,
8 * remove its stub from this file.
9 *
10 */
11
12 #include "precomp.h"
13
14 #define UNIMPLEMENTED DbgPrint("GDI32: %s is unimplemented, please try again later.\n", __FUNCTION__);
15
16
17 /*
18 * @implemented
19 */
20 int
21 STDCALL
22 DeviceCapabilitiesExA(
23 LPCSTR pDevice,
24 LPCSTR pPort,
25 WORD fwCapability,
26 LPSTR pOutput,
27 CONST DEVMODEA *pDevMode
28 )
29 {
30 /* Note Windows 2000/XP/VISTA always return -1 */
31 return -1;
32 }
33
34
35 /*
36 * @unimplemented
37 */
38 DWORD
39 STDCALL
40 GetCharacterPlacementA(
41 HDC hDc,
42 LPCSTR a1,
43 int a2,
44 int a3,
45 LPGCP_RESULTSA a4,
46 DWORD a5
47 )
48 {
49 UNIMPLEMENTED;
50 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
51 return 0;
52 }
53
54
55 /*
56 * @unimplemented
57 */
58 int
59 STDCALL
60 StartDocA(
61 HDC hdc,
62 CONST DOCINFOA *a1
63 )
64 {
65 UNIMPLEMENTED;
66 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
67 return 0;
68 }
69
70
71 /*
72 * @unimplemented
73 */
74 BOOL
75 STDCALL
76 PolyTextOutA(
77 HDC hdc,
78 CONST POLYTEXTA *a1,
79 int a2
80 )
81 {
82 UNIMPLEMENTED;
83 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
84 return FALSE;
85 }
86
87
88 /*
89 * @unimplemented
90 */
91 DWORD
92 STDCALL
93 GetKerningPairsA(
94 HDC a0,
95 DWORD a1,
96 LPKERNINGPAIR a2
97 )
98 {
99 UNIMPLEMENTED;
100 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
101 return 0;
102 }
103
104
105 /*
106 * @unimplemented
107 */
108 BOOL
109 STDCALL
110 GetLogColorSpaceA(
111 HCOLORSPACE a0,
112 LPLOGCOLORSPACEA a1,
113 DWORD a2
114 )
115 {
116 UNIMPLEMENTED;
117 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
118 return FALSE;
119 }
120
121
122 /*
123 * @unimplemented
124 */
125 HCOLORSPACE
126 STDCALL
127 CreateColorSpaceA(
128 LPLOGCOLORSPACEA a0
129 )
130 {
131 UNIMPLEMENTED;
132 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
133 return 0;
134 }
135
136
137 /*
138 * @unimplemented
139 */
140 BOOL
141 STDCALL
142 GetICMProfileA(
143 HDC hdc,
144 LPDWORD pBufSize,
145 LPSTR pszFilename
146 )
147 {
148 UNIMPLEMENTED;
149 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
150 return FALSE;
151 }
152
153
154 /*
155 * @unimplemented
156 */
157 BOOL
158 STDCALL
159 SetICMProfileA(
160 HDC a0,
161 LPSTR a1
162 )
163 {
164 UNIMPLEMENTED;
165 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
166 return FALSE;
167 }
168
169
170 /*
171 * @unimplemented
172 */
173 int
174 STDCALL
175 EnumICMProfilesA(
176 HDC a0,
177 ICMENUMPROCA a1,
178 LPARAM a2
179 )
180 {
181 /*
182 * FIXME - call NtGdiEnumICMProfiles with NULL for lpstrBuffer
183 * to find out how big a buffer we need. Then allocate that buffer
184 * and call NtGdiEnumICMProfiles again to have the buffer filled.
185 *
186 * Finally, step through the buffer ( MULTI-SZ recommended for format ),
187 * and convert each string to ANSI, calling the user's callback function
188 * until we run out of strings or the user returns FALSE
189 */
190
191 UNIMPLEMENTED;
192 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
193 return 0;
194 }
195
196
197 /*
198 * @unimplemented
199 */
200 BOOL
201 STDCALL
202 wglUseFontBitmapsA(
203 HDC a0,
204 DWORD a1,
205 DWORD a2,
206 DWORD a3
207 )
208 {
209 UNIMPLEMENTED;
210 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
211 return FALSE;
212 }
213
214
215 /*
216 * @unimplemented
217 */
218 BOOL
219 STDCALL
220 wglUseFontOutlinesA(
221 HDC a0,
222 DWORD a1,
223 DWORD a2,
224 DWORD a3,
225 FLOAT a4,
226 FLOAT a5,
227 int a6,
228 LPGLYPHMETRICSFLOAT a7
229 )
230 {
231 UNIMPLEMENTED;
232 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
233 return FALSE;
234 }
235
236
237 /*
238 * @unimplemented
239 */
240 BOOL
241 STDCALL
242 UpdateICMRegKeyA(
243 DWORD a0,
244 LPSTR a1,
245 LPSTR a2,
246 UINT a3
247 )
248 {
249 UNIMPLEMENTED;
250 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
251 return FALSE;
252 }
253
254
255 /*
256 * @unimplemented
257 */
258 BOOL
259 STDCALL
260 RemoveFontResourceExA(
261 LPCSTR lpFileName,
262 DWORD fl,
263 PVOID pdv
264 )
265 {
266 UNIMPLEMENTED;
267 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
268 return 0;
269 }
270
271 /*
272 * @unimplemented
273 */
274 DWORD
275 STDCALL
276 GetGlyphIndicesA(
277 HDC hdc,
278 LPCSTR lpstr,
279 int c,
280 LPWORD pgi,
281 DWORD fl
282 )
283 {
284 UNIMPLEMENTED;
285 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
286 return 0;
287 }
288
289 /*
290 * @unimplemented
291 */
292 UINT
293 STDCALL
294 GetStringBitmapA(HDC hdc,LPSTR psz,BOOL unknown,UINT cj,BYTE *lpSB)
295 {
296 UNIMPLEMENTED;
297 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
298 return 0;
299 }
300
301
302 /* EOF */