Hi all,

In my MFC Aplication I have started a new process using
"Create Process" function . The process starts up and runs ,
but how do I determine if that process is still running ?

I came across the function

BOOL GetProcessTimes(
HANDLE hProcess,
LPFILETIME lpCreationTime,
LPFILETIME lpExitTime,
LPFILETIME lpKernelTime,
LPFILETIME lpUserTime
);

In above function's arguments,
"lpExitTime " is "Pointer to a FILETIME structure that receives the exit time of the process. " But MSDN library also says that if the process has not exited, the content of this structure is undefined.

So , I am stuck . Any help ?

Thanks,
Ashwini