C H A P T E R 3

Network Setup Reference

OTCfgGetDefault

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

Deletes a preference.

OSStatus OTCfgDeletePrefs (CfgEntityAccessID accessID,

OSType prefsType);

90Network Setup Functions

Page 90
Image 90
Apple Network Setup manual OTCfgGetDefault, OTCfgDeletePrefs, Deletes a preference