Site icon EfmSoft

What does NTSTATUS 0xC000012F (STATUS_INVALID_IMAGE_NOT_MZ) mean?

 
Previous Next
STATUS_INVALID_IMAGE_LE_FORMAT STATUS_INVALID_IMAGE_PROTECT

STATUS_INVALID_IMAGE_NOT_MZ

The file does not begin with a valid PE-compatible MZ header

A Windows PE image begins with an IMAGE_DOS_HEADER whose magic value is MZ. The loader uses fields in that header, especially e_lfanew, to locate the PE signature and NT headers. This status therefore indicates a basic format mismatch, truncation, or corruption before import processing or signature validation can begin.

The file might be an archive, script, ELF binary, raw firmware blob, response page downloaded instead of a binary, or a partially written executable. Relying on the filename extension can hide those cases.

What to inspect

References


Looking for a different code? Search another status or error code.

Exit mobile version