From 9f46f39f48d3acf4806473b331b654111a6e2084 Mon Sep 17 00:00:00 2001 From: Javier Date: Mon, 30 Nov 2026 12:53:58 +0100 Subject: mousew16: found a way to use the same binary in both 2.x and >3.x What was missing is to use mark.exe (same as the MEMORY option in wlink) to mark the 2.0 executable as being "protected mode compatible". Thanks to Pietrek's Windows Internals book and their description of what LoadModule is doing. --- mousew2.lnk | 19 ------------------- 1 file changed, 19 deletions(-) delete mode 100644 mousew2.lnk (limited to 'mousew2.lnk') diff --git a/mousew2.lnk b/mousew2.lnk deleted file mode 100644 index c0bc8b6..0000000 --- a/mousew2.lnk +++ /dev/null @@ -1,19 +0,0 @@ -# Additional link options for vbmouse2.drv, the version for Windows 2.x - -option map=mousew2.map -option description 'VBMouse int33 absolute mouse driver for 2.x' - -# Sadly the 3.x/95 NE loader requires an min Windows version >=3.0, -# while the 1.x/2.x loader requires a min Windows version <=2.0 -# so even though the code is the same, no idea how to provide -# a single exec that satisfies both OSes. - -# Set min windows version required to 1.0 -option version=1.0 - -# The 1.x/2.x loader in SETUP.EXE is also way more picky than the regular one -# Fortunately, we have the source for SETUP.EXE, so we know what it needs: -# Paragraph alignment, and for the NE header to start at exactly 0x400, -# which means we need a custom stub exe that is exactly 1K long. -option alignment=16 -option stub=dosstub.exe -- cgit v1.2.3