CountTypes
You can use theCountTypesfunction to get the number of resource types in all resource forks open to your application.
FUNCTION CountTypes: Integer;DESCRIPTION
TheCountTypesfunction reads the resource maps in memory for all resource forks open to your application. It returns an integer representing the total number of unique resource types.RESULT CODE
noErr 0 No error SEE ALSO
To check for errors, call theResErrorfunction as described on page 1-47.