|
-
December 22nd, 2010, 10:46 AM
#1
WaitForSingleObject
If you use waitforsingleobject after createprocess, and you get a return value of WAIT_OBJECT_0, is this telling you the process has successfully started or that the process started, run its course and then ended.
-
December 22nd, 2010, 11:18 AM
#2
Re: WaitForSingleObject
If you wait for the returned process handle (being a valid handle) then WAIT_OBJECT_0 means the process handle was closed (the process has exited)
Victor Nijegorodov
-
December 22nd, 2010, 11:41 AM
#3
Re: WaitForSingleObject
 Originally Posted by VictorN
If you wait for the returned process handle (being a valid handle) then WAIT_OBJECT_0 means the process handle was closed (the process has exited)
To add to above: generally said WaitForSingleObject would wait until the (valid) handle passed was signaled or when the timeout interval given elapsed. For a process handle the docs say:
Process Handle
Created by calling the CreateProcess function. Its state is set to nonsignaled while the process is running, and set to signaled when the process terminates.
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
|