Important: The information in this document is obsolete and should not be used for new development.
Summary of the Parameter RAM Utilities
Pascal Summary
Data Types
TYPE SysParmType = PACKED RECORD valid: Byte; {validity status} aTalkA: Byte; {node ID hint for modem port} aTalkB: Byte; {node ID hint for printer port} config: Byte; {use types for serial ports} portA: Integer; {modem port configuration} portB: Integer; {printer port configuration} alarm: LongInt; {alarm setting} font: Integer; {application font number minus 1} kbdPrint: Integer; {printer connection, auto-key settings} volClik: Integer; {caret blink, double click, speaker volume} misc: Integer; {menu blink, startup disk, mouse scaling} END; SysPPtr = ^SysParmType;Routines
FUNCTION InitUtil: OSErr; FUNCTION GetSysPPtr: SysPPtr; FUNCTION WriteParam: OSErr;C Summary
Data Types
struct SysParmType { char valid; /*validity status*/ char aTalkA; /*node ID hint for modem port*/ char aTalkB; /*node ID hint for printer port*/ char config; /*use types for serial ports*/ short portA; /*modem port configuration*/ short portB; /*printer port configuration*/ long alarm; /*alarm setting*/ short font; /*application font number minus 1*/ short kbdPrint; /*printer connection, auto-key settings*/ short volClik; /*caret blink, double click, speaker volume*/ short misc; /*menu blink, startup disk, mouse scaling*/ }; typedef struct SysParmType SysParmType; typedef SysParmType *SysPPtr;Routines
pascal OSErr InitUtil (void); SysPPtr GetSysPPtr (void); pascal OSErr WriteParam (void);Assembly-Language Summary
Data Structures
SysParmType Data Structure
0 valid 1 byte validity status 1 aTalkA 1 byte node ID hint for modem port 2 aTalkB 1 byte node ID hint for printer port 3 config 1 byte use types for serial ports 4 portA word modem port configuration 6 portB word printer port configuration 8 alarm long alarm setting 12 font word application font number minus 1 14 kbdPrint word printer connection, auto-key settings 16 volClik word caret blink, double click, speaker volume 18 misc word menu blink, system startup disk, mouse scaling Global Variables
Result Codes
noErr 0 No error prWrErr -87 Parameter RAM written did not verify prInitErr -88 Validity status is not $A8