GetCurrentProcess function Null safety kernel32

int GetCurrentProcess()

Retrieves a pseudo handle for the current process.

HANDLE GetCurrentProcess();

Implementation

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