pub unsafe extern "C-unwind" fn SCPreferencesSetLocalHostName(
prefs: &SCPreferences,
name: Option<&CFString>,
) -> boolAvailable on crate features
SCPreferences and SCPreferencesSetSpecific only.Expand description
Updates the local host name.
Note: To commit these changes to permanent storage you must call the SCPreferencesCommitChanges function. In addition, you must call the SCPreferencesApplyChanges function for the new name to become active.
Parameter prefs: The preferences session.
Parameter name: The local host name to be set.
Note: this string must conform to the naming conventions of a DNS host name as specified in RFC 1034 (section 3.5).
Returns: Returns TRUE if successful; FALSE otherwise.