Apple Network Setup manual Invalid Area ID, OTCfgUserMode Preference

Models: Network Setup

1 184
Download 184 pages 5.56 Kb
Page 109
Image 109
OTCfgUserMode Preference

C H A P T E R 3

Network Setup Reference

These preferences are used by the Network Setup backward compatibility mechanism to ensure an accurate conversion between legacy preference files and the Network Setup database.

OTCfgUserMode Preference

For most control panels that support a concept of “user mode,” the OTCfgUserMode preference holds (or is used as a field in another preference to hold) the current user mode as a UInt16. The exceptions are the ARA and Modem control panels, where the user mode is stored as a UInt32.

enum unsigned short OTCfgUserMode

{

kOTCfgBasicUserMode

= 1,

kOTCfgAdvancedUserMode

=

2,

kOTCfgAdminUserMode

=

3,

};

typedef UInt32 OTCfgUserMode32;

Constant descriptions

kOTCfgBasicUserMode

Basic user mode.

kOTCfgAdvancedUserMode

Advanced user mode.

kOTCfgAdminUserMode

Administration user mode. This mode is used by the control panel at runtime but is never valid in a preference. It is defined here for completeness only.

Invalid Area ID

The constant kInvalidCfgAreaID represents an invalid area ID.

Network Setup Constants

109

Page 109
Image 109
Apple Network Setup manual Invalid Area ID, OTCfgUserMode Preference