MCPcopy Create free account
hub / github.com/BeneficialCode/WinArk / ReadString

Method ReadString

WinArk/IniFile.cpp:12–16  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10}
11
12CString IniFile::ReadString(PCWSTR section, PCWSTR name, PCWSTR defaultValue) {
13 CString result;
14 auto count = ::GetPrivateProfileString(section, name, defaultValue, result.GetBufferSetLength(128), 128, _path);
15 return result;
16}
17
18bool IniFile::ReadBool(PCWSTR section, PCWSTR name, bool defaultValue) {
19 auto value = ReadInt(section, name, -1);

Callers 3

LoadMethod · 0.80
LoadFromFileMethod · 0.80
LoadColorsFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected