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