HeapFree function Null safety kernel32
- int hHeap,
- int dwFlags,
- Pointer<
NativeType> lpMem
Frees a memory block allocated from a heap by the HeapAlloc or HeapReAlloc function.
BOOL HeapFree(
HANDLE hHeap,
DWORD dwFlags,
_Frees_ptr_opt_ LPVOID lpMem
);
Implementation
int HeapFree(int hHeap, int dwFlags, Pointer lpMem) {
final _HeapFree = _kernel32.lookupFunction<
Int32 Function(IntPtr hHeap, Uint32 dwFlags, Pointer lpMem),
int Function(int hHeap, int dwFlags, Pointer lpMem)>('HeapFree');
return _HeapFree(hHeap, dwFlags, lpMem);
}