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

Method SetGUIDValue

PathCopyCopy/src/UserOverrideableRegKey.cpp:321–329  ·  view source on GitHub ↗

Tries to save a GUID value in the registry key (as a string). 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

319// @return Result code (ERROR_SUCCESS if it worked).
320//
321long UserOverrideableRegKey::SetGUIDValue(const wchar_t* const p_pValueName,
322 const GUID& p_Value)
323{
324 long res = ERROR_ACCESS_DENIED;
325 if (!Locked()) {
326 res = m_UserKey.SetGUIDValue(p_pValueName, p_Value);
327 }
328 return res;
329}
330
331//
332// Tries to save a string value in the registry key. This will always

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected