mshtml: Write-strings warnings fix.
[wine/multimedia.git] / dlls / sane.ds / sane_i.h
blob95eec7a53581e34fc6deb041af91d30095ab3d5c
1 /*
2 * Copyright 2000 Corel Corporation
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
19 #ifndef _TWAIN32_H
20 #define _TWAIN32_H
22 #ifndef __WINE_CONFIG_H
23 # error You must include config.h first
24 #endif
26 #ifdef HAVE_SANE
27 # include <sane/sane.h>
28 #endif
29 #include <stdarg.h>
31 #include "windef.h"
32 #include "winbase.h"
33 #include "twain.h"
35 extern HINSTANCE SANE_instance;
37 /* internal information about an active data source */
38 struct tagActiveDS
40 struct tagActiveDS *next; /* next active DS */
41 TW_IDENTITY identity; /* identity */
42 TW_UINT16 currentState; /* current state */
43 TW_EVENT pendingEvent; /* pending event to be sent to
44 application */
45 TW_UINT16 twCC; /* condition code */
46 HWND hwndOwner; /* window handle of the app */
47 HWND progressWnd; /* window handle of the scanning window */
48 #ifdef HAVE_SANE
49 SANE_Handle deviceHandle; /* device handle */
50 SANE_Parameters sane_param; /* parameters about the image
51 transferred */
52 BOOL sane_param_valid; /* true if valid sane_param*/
53 INT deviceIndex; /* index of the current device */
54 #endif
55 /* Capabiblities */
56 TW_UINT16 capXferMech; /* ICAP_XFERMECH */
57 } activeDS;
59 /* Helper functions */
60 extern TW_UINT16 SANE_SaneCapability (pTW_CAPABILITY pCapability, TW_UINT16 action);
62 /* */
63 extern TW_UINT16 SANE_ControlGroupHandler (
64 pTW_IDENTITY pOrigin, TW_UINT16 DAT, TW_UINT16 MSG, TW_MEMREF pData);
65 extern TW_UINT16 SANE_ImageGroupHandler (
66 pTW_IDENTITY pOrigin, TW_UINT16 DAT, TW_UINT16 MSG, TW_MEMREF pData);
67 extern TW_UINT16 SANE_AudioGroupHandler (
68 pTW_IDENTITY pOrigin, TW_UINT16 DAT, TW_UINT16 MSG, TW_MEMREF pData);
69 extern TW_UINT16 SANE_SourceManagerHandler (
70 pTW_IDENTITY pOrigin, TW_UINT16 DAT, TW_UINT16 MSG, TW_MEMREF pData);
72 /* Implementation of operation triplets
73 * From Application to Source (Control Information) */
74 TW_UINT16 SANE_CapabilityGet (pTW_IDENTITY pOrigin, TW_MEMREF pData);
75 TW_UINT16 SANE_CapabilityGetCurrent
76 (pTW_IDENTITY pOrigin, TW_MEMREF pData);
77 TW_UINT16 SANE_CapabilityGetDefault
78 (pTW_IDENTITY pOrigin, TW_MEMREF pData);
79 TW_UINT16 SANE_CapabilityQuerySupport
80 (pTW_IDENTITY pOrigin, TW_MEMREF pData);
81 TW_UINT16 SANE_CapabilityReset
82 (pTW_IDENTITY pOrigin, TW_MEMREF pData);
83 TW_UINT16 SANE_CapabilitySet
84 (pTW_IDENTITY pOrigin, TW_MEMREF pData);
85 TW_UINT16 SANE_CustomDSDataGet
86 (pTW_IDENTITY pOrigin, TW_MEMREF pData);
87 TW_UINT16 SANE_CustomDSDataSet
88 (pTW_IDENTITY pOrigin, TW_MEMREF pData);
89 TW_UINT16 SANE_AutomaticCaptureDirectory
90 (pTW_IDENTITY pOrigin, TW_MEMREF pData);
91 TW_UINT16 SANE_ChangeDirectory
92 (pTW_IDENTITY pOrigin, TW_MEMREF pData);
93 TW_UINT16 SANE_FileSystemCopy
94 (pTW_IDENTITY pOrigin, TW_MEMREF pData);
95 TW_UINT16 SANE_CreateDirectory
96 (pTW_IDENTITY pOrigin, TW_MEMREF pData);
97 TW_UINT16 SANE_FileSystemDelete
98 (pTW_IDENTITY pOrigin, TW_MEMREF pData);
99 TW_UINT16 SANE_FormatMedia
100 (pTW_IDENTITY pOrigin, TW_MEMREF pData);
101 TW_UINT16 SANE_FileSystemGetClose
102 (pTW_IDENTITY pOrigin, TW_MEMREF pData);
103 TW_UINT16 SANE_FileSystemGetFirstFile
104 (pTW_IDENTITY pOrigin, TW_MEMREF pData);
105 TW_UINT16 SANE_FileSystemGetInfo
106 (pTW_IDENTITY pOrigin, TW_MEMREF pData);
107 TW_UINT16 SANE_FileSystemGetNextFile
108 (pTW_IDENTITY pOrigin, TW_MEMREF pData);
109 TW_UINT16 SANE_FileSystemRename
110 (pTW_IDENTITY pOrigin, TW_MEMREF pData);
111 TW_UINT16 SANE_ProcessEvent
112 (pTW_IDENTITY pOrigin, TW_MEMREF pData);
113 TW_UINT16 SANE_PassThrough
114 (pTW_IDENTITY pOrigin, TW_MEMREF pData);
115 TW_UINT16 SANE_PendingXfersEndXfer
116 (pTW_IDENTITY pOrigin, TW_MEMREF pData);
117 TW_UINT16 SANE_PendingXfersGet
118 (pTW_IDENTITY pOrigin, TW_MEMREF pData);
119 TW_UINT16 SANE_PendingXfersReset
120 (pTW_IDENTITY pOrigin, TW_MEMREF pData);
121 TW_UINT16 SANE_PendingXfersStopFeeder
122 (pTW_IDENTITY pOrigin, TW_MEMREF pData);
123 TW_UINT16 SANE_SetupFileXferGet
124 (pTW_IDENTITY pOrigin, TW_MEMREF pData);
125 TW_UINT16 SANE_SetupFileXferGetDefault
126 (pTW_IDENTITY pOrigin, TW_MEMREF pData);
127 TW_UINT16 SANE_SetupFileXferReset
128 (pTW_IDENTITY pOrigin, TW_MEMREF pData);
129 TW_UINT16 SANE_SetupFileXferSet
130 (pTW_IDENTITY pOrigin, TW_MEMREF pData);
131 TW_UINT16 SANE_SetupFileXfer2Get
132 (pTW_IDENTITY pOrigin, TW_MEMREF pData);
133 TW_UINT16 SANE_SetupFileXfer2GetDefault
134 (pTW_IDENTITY pOrigin, TW_MEMREF pData);
135 TW_UINT16 SANE_SetupFileXfer2Reset
136 (pTW_IDENTITY pOrigin, TW_MEMREF pData);
137 TW_UINT16 SANE_SetupFileXfer2Set
138 (pTW_IDENTITY pOrigin, TW_MEMREF pData);
139 TW_UINT16 SANE_SetupMemXferGet
140 (pTW_IDENTITY pOrigin, TW_MEMREF pData);
141 TW_UINT16 SANE_GetDSStatus
142 (pTW_IDENTITY pOrigin, TW_MEMREF pData);
143 TW_UINT16 SANE_DisableDSUserInterface
144 (pTW_IDENTITY pOrigin, TW_MEMREF pData);
145 TW_UINT16 SANE_EnableDSUserInterface
146 (pTW_IDENTITY pOrigin, TW_MEMREF pData);
147 TW_UINT16 SANE_EnableDSUIOnly
148 (pTW_IDENTITY pOrigin, TW_MEMREF pData);
149 TW_UINT16 SANE_XferGroupGet
150 (pTW_IDENTITY pOrigin, TW_MEMREF pData);
151 TW_UINT16 SANE_XferGroupSet
152 (pTW_IDENTITY pOrigin, TW_MEMREF pData);
154 /* Implementation of operation triplets
155 * From Application to Source (Image Information) */
156 TW_UINT16 SANE_CIEColorGet
157 (pTW_IDENTITY pOrigin, TW_MEMREF pData);
158 TW_UINT16 SANE_ExtImageInfoGet
159 (pTW_IDENTITY pOrigin, TW_MEMREF pData);
160 TW_UINT16 SANE_GrayResponseReset
161 (pTW_IDENTITY pOrigin, TW_MEMREF pData);
162 TW_UINT16 SANE_GrayResponseSet
163 (pTW_IDENTITY pOrigin, TW_MEMREF pData);
164 TW_UINT16 SANE_ImageFileXferGet
165 (pTW_IDENTITY pOrigin, TW_MEMREF pData);
166 TW_UINT16 SANE_ImageInfoGet
167 (pTW_IDENTITY pOrigin, TW_MEMREF pData);
168 TW_UINT16 SANE_ImageLayoutGet
169 (pTW_IDENTITY pOrigin, TW_MEMREF pData);
170 TW_UINT16 SANE_ImageLayoutGetDefault
171 (pTW_IDENTITY pOrigin, TW_MEMREF pData);
172 TW_UINT16 SANE_ImageLayoutReset
173 (pTW_IDENTITY pOrigin, TW_MEMREF pData);
174 TW_UINT16 SANE_ImageLayoutSet
175 (pTW_IDENTITY pOrigin, TW_MEMREF pData);
176 TW_UINT16 SANE_ImageMemXferGet
177 (pTW_IDENTITY pOrigin, TW_MEMREF pData);
178 TW_UINT16 SANE_ImageNativeXferGet
179 (pTW_IDENTITY pOrigin, TW_MEMREF pData);
180 TW_UINT16 SANE_JPEGCompressionGet
181 (pTW_IDENTITY pOrigin, TW_MEMREF pData);
182 TW_UINT16 SANE_JPEGCompressionGetDefault
183 (pTW_IDENTITY pOrigin, TW_MEMREF pData);
184 TW_UINT16 SANE_JPEGCompressionReset
185 (pTW_IDENTITY pOrigin, TW_MEMREF pData);
186 TW_UINT16 SANE_JPEGCompressionSet
187 (pTW_IDENTITY pOrigin, TW_MEMREF pData);
188 TW_UINT16 SANE_Palette8Get
189 (pTW_IDENTITY pOrigin, TW_MEMREF pData);
190 TW_UINT16 SANE_Palette8GetDefault
191 (pTW_IDENTITY pOrigin, TW_MEMREF pData);
192 TW_UINT16 SANE_Palette8Reset
193 (pTW_IDENTITY pOrigin, TW_MEMREF pData);
194 TW_UINT16 SANE_Palette8Set
195 (pTW_IDENTITY pOrigin, TW_MEMREF pData);
196 TW_UINT16 SANE_RGBResponseReset
197 (pTW_IDENTITY pOrigin, TW_MEMREF pData);
198 TW_UINT16 SANE_RGBResponseSet
199 (pTW_IDENTITY pOrigin, TW_MEMREF pData);
201 /* Implementation of operation triplets
202 * From Application to Source (Audio Information) */
203 TW_UINT16 SANE_AudioFileXferGet
204 (pTW_IDENTITY pOrigin, TW_MEMREF pData);
205 TW_UINT16 SANE_AudioInfoGet
206 (pTW_IDENTITY pOrigin, TW_MEMREF pData);
207 TW_UINT16 SANE_AudioNativeXferGet
208 (pTW_IDENTITY pOrigin, TW_MEMREF pData);
210 /* Implementation of TWAIN capabilities */
211 TW_UINT16 SANE_ICAPXferMech (pTW_CAPABILITY pCapability, TW_UINT16 action);
213 /* UI function */
214 BOOL DoScannerUI(void);
215 HWND ScanningDialogBox(HWND dialog, LONG progress);
217 #endif