IMAGE_DOS_HEADER (Structures)
Last changed: -69.196.158.230

.
Summary

C# Definition:

    [StructLayout(LayoutKind.Sequential)]
    public struct IMAGE_DOS_HEADER
    {
        public UInt16   e_magic;       // Magic number
        public UInt16   e_cblp;        // Bytes on last page of file
        public UInt16   e_cp;          // Pages in file
        public UInt16   e_crlc;        // Relocations
        public UInt16   e_cparhdr;     // Size of header in paragraphs
        public UInt16   e_minalloc;    // Minimum extra paragraphs needed
        public UInt16   e_maxalloc;    // Maximum extra paragraphs needed
        public UInt16   e_ss;          // Initial (relative) SS value
        public UInt16   e_sp;          // Initial SP value
        public UInt16   e_csum;        // Checksum
        public UInt16   e_ip;          // Initial IP value
        public UInt16   e_cs;          // Initial (relative) CS value
        public UInt16   e_lfarlc;      // File address of relocation table
        public UInt16   e_ovno;        // Overlay number
        [MarshalAs(UnmanagedType.ByValArray, SizeConst = 4)]
        public UInt16[] e_res1;        // Reserved words
        public UInt16   e_oemid;       // OEM identifier (for e_oeminfo)
        public UInt16   e_oeminfo;     // OEM information; e_oemid specific
        [MarshalAs(UnmanagedType.ByValArray, SizeConst = 10)]
        public UInt16[] e_res2;        // Reserved words
        public Int32    e_lfanew;      // File address of new exe header
    }

VB Definition:

User-Defined Field Types:

None.

Notes:

Comments are from WinNT.h

Documentation