Create child process
-
Hi, I need to start a program with errormode=SEM_NOALIGNMENTFAULTEXCEPT. I have made a small launcher program for this purpose. See here the code:
SetErrorMode(SEM_NOALIGNMENTFAULTEXCEPT); PROCESS_INFORMATION pi; CreateProcess(TEXT("C:/app.exe"), NULL, NULL, NULL, false, 0, NULL, NULL, NULL, &pi);
With this code starts the application app.exe, but i am not sure that it is runnend as child. It need to be a child, otherwise it doesn't use the right errorcode. Do you know if i have done it right? If not, how can i start a application as child process? Or is there another way todo it? Thank you. Best regards, Willem -
Hi, I need to start a program with errormode=SEM_NOALIGNMENTFAULTEXCEPT. I have made a small launcher program for this purpose. See here the code:
SetErrorMode(SEM_NOALIGNMENTFAULTEXCEPT); PROCESS_INFORMATION pi; CreateProcess(TEXT("C:/app.exe"), NULL, NULL, NULL, false, 0, NULL, NULL, NULL, &pi);
With this code starts the application app.exe, but i am not sure that it is runnend as child. It need to be a child, otherwise it doesn't use the right errorcode. Do you know if i have done it right? If not, how can i start a application as child process? Or is there another way todo it? Thank you. Best regards, WillemWhat do you mean by "child process?" Once a process has been started, it is a process in its own right. Both processes are free to do what they will without affecting/impacting the other.
"One must learn from the bite of the fire to leave it alone." - Native American Proverb