Important: The information in this document is obsolete and should not be used for new development.
SDeleteSRTRec
You can use theSDeleteSRTRecfunction to remove an sResource from the slot resource table.
FUNCTION SDeleteSRTRec (spBlkPtr: SpBlockPtr): OSErr;
- spBlkPtr
- A pointer to a Slot Manager parameter block.
--> spSlotSignedByte The slot number. --> spIdSignedByte The sResource ID. --> spExtDevSignedByte The external device identifier. DESCRIPTION
TheSDeleteSRTRecfunction deletes an sResource from the slot resource table. This routine is typically called by a card'sPrimaryInitcode to delete any sResources that are not appropriate for the system as configured.SPECIAL CONSIDERATIONS
TheSDeleteSRTRecfunction is available only with Manager. You can use theSVersionfunction, described on page 2-30, to determine whether the Slot Manager is version 1 or later.ASSEMBLY-LANGUAGE INFORMATION
The trap macro and routine selector for theSDeleteSRTRecfunction are
Trap macro Selector _SlotManager $0031 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 $0031
Registers on exit D0 Result code SEE ALSO
For more information about the slot resource table, see "About the Slot Manager" on page 2-15. For information about restoring an sResource to the slot resource table, see theInsertSRTRecfunction, described next. For more information on deleting and restoring sResources, see "Deleting and Restoring sResources" on page 2-17.