Important: The information in this document is obsolete and should not be used for new development.
SGetSRsrcPtr
This function is used only by the Macintosh Operating System.
FUNCTION SGetSRsrcPtr (spBlkPtr: SpBlockPtr): OSErr;
- spBlkPtr
- A pointer to a Slot Manager parameter block.
<-- spsPointerPtr A pointer to an sResource (described in "The sResource," beginning on page 2-7). --> spParamDataLongInt The parameter flags. --> spSlotSignedByte The slot number of the requested sResource. --> spIDSignedByte The sResource ID of the requested sResource. --> spExtDevSignedByte The external device identifier. DESCRIPTION
TheSGetSRsrcPtrfunction finds an sResource given its slot number and sResource ID.
This function can search disabled sResources.ASSEMBLY-LANGUAGE INFORMATION
The trap macro and routine selector for theSGetSRsrcPtrfunction are
Trap macro Selector _Slot Manager $001D On entry, register D0 contains the routine selector and register A0 contains 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 $001D
Registers on exit D0 Result code RESULT CODES
noErr 0 No error smNoMoresRsrcs -344 Requested sResource not found SEE ALSO
For information about the high-level routines for locating sResources, see "Finding sResources," beginning on page 2-31.