SReadInfoYou can use the
SReadInfofunction to obtain a copy of the slot information record for a particular slot.
FUNCTION SReadInfo (spBlkPtr: SpBlockPtr): OSErr;
- A pointer to a Slot Manager parameter block.
Pointer A pointer to a slot information record. -->
The slot number. X
DESCRIPTIONThe Slot Manager maintains a slot information record for each slot. The
SReadInfofunction copies the information from this data structure for the requested slot.
You specify the slot with the
spSlotparameter. You must also allocate a slot information record, and provide a pointer to it in the
SReadInfofunction copies the information in the slot information record maintained by the Slot Manager into the data structure pointed to by the
SPECIAL CONSIDERATIONSThis function may alter the contents of the
spSizefield. Your application should not depend on the value returned in this field.
ASSEMBLY-LANGUAGE INFORMATIONThe trap macro and routine selector for the
Trap macro Selector _SlotManager $0010
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 $0010
Registers on exit D0 Result code
noErr 0 No error
-300 No card in this slot
SEE ALSOFor general information about the slot information record, see "About the Slot Manager" on page 2-15. To obtain a pointer to the
SInfoRecorddata structure, instead of a copy of it, see the next section, which describes the