Autor Beitrag
DelphiMan
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 73



BeitragVerfasst: Di 06.05.03 13:07 
hallo zusammen!

wie kann ich 100% feststellen, ob ein best. Programm (welches ich nicht unbedingt mit meinem programm gestartet habe) am laufen ist oder nicht?
Vielen Dank im Voraus!

MfG
DelphiMan
ase
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 203

Gentoo, Windows 9X, ME, 2k, NT, XP
Delphi 7 Prof., PHP 5 (Eclipse 3 SDK)
BeitragVerfasst: Di 06.05.03 14:27 
servus

indem du weißt wie die exe datei heißt. dann die unit PSApi einbinden und mal reinschauen.

ausblenden Quelltext
1:
function EnumProcesses(lpidProcess: LPDWORD; cb: DWORD; var cbNeeded: DWORD): BOOL;					


ich denke damit könnte es gehn. dann schaust du ob die exe läuft und damit sollte deine frage beantworted sein.


ase
JacFab
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 111



BeitragVerfasst: Di 06.05.03 21:19 
Dies ist eine andere Möglichkeit (anhand von Outlook deutlich gemacht)
ausblenden Quelltext
1:
2:
3:
4:
if FindWindow('rctrl_renwnd32',nil) <> 0 then 
  ShowMessage('Outlook ist gestartet') 
else 
  ShowMessage('Outlook ist nicht gestartet');