Posted on 1998-07-29
I have a question here: Below is part of my codes:
bRetVal = CreateProcess(NULL,"c:\\application\\setup.exe", NULL,NULL,FALSE,NORMAL_PRIORITY_CLASS,NULL,NULL,&StartupInfo,&ProcessInformation);
I use CreateProcess() to run the setup of a particular application. However when I use the GetExitCodeProcess to determine whether the application setup has terminated.
I discovered that the GetexitCodeProcess returns that the process has terminated (although the setup process is still runing). Then I found out that this is because the setup process generated other processes to continue the application setup and then terminated itself.
My question is how can my calling process determine that the application setup has terminated.