77 if (!isArch &&
key ==
"URLDownload")
111 const INT cchLocaleSize = 5;
115 CString INISectionLocale =
L"Section." + szLocaleID;
159 ResultString.
Empty();
181 return (iResult > 0);
189 WCHAR FullLoc[5], *NeutralLoc = FullLoc + 2;
192 SecBuf.
Format(
L"%s.%s.%s", Section, FullLoc, CurrentArchitecture);
198 SecBuf.
Format(
L"%s.%s.%s", Section, NeutralLoc, CurrentArchitecture);
203 SecBuf.
Format(
L"%s.%s", Section, CurrentArchitecture);
207 SecBuf.
Format(
L"%s.%s", Section, FullLoc);
213 SecBuf.
Format(
L"%s.%s", Section, NeutralLoc);
TVal & GetValueAt(int nIndex)
int FindKey(const TKey &key) const
BOOL Add(const TKey &key, const TVal &val)
bool IsEmpty() const noexcept
void ReleaseBuffer(_In_ int nNewLength=-1)
PXSTR GetString() noexcept
int GetLength() const noexcept
CStringT Right(int nCount) const
CStringT Left(int nCount) const
void __cdecl Format(UINT nFormatID,...)
int Find(_In_ PCXSTR pszSub, _In_opt_ int iStart=0) const noexcept
CStringT Mid(int iFirst, int nCount) const
CSimpleMap< CStringW, CStringW > m_Keys
CConfigParser(const CStringW &FilePath)
const CStringW szConfigPath
BOOL GetString(const CStringW &KeyName, CStringW &ResultString)
BOOL GetInt(const CStringW &KeyName, INT &iResult)
UINT GetSectionString(LPCWSTR Section, LPCWSTR Name, CStringW &Result)
void ReadSection(CStringW &Buffer, const CStringW &Section, BOOL isArch)
static CSectionNames g_Names
HRESULT ReadIniValue(LPCWSTR File, LPCWSTR Section, LPCWSTR Name, CStringW &Output)
HRESULT ReadIniValue(LPCWSTR File, LPCWSTR Section, LPCWSTR Name, CStringW &Output)
INT WINAPI StrToIntW(LPCWSTR lpString)
INT WINAPI GetPrivateProfileSectionW(LPCWSTR section, LPWSTR buffer, DWORD len, LPCWSTR filename)
LCID WINAPI GetUserDefaultLCID(void)
INT WINAPI GetLocaleInfoW(LCID lcid, LCTYPE lctype, LPWSTR buffer, INT len)
CLocaleSections ArchSpecific
CLocaleSections ArchNeutral
_Must_inspect_result_ _In_ WDFDEVICE _In_ PCUNICODE_STRING KeyName
#define GetPrivateProfileString
#define HRESULT_FROM_WIN32(x)
_At_(*)(_In_ PWSK_CLIENT Client, _In_opt_ PUNICODE_STRING NodeName, _In_opt_ PUNICODE_STRING ServiceName, _In_opt_ ULONG NameSpace, _In_opt_ GUID *Provider, _In_opt_ PADDRINFOEXW Hints, _Outptr_ PADDRINFOEXW *Result, _In_opt_ PEPROCESS OwningProcess, _In_opt_ PETHREAD OwningThread, _Inout_ PIRP Irp Result)(Mem)) NTSTATUS(WSKAPI *PFN_WSK_GET_ADDRESS_INFO