RsrcMapEntryTo access the resource entries in a resource map in memory directly, you can use the
FUNCTION RsrcMapEntry (theResource: Handle): LongInt;
- A handle to a resource.
DESCRIPTIONGiven a handle to a resource,
RsrcMapEntryreturns the offset of the specified resource's entry from the beginning of the resource map in memory. If it doesn't find
the resource entry,
RsrcMapEntryreturns 0, and the
ResErrorfunction returns the result code
resNotFound. If you pass a handle whose value is
RsrcMapEntryreturns arbitrary data, but
ResErrorreturns the result code
- Because the Resource Manager provides routines for opening, retrieving, and changing resources, there's usually no reason to access a resource map directly. To avoid damaging the file for which it's called, you should use
noErr 0 No error resNotFound -192 Resource not found
SEE ALSOFor an overview of the resource map, see "The Resource Map" beginning on page 1-7. For details of the structure of the resource map, see Figure 1-14 on page 1-115.