Tries to save a string value in the registry key. This will always write the value to the user key. @param p_pValueName Name of value to save. @param p_pValue Value to save. @return Result code (ERROR_SUCCESS if it worked).
| 337 | // @return Result code (ERROR_SUCCESS if it worked). |
| 338 | // |
| 339 | long UserOverrideableRegKey::SetStringValue(const wchar_t* const p_pValueName, |
| 340 | const wchar_t* const p_pValue) |
| 341 | { |
| 342 | long res = ERROR_ACCESS_DENIED; |
| 343 | if (!Locked()) { |
| 344 | res = m_UserKey.SetStringValue(p_pValueName, p_pValue); |
| 345 | } |
| 346 | return res; |
| 347 | } |
| 348 | |
| 349 | // |
| 350 | // Tries to delete a value from the user registry key. |
nothing calls this directly
no outgoing calls
no test coverage detected