Legacy Documentclose button

Important: The information in this document is obsolete and should not be used for new development.

Previous Book Contents Book Index Next

Inside Macintosh: Memory /
Chapter 2 - Memory Manager / Memory Manager Reference
Memory Manager Routines / Accessing Heap Zones


SetZone

To change the current heap zone, you can use the SetZone procedure.

PROCEDURE SetZone (hz: THz);
hz
A pointer to the heap zone to make current.
DESCRIPTION
The SetZone procedure makes the zone to which hz points the current
heap zone. Often, you use the SetZone procedure in conjunction with one of
the ApplicationZone, SystemZone, HandleZone, and PtrZone functions. For example, the code SetZone(SystemZone) makes the system heap zone current.

ASSEMBLY-LANGUAGE INFORMATION
The registers on entry and exit for SetZone are
Registers on entry
A0Pointer to new current heap zone
Registers on exit
D0Result code

RESULT CODES
noErr0No error

Previous Book Contents Book Index Next

© Apple Computer, Inc.
3 JUL 1996