CoGetCurrentProcess function ole32

int CoGetCurrentProcess()

Returns a value that is unique to the current thread.

CoGetCurrentProcess can be used to avoid thread ID reuse problems.

To learn more, see learn.microsoft.com/windows/win32/api/combaseapi/nf-combaseapi-cogetcurrentprocess.

Implementation

@pragma('vm:prefer-inline')
int CoGetCurrentProcess() => _CoGetCurrentProcess();