Apple Network Setup manual OTCfgCloseArea

Models: Network Setup

1 184
Download 184 pages 5.56 Kb
Page 62
Image 62
OTCfgCloseArea

C H A P T E R 3

Network Setup Reference

dbRef

On input, a value of type CfgDatabaseRef (page 98) that

 

represents a database session previously opened by calling

 

OTCfgOpenDatabase (page 58).

areaID

On input, a value of type CfgAreaID (page 98) that identifies the

 

area that is to be opened. If the area specified by areaID does not

 

exist, OTCfgOpenArea returns kCfgErrAreaNotFound.

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

DISCUSSION

The OTCfgOpenArea function opens the specified area in the Network Setup database for reading.

OTCfgCloseArea

Closes an area in the Network Setup database.

OSStatus OTCfgCloseArea (CfgDatabaseRef dbRef,

CfgAreaID areaID);

dbRef

On input, a value of type CfgDatabaseRef (page 98) that

 

represents a database session previously opened by calling

 

OTCfgOpenDatabase (page 58).

areaID

On input, a value of type CfgAreaID (page 98) that identifies the

 

area that is to be closed. If the area specified by areaID does not

 

exist, OTCfgCloseArea returns kCfgErrAreaNotFound.

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

DISCUSSION

The OTCfgCloseArea function closes an area in the database that was previously opened for reading by calling OTCfgOpenArea (page 61).

62Network Setup Functions

Page 62
Image 62
Apple Network Setup manual OTCfgCloseArea