1 | #ifndef __INIHANDL_H__ |
2 | #define __INIHANDL_H__ |
3 | |
4 | #if defined(UNIX) || defined(UNIV_LINUX) |
5 | |
6 | #ifdef __cplusplus |
7 | extern "C" { |
8 | #endif |
9 | |
10 | void PROFILE_Close(LPCSTR filename); |
11 | void PROFILE_End(void); |
12 | |
13 | int GetPrivateProfileString( |
14 | LPCTSTR lpAppName, // section name |
15 | LPCTSTR lpKeyName, // key name |
16 | LPCTSTR lpDefault, // default string |
17 | LPTSTR lpReturnedString, // destination buffer |
18 | DWORD nSize, // size of destination buffer |
19 | LPCTSTR lpFileName // initialization file name |
20 | ); |
21 | |
22 | uint GetPrivateProfileInt( |
23 | LPCTSTR lpAppName, // section name |
24 | LPCTSTR lpKeyName, // key name |
25 | INT nDefault, // return value if key name not found |
26 | LPCTSTR lpFileName // initialization file name |
27 | ); |
28 | |
29 | BOOL WritePrivateProfileString( |
30 | LPCTSTR lpAppName, // section name |
31 | LPCTSTR lpKeyName, // key name |
32 | LPCTSTR lpString, // string to add |
33 | LPCTSTR lpFileName // initialization file |
34 | ); |
35 | |
36 | int GetPrivateProfileSection( |
37 | LPCTSTR lpAppName, // section name |
38 | LPTSTR lpReturnedString, // return buffer |
39 | DWORD nSize, // size of return buffer |
40 | LPCTSTR lpFileName // initialization file name |
41 | ); |
42 | |
43 | BOOL WritePrivateProfileSection( |
44 | LPCTSTR lpAppName, // section name |
45 | LPCTSTR lpString, // data |
46 | LPCTSTR lpFileName // file name |
47 | ); |
48 | |
49 | #ifdef __cplusplus |
50 | } |
51 | #endif |
52 | |
53 | #endif /* defined(UNIX) */ |
54 | |
55 | #endif /* __INIHANDL_H__ */ |
56 | |