HClrRBit
You can use the HClrRBit procedure to clear the resource flag of a relocatable block. The Resource Manager uses this routine extensively, but you probably won't need
to use it.
PROCEDURE HClrRBit (h: Handle);
h
- A handle to a relocatable block.
DESCRIPTION
The HClrRBit procedure clears the resource flag of a relocatable block. It does nothing if the flag is already cleared.
ASSEMBLY-LANGUAGE INFORMATION
The registers on entry and exit for HClrRBit are
| Registers on entry |
| A0 | Handle whose resource flag you want to clear |
| Registers on exit |
| D0 | Result code |
RESULT CODES
| noErr | 0 | No error |
| nilHandleErr | -109 | NIL master pointer |
| memWZErr | -111 | Attempt to operate on a free block |
SEE ALSO
To disassociate the data in a resource handle from the resource file, you should use the Resource Manager procedure DetachResource instead of this procedure.