[PE format Analysis] 3. IMAGE_NT_HEADER, imagedosheader

Source: Internet
Author: User

[PE format Analysis] 3. IMAGE_NT_HEADER, imagedosheader

The source code is as follows:

Typedef struct _ IMAGE_NT_HEADERS {+ 00 h DWORD Signature; // fixed to 0x00004550 based on small-end storage: "PE .. "+ 04 h IMAGE_FILE_HEADER FileHeader; + 18 h IMAGE_OPTIONAL_HEADER32 OptionalHeader;} IMAGE_NT_HEADERS32, * PIMAGE_NT_HEADERS32;
Signature Field

In a valid PE file, the Signature field is set to 0x00004550, And the ASCII character is "PE00 ". Indicates the beginning of the PE file header.

The PE00 string is the start of the PE file header. The e_lfanew field in the DOS header points to this.

As shown in:

Another example:

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.