Important: The information in this document is obsolete and should not be used for new development.
SDeleteSRTRec
You can use theSDeleteSRTRec
function to remove an sResource from the slot resource table.
FUNCTION SDeleteSRTRec (spBlkPtr: SpBlockPtr): OSErr;
- spBlkPtr
- A pointer to a Slot Manager parameter block.
--> spSlot
SignedByte The slot number. --> spId
SignedByte The sResource ID. --> spExtDev
SignedByte The external device identifier. DESCRIPTION
TheSDeleteSRTRec
function deletes an sResource from the slot resource table. This routine is typically called by a card'sPrimaryInit
code to delete any sResources that are not appropriate for the system as configured.SPECIAL CONSIDERATIONS
TheSDeleteSRTRec
function is available only with Manager. You can use theSVersion
function, 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 theSDeleteSRTRec
function 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
_SlotManager
returns, 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 theInsertSRTRec
function, described next. For more information on deleting and restoring sResources, see "Deleting and Restoring sResources" on page 2-17.