When I want my program to run an executable file located in his resource, I will do the following:
Find the resource -> FindResource.
Load the resource -> LoadResource.
Lock the resource -> LockResource.
Create the executable file -> CreateFile.
Write the executable file -> WriteFile.
Run the executable -> CreateProcess.
Works like a charm.
But with the PlaySound function you can play a sound with the resource of the sound, using find, load, lock resource and using the returned value of LockResource as pszSound for the PlaySound function (and setting hmod to the handle of the executable with the resource and fdwSound to SND_RESOURCE).
My question: Is there a way to run the executable using CreateProcess without writing the resource of the executable to the hard disk and running it by the written file name but running the executable with only the resource of the executable and not the filename?
Thanks in advance, Ktulu.