app_config.h
上传用户:looem2003
上传日期:2014-07-20
资源大小:13733k
文件大小:1k
- #pragma once
- #include <Windows.h>
- #include <tchar.h>
- #include "ini_lang.h"
- #ifndef LONG_PATH
- #define LONG_PATH (_MAX_DRIVE+_MAX_DIR+_MAX_FNAME+_MAX_EXT)
- #endif//LONG_PATH
- typedef struct tagAPPCONFIG
- {
- TCHAR workPath[LONG_PATH];
- TCHAR iniFile[LONG_PATH];
- TCHAR langFile[LONG_PATH];
- TCHAR lang[LANGUAGE_NAME_LEN];
- LPVOID addParam;
- }APPCONFIG,*LPAPPCONFIG;
- typedef BOOL (WINAPI *t_load_additional_config)( LPAPPCONFIG ac, LPVOID param );
- typedef BOOL (WINAPI *t_save_additional_config)( LPAPPCONFIG ac );
- extern BOOL load_app_config( HINSTANCE hInst, LPAPPCONFIG ac, LPCTSTR iniFileName = _T("app_config.ini"),
- t_load_additional_config lac = NULL, LPVOID param = NULL );
- extern BOOL save_app_config( LPAPPCONFIG ac, t_save_additional_config sac = NULL );
- extern BOOL CheckConfigFile(const TCHAR * link);