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.
<-- spsPointer
Ptr A pointer to an sResource (described in "The sResource," beginning on page 2-7). --> spParamData
LongInt The parameter flags. --> spSlot
SignedByte The slot number of the requested sResource. --> spID
SignedByte The sResource ID of the requested sResource. --> spExtDev
SignedByte The external device identifier. DESCRIPTION
TheSGetSRsrcPtr
function 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 theSGetSRsrcPtr
function 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
_SlotManager
returns, 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.