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.

DWORD CoGetCurrentProcess();

Implementation

int CoGetCurrentProcess() => _CoGetCurrentProcess();