Date: Wed, 21 Aug 1996 17:07:06 +0200 (MET DST) From: Mark Habersack Reply-To: grendel AT ananke DOT amu DOT edu DOT pl To: Alexander Lehmann cc: djgpp AT delorie DOT com Subject: Re: rsxtndj and long filenames In-Reply-To: <4vceqc$p2i@rs18.hrz.th-darmstadt.de> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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