I have a C++ exe; under a particular scenario I need to stop the exe and start it up again. This has to be done from within the same exe and not from outside. What is the best way to achieve this?
My guess is to start a new instance of the process and then kill the running process. But is there any straight forward API to do this, like RestartProcess() or something? If not what do you suggest?