Important: The information in this document is obsolete and should not be used for new development.
SReadFHeader
You can use theSReadFHeaderfunction to obtain a copy of the information in the format block of a declaration ROM.
FUNCTION SReadFHeader (spBlkPtr: SpBlockPtr): OSErr;
- spBlkPtr
- A pointer to a Slot Manager parameter block.
--> spResultPointer A pointer to an FHeaderRecdata structure (described on page 2-26).--> spSlotSignedByteThe slot number. X spsPointerPtr X spSizeLongInt X spOffsetDataLongInt X spByteLanesSignedByte DESCRIPTION
TheSReadFHeaderfunction copies the information from the format block of the expansion card in the requested slot to anFHeaderRecdata structure you provide.You specify the slot with the
spSlotparameter. You must also allocate anFHeaderRecdata structure and provide a pointer to it in thespResultfield.The
SReadInfofunction copies the information in the format block into the data structure pointed to by thespResultfield.SPECIAL CONSIDERATIONS
This function may alter the contents of thespsPointer,spSize,spOffsetData, andspByteLanesfields. Your application should not depend on the values returned in these fields.ASSEMBLY-LANGUAGE INFORMATION
The trap macro and routine selector for theSReadFHeaderfunction are
Trap macro Selector _SlotManager $0013 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 $0013
Registers on exit D0 Result code RESULT CODES
noErr 0 No error smEmptySlot-300 No card in this slot SEE ALSO
For general information about the format block, see "The Format Block," beginning on page 2-13. For information about the fields of the format block, see Designing Cards and Drivers for the Macintosh Family, third edition.