getCurrentProcessId

fnDWORD getCurrentProcessId() @trusted nothrow

Gets the current process ID.

Returns

Current process ID.

Example:

auto pid = getCurrentProcessId();
writeln("PID: ", pid);