Otcfgclosearea – Apple Network Setup User Manual
Page 62

C H A P T E R 3
Network Setup Reference
62
Network Setup Functions
dbRef
represents a database session previously opened by calling
areaID
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
represents a database session previously opened by calling
areaID
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