Otcfggetdefault, Otcfgdeleteprefs – Apple Network Setup User Manual
Page 90

C H A P T E R 3
Network Setup Reference
90
Network Setup Functions
OTCfgGetDefault
3
Returns a handle containing the default value for a preference.
Handle OTCfgGetDefault (OSType entityType,
OSType entityClass,
OSType prefsType);
entityType
On input, a value of type
OSType
that identifies the entity type of
the default preference that is to be obtained. For possible values,
see “Entity Classes and Types” (page 104).
entityClass
On input, a value of type
OSType
that identifies the entity class of
the default preference that is to be obtained. For possible values,
see “Entity Classes and Types” (page 104).
prefsType
On input, a value of type
OSType
that identifies the preference
whose default value is to be obtained.
function result A handle or
NULL
if no preference of the specified entity type,
class, and preference type exists, or if there is not enough
memory to obtain the handle.
DISCUSSION
The
OTCfgGetDefault
function returns a handle containing the default value for
a preference of the specified entity, class, and preference type.
Note
You are responsible for disposing of the handle that
OTCfgGetDefault
obtains by calling the Memory Manager
function
DisposeHandle
.
◆
OTCfgDeletePrefs
3
Deletes a preference.
OSStatus OTCfgDeletePrefs (CfgEntityAccessID accessID,
OSType prefsType);