Important: The information in this document is obsolete and should not be used for new development.
HomeResFile
To get the file reference number associated with a particular resource, use theHomeResFilefunction.
FUNCTION HomeResFile (theResource: Handle): Integer;
theResource- A handle to a resource.
DESCRIPTION
Given a handle to a resource, theHomeResFilefunction returns the file reference number for the resource fork containing the specified resource. If the given handle isn't a handle to a resource,HomeResFilereturns -1, and theResErrorfunction returns the result coderesNotFound. IfHomeResFilereturns 0, the resource is in the System file's resource fork. IfHomeResFilereturns 1, the resource is ROM-resident.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.