C H A P T E R 4

Network Setup Protocol Structures and Data Types

struct OTCfgModemApplication {

UInt32 version;

PointwindowPos;

OTCfgUserMode32 userMode;

};

Field descriptions

 

version

Must be 1.

windowPos

Window position in global coordinates of the modem

 

control panel.

userMode

Must be kOTCfgBasicUserModeUser mode because the

 

Modem control panel does not support any other mode.

The preference type for the OTCfgModemApplication structure is kOTCfgModemApplicationPref, which is defined as 'mapt'.

OTCfgModemLocks

The OTCfgModemLocks structure stores the lock settings for the Modem control panel.

struct OTCfgModemLocks {

UInt32 version;

UInt32 port;

UInt32 script;

UInt32 speaker;

UInt32 dialing;

};

typedef struct OTCfgModemLocks OTCfgModemLocks;

Field descriptions

 

version

Must be 1.

port

Set port to 1 to lock the setting for the underlying serial

 

port or to zero to unlock the setting.

script

Set script to 1 to lock the modem script (CCL) or to zero to

 

unlock the setting.

speaker

Set speaker to 1 to lock the speaker setting or to zero to

 

unlock the speaker setting.

Protocol Structures

143

Page 143
Image 143
Apple Network Setup manual OTCfgModemLocks, 143