ReactOS 0.4.15-dev-7931-gfd331f1
twain_i.h
Go to the documentation of this file.
1/*
2 * Copyright 2000 Corel Corporation
3 * Copyright 2006 Marcus Meissner
4 *
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2.1 of the License, or (at your option) any later version.
9 *
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
14 *
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
18 */
19
20#ifndef _TWAIN32_H
21#define _TWAIN32_H
22
23#include <stdarg.h>
24
25#include "windef.h"
26#include "winbase.h"
27#include "twain.h"
28#include "wine/list.h"
29
31{
32 struct list entry;
34};
35
36/* internal information about an active data source */
37typedef struct tagActiveDS
38{
39 struct tagActiveDS *next; /* next active DS */
40 TW_IDENTITY identity; /* identity */
42 DSENTRYPROC dsEntry;
47
48extern TW_UINT16 DSM_twCC DECLSPEC_HIDDEN; /* current condition code of Source Manager */
49
50extern activeDS *activeSources DECLSPEC_HIDDEN; /* list of active data sources */
51
53
54/* Implementation of operation triplets (From Application to Source Manager) */
77
78#endif
Definition: list.h:37
TW_UINT16 msg
Definition: twain_i.h:33
struct list entry
Definition: twain_i.h:32
HWND ui_window
Definition: twain_i.h:44
DSENTRYPROC dsEntry
Definition: twain_i.h:42
struct tagActiveDS * next
Definition: twain_i.h:39
TW_IDENTITY identity
Definition: twain_i.h:40
struct list pending_messages
Definition: twain_i.h:43
HMODULE hmod
Definition: twain_i.h:41
HWND event_window
Definition: twain_i.h:45
TW_UINT16 DSM_twCC
Definition: twain32_main.c:32
HINSTANCE DSM_hinstance
Definition: twain32_main.c:34
activeDS * activeSources
Definition: twain32_main.c:33
TW_UINT32 TW_UINT16 TW_UINT16 TW_MEMREF pData
Definition: twain.h:1830
TW_UINT32 TW_UINT16 TW_UINT16 MSG
Definition: twain.h:1829
unsigned short TW_UINT16
Definition: twain.h:119
TW_UINT16 TWAIN_ControlNull(pTW_IDENTITY pOrigin, pTW_IDENTITY pDest, activeDS *pSource, TW_UINT16 MSG, TW_MEMREF pData) DECLSPEC_HIDDEN
Definition: dsm_ctrl.c:120
TW_UINT16 DSM_twCC DECLSPEC_HIDDEN
Definition: twain_i.h:50
TW_UINT16 TWAIN_CloseDSM(pTW_IDENTITY pOrigin, TW_MEMREF pData) DECLSPEC_HIDDEN
Definition: dsm_ctrl.c:455
TW_UINT16 TWAIN_ProcessEvent(pTW_IDENTITY pOrigin, activeDS *pSource, TW_MEMREF pData) DECLSPEC_HIDDEN
Definition: dsm_ctrl.c:162
TW_UINT16 TWAIN_OpenDS(pTW_IDENTITY pOrigin, TW_MEMREF pData) DECLSPEC_HIDDEN
Definition: dsm_ctrl.c:280
TW_UINT16 TWAIN_IdentityGetDefault(pTW_IDENTITY pOrigin, TW_MEMREF pData) DECLSPEC_HIDDEN
Definition: dsm_ctrl.c:234
TW_UINT16 TWAIN_CloseDS(pTW_IDENTITY pOrigin, TW_MEMREF pData) DECLSPEC_HIDDEN
Definition: dsm_ctrl.c:200
TW_UINT16 TWAIN_UserSelect(pTW_IDENTITY pOrigin, TW_MEMREF pData) DECLSPEC_HIDDEN
Definition: dsm_ctrl.c:428
TW_UINT16 TWAIN_OpenDSM(pTW_IDENTITY pOrigin, TW_MEMREF pData) DECLSPEC_HIDDEN
Definition: dsm_ctrl.c:484
TW_UINT16 TWAIN_GetDSMStatus(pTW_IDENTITY pOrigin, TW_MEMREF pData) DECLSPEC_HIDDEN
Definition: dsm_ctrl.c:505
TW_UINT16 TWAIN_IdentityGetFirst(pTW_IDENTITY pOrigin, TW_MEMREF pData) DECLSPEC_HIDDEN
Definition: dsm_ctrl.c:249
struct tagActiveDS activeDS
TW_UINT16 TWAIN_IdentityGetNext(pTW_IDENTITY pOrigin, TW_MEMREF pData) DECLSPEC_HIDDEN
Definition: dsm_ctrl.c:266