HeapAlloc
Allocates a block from a Win32 heap.
Module: Windows
Microsoft documentation: HeapAlloc
Signature
rux
func HeapAlloc(heap: *opaque, flags: uint32, bytes: uint) -> *opaque;Parameters
| Name | Description |
|---|---|
heap | Heap handle returned by GetProcessHeap. |
flags | Win32 heap flags; use 0 for default behavior. |
bytes | Requested allocation size. |
Returns
*opaque — the allocated block, or null on failure. The memory is uninitialized unless a zero-memory flag is supplied. Release it with HeapFree using the same heap.
See also
Heap— heap API overview