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
Low-Level Routines /


SSearchSRT

This function is used only by the Macintosh Operating System.

FUNCTION SSearchSRT (spBlkPtr: SpBlockPtr): OSErr;
spBlkPtr
A pointer to a Slot Manager parameter block.
<--spsPointerPtrA pointer to a record in the slot resource table.
-->spIDSignedByteThe ID of the sResource entry.
-->spExtDevSignedByteThe external device identifier.
-->spSlotSignedByteThe slot.
-->spFlagsSignedByteFlags.

DESCRIPTION
The SSearchSRT function searches the slot resource table for the record corresponding to the sResource in slot spSlot with list spId and external device identifier spExtDev, and returns a pointer to it in spsPointer. If the fCkForNext bit of spFlags is 0, the function searches for the specified record; if the flag is 1, it searches for the next record.

ASSEMBLY-LANGUAGE INFORMATION
The trap macro and routine selector for the SSearchSRT function are
Trap macroSelector
_SlotManager$002A

On entry, register D0 contains the routine selector and register A0 contains 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$002A
Registers on exit
D0Result code

RESULT CODES
noErr0No error
smNoMoresRsrcs-344Requested sResource not found
smRecNotFnd-351Record not found in the slot resource table

Previous Book Contents Book Index Next

© Apple Computer, Inc.
3 JUL 1996