RegistryPropertySet sets the value of a property in the Name Registry.
OSStatus RegistryPropertySet (
const RegEntryID *entryID,
const RegPropertyName *propertyName,
const void *propertyValue,
RegPropertyValueSize propertySize);
RegistryPropertySet sets the value of the property named propertyName and associated with the name entry identified by entryID. The propertySize parameter must be set to the size (in bytes) of the value pointed to by propertyValue.
RegistryPropertySet may be called from task level only, not from secondary interrupt level or hardware interrupt level. This restriction is due to the fact that a call to RegistryPropertySet allocates memory in NVRAM.