| 244 | } |
| 245 | |
| 246 | BOOL AppConfiguration::SetStringProperty(LPCTSTR name, LPCTSTR value) |
| 247 | { |
| 248 | CRegKey rk; |
| 249 | if (rk.Create(HKEY_CURRENT_USER, APP_ROOT_PATH, REG_NONE, REG_OPTION_NON_VOLATILE, KEY_READ | KEY_WRITE) == ERROR_SUCCESS) |
| 250 | { |
| 251 | HRESULT hr = rk.SetStringValue(name, value); |
| 252 | rk.Close(); |
| 253 | return SUCCEEDED(hr); |
| 254 | } |
| 255 | |
| 256 | return FALSE; |
| 257 | } |
| 258 | |
| 259 | BOOL AppConfiguration::GetDwordProperty(LPCTSTR name, DWORD& value) |
| 260 | { |
nothing calls this directly
no outgoing calls
no test coverage detected