Important: The information in this document is obsolete and should not be used for new development.
SReadPRAMRec
You can use theSReadPRAMRec
function to read the parameter RAM information for a particular slot.
FUNCTION SReadPRAMRec (spBlkPtr: SpBlockPtr): OSErr;
- spBlkPtr
- A pointer to a Slot Manager parameter block.
--> spSlot
SignedByte
The slot number. --> spResult
Pointer A pointer to an SPRAMRecord
data structure (described on page 2-27).X spSize
LongInt DESCRIPTION
The Macintosh Operating System allocates oneSPRAMRecord
data structure for each slot in the system parameter RAM. The Slot Manager initializes this structure with the data from thesPRAMInit
record on the firmware of the expansion card. TheSReadPRAMRec
function provides a copy of this information to your application.You specify the slot number in the
spSlot
field of the Slot Manager parameter block you point to in thespBlkPtr
parameter. You must also allocate aSPRAMRecord
data structure and store a pointer to it in thespResult
field. TheSReadPRAMRec
function copies the appropriate parameter RAM information into this data structure.ASSEMBLY-LANGUAGE INFORMATION
The trap macro and routine selector for theSReadPRAMRec
function 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
_SlotManager
returns, 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 thesPRAMInit
record, see Designing Cards and Drivers for the Macintosh Family, third edition.