views:

335

answers:

2

I have the handle of process 'A' on a Pocket PC 2003 device. I need to determine if that process is still running from process 'B'. Process 'B' is written in Embedded Visual C++ 4.0.

+1  A: 

GetExitCodeProcess will return STILL_ACTIVE if the process was running when the function was called.

Peter Ritchie
A: 

Process handles are waitable. They are signalled - will release any waiting thread - when the process exits. You can use them with WaitForSingleObject, WaitForMultipleObjects, etc.

Mike Dimmick