Search
Module:
Directory

   Desktop Functions:

   Smart Device Functions:


Show Recent Changes
Subscribe (RSS)
Misc. Pages
Comments
FAQ
Helpful Tools
Playground
Suggested Reading
Website TODO List
Download Visual Studio Add-In

IMAGE_DOS_HEADER (Structures)
 
.
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

Please edit this page!

Do you have...

  • helpful tips?
  • corrections to the existing content?
  • alternate definitions?
  • additional languages you want to include?

Select "Edit This Page" on the right hand toolbar and edit it! Or add new pages containing any supporting types needed.

 
Access PInvoke.net directly from VS:
Terms of Use
Find References
Show Printable Version
Revisions