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

Method SetDWORDValue

PathCopyCopy/src/UserOverrideableRegKey.cpp:285–293  ·  view source on GitHub ↗

Tries to save a DWORD 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

283// @return Result code (ERROR_SUCCESS if it worked).
284//
285long UserOverrideableRegKey::SetDWORDValue(const wchar_t* const p_pValueName,
286 const DWORD p_Value)
287{
288 long res = ERROR_ACCESS_DENIED;
289 if (!Locked()) {
290 res = m_UserKey.SetDWORDValue(p_pValueName, p_Value);
291 }
292 return res;
293}
294
295//
296// Tries to save a QWORD value in the registry key.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected