MCPcopy Create free account
hub / github.com/clechasseur/pathcopycopy / SetStringValue

Method SetStringValue

PathCopyCopy/src/UserOverrideableRegKey.cpp:339–347  ·  view source on GitHub ↗

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).

Source from the content-addressed store, hash-verified

337// @return Result code (ERROR_SUCCESS if it worked).
338//
339long 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.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected