C H A P T E R 3

Network Setup Reference

accessID On input, a value of type CfgEntityAccessID (page 100), obtained by previously calling OTCfgOpenPrefs (page 84) that identifies the entity from which a preference is to be deleted.

prefsType On input, a value of type OSType that identifies the preference type of the preference that is to be deleted.

function result A value of noErr indicates that OTCfgDeletePrefs returned successfully. For a list of other possible result codes, see “Result Codes” (page 110).

DISCUSSION

The OTCfgDeletePrefs function deletes the preference of the type specified by prefsType from the entity specified by accessID.

Note

The OTCfgDeletePrefs function is available in Network

Setup version 1.2 and later.

OTCfgGetTemplate

Gets the default value for a specific preference.

OSStatus OTCfgGetTemplate(CfgEntityClass entityClass,

CfgEntityType entityType,

OSType prefsType,

void *data, ByteCount *dataSize);

entityClass On input, a value of type CfgEntityClass that specifies the class of the preference whose default value is to be obtained.

entityType On input, a value of type CfgEntityType that specifies the type of the preference whose default value is to be obtained.

prefsType On input, a value of type OSType that specifies the preference type of the preference whose default value is to be obtained.

Network Setup Functions

91

Page 91
Image 91
Apple Network Setup manual OTCfgGetTemplate, Gets the default value for a specific preference