Add a 16-bit pair DLL for TWAIN
Mike Hearn
mh at codeweavers.com
Thu Jul 8 12:26:12 CDT 2004
This is probably wrong in some aspects as this is the first time I have
done a 16 bit pair DLL, but the Office XP installer never actually calls
it, it just loads it in order to get the version information.
The main problem is that I can't find way to dump the exports of a 16 bit DLL.
winedump can't do that. So, as the 32 bit DLL has only one entry point, I assumed
it was the same for the 16 bit version.
thanks -mike
Mike Hearn <mh at codeweavers.com>
Add a 16 bit pair DLL for TWAIN
? twain.spec
? twain.spec.c
? twain16_main.c
? twain_32.spec.c
Index: Makefile.in
===================================================================
RCS file: /cvstrees/crossover/office/wine/dlls/twain/Makefile.in,v
retrieving revision 1.1.1.2
diff -u -p -r1.1.1.2 Makefile.in
--- dlls/twain/Makefile.in 29 Oct 2003 00:13:05 -0000 1.1.1.2
+++ dlls/twain/Makefile.in 8 Jul 2004 17:11:55 -0000
@@ -3,10 +3,13 @@ TOPOBJDIR = ../..
SRCDIR = @srcdir@
VPATH = @srcdir@
MODULE = twain_32.dll
+ALTNAMES = twain.dll
IMPORTS = user32 gdi32 kernel32
EXTRALIBS = @SANELIBS@
EXTRAINCL = @SANEINCL@
+SPEC_SRCS16 = $(ALTNAMES:.dll=.spec)
+
C_SRCS = \
capability.c \
ds_audio.c \
@@ -15,6 +18,9 @@ C_SRCS = \
dsm_ctrl.c \
twain32_main.c
+C_SRCS16 = \
+ twain16_main.c
+
@MAKE_DLL_RULES@
### Dependencies:
--- /dev/null 2003-09-15 14:40:47.000000000 +0100
+++ dlls/twain/twain16_main.c 2004-07-08 16:21:57.000000000 +0100
@@ -0,0 +1,23 @@
+#include <stdarg.h>
+
+#include "windef.h"
+#include "winbase.h"
+#include "twain.h"
+#include "twain_i.h"
+#include "wine/debug.h"
+
+WINE_DEFAULT_DEBUG_CHANNEL(twain);
+
+/* Main entry point for the TWAIN library */
+TW_UINT16 WINAPI
+DSM_Entry16 (pTW_IDENTITY pOrigin,
+ pTW_IDENTITY pDest,
+ TW_UINT32 DG,
+ TW_UINT16 DAT,
+ TW_UINT16 MSG,
+ TW_MEMREF pData)
+{
+ FIXME("stub\n");
+
+ return TWRC_FAILURE;
+}
--- /dev/null 2003-09-15 14:40:47.000000000 +0100
+++ dlls/twain/twain.spec 2004-07-08 16:49:49.000000000 +0100
@@ -0,0 +1 @@
+1 pascal DSM_Entry(ptr ptr long long long ptr) DSM_Entry16
More information about the wine-patches
mailing list