| 150 | } |
| 151 | |
| 152 | bool ConfigurationHolder::saveBooleanToConfigFile(const Configuration & configObject) const |
| 153 | { |
| 154 | const WCHAR *boolValue = configObject.isTrue() ? L"1" : L"0"; |
| 155 | BOOL ret = WritePrivateProfileString(CONFIG_FILE_SECTION_NAME, configObject.getName(), boolValue, configPath); |
| 156 | return !!ret; |
| 157 | } |
| 158 | |
| 159 | bool ConfigurationHolder::loadConfig(Configuration & configObject) |
| 160 | { |