MZ: Difference between revisions

801 bytes added ,  3 years ago
[unchecked revision][unchecked revision]
(→‎MZ File Structure: hex offsets)
Line 107:
| N/A
| Files sometimes contain extra information for the main's program overlay management.
|}
 
With the advent of the [[PE]] executable, Microsoft added items to the MZ header, as defined in WinNT.h
 
{| {{wikitable}}
|-
! colspan=2|Offset
! Field
! Size
! Description
|-
| 28
| 0x22
| Reserved
| qword
|
|-
| 36
| 0x2A
| OEM identifier
| word
| Defined by name but no other information is given; typically zeroes
|-
|38
| 0x2C
| OEM info
| word
| Defined by name but no other information is given; typically zeroes
|-
| 40
| 0x2E
| Reserved
| 20 bytes
|-
| 50
| 0x38
| PE header start
| dword
| Starting address of the PE header
|}
 
Line 128 ⟶ 167:
 
==See Also==
* [http://web.archive.org/web/20120204110033/http://www.nondot.org/sabre/os/files/Executables/EXE.txt OSRC]
* [http://www.delorie.com/djgpp/doc/exe/ D.J. Delorie: MZ Header format]
* [http://www.pinvoke.net/default.aspx/Structures.IMAGE_DOS_HEADER IMAGE_DOS_HEADER]
* [https://marcin-chwedczuk.github.io/a-closer-look-at-portable-executable-msdos-stub A closer look at Portable Executable MS-DOS Stub]
 
[[Category:Executable Formats]]
Anonymous user