Heap Constants

 

For the latest documentation on Visual Studio 2017, see Visual Studio 2017 Documentation.

For the latest documentation on Visual Studio 2017, see Heap Constants on docs.microsoft.com.

  
#include <malloc.h>  
  

These constants give the return value indicating status of the heap.

ConstantMeaning
_HEAPBADBEGINInitial header information was not found or was invalid.
_HEAPBADNODEBad node was found, or heap is damaged.
_HEAPBADPTR_pentry field of _HEAPINFO structure does not contain valid pointer into heap (_heapwalk routine only).
_HEAPEMPTYHeap has not been initialized.
_HEAPENDEnd of heap was reached successfully (_heapwalk routine only).
_HEAPOKHeap is consistent (_heapset and _heapchk routines only). No errors so far; _HEAPINFO structure contains information about next entry (_heapwalk routine only).

_heapchk
_heapset
_heapwalk
Global Constants

Show: