Virtual Devices (3.1) (vdag31qh.hlp) (Table of Contents; Topic list)
_HeapFree
                                                     Up Next Previous
────────────────────────────────────────────────────────────────────────────
 
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.
 
Parameter  Description
────────────────────────────────────────────────────────────────────────────
 
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.
 
Return Value
 
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.
 
Uses
 
EAX
 
See Also
 
_HeapAllocate, _HeapReAllocate