Hi, I created a useful dll for Inno Setup to handle things that are there in Task Manager and/or Resource Monitor.
Functions
function IsExeRunning(exeFileName: PAnsiChar): Boolean;
function IsProcessIdRunning(ProcessId: Cardinal): Boolean;
function GetExeProcessId(exeFileName: PAnsiChar): Cardinal;
function GetExeHeapId(exeFileName: PAnsiChar): Cardinal;
function GetExeModuleId(exeFileName: PAnsiChar): Cardinal;
function GetExeParentProcessId(exeFileName: PAnsiChar): Cardinal;
function GetExeThreads(exeFileName: PAnsiChar): Cardinal;
function GetExeMemoryUsage(exeFileName: PAnsiChar): Cardinal;
function GetExeCpuUsage(exeFileName: PAnsiChar): Cardinal;
function KillTask(exeFileName: PAnsiChar): Cardinal;
function RestartTask(exeFileName: PAnsiChar): Cardinal;
Functions
function IsExeRunning(exeFileName: PAnsiChar): Boolean;
function IsProcessIdRunning(ProcessId: Cardinal): Boolean;
function GetExeProcessId(exeFileName: PAnsiChar): Cardinal;
function GetExeHeapId(exeFileName: PAnsiChar): Cardinal;
function GetExeModuleId(exeFileName: PAnsiChar): Cardinal;
function GetExeParentProcessId(exeFileName: PAnsiChar): Cardinal;
function GetExeThreads(exeFileName: PAnsiChar): Cardinal;
function GetExeMemoryUsage(exeFileName: PAnsiChar): Cardinal;
function GetExeCpuUsage(exeFileName: PAnsiChar): Cardinal;
function KillTask(exeFileName: PAnsiChar): Cardinal;
function RestartTask(exeFileName: PAnsiChar): Cardinal;