Skip to main content

DOS4GW.EXE Version 2.01a and Alternative DOS Extenders

The Tenberry DOS extender DOS4GW.EXE was used by many early DOS games. I still enjoy playing many of these games and DOS4GW.EXE is usable with DOSBox, so they can be played on Linux.

However, the version of DOS4GW.EXE that was included with the game was whatever was current at the time. The most recent version that includes many bugfixes that possibly affected the games when used with DOSBox have been fixed in the latest version, 2.01a.

It's not free at US$49, but you can downloaded it here. Simply substitute it for whatever version of DOS4GW.EXE your game provided and enjoy the bug-fixed goodness. Tenberry also makes a "high-performance" "pro" version of DOS4GW.EXE, but it costs $300. I think that they could sell quite a few of these to hobby users (since, you know, DOS is dead) for US$5.

Open Souce to the Rescue
There are better performing, free and Open Source alternatives available and worth a look.

DPMI Explained
But first, let's understand what DPMI, or DOS Protected Mode Interface, is all about. DPMI allows DOS programs to run in Protected Mode and have access to features of the processor not available in Real Mode. This is mostly to allow DOS apps access to more RAM. While you would think that full DPMI 1.0 compliance is great, Windows from 95 to Vista only supports DPMI 0.9 (plus the math co-processor and int 0x2f functions from DPMI 1.0) so if your app uses 1.0 features not supported by Windows, it will not run in a Windows DOS-box. As a result, most DOS extenders are written to the 0.9+ Microsoft spec.

An alternative DOS extender is DOS/32A and the download link is here or here. It is Free Open Source Software and can be used as a drop-in replacement for DOS4GW.EXE (you just have to re-name it to DOS4GW.EXE), but is much faster and more efficient. You may find that it works "more better" with your particular game. I know that Carmageddon runs better with it. If your DOS game uses DOS4GW, you should use this.

HX DOS-Extender
Another DOS extender of interest is the HX DOS-Extender. The advantage to it is that has built-in Win32 PE file format support, providing a win32 API so win32 console apps will run. Most interestingly, it has a GUI extension that allows some simple Win32 GUI apps to be run as a "stand-alone" application without the need for Windows, a Windows emulator or WINE; there is 16-bit support as well. Opengl support is also provided, but is software only. There is ongoing development and it is compatible with Bochs, Qemu, DosBox, VMWare and VirtualBox. Sadly, this cannot be used in a Linux environment since Linux DosEmu will not allow a ring 0 application like HDPMI to run under its control, instead implementing its own DPMI host. It can be used with DOSBox.


 I recall seeing some DOS games (like QUAKE, which actually use an alternate version) using CWSDPMI.EXE , so here's the link to the homepage; source and binary downloads are available although seems to have taken it offline for now, so it's only available from some FTP servers. It supports memory swapping. If your DOS game uses CWSDPMI.EXE, get the current version.

DPMIONE has some interesting features -- it is fully DPMI 1.0 compliant, takes up less lower memory that the others, is only loaded once and includes a built-in extender, but is non-commercial use only. Homepage here. Docs here. Download it here.

While running old games is fun, the real value of applications like DOSBox and these modernized DOS extenders is the ability to run legacy commercial 16-bit and 32-bit apps on a more robust and secure operating system on modern hardware at little expense and with relatively easy and rapid development.

With over 2000 views, any comments and feedback would be appreciated. I hope you found this information useful. I'm curious to know what applications you use with this.



Autoexec.bat and Config.sys information

To create a formatted floppy image using Linux.It will not be bootable unless you install MSDOS, DR-DOS or FreeDOS on it.

$ mkfs.vfat -C "1440floppy.img" 1440
$ mkfs-vfat -C "2880floppy.img" 2880 
# you can use the bigger floppy size


Man MKE said…
Thanks. I have some old MS-DOS apps and a few games (both DOS and early Windows) that I can't get to run in Vista or Windows 7. DOSBox? So far no good. While a bit over my head, your page was helpful and points me in a direction I think may provide a solution. No rush on this for busy me, but I've copies the information, will grab some of the add-ons you suggested, and give 'em a try. Thanks for your effort.

Popular posts from this blog

Fixing a Buggy ACPI BIOS Updated for Windows 8 and Linux Kernel 3.x

In the BIOS, there is a table that configures/determines a number of hardware values for ACPI and your system to use.

One of the features of ACPI is that the values and methods used can be differentiated at boot time depending on what OS you run. Each version of MS Windows has a unique identifier and while Linux can identify as "Linux", the Linux ACPI gurus have decided that Linux will always identify itself as "Windows NT". Even if you force Linux to identify itself as Linux, the Linux ACPI code still lies to the BIOS, except for the computers specifically listed in drivers/acpi/blacklist.

If you are running very new hardware intended for Windows Vista or Windows 8, you might get better performance on ACPI-related issues if you identify, or "spoof", your Linux OS as Vista or Windows 8. This is done by adding the boot-time kernel parameter of acpi_osi="Windows 2006" or "Windows 2012" respectively (and the quotes are necessary). still,…


The first release of Mageia 1 is out. You can download it from here and read the release notes here.

If you've used Mandriva Linux, you'll feel right at home with Mageia. Mandriva has always had a reputation of working well for both the novice user and the power user. Installation is typically easy and hardware support is among the best of any distro. The user and administrative tools are comprehensive and easy to use. Of course, under the hood, it's all Linux and all configuration files are plain text files and all a competent administrator needs do is to choose a shell and a text editor.

Mandriva has also been known for excellent default fully-featured configurations of the KDE, GNOME, XFCE and LXDE desktop environments as well as a broad range of available applications. Mageia is no exception in this regard.

For the average user, the changes are mostly cosmetic. The Mageia art, colors and graphics are very well done (and contributed by the Mageia user community). But …