aboutsummaryrefslogtreecommitdiff
path: root/mousew16.lnk
diff options
context:
space:
mode:
Diffstat (limited to 'mousew16.lnk')
-rw-r--r--mousew16.lnk14
1 files changed, 13 insertions, 1 deletions
diff --git a/mousew16.lnk b/mousew16.lnk
index ad6ac85..d1cd0ca 100644
--- a/mousew16.lnk
+++ b/mousew16.lnk
@@ -1,13 +1,25 @@
-system windows_dll
+system windows_dll memory font
+# "memory" flag above says we are protected mode compatible
+# even if our target windows is < 3.0. this is equivalent to what mark.exe does.
option map=mousew16.map
option modname=MOUSE # This is necessary; USER.EXE imports mouse functions using this module name
option description 'VBMouse int33 absolute mouse driver'
option heapsize=128 # We don't need localheap but windows_dll sets 1K by default
+option version=1.0 # minimal Windows version required
+
+# The 2.x drv loader in SETUP.EXE is way more picky than the regular one
+# Fortunately, we have the source for 2.x 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
segment CALLBACKS fixed shared # We need a non-moveable segment to store our callback routines
segment CLASS DATA fixed shared # Likewise fix the data segment, too cumbersome if not
+# We don't do the normal DLL prolog in the interrupt handlers, for example
+segment _TEXT discardable # The rest of code (e.g. Enable) can be discarded
export Inquire.1
export Enable.2