Am trying to run a dos piece of code that hooks into a
custom VxD. The DOS code is very old and binary only
but the hooks it uses are very simplistic.
The VxD runs various complicated libraries and drivers
under Windows, but there are equivalents available
under Linux. Am hoping to write a GPL dosemu plugin to
hooks onto these Linux equivalents.
I've worked out how to create a plugin that can do
various things. However I see what appears to be
hardcoded VxD handling for DPMI (perhaps something more
native for real Windows...?)
Was wondering if perhaps a new call could be added
"VxD_(Un)Register ( ) that takes an object. This
object could consist of the NAME to check (es:di string
check), and/or the ebx code and a function to call on
Would such a thing be easily supportable?
Secondly I note that these entry points return function
pointers that are directly callable from DOS code.
Perhaps if possible some wrappers could be provided to
make it easy to convert such DOS calls to real C code
in Linux (or easy examples provided in vxd.h on how to
do such things).