CRegKey::SetGUIDValue
Call this method to set the GUID value of the registry key.
LONG SetGUIDValue(
LPCTSTR pszValueName,
REFGUID guidValue
) 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.guidValue
Reference to the GUID to be stored with the specified value name.
Возвращаемое значение
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 makes use of CRegKey::SetStringValue and converts the GUID into a string using StringFromGUID2.
Требования
Header: atlbase.h