Hola deliriun.
Proba de este modo,
Código Delphi
[-]
uses tlhelp32;
function IsAppRunning(const ExeFileName: string): Boolean;
var
Entry: PROCESSENTRY32;
hSnapShot: THandle;
begin
hSnapShot:= CreateToolhelp32Snapshot(TH32CS_SNAPPROCESS, 0);
Entry.dwSize:= SizeOf(PROCESSENTRY32);
Result:= False;
if Process32First(hSnapShot, Entry) then
while Process32Next(hSnapShot, Entry) and not Result do
if Entry.szExeFile = ExeFileName then
Result:= True;
CloseHandle(hSnapSHot);
end;
Ejemplo de uso:
Código Delphi
[-]
procedure TForm1.Button1Click(Sender: TObject);
begin
if IsAppRunning('notepad.exe') then
ShowMessage('Se está ejecutando')
else
ShowMessage('No se está ejecutando');
end;
Saludos