branch update for HEAD-2003021201
[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 BOOL STDCALL
19 CloseProfileUserMapping(VOID)
20 {
21         SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
22         return FALSE;
23 }
24
25
26 UINT STDCALL
27 GetPrivateProfileIntW (
28         LPCWSTR lpAppName,
29         LPCWSTR lpKeyName,
30         INT     nDefault,
31         LPCWSTR lpFileName
32         )
33 {
34         SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
35         return 0;
36 }
37
38
39 UINT STDCALL
40 GetPrivateProfileIntA (
41         LPCSTR  lpAppName,
42         LPCSTR  lpKeyName,
43         INT     nDefault,
44         LPCSTR  lpFileName
45         )
46 {
47         SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
48         return 0;
49 }
50
51
52 DWORD STDCALL
53 GetPrivateProfileSectionW (
54         LPCWSTR lpAppName,
55         LPWSTR  lpReturnedString,
56         DWORD   nSize,
57         LPCWSTR lpFileName
58         )
59 {
60         SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
61         return 0;
62 }
63
64
65 DWORD STDCALL
66 GetPrivateProfileSectionA (
67         LPCSTR  lpAppName,
68         LPSTR   lpReturnedString,
69         DWORD   nSize,
70         LPCSTR  lpFileName
71         )
72 {
73         SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
74         return 0;
75 }
76
77
78 DWORD STDCALL
79 GetPrivateProfileSectionNamesW (
80         DWORD   Unknown0,
81         DWORD   Unknown1,
82         DWORD   Unknown2
83         )
84 {
85         SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
86         return 0;
87 }
88
89
90 DWORD STDCALL
91 GetPrivateProfileSectionNamesA (
92         DWORD   Unknown0,
93         DWORD   Unknown1,
94         DWORD   Unknown2
95         )
96 {
97         SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
98         return 0;
99 }
100
101
102 DWORD STDCALL
103 GetPrivateProfileStringW (
104         LPCWSTR lpAppName,
105         LPCWSTR lpKeyName,
106         LPCWSTR lpDefault,
107         LPWSTR  lpReturnedString,
108         DWORD   nSize,
109         LPCWSTR lpFileName
110         )
111 {
112         SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
113         return 0;
114 }
115
116
117 DWORD STDCALL
118 GetPrivateProfileStringA (
119         LPCSTR  lpAppName,
120         LPCSTR  lpKeyName,
121         LPCSTR  lpDefault,
122         LPSTR   lpReturnedString,
123         DWORD   nSize,
124         LPCSTR  lpFileName
125         )
126 {
127         SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
128         return 0;
129 }
130
131
132 DWORD STDCALL
133 GetPrivateProfileStructW (
134         DWORD   Unknown0,
135         DWORD   Unknown1,
136         DWORD   Unknown2,
137         DWORD   Unknown3,
138         DWORD   Unknown4
139         )
140 {
141         SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
142         return 0;
143 }
144
145
146 DWORD STDCALL
147 GetPrivateProfileStructA (
148         DWORD   Unknown0,
149         DWORD   Unknown1,
150         DWORD   Unknown2,
151         DWORD   Unknown3,
152         DWORD   Unknown4
153         )
154 {
155         SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
156         return 0;
157 }
158
159 UINT STDCALL
160 GetProfileIntW(LPCWSTR lpAppName,
161                LPCWSTR lpKeyName,
162                INT nDefault)
163 {
164    return GetPrivateProfileIntW(lpAppName,
165                                 lpKeyName,
166                                 nDefault,
167                                 NULL);
168 }
169
170
171 UINT STDCALL
172 GetProfileIntA(LPCSTR lpAppName,
173                LPCSTR lpKeyName,
174                INT nDefault)
175 {
176    return GetPrivateProfileIntA(lpAppName,
177                                 lpKeyName,
178                                 nDefault,
179                                 NULL);
180 }
181
182
183 DWORD STDCALL
184 GetProfileSectionW(LPCWSTR lpAppName,
185                    LPWSTR lpReturnedString,
186                    DWORD nSize)
187 {
188    return GetPrivateProfileSectionW(lpAppName,
189                                     lpReturnedString,
190                                     nSize,
191                                     NULL);
192 }
193
194
195 DWORD STDCALL
196 GetProfileSectionA(LPCSTR lpAppName,
197                    LPSTR lpReturnedString,
198                    DWORD nSize)
199 {
200    return GetPrivateProfileSectionA(lpAppName,
201                                     lpReturnedString,
202                                     nSize,
203                                     NULL);
204 }
205
206
207 DWORD STDCALL
208 GetProfileStringW(LPCWSTR lpAppName,
209                   LPCWSTR lpKeyName,
210                   LPCWSTR lpDefault,
211                   LPWSTR lpReturnedString,
212                   DWORD nSize)
213 {
214    return GetPrivateProfileStringW(lpAppName,
215                                    lpKeyName,
216                                    lpDefault,
217                                    lpReturnedString,
218                                    nSize,
219                                    NULL);
220 }
221
222
223 DWORD STDCALL
224 GetProfileStringA(LPCSTR lpAppName,
225                   LPCSTR lpKeyName,
226                   LPCSTR lpDefault,
227                   LPSTR lpReturnedString,
228                   DWORD nSize)
229 {
230    return GetPrivateProfileStringA(lpAppName,
231                                    lpKeyName,
232                                    lpDefault,
233                                    lpReturnedString,
234                                    nSize,
235                                    NULL);
236 }
237
238
239 BOOL STDCALL
240 OpenProfileUserMapping (VOID)
241 {
242         SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
243         return 0;
244 }
245
246
247 WINBOOL STDCALL
248 QueryWin31IniFilesMappedToRegistry (
249         DWORD   Unknown0,
250         DWORD   Unknown1,
251         DWORD   Unknown2,
252         DWORD   Unknown3
253         )
254 {
255         SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
256         return FALSE;
257 }
258
259
260 WINBOOL STDCALL
261 WritePrivateProfileSectionA (
262         LPCSTR  lpAppName,
263         LPCSTR  lpString,
264         LPCSTR  lpFileName
265         )
266 {
267         SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
268         return FALSE;
269 }
270
271
272 WINBOOL STDCALL
273 WritePrivateProfileSectionW (
274         LPCWSTR lpAppName,
275         LPCWSTR lpString,
276         LPCWSTR lpFileName
277         )
278 {
279         SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
280         return FALSE;
281 }
282
283
284 WINBOOL STDCALL
285 WritePrivateProfileStringA(LPCSTR lpAppName,
286                            LPCSTR lpKeyName,
287                            LPCSTR lpString,
288                            LPCSTR lpFileName)
289 {
290         SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
291         return FALSE;
292 }
293
294
295 WINBOOL STDCALL
296 WritePrivateProfileStringW(LPCWSTR lpAppName,
297                            LPCWSTR lpKeyName,
298                            LPCWSTR lpString,
299                            LPCWSTR lpFileName)
300 {
301         SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
302         return FALSE;
303 }
304
305
306 WINBOOL STDCALL
307 WritePrivateProfileStructA (
308         DWORD   Unknown0,
309         DWORD   Unknown1,
310         DWORD   Unknown2,
311         DWORD   Unknown3,
312         DWORD   Unknown4
313         )
314 {
315         SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
316         return FALSE;
317 }
318
319
320 WINBOOL STDCALL
321 WritePrivateProfileStructW (
322         DWORD   Unknown0,
323         DWORD   Unknown1,
324         DWORD   Unknown2,
325         DWORD   Unknown3,
326         DWORD   Unknown4
327         )
328 {
329         SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
330         return FALSE;
331 }
332
333
334 WINBOOL STDCALL
335 WriteProfileSectionA(LPCSTR lpAppName,
336                      LPCSTR lpString)
337 {
338    return WritePrivateProfileSectionA(lpAppName,
339                                       lpString,
340                                       NULL);
341 }
342
343
344 WINBOOL STDCALL
345 WriteProfileSectionW(LPCWSTR lpAppName,
346                      LPCWSTR lpString)
347 {
348    return WritePrivateProfileSectionW(lpAppName,
349                                       lpString,
350                                       NULL);
351 }
352
353
354 WINBOOL STDCALL
355 WriteProfileStringA(LPCSTR lpAppName,
356                     LPCSTR lpKeyName,
357                     LPCSTR lpString)
358 {
359    return WritePrivateProfileStringA(lpAppName,
360                                      lpKeyName,
361                                      lpString,
362                                      NULL);
363 }
364
365
366 WINBOOL STDCALL
367 WriteProfileStringW(LPCWSTR lpAppName,
368                     LPCWSTR lpKeyName,
369                     LPCWSTR lpString)
370 {
371    return WritePrivateProfileStringW(lpAppName,
372                                      lpKeyName,
373                                      lpString,
374                                      NULL);
375 }
376
377 /* EOF */