Carbon


GetIndSymbol

Header: CodeFragments.h Carbon status: Supported

Gets information about the exported symbols in a fragment.

OSErr GetIndSymbol (
    CFragConnectionID connID, 
    SInt32 symIndex, 
    Str255 symName, 
    Ptr *symAddr, 
    CFragSymbolClass *symClass
);
Parameter descriptions
connID

A connection ID.

symIndex

A symbol index. The value of this parameter should be greater than or equal to 1 and less than or equal to the value returned by the CountSymbols function.

symName

On return, the name of the indicated symbol.

symAddr

On return, a pointer to the address of the indicated symbol.

symClass

On return, a pointer to the class of the indicated symbol. See “Load Flag, Symbol Class, and Fragment Locator Constants”.

function result

A result code.

DISCUSSION

If GetIndSymbol executes successfully, it returns the symbol’s name, starting address, and class in the symName, symAddr, and symClass parameters, respectively. A fragment’s exported symbols are retrieved in no predetermined order.

AVAILABILITY

Supported in Carbon. Available in Carbon 1.0.2 and later when running Mac OS 8.1 or later.


© 2000 Apple Computer, Inc. (Last Updated 6/30/2000)