status of a process

H

harish

how to know that a process has terminated or not running.
I can use GetExitCodeProcess function for this.
But my doubt is:
I need to pass the process handle to this function.
And when a process is terminated, the same handle id can be associated
with some other process(that is the handle may not be unique).
Is my doubt correct or how is it.
please help

thanks in advance
harish
 
T

Thomas Matthews

harish said:
how to know that a process has terminated or not running.
I can use GetExitCodeProcess function for this.
But my doubt is:
I need to pass the process handle to this function.
And when a process is terminated, the same handle id can be associated
with some other process(that is the handle may not be unique).
Is my doubt correct or how is it.
please help

thanks in advance
harish

Processes are an operating system issue and outside
the domain of the C++ language and off-topic to this
newsgroup. You will need to ask in a newsgroup
related to your platform or operating system. See
the welcome.txt and FAQ links in my signature.

BTW, not all platforms have processes or are multi-
tasking. I can't refer you to the appropriate OS
group since you didn't specify it.

--
Thomas Matthews

C++ newsgroup welcome message:
http://www.slack.net/~shiva/welcome.txt
C++ Faq: http://www.parashift.com/c++-faq-lite
C Faq: http://www.eskimo.com/~scs/c-faq/top.html
alt.comp.lang.learn.c-c++ faq:
http://www.raos.demon.uk/acllc-c++/faq.html
Other sites:
http://www.josuttis.com -- C++ STL Library book
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,159
Messages
2,570,881
Members
47,418
Latest member
NoellaXku

Latest Threads

Top