Important: The information in this document is obsolete and should not be used for new development.
CountResources
You can use theCountResourcesfunction to get the total number of available resources of a given type.
FUNCTION CountResources (theType: ResType): Integer;
theType- A resource type.
DESCRIPTION
Given a resource type, theCountResourcesfunction reads the resource maps in memory for all resource forks open to your application. It returns as its function result the total number of resources of the given type in all resource forks open to your application.RESULT CODE
noErr 0 No error SEE ALSO
To check for errors, call theResErrorfunction as described on page 1-47.