From: Greg C. <chi...@mi...> - 2004-06-07 10:52:43
|
mike white wrote: > > i have a process that my GUI spawns off. i want to know when the process is > complete. the 2 ways i'm debating over is: > > 1.) use the WM_TIMER message and monitor the process id there. if the > process id is not running, then the process is done. > 2.) create a thread and use the WaitForSingleObject () and exit the thread > when process exits. (2) seems more natural to me. With (1), you're manually doing something that the operating system should do, and probably can do better. |