GetZone
GetZone Get address of the current heap zone
#include <Memory.h> Memory Manager
THz GetZone( );
returns pointer to a 62-byte Zone record
GetZone returns the address of the start of the current heap zone.
Returns: a 4-byte pointer; the address of a 62-byte Zone record for that
current active heap zone.

Notes: Another method is to access the global variable TheZone (at 0x0118). For
instance, to change the number of master pointers to be allocated via
MoreMasters (i.e., modify a field of the current Zone structure), you
could use:
void MyMoreMasters( numMastPtrs )
short numMastPtrs;
{
short oldMoreMast; /* saved value of moreMast */
oldMoreMast = TheZone -> moreMast; /* get old value of moreMast */
TheZone -> moreMast = numMastPtrs; /* put the value we want in */
/* zone header */
MoreMasters(); /* allocate the master pointers */
TheZone -> moreMast = oldMoreMast;/* restore old val of moreMast */
}
Use SetZone to make a different zone active.