Legacy Documentclose button

Important: The information in this document is obsolete and should not be used for new development.

Previous Book Contents Book Index Next

Inside Macintosh: Devices /
Chapter 2 - Slot Manager / Slot Manager Reference
Slot Manager Routines / Enabling, Disabling, Deleting, and Restoring sResources


SDeleteSRTRec

You can use the SDeleteSRTRec function to remove an sResource from the slot resource table.

FUNCTION SDeleteSRTRec (spBlkPtr: SpBlockPtr): OSErr;
spBlkPtr
A pointer to a Slot Manager parameter block.
-->spSlotSignedByteThe slot number.
-->spIdSignedByteThe sResource ID.
-->spExtDevSignedByteThe external device identifier.

DESCRIPTION
The SDeleteSRTRec function deletes an sResource from the slot resource table. This routine is typically called by a card's PrimaryInit code to delete any sResources that are not appropriate for the system as configured.

SPECIAL CONSIDERATIONS
The SDeleteSRTRec function is available only with Manager. You can use the SVersion 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 the SDeleteSRTRec function are
Trap macroSelector
_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
A0Address of the parameter block
D0$0031
Registers on exit
D0Result 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 the InsertSRTRec function, described next. For more information on deleting and restoring sResources, see "Deleting and Restoring sResources" on page 2-17.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
3 JUL 1996