Important: The information in this document is obsolete and should not be used for new development.
GetIndType
You can call theGetIndTypeprocedure repeatedly to get all the resource types available in all resource forks open to your application.
PROCEDURE GetIndType (VAR theType: ResType; index: Integer);
theTypeGetIndTypereturns, in this parameter, the resource type for the specified index among all the resource forks open to your application.index- An integer ranging from 1 to the number of resource types in all resource forks open to your application.
DESCRIPTION
Given an index number from 1 to the number of resource types in all resource forks open to your application (as returned byCountTypes), theGetIndTypeprocedure returns a resource type in the parametertheType. You can callGetIndTyperepeatedly 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 byCountTypes,GetIndTypereturns four null characters (ASCII code 0).SPECIAL CONSIDERATIONS
TheGetIndTypeprocedure may move or purge memory blocks in the application heap. Your application should not call this procedure at interrupt time.RESULT CODE
noErr 0 No error SEE ALSO
To check for errors, call theResErrorfunction as described on page 1-47.For more information about the
CountTypesfunction, see page 1-97.