2002-03-21 03:58:39 +01:00
|
|
|
/*
|
|
|
|
* Copyright 2000 Corel Corporation
|
2006-05-08 20:05:42 +02:00
|
|
|
* Copyright 2006 Marcus Meissner
|
2002-03-21 03:58:39 +01:00
|
|
|
*
|
|
|
|
* 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
|
2002-03-21 03:58:39 +01:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _TWAIN32_H
|
|
|
|
#define _TWAIN32_H
|
|
|
|
|
2003-09-06 01:08:26 +02:00
|
|
|
#include <stdarg.h>
|
|
|
|
|
2002-03-21 03:58:39 +01:00
|
|
|
#include "windef.h"
|
2003-09-06 01:08:26 +02:00
|
|
|
#include "winbase.h"
|
|
|
|
#include "twain.h"
|
2017-10-20 21:16:26 +02:00
|
|
|
#include "wine/list.h"
|
|
|
|
|
|
|
|
struct pending_message
|
|
|
|
{
|
|
|
|
struct list entry;
|
|
|
|
TW_UINT16 msg;
|
|
|
|
};
|
2002-03-21 03:58:39 +01:00
|
|
|
|
2004-09-14 21:31:22 +02:00
|
|
|
/* internal information about an active data source */
|
2002-03-21 03:58:39 +01:00
|
|
|
typedef struct tagActiveDS
|
|
|
|
{
|
|
|
|
struct tagActiveDS *next; /* next active DS */
|
|
|
|
TW_IDENTITY identity; /* identity */
|
2006-05-08 20:05:42 +02:00
|
|
|
HMODULE hmod;
|
|
|
|
DSENTRYPROC dsEntry;
|
2017-10-20 21:16:26 +02:00
|
|
|
struct list pending_messages;
|
|
|
|
HWND ui_window;
|
|
|
|
HWND event_window;
|
2002-06-01 01:06:46 +02:00
|
|
|
} activeDS;
|
2002-03-21 03:58:39 +01:00
|
|
|
|
2011-04-26 11:10:28 +02:00
|
|
|
TW_UINT16 DSM_twCC DECLSPEC_HIDDEN; /* current condition code of Source Manager */
|
2006-03-22 20:34:22 +01:00
|
|
|
|
2011-04-26 11:10:28 +02:00
|
|
|
activeDS *activeSources DECLSPEC_HIDDEN; /* list of active data sources */
|
2002-03-21 03:58:39 +01:00
|
|
|
|
2017-11-16 23:07:15 +01:00
|
|
|
HINSTANCE DSM_hinstance DECLSPEC_HIDDEN;
|
|
|
|
|
2002-03-21 03:58:39 +01:00
|
|
|
/* Implementation of operation triplets (From Application to Source Manager) */
|
|
|
|
extern TW_UINT16 TWAIN_CloseDS
|
2011-04-26 11:10:28 +02:00
|
|
|
(pTW_IDENTITY pOrigin, TW_MEMREF pData) DECLSPEC_HIDDEN;
|
2002-03-21 03:58:39 +01:00
|
|
|
extern TW_UINT16 TWAIN_IdentityGetDefault
|
2011-04-26 11:10:28 +02:00
|
|
|
(pTW_IDENTITY pOrigin, TW_MEMREF pData) DECLSPEC_HIDDEN;
|
2002-03-21 03:58:39 +01:00
|
|
|
extern TW_UINT16 TWAIN_IdentityGetFirst
|
2011-04-26 11:10:28 +02:00
|
|
|
(pTW_IDENTITY pOrigin, TW_MEMREF pData) DECLSPEC_HIDDEN;
|
2002-03-21 03:58:39 +01:00
|
|
|
extern TW_UINT16 TWAIN_IdentityGetNext
|
2011-04-26 11:10:28 +02:00
|
|
|
(pTW_IDENTITY pOrigin, TW_MEMREF pData) DECLSPEC_HIDDEN;
|
2002-03-21 03:58:39 +01:00
|
|
|
extern TW_UINT16 TWAIN_OpenDS
|
2011-04-26 11:10:28 +02:00
|
|
|
(pTW_IDENTITY pOrigin, TW_MEMREF pData) DECLSPEC_HIDDEN;
|
2002-03-21 03:58:39 +01:00
|
|
|
extern TW_UINT16 TWAIN_UserSelect
|
2011-04-26 11:10:28 +02:00
|
|
|
(pTW_IDENTITY pOrigin, TW_MEMREF pData) DECLSPEC_HIDDEN;
|
2002-03-21 03:58:39 +01:00
|
|
|
extern TW_UINT16 TWAIN_CloseDSM
|
2011-04-26 11:10:28 +02:00
|
|
|
(pTW_IDENTITY pOrigin, TW_MEMREF pData) DECLSPEC_HIDDEN;
|
2002-03-21 03:58:39 +01:00
|
|
|
extern TW_UINT16 TWAIN_OpenDSM
|
2011-04-26 11:10:28 +02:00
|
|
|
(pTW_IDENTITY pOrigin, TW_MEMREF pData) DECLSPEC_HIDDEN;
|
2002-03-21 03:58:39 +01:00
|
|
|
extern TW_UINT16 TWAIN_GetDSMStatus
|
2011-04-26 11:10:28 +02:00
|
|
|
(pTW_IDENTITY pOrigin, TW_MEMREF pData) DECLSPEC_HIDDEN;
|
2017-10-20 21:16:26 +02:00
|
|
|
extern TW_UINT16 TWAIN_ControlNull
|
|
|
|
(pTW_IDENTITY pOrigin, pTW_IDENTITY pDest, activeDS *pSource, TW_UINT16 MSG, TW_MEMREF pData) DECLSPEC_HIDDEN;
|
|
|
|
extern TW_UINT16 TWAIN_ProcessEvent
|
|
|
|
(pTW_IDENTITY pOrigin, activeDS *pSource, TW_MEMREF pData) DECLSPEC_HIDDEN;
|
2002-03-21 03:58:39 +01:00
|
|
|
|
|
|
|
#endif
|