mirror of
https://github.com/reactos/reactos.git
synced 2025-06-06 01:40:36 +00:00
20 lines
472 B
C++
20 lines
472 B
C++
#pragma once
|
|
|
|
#include <windef.h>
|
|
#include <atlstr.h>
|
|
|
|
class CConfigParser
|
|
{
|
|
const ATL::CStringW szConfigPath;
|
|
CSimpleMap<CStringW, CStringW> m_Keys;
|
|
|
|
void CacheINI();
|
|
void ReadSection(ATL::CStringW& Buffer, const ATL::CStringW& Section, BOOL isArch);
|
|
|
|
public:
|
|
CConfigParser(const ATL::CStringW& FileName);
|
|
|
|
BOOL GetString(const ATL::CStringW& KeyName, ATL::CStringW& ResultString);
|
|
BOOL GetInt(const ATL::CStringW& KeyName, INT& iResult);
|
|
};
|
|
|