1 | /* $Id: profile.h,v 1.8 2000-12-04 12:41:48 bird 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 | void WINAPI WriteOutProfiles(void);
|
---|
17 | int WINAPI PROFILE_LoadOdinIni(void);
|
---|
18 |
|
---|
19 | #ifdef DEBUG
|
---|
20 |
|
---|
21 | INT ODIN_EXTERN(GetPrivateProfileStringA)(LPCSTR section, LPCSTR entry,
|
---|
22 | LPCSTR def_val, LPSTR buffer,
|
---|
23 | UINT len, LPCSTR filename);
|
---|
24 |
|
---|
25 | int ODIN_EXTERN(PROFILE_GetOdinIniString)(LPCSTR section, LPCSTR entry,
|
---|
26 | LPCSTR def_val, LPSTR buffer,
|
---|
27 | UINT len);
|
---|
28 |
|
---|
29 | int ODIN_EXTERN(PROFILE_SetOdinIniString)(LPCSTR section_name, LPCSTR key_name,
|
---|
30 | LPCSTR value);
|
---|
31 |
|
---|
32 | int ODIN_EXTERN(PROFILE_GetOdinIniInt)(LPCSTR section_name, LPCSTR key_name,
|
---|
33 | int value);
|
---|
34 |
|
---|
35 | int ODIN_EXTERN(PROFILE_GetOdinIniBool)(LPCSTR section, LPCSTR key_name,
|
---|
36 | int def);
|
---|
37 |
|
---|
38 | UINT ODIN_EXTERN(GetPrivateProfileIntA)(LPCSTR, LPCSTR, INT, LPCSTR);
|
---|
39 | UINT ODIN_EXTERN(GetPrivateProfileIntW)(LPCWSTR, LPCWSTR, INT, LPCWSTR);
|
---|
40 | INT ODIN_EXTERN(GetPrivateProfileStringW)(LPCWSTR, LPCWSTR, LPCWSTR, LPWSTR, UINT, LPCWSTR);
|
---|
41 | BOOL ODIN_EXTERN(WritePrivateProfileStringA)(LPCSTR, LPCSTR, LPCSTR, LPCSTR);
|
---|
42 | BOOL ODIN_EXTERN(WritePrivateProfileStringW)(LPCWSTR, LPCWSTR, LPCWSTR, LPCWSTR);
|
---|
43 |
|
---|
44 | #endif
|
---|
45 |
|
---|
46 | #include <win\options.h> //for odin profile apis
|
---|
47 |
|
---|
48 | #endif
|
---|