UnlockMemory
UnlockMemory Make a block of the address space movable
#include <Memory.h> Memory Manager
Debugger Support Under Virtual Memory
OSErr UnlockMemory( address, count );
void * address is the start address of the memory range
unsigned long count is the size of the range
returns Error Code; 0=no error
The UnlockMemory function makes a portion of the address space movable
in real memory and eligible for paging again. It undoes the effects of both
LockMemory and LockMemoryContiguous.
address is the start address of the range that is to be unlocked
count is the size in bytes of that range.
Returns: an operating system Error Code.
noErr (0) No error
paramErr (-50) Error in parameter list
notLockedErr (-623) Specified range of memory is not locked
interruptsMaskedErr (-624) Called with interrupts masked

Notes: If the specified address is not on a page boundary, it is rounded down to the
nearest page boundary. Similarly, if the specified range does not end on a
page boundary, the length parameter is rounded up so that the entire range
of memory is unlocked..