Re: How To Determine if EXE is Windows 32-bit console application
- From: lcaverly@xxxxxxxxx
- Date: Tue, 8 Jul 2008 17:27:26 -0700 (PDT)
On Jul 7, 9:29 am, Luchezar Georgiev <lu...@xxxxxxxxx> wrote:
Hello,
Is there a program that I can run in 4DOS that will tell me whether
the .EXE is a 16-bit DOS program, or a Windows 32-bit console
application?
Take Command has the @EXETYPE function, which returns 1 for a DOS app,
and 7 for a Win 32 Console app.
Something like this for 4DOS is what I am looking for.
4DOS can run only DOS programmes, and doesn't know what DOS extender is
installed and hence what other programme types can be run. To determine
the file type in general I use FILE - an old port of it is available atftp://ftp.delorie.com/pub/djgpp/current/v2gnu/fil41b.zipbut I've built
a newer version from source. The return code from FILE can't be used to
test the file type, but a string can be got with @EXESTR[FILE NAM.EXT].
It can recognise many file types and "tell" some details about the file
Regards,
Lucho
When I run a Windows 32-bit console application in plain ol' 4DOS, it
says "This program cannot be run in DOS mode". When I have the TSR
HXLDR32 loaded in plain ol' 4DOS, which is the HX DOS Extender, the
Windows 32-bit console applications run with no problem.
Using the PC Magazine RECORDER.COM utility, it shows that the
MSVCRT.DLL was loaded into memory when executing one of my Win 32-bit
Console Applications. When I run a Delphi 2.0 Console Application,
several other .DLL's are also loaded into memory.
Using MEM, the largest amount of DOS memory that I have free is 605K,
with 29,335K free Extended Memory.
Considering that the HXLDR32 TSR only takes 688 bytes of conventional
memory, and allows me to run the Win 32-bit console applications that
I have developed using Delphi 2.0 and FreeBASIC, as well as other
freeware Win 32-bit console applications, to me it's a better windows
than windows.
The video card I have to use is a S3 Trio 32/64 PCI with 8 MB Video
RAM, which does not allow VESA modes. If it did, I could even run
limited Windows GUI applications (SDI) in 4DOS, using the HX DOS
Extender.
Joe
.
- Follow-Ups:
- Re: How To Determine if EXE is Windows 32-bit console application
- From: Luchezar Georgiev
- Re: How To Determine if EXE is Windows 32-bit console application
- References:
- How To Determine if EXE is Windows 32-bit console application
- From: lcaverly
- Re: How To Determine if EXE is Windows 32-bit console application
- From: lcaverly
- Re: How To Determine if EXE is Windows 32-bit console application
- From: Luchezar Georgiev
- How To Determine if EXE is Windows 32-bit console application
- Prev by Date: Re: How To Determine if EXE is Windows 32-bit console application
- Next by Date: Re: How To Determine if EXE is Windows 32-bit console application
- Previous by thread: Re: How To Determine if EXE is Windows 32-bit console application
- Next by thread: Re: How To Determine if EXE is Windows 32-bit console application
- Index(es):
Relevant Pages
|