What’s the easiest way to duplicate the current process, to spawn another instance in Windows? I know Linux has fork(), but all I need is to run main in the same process again, probably using CreateProcess() with the correct arguments.
What’s the easiest way to duplicate the current process, to spawn another instance in
Share
As @DavidHeffernan commented: