blob: d1cd0ca5da41928964eec74df59fc68a4634d694 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
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
export Disable.3
export MouseGetIntVect.4
|