Function SCPreferencesCreateWithAuthorization

Source
pub unsafe extern "C-unwind" fn SCPreferencesCreateWithAuthorization(
    allocator: Option<&CFAllocator>,
    name: &CFString,
    prefs_id: Option<&CFString>,
    authorization: AuthorizationRef,
) -> Option<CFRetained<SCPreferences>>
Available on crate features SCPreferences and objc2-security only.
Expand description

Initiates access to the per-system set of configuration preferences.

Parameter allocator: The CFAllocator that should be used to allocate memory for this preferences session. This parameter may be NULL in which case the current default CFAllocator is used. If this reference is not a valid CFAllocator, the behavior is undefined.

Parameter name: A string that describes the name of the calling process.

Parameter prefsID: A string that identifies the name of the group of preferences to be accessed or updated.

Parameter authorization: An authorization reference that is used to authorize any access to the enhanced privileges needed to manage the preferences session.

Returns: Returns a reference to the new SCPreferences. You must release the returned value.