mirror of
https://github.com/reactos/reactos.git
synced 2024-10-30 11:35:58 +00:00
71 lines
2.5 KiB
C
71 lines
2.5 KiB
C
/*
|
|
* Copyright 2000 Corel Corporation
|
|
* Copyright 2006 Marcus Meissner
|
|
*
|
|
* 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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
|
*/
|
|
|
|
#ifndef _TWAIN32_H
|
|
#define _TWAIN32_H
|
|
|
|
#include <wine/config.h>
|
|
|
|
#include <stdarg.h>
|
|
|
|
#define NONAMELESSUNION
|
|
#define NONAMELESSSTRUCT
|
|
|
|
#include <windef.h>
|
|
#include <winbase.h>
|
|
#include <twain.h>
|
|
|
|
#include <wine/debug.h>
|
|
WINE_DEFAULT_DEBUG_CHANNEL(twain);
|
|
|
|
/* internal information about an active data source */
|
|
typedef struct tagActiveDS
|
|
{
|
|
struct tagActiveDS *next; /* next active DS */
|
|
TW_IDENTITY identity; /* identity */
|
|
HMODULE hmod;
|
|
DSENTRYPROC dsEntry;
|
|
} activeDS;
|
|
|
|
TW_UINT16 DSM_twCC DECLSPEC_HIDDEN; /* current condition code of Source Manager */
|
|
|
|
activeDS *activeSources DECLSPEC_HIDDEN; /* list of active data sources */
|
|
|
|
/* Implementation of operation triplets (From Application to Source Manager) */
|
|
extern TW_UINT16 TWAIN_CloseDS
|
|
(pTW_IDENTITY pOrigin, TW_MEMREF pData) DECLSPEC_HIDDEN;
|
|
extern TW_UINT16 TWAIN_IdentityGetDefault
|
|
(pTW_IDENTITY pOrigin, TW_MEMREF pData) DECLSPEC_HIDDEN;
|
|
extern TW_UINT16 TWAIN_IdentityGetFirst
|
|
(pTW_IDENTITY pOrigin, TW_MEMREF pData) DECLSPEC_HIDDEN;
|
|
extern TW_UINT16 TWAIN_IdentityGetNext
|
|
(pTW_IDENTITY pOrigin, TW_MEMREF pData) DECLSPEC_HIDDEN;
|
|
extern TW_UINT16 TWAIN_OpenDS
|
|
(pTW_IDENTITY pOrigin, TW_MEMREF pData) DECLSPEC_HIDDEN;
|
|
extern TW_UINT16 TWAIN_UserSelect
|
|
(pTW_IDENTITY pOrigin, TW_MEMREF pData) DECLSPEC_HIDDEN;
|
|
extern TW_UINT16 TWAIN_CloseDSM
|
|
(pTW_IDENTITY pOrigin, TW_MEMREF pData) DECLSPEC_HIDDEN;
|
|
extern TW_UINT16 TWAIN_OpenDSM
|
|
(pTW_IDENTITY pOrigin, TW_MEMREF pData) DECLSPEC_HIDDEN;
|
|
extern TW_UINT16 TWAIN_GetDSMStatus
|
|
(pTW_IDENTITY pOrigin, TW_MEMREF pData) DECLSPEC_HIDDEN;
|
|
|
|
#endif /* _TWAIN32_H */
|