Reading EXEs

Miscellaneous Forums/Win32 Discussion/Reading EXEs

Can anyone point me in the direction of a website or something that could teach me about how *.exe files are structured? I want to be able to create an application that can run applications.

A quick google gave me this: http://www.microsoft.com/whdc/system/platform/firmware/PECOFF.mspx

What are you going to do, write an emulator?
You do know that you can launch them without parsing them?

If you're making an application that is capable of running 'hosted' applications, take a look to the MaxIDE code, the debuger is doing exactly what you're descriving.

Can I ask that you don't start multiple threads until you've given enough time for a response to be made?

Application Linking

Unless you are actually wanting to parse an EXE file, in which case this quite rightly is a different issue.

Wotsit (EXE Search)

The Application Linking thread was for a whole different project that I am doing and it's very coincidental that the two threads interlock so closely. I'm not trying to host an application. I want to create an application that reads an exe and executes the code in an entirely separate environment (like a Windows within Windows kind of thing).

I want to create an application that reads an exe and executes the code in an entirely separate environment (like a Windows within Windows kind of thing).

Ahhh right!

Did you check out the Wotsit link I gave you above?

Yes I did, and truthfully...none of this stuff makes a lick of sense to me. I'll be looking more into this matter but for now, none of this has any affect on the way I see an PE file. Most of the information has to do with pointers and address and I never understood any of that anyway so I'll have to learn that before I learn about the structure.