Where to find Win32/EXE/PE information?
Posted: Wed Jan 02, 2008 7:20 am
I'm trying to understand the Portable Executable format to build a working knowledge on how to manipulate program files, and most important, being able to test different generic parts of code under Windows without having to reset, emulate, but just run a small 32-bit application with a snippet to debug.
Right now, I just have information from here about COFF format:
http://www.delorie.com/djgpp/doc/coff/
Also, I have a small "repository" and "documentation" of what I have found until now, here:
http://didactos.blogsyte.com/win32_exe/
It only contains an incipient table in HTML format about the header format (it's even unknown if it's fully correct).
There's also a ZIP with rather overcomplicated documentation and a handmade EXE file which doesn't run and makes the situation more confusing?
So the question is if somebody knows of a place or documents that show in detail the structure and byte, word, dword fields of each part of the EXE and at least an example of how to implement the headers, sections, etc.? Or will it be necessary to come up with a solution by hardly interpreting those references, as well as header files like WINNT.H which are part of VC++?
The intention here is to have a template NASM source file and set all fields and structure manually as needed, without using a linker.
Right now, I just have information from here about COFF format:
http://www.delorie.com/djgpp/doc/coff/
Also, I have a small "repository" and "documentation" of what I have found until now, here:
http://didactos.blogsyte.com/win32_exe/
It only contains an incipient table in HTML format about the header format (it's even unknown if it's fully correct).
There's also a ZIP with rather overcomplicated documentation and a handmade EXE file which doesn't run and makes the situation more confusing?
So the question is if somebody knows of a place or documents that show in detail the structure and byte, word, dword fields of each part of the EXE and at least an example of how to implement the headers, sections, etc.? Or will it be necessary to come up with a solution by hardly interpreting those references, as well as header files like WINNT.H which are part of VC++?
The intention here is to have a template NASM source file and set all fields and structure manually as needed, without using a linker.