IMAGE_NT_HEADERS structure

Represents the PE header format.

Syntax


typedef struct _IMAGE_NT_HEADERS {
  DWORD                 Signature;
  IMAGE_FILE_HEADER     FileHeader;
  IMAGE_OPTIONAL_HEADER OptionalHeader;
} IMAGE_NT_HEADERS, *PIMAGE_NT_HEADERS;

Members

Signature

A 4-byte signature identifying the file as a PE image. The bytes are "PE\0\0".

FileHeader

An IMAGE_FILE_HEADER structure that specifies the file header.

OptionalHeader

An IMAGE_OPTIONAL_HEADER structure that specifies the optional file header.

Remarks

The actual structure in WinNT.h is named IMAGE_NT_HEADERS32 and IMAGE_NT_HEADERS is defined as IMAGE_NT_HEADERS32. However, if _WIN64 is defined, then IMAGE_NT_HEADERS is defined as IMAGE_NT_HEADERS64.


typedef struct _IMAGE_NT_HEADERS64 {
    DWORD Signature;
    IMAGE_FILE_HEADER FileHeader;
    IMAGE_OPTIONAL_HEADER64 OptionalHeader;
} IMAGE_NT_HEADERS64, *PIMAGE_NT_HEADERS64;

Requirements

Minimum supported client

Windows XP [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]

Header

WinNT.h (include Windows.h)

See also

ImageHlp Structures
CheckSumMappedFile
IMAGE_FILE_HEADER
IMAGE_OPTIONAL_HEADER
ImageNtHeader
ImageRvaToSection
ImageRvaToVa
LOADED_IMAGE
UpdateDebugInfoFile

 

 

Community Additions

ADD
Show:
© 2014 Microsoft