What I want to do is use the Windows C API from my own single command line application to create a brand new process. (A couple of them actually). I want to be able to name this process whatever I want and all I want it to do is do a sleep(30)
to get me going.
Im having trouble doing this with the CreateFile()
API as it wants me to specify an executable to run the new process from. What I am after is something a bit like Fork()
on Linux.
How do I go about doing this? Do I have to do something complex like embed an exe that calls sleep()
in the resource section of my program, drop it then run CreateProcess()
on it?