<sect1 id="Windows">
<title>Running Windows under DOSEMU</title>

<para>
Okay, perhaps you've heard the hooplah.  DOSEMU can run Windows (sort of.)
</para>

<sect2>
<title>Windows 3.0 Real Mode</title>

<para>
DOSEMU has been able to run Windows 3.0 in Real Mode for some time now.
</para>

</sect2>

<sect2>
<title>Windows 3.1 Protected Mode</title>

<para>
It is possible to boot WINOS2 (the modified version of Windows 3.1
that OS/2 uses) under DOSEMU.  Many kudos to Lutz &#38; Dong!
But, as far as we know, you cannot <emphasis>install</emphasis>
Windows 3.1 in DOSEMU, but you must do that in real mode DOS.
Windows 3.1 also does <emphasis>not</emphasis> run in FreeDOS.
</para>

<para>
However, YOU NEED <emphasis remap="bf">BOTH</emphasis> LICENSES, for WINDOWS-3.1 as well OS/2 !!!
</para>

<para>

<itemizedlist>
<listitem>

<para>
  Get DOSEMU &#38; the Linux source distributions.
</para>
</listitem>
<listitem>

<para>
  Unpack DOSEMU.
</para>
</listitem>
<listitem>

<para>
  Configure DOSEMU typing './default-configure'.
</para>
</listitem>
<listitem>

<para>
  Compile DOSEMU typing 'make'.
</para>
</listitem>
<listitem>

<para>
  Get the OS2WIN31.ZIP distribution from somehere.
One place that distributes it is
<ulink url="http://www.funet.fi/pub/os2/32bit/win_os2/">
http://www.funet.fi/pub/os2/32bit/win_os2
</ulink>
</para>
</listitem>
<listitem>

<para>
  Unpack the OS2WIN31 files into your WINDOWS\SYSTEM directory.
(Infact you only need WINDOWS/SYSTEM/os2k386.exe and the mouse driver)
</para>
</listitem>
<listitem>

<para>
  Startup dosemu (make certain that DPMI is set to a value such as 4096)
</para>
</listitem>
<listitem>

<para>
  Copy the file winemu.bat to your c: drive.
</para>
</listitem>
<listitem>

<para>
  Cross your fingers.
</para>
</listitem>

</itemizedlist>

</para>

<para>
Good luck!
</para>

</sect2>

<sect2>
<title>Windows 3.x in xdos</title>

<para>
As of version 0.64.3 DOSEMU is able to run Windows in xdosemu.
It is safer then
starting windows-31 on the console, because <emphasis>when</emphasis> it crashes, it doesn't
block your keyboard or freeze your screen.
</para>

<para>
Hints:
</para>

<para>

<itemizedlist>
<listitem>

<para>
 Get Dosemu &#38; Linux source.
</para>
</listitem>
<listitem>

<para>
 Unpack dosemu.
</para>
</listitem>
<listitem>

<para>
 Run "./default-configure" to configure Dosemu.
</para>
</listitem>
<listitem>

<para>
 Type "make" to compile.
</para>
</listitem>
<listitem>

<para>
For faster graphics (256 colors instead of 16 is faster in xdosemu),
get a Trident SVGA drivers for Windows. The files are tvgaw31a.zip
and/or tvgaw31b.zip. They are available at garbo.uwasa.fi in
/windows/drivers (any mirrors?).
</para>
</listitem>
<listitem>

<para>
 Unpack the Trident drivers.
</para>
</listitem>
<listitem>

<para>
 In Windows setup, install the Trident "800x600 256 color for 512K
boards" driver.
</para>
</listitem>
<listitem>

<para>
 Do the things described above to get and install OS2WIN31.
</para>
</listitem>
<listitem>

<para>
 Start xdos.
</para>
</listitem>
<listitem>

<para>
 In Dosemu, go to windows directory and start winemu.
</para>
</listitem>
<listitem>

<para>
 Cross your fingers.
</para>
</listitem>

</itemizedlist>

</para>

<para>
Notes for the mouse under win31-in-xdos:
</para>

<para>

<itemizedlist>
<listitem>
<para>
 In order to let the mouse properly work you need the following in your
win.ini file:
</para>

<para>

<screen>
     [windows]
     MouseThreshold1=0
     MouseThreshold2=0
     MouseSpeed=0
</screen>

</para>
</listitem>
<listitem>

<para>
 The mouse cursor gets not painted by X, but by windows itself, so it depends
on the refresh rate how often it gets updated, though the mouse coordinates 
movement itself will not get delayed.
( In fact you have 2 cursors, but the X-cursor is given an 'invisible'
cursor shape while within the DOS-Box. )
</para>
</listitem>
<listitem>

<para>
 Because the coordinates passed to windows are interpreted relatively, we
need to calibrate the cursor. This is done automatically whenever you
enter the DOS-Box window: The cursor gets forced to 0,0 and then back
to its right coordinates. Hence, if you want to re-calibrate the cursor,
just move the cursor outside and then inside the DOS-Box again.
</para>
</listitem>

</itemizedlist>

</para>

</sect2>

</sect1>

