Autor Beitrag
schaumermal
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 72



BeitragVerfasst: Fr 12.09.08 15:34 
Hallo,

ich möchte gerne in meinem Programm auf das Beenden von externen Programmen reagieren.

Also wenn ein Programm beendet wird, dann mache bitte ...

Diese Funktion soll generell durchlaufen werden, also nicht nur wenn ein bestimmtes Programm beendet wird.

Hat hier jemand eine Idee (WM_ Messages)?

Gruß

PS:
Luckie
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: Fr 12.09.08 15:44 
Du müsstes wahrscheinlich mit einem API-Hook die API-Funktion Suche im MSDN EXITPROCESS hooken.
Boldar
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1555
Erhaltene Danke: 70

Win7 Enterprise 64bit, Win XP SP2
Turbo Delphi
BeitragVerfasst: Fr 12.09.08 15:52 
Da micht dass auch interessiert: Wie macht man dass?
schaumermal Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 72



BeitragVerfasst: Fr 12.09.08 16:17 
Gute Frage,

ich habe mich noch nie mit Hooks beschäftigt :-(
Yogu
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 2598
Erhaltene Danke: 156

Ubuntu 13.04, Win 7
C# (VS 2013)
BeitragVerfasst: Fr 12.09.08 16:27 
Hier eines der einzigen guten Tutorials zum Thema Hooks:

Assarbad's Hook Tutorial

Kann ich nur weiterempfehlen.
Boldar
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1555
Erhaltene Danke: 70

Win7 Enterprise 64bit, Win XP SP2
Turbo Delphi
BeitragVerfasst: Fr 12.09.08 16:39 
Aber da werden nur maus-Und Tastaturhooks beschrieben. Von API-Hooks steht da nichts!
Luckie
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: Fr 12.09.08 21:37 
Hier www.michael-puff.de/...Delphi/Importe/toms/ gibt es eine API-Hook Demo von toms.