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 theHomeResFile
function.
FUNCTION HomeResFile (theResource: Handle): Integer;
theResource
- A handle to a resource.
DESCRIPTION
Given a handle to a resource, theHomeResFile
function returns the file reference number for the resource fork containing the specified resource. If the given handle isn't a handle to a resource,HomeResFile
returns -1, and theResError
function returns the result coderesNotFound
. IfHomeResFile
returns 0, the resource is in the System file's resource fork. IfHomeResFile
returns 1, the resource is ROM-resident.RESULT CODES
noErr 0 No error resNotFound -192 Resource not found SEE ALSO
To check for errors, call theResError
function as described on page 1-47.