From 2dd076dd98c3c3201e61ca2e059b7cf59aaa9f94 Mon Sep 17 00:00:00 2001 From: mjjo Date: Sat, 20 Jul 2013 23:23:07 +0000 Subject: [PATCH] --- HookMsg/ConfigINI.h | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 HookMsg/ConfigINI.h diff --git a/HookMsg/ConfigINI.h b/HookMsg/ConfigINI.h new file mode 100644 index 0000000..c53ed59 --- /dev/null +++ b/HookMsg/ConfigINI.h @@ -0,0 +1,33 @@ +// ConfigINI.h: interface for the CConfigINI class. +// +////////////////////////////////////////////////////////////////////// + +#if !defined(AFX_CONFIGINI_H__51624D04_FF11_11D3_9A0F_005004BBFF87__INCLUDED_) +#define AFX_CONFIGINI_H__51624D04_FF11_11D3_9A0F_005004BBFF87__INCLUDED_ + +#if _MSC_VER > 1000 +#pragma once +#endif // _MSC_VER > 1000 + +class CConfigINI +{ +public: + CConfigINI(); + virtual ~CConfigINI(); + + BOOL SetINIFile(CString sFileName); + BOOL PutSectionKeyData(CString sSectionName, CString sKeyName, CString sValue); + CString GetSectionKeyData(CString sSectionName, CString sKeyName); + + void WriteConfigEnvToINI(); + void ReadConfigEnvFromINI(); + void CreateConfigFile(); + + void ReadConfigEnvFromINI_DEBUG_SECTION(); + +private: + CString m_sINIFileName; + +}; + +#endif // !defined(AFX_CONFIGINI_H__51624D04_FF11_11D3_9A0F_005004BBFF87__INCLUDED_)