Rev 1 | Blame | Compare with Previous | Last modification | View Log
// INIFile.h: interface for the INIFile class.////////////////////////////////////////////////////////////////////////#if !defined(AFX_INIFILE_H__B4403C53_79A4_11D3_B6DB_00104B457E71__INCLUDED_)#define AFX_INIFILE_H__B4403C53_79A4_11D3_B6DB_00104B457E71__INCLUDED_#if _MSC_VER >= 1000#pragma once#pragma warning(disable : 4996)#endif // _MSC_VER >= 1000#include <direct.h>#define CINIFILE_BUFLEN 333#define CINIFILE_DECIMAL 10class CIniFile{public:int UnLock();int Lock();void PutInteger(int Number, char *Key, char *Section = NULL);int GetInteger( char *Key, char *Section = NULL, int Default = 0);void PutString( char *Input, char *Key, char *Section = NULL);const char *GetString( const char *Key, const char *Section = NULL, const char *Default = NULL);CIniFile( const CIniFile &obj);CIniFile( char *FileName, char *Dir = NULL);virtual ~CIniFile();protected:char *Text;private:HANDLE m_hSemaphore;char m_cFileName[ _MAX_PATH];char *m_cDefault;char *m_cKey;char *m_cSection;int m_iCopy;static int m_iOutLen;};#endif // !defined(AFX_INIFILE_H__B4403C53_79A4_11D3_B6DB_00104B457E71__INCLUDED_)