![]() |
GetIndType |
||||
Header: | Resources.h | Carbon status: | Supported | |
Gets a resource type available in resource forks open to your application.
void GetIndType ( ResType *theType, SInt16 index );
On return, a pointer to the resource type for the specified index among all the resource forks open to your application.
You can call this function repeatedly over the entire range of the index to get all the resource types available in all resource forks open to your application. If the given index isnt in the range from 1 to the number of resource types as returned by CountTypes, this parameter contains four null characters (ASCII code 0).
An integer ranging from 1 to the number of resource types in all resource forks open to your application, as returned by CountTypes function.
To check for errors, call the ResError function.
This function may move or purge memory blocks in the application heap. Your application should not call this function at interrupt time.
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)