GetProcessHeap function Null safety kernel32

int GetProcessHeap()

Retrieves a handle to the default heap of the calling process. This handle can then be used in subsequent calls to the heap functions.

HANDLE GetProcessHeap();

Implementation

int GetProcessHeap() {
  final _GetProcessHeap = _kernel32
      .lookupFunction<IntPtr Function(), int Function()>('GetProcessHeap');
  return _GetProcessHeap();
}