Function 68, subfunction 20 - reallocate memory block.
Parameters:
- eax = 68 - function number
- ebx = 20 - subfunction number
- ecx = new size in bytes
- edx = pointer to already allocated block
Returned value:
- eax = pointer to the reallocated block, 0 = error
Remarks:
- Before this call one must initialize process heap by call to
subfunction 11.
- The function allocates an integer number of pages (4 Kb) in such
way that the real size of allocated block is more than or equal to
requested size.
- If edx=0, the function call is equivalent to memory allocation
with subfunction 12. Otherwise the block at edx
must be allocated earlier with subfunction 12 or this subfunction.
- If ecx=0, the function frees memory block at edx and returns 0.
- The contents of the block are unchanged up to the shorter of
the new and old sizes.