Virtual Devices (3.1) (vdag31qh.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
_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