ADC Home > Reference Library > Reference > Networking > System Configuration Framework Reference
|
SCPreferencesSetSpecific |
Includes: |
The functions in the SCPreferencesSetSpecific API allow
an application to set specific configuration information
about the current system (for example, the computer or
sharing name).
To access configuration preferences, you must first establish
a preferences session using the SCPreferencesCreate function.
SCPreferencesSetComputerName |
Boolean SCPreferencesSetComputerName ( SCPreferencesRef prefs, CFStringRef name, CFStringEncoding nameEncoding );
prefs
name
nameEncoding
Returns TRUE if successful; FALSE otherwise.
Updates the computer name preference.
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.
SCPreferencesSetLocalHostName |
Boolean SCPreferencesSetLocalHostName ( SCPreferencesRef prefs, CFStringRef name );
prefs
name
Returns TRUE if successful; FALSE otherwise.
Updates the local host name.
Note: To commit these changes to permanent storage you must
call the SCPreferencesCommitChanges function.
In addition, you must call theSCPreferencesApplyChanges
function for the new name to become active.
|