Carbon


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
);
Parameter descriptions
theType

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 isn’t in the range from 1 to the number of resource types as returned by CountTypes, this parameter contains four null characters (ASCII code 0).

index

An integer ranging from 1 to the number of resource types in all resource forks open to your application, as returned by CountTypes function.

DISCUSSION

To check for errors, call the ResError function.

SPECIAL CONSIDERATIONS

This function may move or purge memory blocks in the application heap. Your application should not call this function at interrupt time.

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)