Important: The information in this document is obsolete and should not be used for new development.
SReadPRAMRec
You can use theSReadPRAMRecfunction to read the parameter RAM information for a particular slot.
FUNCTION SReadPRAMRec (spBlkPtr: SpBlockPtr): OSErr;
- spBlkPtr
- A pointer to a Slot Manager parameter block.
--> spSlotSignedByteThe slot number. --> spResultPointer A pointer to an SPRAMRecorddata structure (described on page 2-27).X spSizeLongInt DESCRIPTION
The Macintosh Operating System allocates oneSPRAMRecorddata structure for each slot in the system parameter RAM. The Slot Manager initializes this structure with the data from thesPRAMInitrecord on the firmware of the expansion card. TheSReadPRAMRecfunction provides a copy of this information to your application.You specify the slot number in the
spSlotfield of the Slot Manager parameter block you point to in thespBlkPtrparameter. You must also allocate aSPRAMRecorddata structure and store a pointer to it in thespResultfield. TheSReadPRAMRecfunction copies the appropriate parameter RAM information into this data structure.ASSEMBLY-LANGUAGE INFORMATION
The trap macro and routine selector for theSReadPRAMRecfunction are
Trap macro Selector _SlotManager $0011 You must set up register D0 with the routine selector and register A0 with the address of the Slot Manager parameter block. When
_SlotManagerreturns, register D0 contains the result code.
Registers on entry A0 Address of the parameter block D0 $0011
Registers on exit D0 Result code RESULT CODES
noErr 0 No error smEmptySlot-300 No card in this slot SEE ALSO
For more information about thesPRAMInitrecord, see Designing Cards and Drivers for the Macintosh Family, third edition.