Important: The information in this document is obsolete and should not be used for new development.
CountResourcesYou can use the
CountResourcesfunction to get the total number of available resources of a given type.
FUNCTION CountResources (theType: ResType): Integer;
- A resource type.
DESCRIPTIONGiven a resource type, the
CountResourcesfunction 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.
noErr 0 No error
SEE ALSOTo check for errors, call the
ResErrorfunction as described on page 1-47.