Sign in Email. Forgot your password? Search within: Articles Quick Answers Messages. Stats CreateProcess and wait for result. SuperFun21 Rate me:. Please Sign up or sign in to vote. Introduction This is a short function that will run another program as if from the command line, wait for it to finish, and return the process's exit code.
The CreateProcess itself returns the handle thru the last argument. Rather use the following code to wait till the CreateProcess is completed. August 9th, , AM 3. As far as I can tell, I need the window handle not the process handle, but I'm not sure of the difference to use the SetWindowPos function. I don't think I can get the window handle from the CreateProcess function. I'm having trouble with your code. Doesn't the GetExitCodeProcess function get a return code when the window is closed or exited?
I need to know when the window is done loading, not when it is closed. August 9th, , AM 4. August 9th, , AM 5. I tested waitforsingleobject and works great. August 9th, , AM 6. I've never had any problems either I suspect a bad parameter is being passed!!
August 9th, , AM 7. Maybe I am passing a wrong parameter. For a list of the object types whose handles can be specified, see the following Remarks section. For more information, see Access Masks and Access Rights. I am not sure what the signaled state of the object is. If that's the same bug, this may be a good test case to add. Sorry, something went wrong. Ahh, yes it's the same bug. The patch can fix it as well as you get to see all the exit codes of all child processes.
I'll use it as a test case. Skip to content. Star New issue. Jump to bottom. Copy link. This is what I believe is causing hsc2hs to fail on removing an output file: Failed to remove file. Contributor Author.
0コメント