mirror of
https://github.com/reactos/reactos.git
synced 2025-01-03 21:09:19 +00:00
57b775ef6e
With a single database line added to applications distributed as zip/cab allows rapps.exe to act as an installer that automatically extracts the files and creates a startmenu shortcut. It can also uninstall the extracted files (and optionally other files and registry entries created by the application).
28 lines
601 B
C++
28 lines
601 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);
|
|
|
|
UINT
|
|
GetSectionString(LPCWSTR Section, LPCWSTR Name, CStringW &Result);
|
|
};
|
|
|
|
HRESULT
|
|
ReadIniValue(LPCWSTR File, LPCWSTR Section, LPCWSTR Name, CStringW &Output);
|