pub unsafe extern "C-unwind" fn SCPreferencesSetValue(
prefs: &SCPreferences,
key: &CFString,
value: &CFPropertyList,
) -> boolAvailable on crate feature
SCPreferences only.Expand description
Updates the data associated with a preference key.
This function adds or replaces the value associated with the specified key. To commit these changes to permanent storage a call must be made to the SCPreferencesCommitChanges function.
Parameter prefs: The preferences session.
Parameter key: The preference key to be updated.
Parameter value: The CFPropertyListRef object containing the
data to be associated with the specified preference key.
Returns: Returns TRUE if the value was set; FALSE if an error occurred.