![]() |
HLockHi |
||||
Header: | MacMemory.h | Carbon status: | Supported | |
Moves a relocatable block to the top of the heap and locks the block.
void HLockHi ( Handle h );
A handle to a relocatable block.
The HLockHi function attempts to move the relocatable block referenced by the handle h upward until it reaches a nonrelocatable block, a locked relocatable block, or the top of the heap. Then HLockHi locks the block.
The HLockHi function is simply a convenient alternative to using the two functions MoveHHi and HLock.
Call the function MemError to get the result code. See
Because the HLockHi function moves memory, you should not call it at interrupt time.
Do not call HLockHi on blocks in the system heap. Do not call HLockHi from a desk accessory.
Supported in Carbon. Available in CarbonLib 1.0 and later when InterfaceLib 7.1 or later is installed. Exported by CarbonLib 1.0 and later and by InterfaceLib 7.1 and later.