Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Win32/Win64 API (native code) (https://www.delphipraxis.net/17-win32-win64-api-native-code/)
-   -   Delphi Prüfen ob Process noch aktiv (https://www.delphipraxis.net/132615-pruefen-ob-process-noch-aktiv.html)

oki 16. Apr 2009 08:07


Prüfen ob Process noch aktiv
 
Hi Leute,

ich starte einen Process mittels ShellExecuteEx und merke mir das Process-Handle. Jetzt möchte ich testen, ob das Handle noch gültig ist. Die Frage ist wie?
Habe ich ein Fensterhandle, so kann ich das recht einfach mittels Funktionsaufruf IsWindow machen. Gibt es so etwas auch für ein Process-Handle?

Dank und Gruß oki

Luckie 16. Apr 2009 08:38

Re: Prüfen ob Process noch aktiv
 
Sollte mit MSDN-Library durchsuchenGetExitCodeProcess gehen.

oki 16. Apr 2009 08:48

Re: Prüfen ob Process noch aktiv
 
Danke Lucky,
das wars was ich gesucht habe. Ich teste das und sag bescheid ob's die die Lösung gebracht hat.

Gruß oki

Luckie 16. Apr 2009 08:52

Re: Prüfen ob Process noch aktiv
 
Ich weiß zwar nicht, wer Lucky ist, aber trotzdem gern geschehen. ;)

oki 16. Apr 2009 08:59

Re: Prüfen ob Process noch aktiv
 
Ich habs getestet und klappt super.

Dank und Gruß

oki

oki 16. Apr 2009 09:00

Re: Prüfen ob Process noch aktiv
 
Zitat:

Zitat von Luckie
Ich weiß zwar nicht, wer Lucky ist, aber trotzdem gern geschehen. ;)

Dann eber der andere :lol:

Auch Dank and diesen!


Alle Zeitangaben in WEZ +1. Es ist jetzt 07:18 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz