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 / Setting the Properties of Relocatable Blocks


HUnlock

You can use the HUnlock procedure to unlock a relocatable block so that it is free to move in its heap zone.

PROCEDURE HUnlock (h: Handle);
h
A handle to a relocatable block.
DESCRIPTION
The HUnlock procedure unlocks the relocatable block to which h is a handle, allowing it to be moved within its heap zone. If the block is already unlocked, HUnlock does nothing.

ASSEMBLY-LANGUAGE INFORMATION
The registers on entry and exit for HUnlock are
Registers on entry
A0Handle to unlock
Registers on exit
D0Result code

RESULT CODES
noErr0No error
nilHandleErr-109NIL master pointer
memWZErr-111Attempt to operate on a free block

Previous Book Contents Book Index Next

© Apple Computer, Inc.
3 JUL 1996