Apple Network Setup manual OTCfgGetCurrentArea

Models: Network Setup

1 184
Download 184 pages 5.56 Kb
Page 60
Image 60
OTCfgGetCurrentArea

C H A P T E R 3

Network Setup Reference

IMPORTANT

Areas other than the default area (also known as the current area) do not affect any network setting, so many of the area manipulation functions described in this section are not commonly used. You rarely need to call OTCfgGetAreaName, OTCfgSetAreaName, OTCfgGetAreasCount, OTCfgGetAreasList, OTCfgCreateArea, OTCfgDuplicateArea, or OTCfgDeleteArea.

OTCfgGetCurrentArea

Obtains the default area.

OSStatus OTCfgGetCurrentArea (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 pointer to a value of type CfgAreaID (page 98). On

 

output, areaID points to the area ID of the current area.

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

DISCUSSION

The OTCfgGetCurrentArea function obtains the area ID of the default area. The default area is sometimes referred to as the current area.

60Network Setup Functions

Page 60
Image 60
Apple Network Setup manual OTCfgGetCurrentArea