getProcessStartIdentity method
Returns an identity for the process instance associated with pid.
Unlike a PID, this value changes when the operating system reuses a PID. Returns null if the process does not exist or its identity cannot be read.
Implementation
String? getProcessStartIdentity(int pid) {
if (Settings().isWindows) {
return getWindowsProcessStartIdentity(pid);
}
if (Settings().isLinux) {
return _linuxProcessStartIdentity(pid);
}
if (Settings().isMacOS) {
return getMacOSProcessStartIdentity(pid);
}
return null;
}