Otcfgclosearea – Apple Network Setup User Manual

Page 62

Advertising
background image

C H A P T E R 3

Network Setup Reference

62

Network Setup Functions

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

3

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).

Advertising