HeapAlloc function Null safety kernel32
Allocates a block of memory from a heap. The allocated memory is not movable.
LPVOID HeapAlloc(
HANDLE hHeap,
DWORD dwFlags,
SIZE_T dwBytes
);
Implementation
Pointer HeapAlloc(int hHeap, int dwFlags, int dwBytes) {
final _HeapAlloc = _kernel32.lookupFunction<
Pointer Function(IntPtr hHeap, Uint32 dwFlags, IntPtr dwBytes),
Pointer Function(int hHeap, int dwFlags, int dwBytes)>('HeapAlloc');
return _HeapAlloc(hHeap, dwFlags, dwBytes);
}