Add a 16 bit pair DLL for TWAIN.

This commit is contained in:
Mike Hearn 2004-07-13 03:37:07 +00:00 committed by Alexandre Julliard
parent d176dde0d1
commit 6812cbc829
5 changed files with 61 additions and 1 deletions

View File

@ -218,6 +218,7 @@ WIN16_FILES = \
stress.dll.so \
system.drv.so \
toolhelp.dll.so \
twain.dll.so \
typelib.dll.so \
user.exe.so \
ver.dll.so \
@ -796,6 +797,9 @@ ttydrv.dll.so: ttydrv/ttydrv.dll.so
twain_32.dll.so: twain/twain_32.dll.so
$(RM) $@ && $(LN_S) twain/twain_32.dll.so $@
twain.dll.so : twain_32.dll.so
$(RM) $@ && $(LN_S) twain_32.dll.so $@
unicows.dll.so: unicows/unicows.dll.so
$(RM) $@ && $(LN_S) unicows/unicows.dll.so $@

View File

@ -1,3 +1,4 @@
Makefile
twain.spec.c
twain_32.dll.dbg.c
twain_32.spec.def

View File

@ -3,10 +3,13 @@ TOPOBJDIR = ../..
SRCDIR = @srcdir@
VPATH = @srcdir@
MODULE = twain_32.dll
IMPORTS = user32 gdi32 kernel32
ALTNAMES = twain.dll
IMPORTS = user32 gdi32 kernel32 ntdll
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:

6
dlls/twain/twain.spec Normal file
View File

@ -0,0 +1,6 @@
1 pascal -ret16 DSM_Entry(ptr ptr long word word long) DSM_Entry16
#2 stub WEP
3 stub ChooseDlgProc
4 stub AboutDlgProc
5 stub WGDlgProc
6 stub InfoHook

43
dlls/twain/twain16_main.c Normal file
View File

@ -0,0 +1,43 @@
/*
* TWAIN 16-bit functions
*
* Copyright (C) 2004 Mike Hearn for CodeWeavers
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#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;
}