Using CreateProcess() and spawn functions
Posted on 1997-10-27
I haven't used these before, so I'm not sure what I might be doing wrong.
I'm trying to use the spawn functions so I can start an application (child process) and put the calling application (parent) in suspension while the child process runs.
I'm able to get the child process to start ok, but not with any command line parameters. And the only way I can get them to work is to give the name of the application in both the command name and argument strings. If I add the command line parameters, the child process doesn't start up.
I need to use this so I can get the handle of the process back so I can terminate it from parent process.
Any suggestions as to things that are frequently done incorrectly or things that MUST be done in a certain way for these functions would be greatly appreciated.