Otcfgcloseprefs, Otcfggetprefssize – Apple Network Setup User Manual

Page 85

Advertising
background image

C H A P T E R 3

Network Setup Reference

Network Setup Functions

85

OTCfgClosePrefs

3

Closes an entity.

OSStatus OTCCfgClosePrefs (CfgEntityAccessID accessID);

accessID

On input, a value of type

CfgEntityAccessID

(page 100),

obtained by previously calling

OTCfgOpenPrefs

(page 84), that

identifies the entity that is to be closed.

function result A value of

noErr

indicates that

OTCfgClosePrefs

returned

successfully. For a list of other possible result codes, see “Result
Codes” (page 110).

DISCUSSION

The

OTCfgClosePrefs

function closes the specified entity.

OTCfgGetPrefsSize

3

Gets the size of a preference.

OSStatus OTCCfgGetPrefsSize (CfgEntityAccessID accessID.

OSType prefsType,

ByteCount * length);

accessID

On input, a value of type

CfgEntityAccessID

(page 100),

obtained by previously calling

OTCfgOpenPrefs

(page 84), that

identifies the entity containing the preference whose size is to be
obtained.

prefsType

On input, a value of type

prefsType

that identifies the type of

the preference whose size is to be obtained.

length

On input, a pointer to a value of type

ByteCount

. On output,

length

contains the size in bytes of the preference specified by

prefsType

.

Advertising