Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Including .exes in C

Name: Anonymous 2009-09-04 11:19

So I'm writing a program on Windows where I'd like to include an exe to run. Source for the exe isn't available. Is there a good way of doing this?

What I have currently is this: convert the exe to a character array and write it to a temporary file for calling with system or spawn. But this seems like the wrong way to go about it. At the very least, the Google has suggested named pipes might be the way to go, but I've got no idea how to work with them.

Halp?

Name: Anonymous 2009-09-04 11:35

>>5
>Is there an issue with dumping and running the executable?
Not really, it just seems inelegant and ideally it would work even if the user had no write permissions to anything.

>It's possible to do it without writing the executable to a file, but that's an advanced low-level subject
Damn. Thanks. It seemed like dumping it to a named pipe would be somewhat better than dumping to a file, but, as I say, I don't know how to work with those. If anyone can suggest something there or tell me why that's bad, that'd be great.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List