2006-05-08 20:05:42 +02:00
|
|
|
/*
|
|
|
|
* Copyright 2000 Corel Corporation
|
|
|
|
*
|
|
|
|
* 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
|
2006-05-18 14:49:52 +02:00
|
|
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
2006-05-08 20:05:42 +02:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _TWAIN32_H
|
|
|
|
#define _TWAIN32_H
|
|
|
|
|
|
|
|
#ifndef __WINE_CONFIG_H
|
|
|
|
# error You must include config.h first
|
|
|
|
#endif
|
|
|
|
|
2011-09-05 17:22:50 +02:00
|
|
|
#include <stdarg.h>
|
|
|
|
|
2007-07-02 19:42:13 +02:00
|
|
|
#ifdef SONAME_LIBSANE
|
2006-05-08 20:05:42 +02:00
|
|
|
# include <sane/sane.h>
|
2009-02-26 03:58:42 +01:00
|
|
|
# include <sane/saneopts.h>
|
2011-09-05 17:22:50 +02:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#include "windef.h"
|
|
|
|
#include "winbase.h"
|
|
|
|
#include "winuser.h"
|
|
|
|
#include "twain.h"
|
2007-03-14 19:10:03 +01:00
|
|
|
|
2011-09-05 17:22:50 +02:00
|
|
|
#ifdef SONAME_LIBSANE
|
2020-01-24 00:05:24 +01:00
|
|
|
#define MAKE_FUNCPTR(f) extern typeof(f) * p##f DECLSPEC_HIDDEN;
|
2007-03-14 19:10:03 +01:00
|
|
|
MAKE_FUNCPTR(sane_init)
|
|
|
|
MAKE_FUNCPTR(sane_exit)
|
|
|
|
MAKE_FUNCPTR(sane_get_devices)
|
|
|
|
MAKE_FUNCPTR(sane_open)
|
|
|
|
MAKE_FUNCPTR(sane_close)
|
|
|
|
MAKE_FUNCPTR(sane_get_option_descriptor)
|
|
|
|
MAKE_FUNCPTR(sane_control_option)
|
|
|
|
MAKE_FUNCPTR(sane_get_parameters)
|
|
|
|
MAKE_FUNCPTR(sane_start)
|
|
|
|
MAKE_FUNCPTR(sane_read)
|
|
|
|
MAKE_FUNCPTR(sane_cancel)
|
|
|
|
MAKE_FUNCPTR(sane_set_io_mode)
|
|
|
|
MAKE_FUNCPTR(sane_get_select_fd)
|
|
|
|
MAKE_FUNCPTR(sane_strstatus)
|
|
|
|
#undef MAKE_FUNCPTR
|
2006-05-08 20:05:42 +02:00
|
|
|
#endif
|
|
|
|
|
2011-04-26 19:11:44 +02:00
|
|
|
extern HINSTANCE SANE_instance DECLSPEC_HIDDEN;
|
2006-05-08 20:05:42 +02:00
|
|
|
|
2009-02-23 23:25:26 +01:00
|
|
|
#define TWCC_CHECKSTATUS (TWCC_CUSTOMBASE + 1)
|
|
|
|
|
2006-05-08 20:05:42 +02:00
|
|
|
/* internal information about an active data source */
|
|
|
|
struct tagActiveDS
|
|
|
|
{
|
|
|
|
struct tagActiveDS *next; /* next active DS */
|
2017-11-14 22:14:11 +01:00
|
|
|
TW_IDENTITY identity; /* identity of the DS */
|
2006-05-08 20:05:42 +02:00
|
|
|
TW_UINT16 currentState; /* current state */
|
|
|
|
TW_UINT16 twCC; /* condition code */
|
2017-11-14 22:14:11 +01:00
|
|
|
TW_IDENTITY appIdentity; /* identity of the app */
|
2006-05-08 20:05:42 +02:00
|
|
|
HWND hwndOwner; /* window handle of the app */
|
|
|
|
HWND progressWnd; /* window handle of the scanning window */
|
2007-07-02 19:42:13 +02:00
|
|
|
#ifdef SONAME_LIBSANE
|
2006-05-08 20:05:42 +02:00
|
|
|
SANE_Handle deviceHandle; /* device handle */
|
|
|
|
SANE_Parameters sane_param; /* parameters about the image
|
|
|
|
transferred */
|
|
|
|
BOOL sane_param_valid; /* true if valid sane_param*/
|
2009-03-05 20:25:58 +01:00
|
|
|
BOOL sane_started; /* If sane_start has been called */
|
2006-05-08 20:05:42 +02:00
|
|
|
INT deviceIndex; /* index of the current device */
|
|
|
|
#endif
|
2008-04-11 04:17:14 +02:00
|
|
|
/* Capabilities */
|
2006-05-08 20:05:42 +02:00
|
|
|
TW_UINT16 capXferMech; /* ICAP_XFERMECH */
|
2009-02-26 03:58:42 +01:00
|
|
|
BOOL PixelTypeSet;
|
|
|
|
TW_UINT16 defaultPixelType; /* ICAP_PIXELTYPE */
|
2009-02-23 23:25:26 +01:00
|
|
|
BOOL XResolutionSet;
|
|
|
|
TW_FIX32 defaultXResolution;
|
|
|
|
BOOL YResolutionSet;
|
|
|
|
TW_FIX32 defaultYResolution;
|
2020-01-24 00:05:24 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
extern struct tagActiveDS activeDS DECLSPEC_HIDDEN;
|
2006-05-08 20:05:42 +02:00
|
|
|
|
|
|
|
/* Helper functions */
|
2011-04-26 19:11:44 +02:00
|
|
|
extern TW_UINT16 SANE_SaneCapability (pTW_CAPABILITY pCapability, TW_UINT16 action) DECLSPEC_HIDDEN;
|
|
|
|
extern TW_UINT16 SANE_SaneSetDefaults (void) DECLSPEC_HIDDEN;
|
2017-11-14 22:14:11 +01:00
|
|
|
extern void SANE_Notify (TW_UINT16 message) DECLSPEC_HIDDEN;
|
2006-05-08 20:05:42 +02:00
|
|
|
|
|
|
|
/* Implementation of operation triplets
|
|
|
|
* From Application to Source (Control Information) */
|
2011-04-26 19:11:44 +02:00
|
|
|
TW_UINT16 SANE_CapabilityGet (pTW_IDENTITY pOrigin, TW_MEMREF pData) DECLSPEC_HIDDEN;
|
2006-05-08 20:05:42 +02:00
|
|
|
TW_UINT16 SANE_CapabilityGetCurrent
|
2011-04-26 19:11:44 +02:00
|
|
|
(pTW_IDENTITY pOrigin, TW_MEMREF pData) DECLSPEC_HIDDEN;
|
2006-05-08 20:05:42 +02:00
|
|
|
TW_UINT16 SANE_CapabilityGetDefault
|
2011-04-26 19:11:44 +02:00
|
|
|
(pTW_IDENTITY pOrigin, TW_MEMREF pData) DECLSPEC_HIDDEN;
|
2006-05-08 20:05:42 +02:00
|
|
|
TW_UINT16 SANE_CapabilityQuerySupport
|
2011-04-26 19:11:44 +02:00
|
|
|
(pTW_IDENTITY pOrigin, TW_MEMREF pData) DECLSPEC_HIDDEN;
|
2006-05-08 20:05:42 +02:00
|
|
|
TW_UINT16 SANE_CapabilityReset
|
2011-04-26 19:11:44 +02:00
|
|
|
(pTW_IDENTITY pOrigin, TW_MEMREF pData) DECLSPEC_HIDDEN;
|
2006-05-08 20:05:42 +02:00
|
|
|
TW_UINT16 SANE_CapabilitySet
|
2011-04-26 19:11:44 +02:00
|
|
|
(pTW_IDENTITY pOrigin, TW_MEMREF pData) DECLSPEC_HIDDEN;
|
2006-05-08 20:05:42 +02:00
|
|
|
TW_UINT16 SANE_CustomDSDataGet
|
2011-04-26 19:11:44 +02:00
|
|
|
(pTW_IDENTITY pOrigin, TW_MEMREF pData) DECLSPEC_HIDDEN;
|
2006-05-08 20:05:42 +02:00
|
|
|
TW_UINT16 SANE_CustomDSDataSet
|
2011-04-26 19:11:44 +02:00
|
|
|
(pTW_IDENTITY pOrigin, TW_MEMREF pData) DECLSPEC_HIDDEN;
|
2006-05-08 20:05:42 +02:00
|
|
|
TW_UINT16 SANE_AutomaticCaptureDirectory
|
2011-04-26 19:11:44 +02:00
|
|
|
(pTW_IDENTITY pOrigin, TW_MEMREF pData) DECLSPEC_HIDDEN;
|
2006-05-08 20:05:42 +02:00
|
|
|
TW_UINT16 SANE_ChangeDirectory
|
2011-04-26 19:11:44 +02:00
|
|
|
(pTW_IDENTITY pOrigin, TW_MEMREF pData) DECLSPEC_HIDDEN;
|
2006-05-08 20:05:42 +02:00
|
|
|
TW_UINT16 SANE_FileSystemCopy
|
2011-04-26 19:11:44 +02:00
|
|
|
(pTW_IDENTITY pOrigin, TW_MEMREF pData) DECLSPEC_HIDDEN;
|
2006-05-08 20:05:42 +02:00
|
|
|
TW_UINT16 SANE_CreateDirectory
|
2011-04-26 19:11:44 +02:00
|
|
|
(pTW_IDENTITY pOrigin, TW_MEMREF pData) DECLSPEC_HIDDEN;
|
2006-05-08 20:05:42 +02:00
|
|
|
TW_UINT16 SANE_FileSystemDelete
|
2011-04-26 19:11:44 +02:00
|
|
|
(pTW_IDENTITY pOrigin, TW_MEMREF pData) DECLSPEC_HIDDEN;
|
2006-05-08 20:05:42 +02:00
|
|
|
TW_UINT16 SANE_FormatMedia
|
2011-04-26 19:11:44 +02:00
|
|
|
(pTW_IDENTITY pOrigin, TW_MEMREF pData) DECLSPEC_HIDDEN;
|
2006-05-08 20:05:42 +02:00
|
|
|
TW_UINT16 SANE_FileSystemGetClose
|
2011-04-26 19:11:44 +02:00
|
|
|
(pTW_IDENTITY pOrigin, TW_MEMREF pData) DECLSPEC_HIDDEN;
|
2006-05-08 20:05:42 +02:00
|
|
|
TW_UINT16 SANE_FileSystemGetFirstFile
|
2011-04-26 19:11:44 +02:00
|
|
|
(pTW_IDENTITY pOrigin, TW_MEMREF pData) DECLSPEC_HIDDEN;
|
2006-05-08 20:05:42 +02:00
|
|
|
TW_UINT16 SANE_FileSystemGetInfo
|
2011-04-26 19:11:44 +02:00
|
|
|
(pTW_IDENTITY pOrigin, TW_MEMREF pData) DECLSPEC_HIDDEN;
|
2006-05-08 20:05:42 +02:00
|
|
|
TW_UINT16 SANE_FileSystemGetNextFile
|
2011-04-26 19:11:44 +02:00
|
|
|
(pTW_IDENTITY pOrigin, TW_MEMREF pData) DECLSPEC_HIDDEN;
|
2006-05-08 20:05:42 +02:00
|
|
|
TW_UINT16 SANE_FileSystemRename
|
2011-04-26 19:11:44 +02:00
|
|
|
(pTW_IDENTITY pOrigin, TW_MEMREF pData) DECLSPEC_HIDDEN;
|
2006-05-08 20:05:42 +02:00
|
|
|
TW_UINT16 SANE_ProcessEvent
|
2011-04-26 19:11:44 +02:00
|
|
|
(pTW_IDENTITY pOrigin, TW_MEMREF pData) DECLSPEC_HIDDEN;
|
2006-05-08 20:05:42 +02:00
|
|
|
TW_UINT16 SANE_PassThrough
|
2011-04-26 19:11:44 +02:00
|
|
|
(pTW_IDENTITY pOrigin, TW_MEMREF pData) DECLSPEC_HIDDEN;
|
2006-05-08 20:05:42 +02:00
|
|
|
TW_UINT16 SANE_PendingXfersEndXfer
|
2011-04-26 19:11:44 +02:00
|
|
|
(pTW_IDENTITY pOrigin, TW_MEMREF pData) DECLSPEC_HIDDEN;
|
2006-05-08 20:05:42 +02:00
|
|
|
TW_UINT16 SANE_PendingXfersGet
|
2011-04-26 19:11:44 +02:00
|
|
|
(pTW_IDENTITY pOrigin, TW_MEMREF pData) DECLSPEC_HIDDEN;
|
2006-05-08 20:05:42 +02:00
|
|
|
TW_UINT16 SANE_PendingXfersReset
|
2011-04-26 19:11:44 +02:00
|
|
|
(pTW_IDENTITY pOrigin, TW_MEMREF pData) DECLSPEC_HIDDEN;
|
2006-05-08 20:05:42 +02:00
|
|
|
TW_UINT16 SANE_PendingXfersStopFeeder
|
2011-04-26 19:11:44 +02:00
|
|
|
(pTW_IDENTITY pOrigin, TW_MEMREF pData) DECLSPEC_HIDDEN;
|
2006-05-08 20:05:42 +02:00
|
|
|
TW_UINT16 SANE_SetupFileXferGet
|
2011-04-26 19:11:44 +02:00
|
|
|
(pTW_IDENTITY pOrigin, TW_MEMREF pData) DECLSPEC_HIDDEN;
|
2006-05-08 20:05:42 +02:00
|
|
|
TW_UINT16 SANE_SetupFileXferGetDefault
|
2011-04-26 19:11:44 +02:00
|
|
|
(pTW_IDENTITY pOrigin, TW_MEMREF pData) DECLSPEC_HIDDEN;
|
2006-05-08 20:05:42 +02:00
|
|
|
TW_UINT16 SANE_SetupFileXferReset
|
2011-04-26 19:11:44 +02:00
|
|
|
(pTW_IDENTITY pOrigin, TW_MEMREF pData) DECLSPEC_HIDDEN;
|
2006-05-08 20:05:42 +02:00
|
|
|
TW_UINT16 SANE_SetupFileXferSet
|
2011-04-26 19:11:44 +02:00
|
|
|
(pTW_IDENTITY pOrigin, TW_MEMREF pData) DECLSPEC_HIDDEN;
|
2006-05-08 20:05:42 +02:00
|
|
|
TW_UINT16 SANE_SetupFileXfer2Get
|
2011-04-26 19:11:44 +02:00
|
|
|
(pTW_IDENTITY pOrigin, TW_MEMREF pData) DECLSPEC_HIDDEN;
|
2006-05-08 20:05:42 +02:00
|
|
|
TW_UINT16 SANE_SetupFileXfer2GetDefault
|
2011-04-26 19:11:44 +02:00
|
|
|
(pTW_IDENTITY pOrigin, TW_MEMREF pData) DECLSPEC_HIDDEN;
|
2006-05-08 20:05:42 +02:00
|
|
|
TW_UINT16 SANE_SetupFileXfer2Reset
|
2011-04-26 19:11:44 +02:00
|
|
|
(pTW_IDENTITY pOrigin, TW_MEMREF pData) DECLSPEC_HIDDEN;
|
2006-05-08 20:05:42 +02:00
|
|
|
TW_UINT16 SANE_SetupFileXfer2Set
|
2011-04-26 19:11:44 +02:00
|
|
|
(pTW_IDENTITY pOrigin, TW_MEMREF pData) DECLSPEC_HIDDEN;
|
2006-05-08 20:05:42 +02:00
|
|
|
TW_UINT16 SANE_SetupMemXferGet
|
2011-04-26 19:11:44 +02:00
|
|
|
(pTW_IDENTITY pOrigin, TW_MEMREF pData) DECLSPEC_HIDDEN;
|
2006-05-08 20:05:42 +02:00
|
|
|
TW_UINT16 SANE_GetDSStatus
|
2011-04-26 19:11:44 +02:00
|
|
|
(pTW_IDENTITY pOrigin, TW_MEMREF pData) DECLSPEC_HIDDEN;
|
2006-05-08 20:05:42 +02:00
|
|
|
TW_UINT16 SANE_DisableDSUserInterface
|
2011-04-26 19:11:44 +02:00
|
|
|
(pTW_IDENTITY pOrigin, TW_MEMREF pData) DECLSPEC_HIDDEN;
|
2006-05-08 20:05:42 +02:00
|
|
|
TW_UINT16 SANE_EnableDSUserInterface
|
2011-04-26 19:11:44 +02:00
|
|
|
(pTW_IDENTITY pOrigin, TW_MEMREF pData) DECLSPEC_HIDDEN;
|
2006-05-08 20:05:42 +02:00
|
|
|
TW_UINT16 SANE_EnableDSUIOnly
|
2011-04-26 19:11:44 +02:00
|
|
|
(pTW_IDENTITY pOrigin, TW_MEMREF pData) DECLSPEC_HIDDEN;
|
2006-05-08 20:05:42 +02:00
|
|
|
TW_UINT16 SANE_XferGroupGet
|
2011-04-26 19:11:44 +02:00
|
|
|
(pTW_IDENTITY pOrigin, TW_MEMREF pData) DECLSPEC_HIDDEN;
|
2006-05-08 20:05:42 +02:00
|
|
|
TW_UINT16 SANE_XferGroupSet
|
2011-04-26 19:11:44 +02:00
|
|
|
(pTW_IDENTITY pOrigin, TW_MEMREF pData) DECLSPEC_HIDDEN;
|
2006-05-08 20:05:42 +02:00
|
|
|
|
|
|
|
/* Implementation of operation triplets
|
|
|
|
* From Application to Source (Image Information) */
|
|
|
|
TW_UINT16 SANE_CIEColorGet
|
2011-04-26 19:11:44 +02:00
|
|
|
(pTW_IDENTITY pOrigin, TW_MEMREF pData) DECLSPEC_HIDDEN;
|
2006-05-08 20:05:42 +02:00
|
|
|
TW_UINT16 SANE_ExtImageInfoGet
|
2011-04-26 19:11:44 +02:00
|
|
|
(pTW_IDENTITY pOrigin, TW_MEMREF pData) DECLSPEC_HIDDEN;
|
2006-05-08 20:05:42 +02:00
|
|
|
TW_UINT16 SANE_GrayResponseReset
|
2011-04-26 19:11:44 +02:00
|
|
|
(pTW_IDENTITY pOrigin, TW_MEMREF pData) DECLSPEC_HIDDEN;
|
2006-05-08 20:05:42 +02:00
|
|
|
TW_UINT16 SANE_GrayResponseSet
|
2011-04-26 19:11:44 +02:00
|
|
|
(pTW_IDENTITY pOrigin, TW_MEMREF pData) DECLSPEC_HIDDEN;
|
2006-05-08 20:05:42 +02:00
|
|
|
TW_UINT16 SANE_ImageFileXferGet
|
2011-04-26 19:11:44 +02:00
|
|
|
(pTW_IDENTITY pOrigin, TW_MEMREF pData) DECLSPEC_HIDDEN;
|
2006-05-08 20:05:42 +02:00
|
|
|
TW_UINT16 SANE_ImageInfoGet
|
2011-04-26 19:11:44 +02:00
|
|
|
(pTW_IDENTITY pOrigin, TW_MEMREF pData) DECLSPEC_HIDDEN;
|
2006-05-08 20:05:42 +02:00
|
|
|
TW_UINT16 SANE_ImageLayoutGet
|
2011-04-26 19:11:44 +02:00
|
|
|
(pTW_IDENTITY pOrigin, TW_MEMREF pData) DECLSPEC_HIDDEN;
|
2006-05-08 20:05:42 +02:00
|
|
|
TW_UINT16 SANE_ImageLayoutGetDefault
|
2011-04-26 19:11:44 +02:00
|
|
|
(pTW_IDENTITY pOrigin, TW_MEMREF pData) DECLSPEC_HIDDEN;
|
2006-05-08 20:05:42 +02:00
|
|
|
TW_UINT16 SANE_ImageLayoutReset
|
2011-04-26 19:11:44 +02:00
|
|
|
(pTW_IDENTITY pOrigin, TW_MEMREF pData) DECLSPEC_HIDDEN;
|
2006-05-08 20:05:42 +02:00
|
|
|
TW_UINT16 SANE_ImageLayoutSet
|
2011-04-26 19:11:44 +02:00
|
|
|
(pTW_IDENTITY pOrigin, TW_MEMREF pData) DECLSPEC_HIDDEN;
|
2006-05-08 20:05:42 +02:00
|
|
|
TW_UINT16 SANE_ImageMemXferGet
|
2011-04-26 19:11:44 +02:00
|
|
|
(pTW_IDENTITY pOrigin, TW_MEMREF pData) DECLSPEC_HIDDEN;
|
2006-05-08 20:05:42 +02:00
|
|
|
TW_UINT16 SANE_ImageNativeXferGet
|
2011-04-26 19:11:44 +02:00
|
|
|
(pTW_IDENTITY pOrigin, TW_MEMREF pData) DECLSPEC_HIDDEN;
|
2006-05-08 20:05:42 +02:00
|
|
|
TW_UINT16 SANE_JPEGCompressionGet
|
2011-04-26 19:11:44 +02:00
|
|
|
(pTW_IDENTITY pOrigin, TW_MEMREF pData) DECLSPEC_HIDDEN;
|
2006-05-08 20:05:42 +02:00
|
|
|
TW_UINT16 SANE_JPEGCompressionGetDefault
|
2011-04-26 19:11:44 +02:00
|
|
|
(pTW_IDENTITY pOrigin, TW_MEMREF pData) DECLSPEC_HIDDEN;
|
2006-05-08 20:05:42 +02:00
|
|
|
TW_UINT16 SANE_JPEGCompressionReset
|
2011-04-26 19:11:44 +02:00
|
|
|
(pTW_IDENTITY pOrigin, TW_MEMREF pData) DECLSPEC_HIDDEN;
|
2006-05-08 20:05:42 +02:00
|
|
|
TW_UINT16 SANE_JPEGCompressionSet
|
2011-04-26 19:11:44 +02:00
|
|
|
(pTW_IDENTITY pOrigin, TW_MEMREF pData) DECLSPEC_HIDDEN;
|
2006-05-08 20:05:42 +02:00
|
|
|
TW_UINT16 SANE_Palette8Get
|
2011-04-26 19:11:44 +02:00
|
|
|
(pTW_IDENTITY pOrigin, TW_MEMREF pData) DECLSPEC_HIDDEN;
|
2006-05-08 20:05:42 +02:00
|
|
|
TW_UINT16 SANE_Palette8GetDefault
|
2011-04-26 19:11:44 +02:00
|
|
|
(pTW_IDENTITY pOrigin, TW_MEMREF pData) DECLSPEC_HIDDEN;
|
2006-05-08 20:05:42 +02:00
|
|
|
TW_UINT16 SANE_Palette8Reset
|
2011-04-26 19:11:44 +02:00
|
|
|
(pTW_IDENTITY pOrigin, TW_MEMREF pData) DECLSPEC_HIDDEN;
|
2006-05-08 20:05:42 +02:00
|
|
|
TW_UINT16 SANE_Palette8Set
|
2011-04-26 19:11:44 +02:00
|
|
|
(pTW_IDENTITY pOrigin, TW_MEMREF pData) DECLSPEC_HIDDEN;
|
2006-05-08 20:05:42 +02:00
|
|
|
TW_UINT16 SANE_RGBResponseReset
|
2011-04-26 19:11:44 +02:00
|
|
|
(pTW_IDENTITY pOrigin, TW_MEMREF pData) DECLSPEC_HIDDEN;
|
2006-05-08 20:05:42 +02:00
|
|
|
TW_UINT16 SANE_RGBResponseSet
|
2011-04-26 19:11:44 +02:00
|
|
|
(pTW_IDENTITY pOrigin, TW_MEMREF pData) DECLSPEC_HIDDEN;
|
2006-05-08 20:05:42 +02:00
|
|
|
|
|
|
|
/* UI function */
|
2011-04-26 19:11:44 +02:00
|
|
|
BOOL DoScannerUI(void) DECLSPEC_HIDDEN;
|
|
|
|
HWND ScanningDialogBox(HWND dialog, LONG progress) DECLSPEC_HIDDEN;
|
2006-05-08 20:05:42 +02:00
|
|
|
|
2009-02-13 20:14:30 +01:00
|
|
|
/* Option functions */
|
|
|
|
#ifdef SONAME_LIBSANE
|
2011-04-26 19:11:44 +02:00
|
|
|
SANE_Status sane_option_get_int(SANE_Handle h, const char *option_name, SANE_Int *val) DECLSPEC_HIDDEN;
|
|
|
|
SANE_Status sane_option_set_int(SANE_Handle h, const char *option_name, SANE_Int val, SANE_Int *status) DECLSPEC_HIDDEN;
|
|
|
|
SANE_Status sane_option_get_str(SANE_Handle h, const char *option_name, SANE_String val, size_t len, SANE_Int *status) DECLSPEC_HIDDEN;
|
|
|
|
SANE_Status sane_option_set_str(SANE_Handle h, const char *option_name, SANE_String val, SANE_Int *status) DECLSPEC_HIDDEN;
|
|
|
|
SANE_Status sane_option_probe_resolution(SANE_Handle h, const char *option_name, SANE_Int *minval, SANE_Int *maxval, SANE_Int *quant) DECLSPEC_HIDDEN;
|
|
|
|
SANE_Status sane_option_probe_mode(SANE_Handle h, SANE_String_Const **choices, char *current, int current_size) DECLSPEC_HIDDEN;
|
2009-03-05 20:15:06 +01:00
|
|
|
SANE_Status sane_option_probe_scan_area(SANE_Handle h, const char *option_name, SANE_Fixed *val,
|
2011-04-26 19:11:44 +02:00
|
|
|
SANE_Unit *unit, SANE_Fixed *min, SANE_Fixed *max, SANE_Fixed *quant) DECLSPEC_HIDDEN;
|
|
|
|
SANE_Status sane_option_get_bool(SANE_Handle h, const char *option_name, SANE_Bool *val, SANE_Int *status) DECLSPEC_HIDDEN;
|
|
|
|
SANE_Status sane_option_set_bool(SANE_Handle h, const char *option_name, SANE_Bool val, SANE_Int *status) DECLSPEC_HIDDEN;
|
|
|
|
SANE_Status sane_option_set_fixed(SANE_Handle h, const char *option_name, SANE_Fixed val, SANE_Int *status) DECLSPEC_HIDDEN;
|
|
|
|
TW_UINT16 sane_status_to_twcc(SANE_Status rc) DECLSPEC_HIDDEN;
|
|
|
|
BOOL convert_sane_res_to_twain(double sane_res, SANE_Unit unit, TW_FIX32 *twain_res, TW_UINT16 twtype) DECLSPEC_HIDDEN;
|
2009-02-13 20:14:30 +01:00
|
|
|
#endif
|
|
|
|
|
|
|
|
|
2006-05-08 20:05:42 +02:00
|
|
|
#endif
|