Skip to content

Instantly share code, notes, and snippets.

@ssg
Created August 25, 2011 20:08
Show Gist options
  • Save ssg/1171741 to your computer and use it in GitHub Desktop.
Save ssg/1171741 to your computer and use it in GitHub Desktop.
NewExe header structure
{ NewExe implementation }
unit NewExe;
interface
const
NESign = $454e;
{flags}
nfSingleData = 1;
nfMultipleData = 2;
nfSelfLoader = $200;
nfErrors = $800;
nfLibrary = $2000;
efWin2runsWin3 = 1;
efWin2supProp = 2;
efFastload = 3;
type
TNewExeHeader = record
Signature : word;
LinkerVer : byte;
LinkerRev : byte;
EntryTblOfs : word;
EntryTblSize : word;
Reserved1 : longint;
Flags : word;
AutoDSNum : word;
LocalHeapSize : word;
StackSize : word;
CSIP : longint;
SSSP : longint;
SegTblEntries : word;
ModRefEntries : word;
NonResEntries : word;
SegTblOfs : word;
ResTblOfs : word;
ResNameTblOfs : word;
ModRefTblOfs : word;
ImpNameTblOfs : word;
NonResTblOfs : word;
MovEntryPts : word;
ShiftCount : word;
ResSegments : word;
OSFlags : byte;
ExeFlags : byte;
FastLoadOfs : word;
FastLoadLen : word;
Reserved2 : word;
WinVersion : byte;
end;
implementation
end.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment