Click to See Complete Forum and Search --> : Problem in Threads


ravish
May 3rd, 1999, 03:58 PM
Hi I created a thread which spawns a application. the spawn is no wait, and i want to get when the thread is quit. I dont want to use a loop to check the status(for STILL_ACTIVE). is there a way to check the thread is ended?
It is urgent , can anybosy help me?

sally
May 3rd, 1999, 07:17 PM
Use ShellExecuteEx()

wait for the process' handle in a thread and that's all

Sally

Sally
May 3rd, 1999, 07:17 PM
Use ShellExecuteEx()

wait for the process' handle in a thread and that's all

Sally

May 3rd, 1999, 08:10 PM
use WaitForSingleObject(threadHandle, ...)