www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/08/21/11:36:34

Date: Wed, 21 Aug 1996 17:07:06 +0200 (MET DST)
From: Mark Habersack <grendel AT ananke DOT amu DOT edu DOT pl>
Reply-To: grendel AT ananke DOT amu DOT edu DOT pl
To: Alexander Lehmann <lehmann AT mathematik DOT th-darmstadt DOT de>
cc: djgpp AT delorie DOT com
Subject: Re: rsxtndj and long filenames
In-Reply-To: <4vceqc$p2i@rs18.hrz.th-darmstadt.de>
Message-ID: <Pine.NEB.3.95.960821170237.16845A-100000@ananke.amu.edu.pl>
MIME-Version: 1.0

On 20 Aug 1996, Alexander Lehmann wrote:

>Hello all,
>
>
>I have no idea how to investigate this problem (and I'd rather not
>learn Windows programming, the fact that djgpp is quite unixy is IMHO
>the best part of it :-). But maybe someone has an idea. I think Win95
>decides if an application is LFN capable by some kind of version
>number that is in the executable header.
PE Win32 format (as well as the "old" Win16/Os2 NE format) has a field in the
header that states which system version it was compiled for. If Win95 loader
sees the field to contain 3.x version number, it loads the app as an WinNT 3.1
compatible executable (or Win3.x if the program is 16bit). This not only
prevents the application from using LFNs, but also Win95 doesn't free all the
application's resources after it aborts or simply forgets to free all of them.
If you are interested, I can send you a short utility I wrote that modifies
the PE header field. It is capable of marking the executable with any version
number you choose.

Mark

/************************************************************/
/** Maybe it was infatuation or the thrill of a chase?   **/          
/** Maybe you were always beyond my reach and my heart **/
/**   was playing safe?                     ***********/ 
/** But was that love in your eyes I saw, **/
/**   or the reflection of mine?        **/
/** I'll never really know for sure,  **/
/** You never really gave me time!  **/
/** Won't you give me that time?  **/ 
/**          "Cindirella Search" **/
/********************************/
Visit my homepage: http://ananke.amu.edu.pl/~grendel

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019