pub unsafe extern "C-unwind" fn SCPreferencesLock(
prefs: &SCPreferences,
wait: bool,
) -> boolAvailable on crate feature
SCPreferences only.Expand description
Locks access to the configuration preferences.
This function obtains exclusive access to the configuration preferences. Clients attempting to obtain exclusive access to the preferences will either receive a kSCStatusPrefsBusy error or block waiting for the lock to be released.
Parameter prefs: The preferences session.
Parameter wait: A boolean flag indicating whether the calling process
should block waiting for another process to complete its update
operation and release its lock.
Returns: Returns TRUE if the lock was obtained; FALSE if an error occurred.