GetProcessHeaps function kernel32
Returns the number of active heaps and retrieves handles to all of the active heaps for the calling process.
To learn more, see learn.microsoft.com/windows/win32/api/heapapi/nf-heapapi-getprocessheaps.
Implementation
Win32Result<int> GetProcessHeaps(
int numberOfHeaps,
Pointer<Pointer> processHeaps,
) {
resolveGetLastError();
final result_ = _GetProcessHeaps(numberOfHeaps, processHeaps);
return .new(value: result_, error: GetLastError());
}