The functions in the SCPreferencesSetSpecific programming interface allow an application to set specific configuration information about the current system (for example, the computer or sharing name). Note that to access configuration preferences, you must first establish a preferences session using the SCPreferencesCreate(_:_:_:) function.


Setting Configuration Information

func SCPreferencesSetLocalHostName(SCPreferences, CFString?) -> Bool

Sets the local host name to the specified name.