0

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.

Anthony Mastrean
  • 21,850
  • 21
  • 110
  • 188

2 Answers2

1

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

Peter Ritchie
  • 35,463
  • 9
  • 80
  • 98
0

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
  • 9,662
  • 2
  • 23
  • 48