Function SCPreferencesAddValue

Source
pub unsafe extern "C-unwind" fn SCPreferencesAddValue(
    prefs: &SCPreferences,
    key: &CFString,
    value: &CFPropertyList,
) -> bool
Available on crate feature SCPreferences only.
Expand description

Adds data for a preference key.

This function associates new data 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 value to be associated with the specified preference key.

Returns: Returns TRUE if the value was added; FALSE if the key already exists or if an error occurred.