Important: The information in this document is obsolete and should not be used for new development.
GetResInfo
You can use theGetResInfoprocedure to get a resource's resource ID, resource type, and resource name.
PROCEDURE GetResInfo (theResource: Handle; VAR theID: Integer; VAR theType: ResType; VAR name: Str255);
theResource- A handle to a resource.
theIDGetResInforeturns the resource ID of the specified resource in this parameter.theTypeGetResInforeturns the resource type of the specified resource in this parameter.nameGetResInforeturns the name of the specified resource in this parameter.DESCRIPTION
Given a handle to a resource, theGetResInfoprocedure returns the resource's resource ID, resource type, and resource name. If the handle isn't a valid handle to
a resource,GetResInfodoes nothing; to determine whether this has occurred, callResError.RESULT CODES
noErr 0 No error resNotFound -192 Resource not found SEE ALSO
To check for errors, call theResErrorfunction as described on page 1-47.To set a resource's ID, resource type, or resource name, use the
SetResInfoprocedure. It is described next.