Apple Network Setup manual OTCfgClosePrefs, OTCfgGetPrefsSize

Models: Network Setup

1 184
Download 184 pages 5.56 Kb
Page 85
Image 85
OTCfgClosePrefs

C H A P T E R 3

Network Setup Reference

OTCfgClosePrefs

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

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.

Network Setup Functions

85

Page 85
Image 85
Apple Network Setup manual OTCfgClosePrefs, OTCfgGetPrefsSize