Memory allocation.

AllocHGlobalAllocates the specified number of bytes from the global heap.
AllocMemAllocates the specified number of bytes from the custom library heap.
AllocMemToAllocates the specified number of bytes from the custom library heap and stores a pointer to the allocated memory at the passed address.
AMemBlocksStores information about all blocks allocated from the library internal heap into an array.
CompactMemReturns the size of the largest committed free block in the library specific heap.
FreeHGlobalFrees memory allocated with AllocHGlobal.
FreeMemFrees a memory block allocated from the library internal heap by the AllocMem or ReAllocMem function.
FreePMemFrees the memory block the passed in pointer points to from the library internal heap.
FreeRefArrayFrees all memory allocated for the passed in C style array.
LockHGlobalLocks a global memory object and returns a pointer to the first byte of the object's memory block.
ReAllocHGlobalChanges the size of a specified global memory object.
ReAllocMemChanges the size of a memory block previously allocated by AllocMem.
SizeOfMemRetrieves the size of a memory block allocated by AllocMem.
UnlockHGlobalDecrements the lock count associated with a memory object allocated with AllocHGlobal.
ValidateMemValidates the library internal heap. The function scans all the memory blocks in the heap and verifies that the heap control structures maintained by the heap manager are in a consistent state. You can also use the ValidateMem function to validate a single memory block without checking the validity of the entire heap.