![]() |
FindSymbol |
||||
Header: | CodeFragments.h | Carbon status: | Supported | |
Searches for a specific exported symbol.
OSErr FindSymbol ( CFragConnectionID connID, ConstStr255Param symName, Ptr *symAddr, CFragSymbolClass *symClass );
A connection ID.
A symbol name.
On return, a pointer to the address of the symbol whose name is symName.
On return, a pointer to the class of the symbol whose name is symName. The currently recognized symbol classes are defined by the
A result code.
The FindSymbol function searches the code fragment identified by the connID parameter for the symbol whose name is specified by the symName parameter. If that symbol is found, FindSymbol returns the address of the symbol in the symAddr parameter and the class of the symbol in the symClass parameter.
Because a fragments code is normally exported through transition vectors to that code, the value kCodeSymbol is not returned in the PowerPC environment. You can use the other two constants to distinguish exports that represent code (of class kTVectSymbol) from those that represent general data (of class kDataSymbol).
Supported in Carbon. Available in CarbonLib 1.0 and later when InterfaceLib 7.1 or later is installed. Exported by CarbonLib 1.0 and later and by InterfaceLib 7.1 and later.
© 2000 Apple Computer, Inc. (Last Updated 4/14/2000)