processExists

fnbool processExists(DWORD pid) @trusted nothrow

Checks if a process exists.

Parameters

pidProcess ID to check.

Returns

true if process exists, false otherwise.

Example:

if (processExists(1234)) {
  writeln("Process exists");
}