reactos/base/applications/rapps/include/configparser.h

23 lines
434 B
C
Raw Normal View History

#pragma once
#include <atlstr.h>
class CConfigParser
{
const CStringW szConfigPath;
CSimpleMap<CStringW, CStringW> m_Keys;
void
CacheINI();
void
ReadSection(CStringW &Buffer, const CStringW &Section, BOOL isArch);
public:
CConfigParser(const CStringW &FilePath);
BOOL
GetString(const CStringW &KeyName, CStringW &ResultString);
BOOL
GetInt(const CStringW &KeyName, INT &iResult);
};