HeapFree function kernel32
Frees a memory block allocated from a heap by the HeapAlloc or HeapReAlloc function.
To learn more, see learn.microsoft.com/windows/win32/api/heapapi/nf-heapapi-heapfree.
Implementation
Win32Result<bool> HeapFree(HANDLE hHeap, HEAP_FLAGS dwFlags, Pointer? lpMem) {
final result_ = HeapFree_Wrapper(hHeap, dwFlags, lpMem ?? nullptr);
return .new(value: result_.value.i32 != FALSE, error: result_.error);
}