Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!zaphod.mps.ohio-state.edu!samsung!umich!terminator!bodwin.ifs.umich.edu!jwh From: jwh@bodwin.ifs.umich.edu (Jim Howe) Newsgroups: comp.os.os2.programmer Subject: Re: LONGNAMES Message-ID: <1991Feb7.142506.17562@terminator.cc.umich.edu> Date: 7 Feb 91 14:25:06 GMT References: <11355@uhccux.uhcc.Hawaii.Edu> Sender: usenet@terminator.cc.umich.edu (usenet news) Organization: University of Michigan, IFS Project Lines: 19 In article <11355@uhccux.uhcc.Hawaii.Edu> tholen@uhccux.uhcc.Hawaii.Edu (David Tholen) writes: >Does somebody have detailed information about the contents of an OS/2 EXE >header? I can't completely answer your question but hopefully I can point you in the right direction. The bytes that hold the module flags are found at offset 0Ch from the start of the New EXE header. The location of the New EXE header is a long value found at offset 3Ch from the start of the file. The module flags are contained in the two bytes at 0Ch past the value found at 3Ch. The value found at offset 8h from the start of the New EXE header is the files CRC value. When you change the module flags this value will also change. My linker (IBM v5.05) doesn't want to accept LONGNAMES or NEWFILES (which is what my documentation says to use) so I can't determine which bit in the module flags gets set when that option is selected. What version of the IBM linker are you using? James W. Howe internet: jwh@ifs.umich.edu University of Michigan uucp: uunet!mailrus!ifs.umich.edu!jwh Ann Arbor, MI 48103-4943