reactos/base/applications/rapps/include/configparser.h
Hermès Bélusca-Maïto fefc5f4823
[RAPPS] Centralize RAPPS exposed names: registry & user local settings (#4214)
Centralize the names of the RAPPS' registry setting sub-key, and
user local settings & offline apps database sub-directories.

- Change the name of the application database sub-directory from
  "rapps\rapps" to "RApps\appdb".

- Adjust the documentation to reflect this.

- Simplify CConfigParser constructor by removing GetINIFullPath().
2023-05-16 12:37:49 +02:00

23 lines
434 B
C++

#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);
};