HeapCompact function kernel32

int HeapCompact(
  1. int hHeap,
  2. int dwFlags
)

Returns the size of the largest committed free block in the specified heap. If the Disable heap coalesce on free global flag is set, this function also coalesces adjacent free blocks of memory in the heap.

SIZE_T HeapCompact(
  HANDLE hHeap,
  DWORD  dwFlags
);

Implementation

int HeapCompact(int hHeap, int dwFlags) => _HeapCompact(hHeap, dwFlags);