Getting and Setting the Current Resource FileMost of the Resource Manager routines assume that the current resource file is the file on whose resource fork they should operate or, in the case of a search, the file where they should begin. In general, the current resource file is the last one whose resource fork your application opened unless you specify otherwise.
Two routines work specifically with the current resource file:
CurResFilefunction tells you which of the files whose resource forks are currently open is the current resource file. The
UseResFileprocedure sets the current resource file.
HomeResFilefunction gets the file reference number associated with a particular resource.