Partager via


CRegKey::SetQWORDValue

Call this method to set the QWORD value of the registry key.

LONG SetQWORDValue(
   LPCTSTR pszValueName,
   ULONGLONG qwValue 
) throw( );

Parameters

  • pszValueName
    Pointer to a string containing the name of the value to set. If a value with this name is not already present, the method adds it to the key.

  • qwValue
    The QWORD data to be stored with the specified value name.

Return Value

If the method succeeds, the return value is ERROR_SUCCESS. If the method fails, the return value is a nonzero error code defined in WINERROR.H.

Remarks

This method uses RegSetValueEx to write the value to the registry.

Requirements

Header: atlbase.h

See Also

Concepts

CRegKey Class

CRegKey Members

CRegKey::QueryQWORDValue

CRegKey::SetDWORDValue

CRegKey::SetGUIDValue

CRegKey::SetStringValue

CRegKey::SetMultiStringValue

CRegKey::SetBinaryValue