1 | /* $Id: profile.h,v 1.10 2004-03-16 13:34:58 sandervl Exp $ */
|
---|
2 | /*
|
---|
3 | * Profile header for initterm
|
---|
4 | * Copyright 1999 Christoph Bratschi
|
---|
5 | * Project Odin Software License can be found in LICENSE.TXT
|
---|
6 | */
|
---|
7 |
|
---|
8 | #ifndef __PROFILE_H__
|
---|
9 | #define __PROFILE_H__
|
---|
10 |
|
---|
11 | #include <odinwrap.h>
|
---|
12 |
|
---|
13 | /* Odin profile name in KERNEL32.DLL directory */
|
---|
14 | #define ODINININAME "ODIN.INI"
|
---|
15 |
|
---|
16 | #ifdef __cplusplus
|
---|
17 | extern "C" {
|
---|
18 | #endif
|
---|
19 |
|
---|
20 | int WINAPI PROFILE_Initialize (void);
|
---|
21 |
|
---|
22 | #ifdef DEBUG
|
---|
23 |
|
---|
24 | INT ODIN_EXTERN(GetPrivateProfileStringA)(LPCSTR section, LPCSTR entry,
|
---|
25 | LPCSTR def_val, LPSTR buffer,
|
---|
26 | UINT len, LPCSTR filename);
|
---|
27 |
|
---|
28 | int ODIN_EXTERN(PROFILE_GetOdinIniString)(LPCSTR section, LPCSTR entry,
|
---|
29 | LPCSTR def_val, LPSTR buffer,
|
---|
30 | UINT len);
|
---|
31 |
|
---|
32 | int ODIN_EXTERN(PROFILE_SetOdinIniString)(LPCSTR section_name, LPCSTR key_name,
|
---|
33 | LPCSTR value);
|
---|
34 |
|
---|
35 | int ODIN_EXTERN(PROFILE_GetOdinIniInt)(LPCSTR section_name, LPCSTR key_name,
|
---|
36 | int value);
|
---|
37 |
|
---|
38 | int ODIN_EXTERN(PROFILE_GetOdinIniBool)(LPCSTR section, LPCSTR key_name,
|
---|
39 | int def);
|
---|
40 |
|
---|
41 | UINT ODIN_EXTERN(GetPrivateProfileIntA)(LPCSTR, LPCSTR, INT, LPCSTR);
|
---|
42 | UINT ODIN_EXTERN(GetPrivateProfileIntW)(LPCWSTR, LPCWSTR, INT, LPCWSTR);
|
---|
43 | INT ODIN_EXTERN(GetPrivateProfileStringW)(LPCWSTR, LPCWSTR, LPCWSTR, LPWSTR, UINT, LPCWSTR);
|
---|
44 | BOOL ODIN_EXTERN(WritePrivateProfileStringA)(LPCSTR, LPCSTR, LPCSTR, LPCSTR);
|
---|
45 | BOOL ODIN_EXTERN(WritePrivateProfileStringW)(LPCWSTR, LPCWSTR, LPCWSTR, LPCWSTR);
|
---|
46 |
|
---|
47 | #endif
|
---|
48 |
|
---|
49 | #ifdef __cplusplus
|
---|
50 | } // extern "C"
|
---|
51 | #endif
|
---|
52 |
|
---|
53 | #include <win/options.h> //for odin profile apis
|
---|
54 |
|
---|
55 | #endif
|
---|