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

Method DeleteValue

PathCopyCopy/src/UserOverrideableRegKey.cpp:357–364  ·  view source on GitHub ↗

Tries to delete a value from the user registry key. NOTE: if a similar value is found in the global registry key, that value is unchanged and will thus come out on the next Query! @param p_pValueName Name of value to delete. @return Result code (ERROR_SUCCESS if it worked).

Source from the content-addressed store, hash-verified

355// @return Result code (ERROR_SUCCESS if it worked).
356//
357long UserOverrideableRegKey::DeleteValue(const wchar_t* const p_pValueName)
358{
359 long res = ERROR_ACCESS_DENIED;
360 if (!Locked()) {
361 res = m_UserKey.DeleteValue(p_pValueName);
362 }
363 return res;
364}
365
366//
367// Opens or creates a subkey of this registry key.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected