update for HEAD-2003091401
[reactos.git] / lib / kernel32 / misc / profile.c
1 /* $Id$
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 <k32.h>
14
15
16 /* FUNCTIONS *****************************************************************/
17
18 /*
19  * @unimplemented
20  */
21 BOOL STDCALL
22 CloseProfileUserMapping(VOID)
23 {
24         SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
25         return FALSE;
26 }
27
28
29 /*
30  * @unimplemented
31  */
32 UINT STDCALL
33 GetPrivateProfileIntW (
34         LPCWSTR lpAppName,
35         LPCWSTR lpKeyName,
36         INT     nDefault,
37         LPCWSTR lpFileName
38         )
39 {
40         SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
41         return 0;
42 }
43
44
45 /*
46  * @unimplemented
47  */
48 UINT STDCALL
49 GetPrivateProfileIntA (
50         LPCSTR  lpAppName,
51         LPCSTR  lpKeyName,
52         INT     nDefault,
53         LPCSTR  lpFileName
54         )
55 {
56         SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
57         return 0;
58 }
59
60
61 /*
62  * @unimplemented
63  */
64 DWORD STDCALL
65 GetPrivateProfileSectionW (
66         LPCWSTR lpAppName,
67         LPWSTR  lpReturnedString,
68         DWORD   nSize,
69         LPCWSTR lpFileName
70         )
71 {
72         SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
73         return 0;
74 }
75
76
77 /*
78  * @unimplemented
79  */
80 DWORD STDCALL
81 GetPrivateProfileSectionA (
82         LPCSTR  lpAppName,
83         LPSTR   lpReturnedString,
84         DWORD   nSize,
85         LPCSTR  lpFileName
86         )
87 {
88         SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
89         return 0;
90 }
91
92
93 /*
94  * @unimplemented
95  */
96 DWORD STDCALL
97 GetPrivateProfileSectionNamesW (
98         DWORD   Unknown0,
99         DWORD   Unknown1,
100         DWORD   Unknown2
101         )
102 {
103         SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
104         return 0;
105 }
106
107
108 /*
109  * @unimplemented
110  */
111 DWORD STDCALL
112 GetPrivateProfileSectionNamesA (
113         DWORD   Unknown0,
114         DWORD   Unknown1,
115         DWORD   Unknown2
116         )
117 {
118         SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
119         return 0;
120 }
121
122
123 /*
124  * @unimplemented
125  */
126 DWORD STDCALL
127 GetPrivateProfileStringW (
128         LPCWSTR lpAppName,
129         LPCWSTR lpKeyName,
130         LPCWSTR lpDefault,
131         LPWSTR  lpReturnedString,
132         DWORD   nSize,
133         LPCWSTR lpFileName
134         )
135 {
136         SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
137         return 0;
138 }
139
140
141 /*
142  * @unimplemented
143  */
144 DWORD STDCALL
145 GetPrivateProfileStringA (
146         LPCSTR  lpAppName,
147         LPCSTR  lpKeyName,
148         LPCSTR  lpDefault,
149         LPSTR   lpReturnedString,
150         DWORD   nSize,
151         LPCSTR  lpFileName
152         )
153 {
154         SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
155         return 0;
156 }
157
158
159 /*
160  * @unimplemented
161  */
162 DWORD STDCALL
163 GetPrivateProfileStructW (
164         DWORD   Unknown0,
165         DWORD   Unknown1,
166         DWORD   Unknown2,
167         DWORD   Unknown3,
168         DWORD   Unknown4
169         )
170 {
171         SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
172         return 0;
173 }
174
175
176 /*
177  * @unimplemented
178  */
179 DWORD STDCALL
180 GetPrivateProfileStructA (
181         DWORD   Unknown0,
182         DWORD   Unknown1,
183         DWORD   Unknown2,
184         DWORD   Unknown3,
185         DWORD   Unknown4
186         )
187 {
188         SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
189         return 0;
190 }
191
192
193 /*
194  * @unimplemented
195  */
196 UINT STDCALL
197 GetProfileIntW(LPCWSTR lpAppName,
198                LPCWSTR lpKeyName,
199                INT nDefault)
200 {
201    return GetPrivateProfileIntW(lpAppName,
202                                 lpKeyName,
203                                 nDefault,
204                                 NULL);
205 }
206
207
208 /*
209  * @unimplemented
210  */
211 UINT STDCALL
212 GetProfileIntA(LPCSTR lpAppName,
213                LPCSTR lpKeyName,
214                INT nDefault)
215 {
216    return GetPrivateProfileIntA(lpAppName,
217                                 lpKeyName,
218                                 nDefault,
219                                 NULL);
220 }
221
222
223 /*
224  * @unimplemented
225  */
226 DWORD STDCALL
227 GetProfileSectionW(LPCWSTR lpAppName,
228                    LPWSTR lpReturnedString,
229                    DWORD nSize)
230 {
231    return GetPrivateProfileSectionW(lpAppName,
232                                     lpReturnedString,
233                                     nSize,
234                                     NULL);
235 }
236
237
238 /*
239  * @unimplemented
240  */
241 DWORD STDCALL
242 GetProfileSectionA(LPCSTR lpAppName,
243                    LPSTR lpReturnedString,
244                    DWORD nSize)
245 {
246    return GetPrivateProfileSectionA(lpAppName,
247                                     lpReturnedString,
248                                     nSize,
249                                     NULL);
250 }
251
252
253 /*
254  * @unimplemented
255  */
256 DWORD STDCALL
257 GetProfileStringW(LPCWSTR lpAppName,
258                   LPCWSTR lpKeyName,
259                   LPCWSTR lpDefault,
260                   LPWSTR lpReturnedString,
261                   DWORD nSize)
262 {
263    return GetPrivateProfileStringW(lpAppName,
264                                    lpKeyName,
265                                    lpDefault,
266                                    lpReturnedString,
267                                    nSize,
268                                    NULL);
269 }
270
271
272 /*
273  * @unimplemented
274  */
275 DWORD STDCALL
276 GetProfileStringA(LPCSTR lpAppName,
277                   LPCSTR lpKeyName,
278                   LPCSTR lpDefault,
279                   LPSTR lpReturnedString,
280                   DWORD nSize)
281 {
282    return GetPrivateProfileStringA(lpAppName,
283                                    lpKeyName,
284                                    lpDefault,
285                                    lpReturnedString,
286                                    nSize,
287                                    NULL);
288 }
289
290
291 /*
292  * @unimplemented
293  */
294 BOOL STDCALL
295 OpenProfileUserMapping (VOID)
296 {
297         SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
298         return 0;
299 }
300
301
302 /*
303  * @unimplemented
304  */
305 WINBOOL STDCALL
306 QueryWin31IniFilesMappedToRegistry (
307         DWORD   Unknown0,
308         DWORD   Unknown1,
309         DWORD   Unknown2,
310         DWORD   Unknown3
311         )
312 {
313         SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
314         return FALSE;
315 }
316
317
318 /*
319  * @unimplemented
320  */
321 WINBOOL STDCALL
322 WritePrivateProfileSectionA (
323         LPCSTR  lpAppName,
324         LPCSTR  lpString,
325         LPCSTR  lpFileName
326         )
327 {
328         SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
329         return FALSE;
330 }
331
332
333 /*
334  * @unimplemented
335  */
336 WINBOOL STDCALL
337 WritePrivateProfileSectionW (
338         LPCWSTR lpAppName,
339         LPCWSTR lpString,
340         LPCWSTR lpFileName
341         )
342 {
343         SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
344         return FALSE;
345 }
346
347
348 /*
349  * @unimplemented
350  */
351 WINBOOL STDCALL
352 WritePrivateProfileStringA(LPCSTR lpAppName,
353                            LPCSTR lpKeyName,
354                            LPCSTR lpString,
355                            LPCSTR lpFileName)
356 {
357         SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
358         return FALSE;
359 }
360
361
362 /*
363  * @unimplemented
364  */
365 WINBOOL STDCALL
366 WritePrivateProfileStringW(LPCWSTR lpAppName,
367                            LPCWSTR lpKeyName,
368                            LPCWSTR lpString,
369                            LPCWSTR lpFileName)
370 {
371         SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
372         return FALSE;
373 }
374
375
376 /*
377  * @unimplemented
378  */
379 WINBOOL STDCALL
380 WritePrivateProfileStructA (
381         DWORD   Unknown0,
382         DWORD   Unknown1,
383         DWORD   Unknown2,
384         DWORD   Unknown3,
385         DWORD   Unknown4
386         )
387 {
388         SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
389         return FALSE;
390 }
391
392
393 /*
394  * @unimplemented
395  */
396 WINBOOL STDCALL
397 WritePrivateProfileStructW (
398         DWORD   Unknown0,
399         DWORD   Unknown1,
400         DWORD   Unknown2,
401         DWORD   Unknown3,
402         DWORD   Unknown4
403         )
404 {
405         SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
406         return FALSE;
407 }
408
409
410 /*
411  * @unimplemented
412  */
413 WINBOOL STDCALL
414 WriteProfileSectionA(LPCSTR lpAppName,
415                      LPCSTR lpString)
416 {
417    return WritePrivateProfileSectionA(lpAppName,
418                                       lpString,
419                                       NULL);
420 }
421
422
423 /*
424  * @unimplemented
425  */
426 WINBOOL STDCALL
427 WriteProfileSectionW(LPCWSTR lpAppName,
428                      LPCWSTR lpString)
429 {
430    return WritePrivateProfileSectionW(lpAppName,
431                                       lpString,
432                                       NULL);
433 }
434
435
436 /*
437  * @unimplemented
438  */
439 WINBOOL STDCALL
440 WriteProfileStringA(LPCSTR lpAppName,
441                     LPCSTR lpKeyName,
442                     LPCSTR lpString)
443 {
444    return WritePrivateProfileStringA(lpAppName,
445                                      lpKeyName,
446                                      lpString,
447                                      NULL);
448 }
449
450
451 /*
452  * @unimplemented
453  */
454 WINBOOL STDCALL
455 WriteProfileStringW(LPCWSTR lpAppName,
456                     LPCWSTR lpKeyName,
457                     LPCWSTR lpString)
458 {
459    return WritePrivateProfileStringW(lpAppName,
460                                      lpKeyName,
461                                      lpString,
462                                      NULL);
463 }
464
465 /* EOF */