Platform SDK: Debugging and Error Handling

IMAGE_NT_HEADERS

The IMAGE_NT_HEADERS structure represents the PE header format.

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
Pointer to an IMAGE_FILE_HEADER structure that specifies the file header.
OptionalHeader
Pointer to an IMAGE_OPTIONAL_HEADER structure that specifies the optional file header.

Requirements

  Windows NT/2000: Requires Windows NT 4.0 or later.
  Windows 95/98: Requires Windows 95 or later. Available as a redistributable for Windows 95.
  Header: Declared in Winnt.h; include Windows.h.

See Also

Image Help Library Overview, ImageHlp Structures, CheckSumMappedFile, IMAGE_FILE_HEADER, IMAGE_OPTIONAL_HEADER, ImageNtHeader, ImageRvaToSection, ImageRvaToVa, LOADED_IMAGE, UpdateDebugInfoFile