Important: The information in this document is obsolete and should not be used for new development.
HandleZone
If you need to know which heap zone contains a particular relocatable block, you can use theHandleZonefunction.
FUNCTION HandleZone (h: Handle): THz;
h- A handle to a relocatable block.
DESCRIPTION
TheHandleZonefunction returns a pointer to the heap zone containing the relocatable block whose handle ish. In case of an error, the result returned byHandleZoneis undefined and should be ignored.
- IMPORTANT
- If the handle
his empty (that is, if it points to aNILmaster pointer),HandleZonereturns a pointer to the heap zone that contains the master pointer.![]()
ASSEMBLY-LANGUAGE INFORMATION
The registers on entry and exit forHandleZoneare
Registers on entry A0 Handle whose zone is to be found
Registers on exit A0 Pointer to handle's heap zone D0 Result code RESULT CODES
noErr 0 No error memWZErr -111 Attempt to operate on a free block