GetProcessHeap function kernel32
Retrieves a handle to the default heap of the calling process.
To learn more, see learn.microsoft.com/windows/win32/api/heapapi/nf-heapapi-getprocessheap.
Implementation
Win32Result<HANDLE> GetProcessHeap() {
final result_ = GetProcessHeap_Wrapper();
return .new(value: .new(result_.value.ptr), error: result_.error);
}