Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the forum
Board view  Mix view

OT: lfanew meaning (Developers)

posted by tkchia Homepage, 06.10.2026, 01:09
(edited by tkchia on 08.10.2026, 20:14)

> Something else, what does "lfanew" mean?

It is a reference to the field at offset 0x3c in the MZ header structure definition in the Windows API (edit: or, at least, which used to be part of the API):
typedef struct _IMAGE_DOS_HEADER {
  WORD e_magic;
  WORD e_cblp;
  WORD e_cp;
  ...
  WORD e_lfarlc;
  WORD e_ovno;
  ...
  LONG e_lfanew;
} IMAGE_DOS_HEADER,*PIMAGE_DOS_HEADER;

As for what it really means: not totally sure — I am guessing it is some form of Hungarian Notation.

Thank you!

---
https://codeberg.org/tkchia · https://git.disroot.org/tkchia · 😴 "MOV AX,0D500H+CMOS_REG_D+NMI"

 

Complete thread:

Back to the forum
Board view  Mix view
23743 Postings in 2250 Threads, 410 registered users (0 online)
DOS ain't dead | Admin contact
RSS Feed
powered by my little forum