include vmm.inc VMMcall _HeapFree, <hAddress, flags> or eax, eax ; nonzero if freed, zero if error jz not_freed |
The _HeapFree service frees an existing memory block of heap.
hAddress
Specifies the address of the memory block to free. This address must have been previously returned from the _HeapAllocate or _HeapReAllocate service.
flags
Specifies the operation flags. This parameter must be set to 0.
The EAX register contains a nonzero value if the service is successful. Otherwise, EAX contains zero to indicate an error such as an invalid address.
EAX