TempHLock
TempHLock Lock a specified relocatable block of temporary memory Handle h; handle to temporary block to be locked OSErr * resultCode; result code if h is not a valid temporary handle returns none
You can use TempHLock to lock a specified relocatable block of temporary memory, thereby pr eventing it from being moved within the heap zone.
The resultCode parameter will return one of the following error codes:
noErr (0) No error
nilHandleErr (-109) Nil master pointer
memWZErr (-111) Attempt to operate on a free block
temporary memory blocks.