-
December 13th, 2002, 03:56 AM
#1
finding if a process is running or not
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|