Thanks Yuri, both examles call the same function OpenProcess which is what you need to determine if the PID is still active.
Glenn
>>Does anyone have any code to test whether a known PID is still running?
>>
>
>The Message #
483614 Re: How to activate, kill the process after knowing their pr should provide you with some ideas.