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 /


SFindSRsrcPtr

This function is used only by the Macintosh Operating System.

FUNCTION SFindSRsrcPtr (spBlkPtr: SpBlockPtr): OSErr;
spBlkPtr
A pointer to a Slot Manager parameter block.
<--spsPointerPtrA pointer to an sResource (described in "The sResource," beginning on page 2-7).
-->spSlotSignedByteThe slot number of the requested sResource.
-->spIdSignedByteThe sResource ID of the requested sResource.
XspResultLongInt 

DESCRIPTION
The SFindSRsrcPtr function finds an sResource given its slot number and sResource ID. This function ignores disabled sResources.

ASSEMBLY-LANGUAGE INFORMATION
The trap macro and routine selector for the SFindSRsrcPtr function are
Trap macroSelector
_SlotManager$0030

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$0030
Registers on exit
D0Result code

RESULT CODES
noErr0No error
smNoMoresRsrcs-344Requested sResource not found
SEE ALSO
For information about the high-level routines for locating sResources, see "Finding sResources," beginning on page 2-31.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
3 JUL 1996