Important: The information in this document is obsolete and should not be used for new development.
HomeResFileTo get the file reference number associated with a particular resource, use the
FUNCTION HomeResFile (theResource: Handle): Integer;
- A handle to a resource.
DESCRIPTIONGiven a handle to a resource, the
HomeResFilefunction 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 the
ResErrorfunction returns the result code
HomeResFilereturns 0, the resource is in the System file's resource fork. If
HomeResFilereturns 1, the resource is ROM-resident.
noErr 0 No error resNotFound -192 Resource not found
SEE ALSOTo check for errors, call the
ResErrorfunction as described on page 1-47.