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.
Where to find Win32/EXE/PE information?
- Combuster
- Member

- Posts: 9301
- Joined: Wed Oct 18, 2006 3:45 am
- Libera.chat IRC: [com]buster
- Location: On the balcony, where I can actually keep 1½m distance
- Contact:
I once found this site which holds a lot of useful information:
http://win32assembly.online.fr/tutorials.html (look for PE tutorials)
http://win32assembly.online.fr/tutorials.html (look for PE tutorials)
Here is some code that doc DexOS's PE loader, there alot of info that may help, the codes in fasm and VC++ .
http://www.osdev.org/phpBB2/viewtopic.p ... ight=dexos
http://www.osdev.org/phpBB2/viewtopic.p ... ight=dexos
Have you tried the documents section over a Bona Fide?
Reflect Desktop Operating System - ' You only remember the name of the OS when it crashes '

