Mail Archives: djgpp/1996/08/21/11:36:34
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 -