Get notification when process exits

c++ / delphi package - dll injection and api hooking
Post Reply
Davita
Posts: 163
Joined: Tue Sep 13, 2005 7:31 pm

Get notification when process exits

Post by Davita »

Hi

Is there any way to get notification/event when any of the running process exits? I want to monitor all processes in the system and I'd like to avoid WaitForSingleObject as it would require to create too many threads.

thanks
madshi
Site Admin
Posts: 10753
Joined: Sun Mar 21, 2004 5:25 pm

Re: Get notification when process exits

Post by madshi »

Why not use WaitForMultipleObjects?
Davita
Posts: 163
Joined: Tue Sep 13, 2005 7:31 pm

Re: Get notification when process exits

Post by Davita »

Ouch, looks like thats what I need. many thanks madshi, again :)
Post Reply