Click to See Complete Forum and Search --> : Terminating A Process


Builderman
June 5th, 2003, 01:00 PM
If I launch a new process just before I terminate the calling process from a DLL by calling ExitProcess(), will that process be exited as well?

filthy_mcnasty
June 5th, 2003, 05:37 PM
if the DLL is mapped into the calling process space *which is the case most of the time* then yes ExitProcess will terminate the DLL and the exe. it sounds like you want a DLL to run without the process that called it, is that right? if so you've got quite a bit of work to do =(

also you should try avoiding Exit(Process/Thread) if at all possible. design your application to return normally.