GetCurrentProcessId function kernel32

int GetCurrentProcessId()

Retrieves the process identifier of the calling process.

To learn more, see learn.microsoft.com/windows/win32/api/processthreadsapi/nf-processthreadsapi-getcurrentprocessid.

Implementation

@pragma('vm:prefer-inline')
int GetCurrentProcessId() => _GetCurrentProcessId();