MCPcopy Create free account
hub / github.com/NtQuery/Scylla / readStringFromConfigFile

Method readStringFromConfigFile

Scylla/ConfigurationHolder.cpp:132–143  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

130}
131
132bool ConfigurationHolder::readStringFromConfigFile(Configuration & configObject)
133{
134 WCHAR buf[Configuration::CONFIG_STRING_LENGTH];
135 DWORD read = GetPrivateProfileString(CONFIG_FILE_SECTION_NAME, configObject.getName(), L"", buf, _countof(buf), configPath);
136 if(read > 0 && wcslen(buf) > 0)
137 {
138 configObject.setString(buf);
139 return true;
140 }
141
142 return false;
143}
144
145bool ConfigurationHolder::readBooleanFromConfigFile(Configuration & configObject)
146{

Callers

nothing calls this directly

Calls 2

getNameMethod · 0.80
setStringMethod · 0.80

Tested by

no test coverage detected