CoGetCurrentProcess function Null safety ole32

int CoGetCurrentProcess()

Returns a value that is unique to the current thread. CoGetCurrentProcess can be used to avoid thread ID reuse problems.

DWORD CoGetCurrentProcess();

Implementation

int CoGetCurrentProcess() {
  final _CoGetCurrentProcess = _ole32
      .lookupFunction<Uint32 Function(), int Function()>('CoGetCurrentProcess');
  return _CoGetCurrentProcess();
}