LONG SetKeyValue( LPCTSTR lpszKeyName, LPCTSTR lpszValue, LPCTSTR lpszValueName = NULL );
Return Value
If successful, returns ERROR_SUCCESS; otherwise, an error value.
Parameters
lpszKeyName
[in] Specifies the name of the key to be created or opened. This name must be a subkey of m_hKey.
lpszValue
[in] Specifies the data to be stored. This parameter must be non-NULL.
lpszValueName
[in] Specifies the value field to be set. If a value field with this name does not already exist in the key, it is added.
Remarks
Creates or opens the lpszKeyName key and stores the lpszValue data in the lpszValueName value field.
CRegKey Overview | Class Members
See Also CRegKey::SetValue