75 if (!isArch &&
key ==
"URLDownload")
108 const INT cchLocaleSize = 5;
112 CString INISectionLocale =
L"Section." + szLocaleID;
118 if (szLocaleID.GetLength() >= 2)
156 ResultString.
Empty();
177 return (iResult > 0);
CConfigParser(const ATL::CStringW &FileName)
IN BOOLEAN OUT PSTR Buffer
CStringT Mid(int iFirst, int nCount) const
void __cdecl Format(UINT nFormatID,...)
LCID WINAPI GetUserDefaultLCID(void)
BOOL GetInt(const ATL::CStringW &KeyName, INT &iResult)
static ATL::CStringW GetINIFullPath(const ATL::CStringW &FileName)
INT WINAPI GetLocaleInfoW(LCID lcid, LCTYPE lctype, LPWSTR buffer, INT len)
static CSectionNames g_Names
void ReleaseBuffer(_In_ int nNewLength=-1)
const ATL::CStringW szConfigPath
_Must_inspect_result_ _In_ WDFDEVICE _In_ PCUNICODE_STRING KeyName
BOOL GetStorageDirectory(ATL::CStringW &lpDirectory)
CLocaleSections ArchSpecific
BOOL Add(const TKey &key, const TVal &val)
void ReadSection(ATL::CStringW &Buffer, const ATL::CStringW &Section, BOOL isArch)
CSimpleMap< CStringW, CStringW > m_Keys
BOOL GetString(const ATL::CStringW &KeyName, ATL::CStringW &ResultString)
INT WINAPI StrToIntW(LPCWSTR lpString)
int Find(_In_ PCXSTR pszSub, _In_opt_ int iStart=0) const
TVal & GetValueAt(int nIndex)
INT WINAPI GetPrivateProfileSectionW(LPCWSTR section, LPWSTR buffer, DWORD len, LPCWSTR filename)
int FindKey(const TKey &key) const
CStringT Left(int nCount) const
CLocaleSections ArchNeutral