Need to check if a process is active or not.
C / C++ / MFC
3
Posts
2
Posters
0
Views
1
Watching
-
Hi I create new process (exe) with CreateProcess function. now Iv got a handle (hProcess) and would like to know whether or not the process is alive?
-
Hi I create new process (exe) with CreateProcess function. now Iv got a handle (hProcess) and would like to know whether or not the process is alive?
Here's one way... if (WAIT_OBJECT_0 != ::WaitForSingleObject(hProcess, 0)) { // process is still active }
"Posting a VB.NET question in the C++ forum will end in tears." Chris Maunder
-
Here's one way... if (WAIT_OBJECT_0 != ::WaitForSingleObject(hProcess, 0)) { // process is still active }
"Posting a VB.NET question in the C++ forum will end in tears." Chris Maunder
It's working.... thanks