- call GetCommandLine to get the command line which started the program
- call CreateProcess (or a spawn variant) to start a new instance of your program, passing the original command line
- exit
You can find more information about the functions mentioned in the MSDN Library
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.