Поделиться через


CRegKey::SetMultiStringValue

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

LONG SetMultiStringValue(
   LPCTSTR pszValueName,
   LPCTSTR pszValue 
) throw( );

Параметры

  • 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.

  • pszValue
    Pointer to the multistring data to be stored with the specified value name. A multistring is an array of null-terminated strings, terminated by two null characters.

Возвращаемое значение

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.

Заметки

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

Требования

Header: atlbase.h

См. также

Основные понятия

CRegKey Class

CRegKey Members

CRegKey::QueryMultiStringValue

CRegKey::SetDWORDValue

CRegKey::SetQWORDValue

CRegKey::SetGUIDValue

CRegKey::SetStringValue

CRegKey::SetBinaryValue