Important: The information in this document is obsolete and should not be used for new development.
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.
<-- spsPointer
Ptr A pointer to a record in the slot resource table. --> spID
SignedByte The ID of the sResource entry. --> spExtDev
SignedByte The external device identifier. --> spSlot
SignedByte The slot. --> spFlags
SignedByte Flags. DESCRIPTION
TheSSearchSRT
function searches the slot resource table for the record corresponding to the sResource in slotspSlot
with listspId
and external device identifierspExtDev
, and returns a pointer to it inspsPointer
. If thefCkForNext
bit ofspFlags
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 theSSearchSRT
function are
Trap macro Selector _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 A0 Address of the parameter block D0 $002A
Registers on exit D0 Result code RESULT CODES
noErr 0 No error smNoMoresRsrcs -344 Requested sResource not found smRecNotFnd
-351 Record not found in the slot resource table