Quote:
Originally Posted by
Coma 
Your question is too specific - read my sig

You can use resources, but you'll still have to write the executables to disk as individual files before you can execute them.
You can't load an executable from memory.
Steps:
1. Create a resource file that'll tell the linker how to stick the EXEs into your PE as resources
2. Use FindResource and LoadResource in your code to get the files as buffers
3. Write it to a file using WriteFile
4. Start the EXE using CreateProcess
You most certainly can!
Using your steps:
1. Create a resource file that'll tell the linker how to stick the EXEs into your PE as resources
2. Use FindResource and LoadResource in your code to get the files as buffers
3. Allocate a chunk of memory using VirtualAlloc with PAGE_EXECUTE_READWRITE
4. Write the data out to this chunk of memory.
5. Call CreateThread on the starting address of a function to execute.
Not that you would do that to solve this though

Your solution is adequate
Edited by tompsonn - 8/7/12 at 2:26am