let's say i have a buffer that holds the contents of an executable... what would be the best way to map that buffer inside memory and run the exe which it holds, without writing it to a file?
By writing it to a file.
Make a function pointer to the entry point and call it?
Quote from: Camel on August 19, 2007, 01:00 AM
Make a function pointer to the entry point and call it?
yeah well that wouldn't work if you use other segments of the file other than the code segment, would it.
Quote from: l2k-Shadow on August 19, 2007, 01:24 AM
Quote from: Camel on August 19, 2007, 01:00 AM
Make a function pointer to the entry point and call it?
yeah well that wouldn't work if you use other segments of the file other than the code segment, would it.
Wow, is it really necessary to be an asshole when somebody tries to help?
This (http://forum.valhallalegends.com/index.php?topic=15579.0) might be a related or relevant topic.