Use free Windows DDK and compile with latest MinGW releases.
[reactos.git] / reactos / lib / kernel32 / misc / profile.c
1 /* $Id: profile.c,v 1.4 2002/09/07 15:12:27 chorns Exp $
2 *
3 * COPYRIGHT: See COPYING in the top level directory
4 * PROJECT: ReactOS system libraries
5 * FILE: lib/kernel32/misc/profile.c
6 * PURPOSE: Profiles functions
7 * PROGRAMMER: Ariadne ( ariadne@xs4all.nl)
8 * modified from WINE [ Onno Hovers, (onno@stack.urc.tue.nl) ]
9 * UPDATE HISTORY:
10 * Created 01/11/98
11 */
12
13 #include <windows.h>
14 #define NTOS_USER_MODE
15 #include <ntos.h>
16 #include <wchar.h>
17 #include <string.h>
18
19
20 /* FUNCTIONS *****************************************************************/
21
22 BOOL STDCALL
23 CloseProfileUserMapping(VOID)
24 {
25 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
26 return FALSE;
27 }
28
29
30 UINT STDCALL
31 GetPrivateProfileIntW (
32 LPCWSTR lpAppName,
33 LPCWSTR lpKeyName,
34 INT nDefault,
35 LPCWSTR lpFileName
36 )
37 {
38 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
39 return 0;
40 }
41
42
43 UINT STDCALL
44 GetPrivateProfileIntA (
45 LPCSTR lpAppName,
46 LPCSTR lpKeyName,
47 INT nDefault,
48 LPCSTR lpFileName
49 )
50 {
51 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
52 return 0;
53 }
54
55
56 DWORD STDCALL
57 GetPrivateProfileSectionW (
58 LPCWSTR lpAppName,
59 LPWSTR lpReturnedString,
60 DWORD nSize,
61 LPCWSTR lpFileName
62 )
63 {
64 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
65 return 0;
66 }
67
68
69 DWORD STDCALL
70 GetPrivateProfileSectionA (
71 LPCSTR lpAppName,
72 LPSTR lpReturnedString,
73 DWORD nSize,
74 LPCSTR lpFileName
75 )
76 {
77 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
78 return 0;
79 }
80
81
82 DWORD STDCALL
83 GetPrivateProfileSectionNamesW (
84 LPWSTR lpszReturnBuffer,
85 DWORD nSize,
86 LPCWSTR lpFileName
87 )
88 {
89 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
90 return 0;
91 }
92
93
94 DWORD STDCALL
95 GetPrivateProfileSectionNamesA (
96 LPSTR lpszReturnBuffer,
97 DWORD nSize,
98 LPCSTR lpFileName
99 )
100 {
101 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
102 return 0;
103 }
104
105
106 DWORD STDCALL
107 GetPrivateProfileStringW (
108 LPCWSTR lpAppName,
109 LPCWSTR lpKeyName,
110 LPCWSTR lpDefault,
111 LPWSTR lpReturnedString,
112 DWORD nSize,
113 LPCWSTR lpFileName
114 )
115 {
116 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
117 return 0;
118 }
119
120
121 DWORD STDCALL
122 GetPrivateProfileStringA (
123 LPCSTR lpAppName,
124 LPCSTR lpKeyName,
125 LPCSTR lpDefault,
126 LPSTR lpReturnedString,
127 DWORD nSize,
128 LPCSTR lpFileName
129 )
130 {
131 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
132 return 0;
133 }
134
135 BOOL STDCALL
136 GetPrivateProfileStructW (
137 LPCWSTR lpszSection,
138 LPCWSTR lpszKey,
139 LPVOID lpStruct,
140 UINT uSizeStruct,
141 LPCWSTR szFile
142 )
143 {
144 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
145 return 0;
146 }
147
148
149 BOOL STDCALL
150 GetPrivateProfileStructA (
151 LPCSTR lpszSection,
152 LPCSTR lpszKey,
153 LPVOID lpStruct,
154 UINT uSizeStruct,
155 LPCSTR szFile
156 )
157 {
158 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
159 return 0;
160 }
161
162 UINT STDCALL
163 GetProfileIntW(LPCWSTR lpAppName,
164 LPCWSTR lpKeyName,
165 INT nDefault)
166 {
167 return GetPrivateProfileIntW(lpAppName,
168 lpKeyName,
169 nDefault,
170 NULL);
171 }
172
173
174 UINT STDCALL
175 GetProfileIntA(LPCSTR lpAppName,
176 LPCSTR lpKeyName,
177 INT nDefault)
178 {
179 return GetPrivateProfileIntA(lpAppName,
180 lpKeyName,
181 nDefault,
182 NULL);
183 }
184
185
186 DWORD STDCALL
187 GetProfileSectionW(LPCWSTR lpAppName,
188 LPWSTR lpReturnedString,
189 DWORD nSize)
190 {
191 return GetPrivateProfileSectionW(lpAppName,
192 lpReturnedString,
193 nSize,
194 NULL);
195 }
196
197
198 DWORD STDCALL
199 GetProfileSectionA(LPCSTR lpAppName,
200 LPSTR lpReturnedString,
201 DWORD nSize)
202 {
203 return GetPrivateProfileSectionA(lpAppName,
204 lpReturnedString,
205 nSize,
206 NULL);
207 }
208
209
210 DWORD STDCALL
211 GetProfileStringW(LPCWSTR lpAppName,
212 LPCWSTR lpKeyName,
213 LPCWSTR lpDefault,
214 LPWSTR lpReturnedString,
215 DWORD nSize)
216 {
217 return GetPrivateProfileStringW(lpAppName,
218 lpKeyName,
219 lpDefault,
220 lpReturnedString,
221 nSize,
222 NULL);
223 }
224
225
226 DWORD STDCALL
227 GetProfileStringA(LPCSTR lpAppName,
228 LPCSTR lpKeyName,
229 LPCSTR lpDefault,
230 LPSTR lpReturnedString,
231 DWORD nSize)
232 {
233 return GetPrivateProfileStringA(lpAppName,
234 lpKeyName,
235 lpDefault,
236 lpReturnedString,
237 nSize,
238 NULL);
239 }
240
241
242 BOOL STDCALL
243 OpenProfileUserMapping (VOID)
244 {
245 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
246 return 0;
247 }
248
249
250 WINBOOL STDCALL
251 QueryWin31IniFilesMappedToRegistry (
252 DWORD Unknown0,
253 DWORD Unknown1,
254 DWORD Unknown2,
255 DWORD Unknown3
256 )
257 {
258 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
259 return FALSE;
260 }
261
262
263 WINBOOL STDCALL
264 WritePrivateProfileSectionA (
265 LPCSTR lpAppName,
266 LPCSTR lpString,
267 LPCSTR lpFileName
268 )
269 {
270 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
271 return FALSE;
272 }
273
274
275 WINBOOL STDCALL
276 WritePrivateProfileSectionW (
277 LPCWSTR lpAppName,
278 LPCWSTR lpString,
279 LPCWSTR lpFileName
280 )
281 {
282 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
283 return FALSE;
284 }
285
286
287 WINBOOL STDCALL
288 WritePrivateProfileStringA(LPCSTR lpAppName,
289 LPCSTR lpKeyName,
290 LPCSTR lpString,
291 LPCSTR lpFileName)
292 {
293 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
294 return FALSE;
295 }
296
297
298 WINBOOL STDCALL
299 WritePrivateProfileStringW(LPCWSTR lpAppName,
300 LPCWSTR lpKeyName,
301 LPCWSTR lpString,
302 LPCWSTR lpFileName)
303 {
304 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
305 return FALSE;
306 }
307
308
309 BOOL STDCALL
310 WritePrivateProfileStructA(
311 LPCSTR lpszSection,
312 LPCSTR lpszKey,
313 LPVOID lpStruct,
314 UINT uSizeStruct,
315 LPCSTR szFile
316 )
317 {
318 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
319 return FALSE;
320 }
321
322
323 BOOL STDCALL
324 WritePrivateProfileStructW(
325 LPCWSTR lpszSection,
326 LPCWSTR lpszKey,
327 LPVOID lpStruct,
328 UINT uSizeStruct,
329 LPCWSTR szFile
330 )
331 {
332 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
333 return FALSE;
334 }
335
336
337 WINBOOL STDCALL
338 WriteProfileSectionA(LPCSTR lpAppName,
339 LPCSTR lpString)
340 {
341 return WritePrivateProfileSectionA(lpAppName,
342 lpString,
343 NULL);
344 }
345
346
347 WINBOOL STDCALL
348 WriteProfileSectionW(LPCWSTR lpAppName,
349 LPCWSTR lpString)
350 {
351 return WritePrivateProfileSectionW(lpAppName,
352 lpString,
353 NULL);
354 }
355
356
357 WINBOOL STDCALL
358 WriteProfileStringA(LPCSTR lpAppName,
359 LPCSTR lpKeyName,
360 LPCSTR lpString)
361 {
362 return WritePrivateProfileStringA(lpAppName,
363 lpKeyName,
364 lpString,
365 NULL);
366 }
367
368
369 WINBOOL STDCALL
370 WriteProfileStringW(LPCWSTR lpAppName,
371 LPCWSTR lpKeyName,
372 LPCWSTR lpString)
373 {
374 return WritePrivateProfileStringW(lpAppName,
375 lpKeyName,
376 lpString,
377 NULL);
378 }
379
380 /* EOF */