🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.msdos.programmer
Article #4068

exe file headers

#4068
From: Rob Wedlock
Date: Sun, 30 Dec 1990 06:36
21 lines
1387 bytes
Hi!
  Many many thanks to Chobuka Joe for answering my question about
  stdin handle. Turns out my handbook says it's 1 when its actually
  0. Clears everything up!

  Now, I have noticed something strange happening with exe files!
  In the same handbook (ugh!) it shows me all the meanings of the
  bytes in the exe file headers. At offset 4 it says is a word
  which is the size of the file div 512, at offset 2, the file size
  mod 512. Well, if i do the mathematical gymnastics on the numbers,
   so far I have yet to match  the result with the value in the directory!
  Most of the time it's larger. On telemate, its ALOT smaller, and
  using debug, I see that dos doesnt even load the whole tm.exe file!
  If I manually edit the header and change the value too big, dos
  says the exe file is in a bad format!! 

  I'm curious.  Does anyone know how this works? Replies thru emial
  would be very much appreciated!!
]
Thanks!!
rob.wedlock@samba.acs.unc.edu
Technical Details
Message-ID: <2057@beguine.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rutgers!usc!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!emory!gatech!mcnc!beguine!Rob.Wedlock

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rutgers!usc!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!emory!gatech!mcnc!beguine!Rob.Wedlock
From: Rob.Wedlock@samba.acs.unc.edu (Rob Wedlock)
Newsgroups: comp.os.msdos.programmer
Subject: exe file headers
Keywords: exe file headers rutabega
Message-ID: <2057@beguine.UUCP>
Date: 30 Dec 90 06:36:39 GMT
Sender: usenet@beguine.UUCP
Lines: 21