HeapAlloc function kernel32

Pointer<NativeType> HeapAlloc(
  1. HANDLE hHeap,
  2. HEAP_FLAGS dwFlags,
  3. int dwBytes
)

Allocates a block of memory from a heap.

The allocated memory is not movable.

To learn more, see learn.microsoft.com/windows/win32/api/heapapi/nf-heapapi-heapalloc.

Implementation

@pragma('vm:prefer-inline')
Pointer HeapAlloc(HANDLE hHeap, HEAP_FLAGS dwFlags, int dwBytes) =>
    _HeapAlloc(hHeap, dwFlags, dwBytes);