mirror of
https://github.com/reactos/reactos.git
synced 2025-02-23 17:05:46 +00:00

Previously, there would be function duplication between installed and available applications. Now this is handled with polymorphism, which allows to re-use a lot of code. Additionally, toolbar buttons are properly disabled now. The mutex used to guard rapps' single instance is renamed, so that the 'new' and old rapps can be run at the same time for testing. CORE-18459
23 lines
454 B
C++
23 lines
454 B
C++
#pragma once
|
|
|
|
#include <windef.h>
|
|
#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 &FileName);
|
|
|
|
BOOL
|
|
GetString(const CStringW &KeyName, CStringW &ResultString);
|
|
BOOL
|
|
GetInt(const CStringW &KeyName, INT &iResult);
|
|
};
|