getAllPIDs

fnint[] getAllPIDs() @safe nothrow

Gets all process IDs.

Returns

Array of process IDs.

Example:

auto pids = getAllPIDs();
writeln("Process count: ", pids.length);