Debian Codegraph @

mingw-w64-headers/include/wia_lh.idl

raw
1 /*
2 * Copyright 2009 Damjan Jovanovic
3 *
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.
8 *
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.
13 *
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
17 */
18
19 import "unknwn.idl";
20 import "oaidl.idl";
21 import "propidl.idl";
22
23 typedef struct _WIA_DITHER_PATTERN_DATA
24 {
25 LONG lSize;
26 BSTR bstrPatternName;
27 LONG lPatternWidth;
28 LONG lPatternLength;
29 LONG cbPattern;
30 [size_is(cbPattern)] BYTE *pbPattern;
31 } WIA_DITHER_PATTERN_DATA, *PWIA_DITHER_PATTERN_DATA;
32
33 typedef struct _WIA_PROPID_TO_NAME
34 {
35 PROPID propid;
36 LPOLESTR pszName;
37 } WIA_PROPID_TO_NAME, *PWIA_PROPID_TO_NAME;
38
39 typedef struct _WIA_FORMAT_INFO
40 {
41 GUID guidFormatID;
42 LONG lTymed;
43 } WIA_FORMAT_INFO, *PWIA_FORMAT_INFO;
44
45 cpp_quote("#include <wiadef.h>")
46
47 interface IEnumWIA_DEV_INFO;
48 interface IWiaPropertyStorage;
49 interface IWiaItem;
50 interface IWiaEventCallback;
51 interface IEnumWIA_DEV_CAPS;
52 interface IWiaTransferCallback;
53 interface IWiaPreview;
54 interface IEnumWiaItem2;
55 interface IWiaItem2;
56 interface IWiaDevMgr2;
57
58 cpp_quote("DEFINE_GUID(CLSID_WiaDevMgr, 0xa1f4e726,0x8cf1,0x11d1,0xbf,0x92,0x00,0x60,0x08,0x1e,0xd8,0x11);")
59
60 [
61 object,
62 uuid(5eb2502a-8cf1-11d1-bf92-0060081ed811)
63 ]
64 interface IWiaDevMgr : IUnknown
65 {
66 HRESULT EnumDeviceInfo(
67 [in] LONG lFlag,
68 [retval, out] IEnumWIA_DEV_INFO **ppIEnum);
69
70 HRESULT CreateDevice(
71 [in] BSTR bstrDeviceID,
72 [out] IWiaItem **ppWiaItemRoot);
73
74 HRESULT SelectDeviceDlg(
75 [in] HWND hwndParent,
76 [in] LONG lDeviceType,
77 [in] LONG lFlags,
78 [in, out, unique] BSTR *pbstrDeviceID,
79 [retval, out] IWiaItem **ppItemRoot);
80
81 HRESULT SelectDeviceDlgID(
82 [in] HWND hwndParent,
83 [in] LONG lDeviceType,
84 [in] LONG lFlags,
85 [retval, out] BSTR *pbstrDeviceID);
86
87 HRESULT GetImageDlg(
88 [in] HWND hwndParent,
89 [in] LONG lDeviceType,
90 [in] LONG lFlags,
91 [in] LONG lIntent,
92 [in] IWiaItem *pItemRoot,
93 [in] BSTR bstrFilename,
94 [in, out] GUID *pguidFormat);
95
96 HRESULT RegisterEventCallbackProgram(
97 [in] LONG lFlags,
98 [in] BSTR bstrDeviceID,
99 [in] const GUID *pEventGUID,
100 [in] BSTR bstrCommandline,
101 [in] BSTR bstrName,
102 [in] BSTR bstrDescription,
103 [in] BSTR bstrIcon);
104
105 HRESULT RegisterEventCallbackInterface(
106 [in] LONG lFlags,
107 [in] BSTR bstrDeviceID,
108 [in] const GUID *pEventGUID,
109 [unique, in] IWiaEventCallback *pIWiaEventCallback,
110 [out] IUnknown **pEventObject);
111
112 HRESULT RegisterEventCallbackCLSID(
113 [in] LONG lFlags,
114 [in] BSTR bstrDeviceID,
115 [in] const GUID *pEventGUID,
116 [unique, in] const GUID *pClsID,
117 [in] BSTR bstrName,
118 [in] BSTR bstrDescription,
119 [in] BSTR bstrIcon);
120
121 HRESULT AddDeviceDlg(
122 [in] HWND hwndParent,
123 [in] LONG lFlags);
124 }
125
126 [
127 object,
128 uuid(5e38b83c-8cf1-11d1-bf92-0060081ed811)
129 ]
130 interface IEnumWIA_DEV_INFO : IUnknown
131 {
132 HRESULT Next(
133 [in] ULONG celt,
134 [out, size_is(celt), length_is(*pceltFetched)] IWiaPropertyStorage **rgelt,
135 [out] ULONG *pceltFetched
136 );
137
138 HRESULT Skip(
139 [in] ULONG celt
140 );
141
142 HRESULT Reset();
143
144 HRESULT Clone(
145 [out] IEnumWIA_DEV_INFO **ppIEnum
146 );
147
148 HRESULT GetCount(
149 [out] ULONG *celt
150 );
151 }
152
153 [
154 object,
155 uuid(98B5E8A0-29CC-491a-AAC0-E6DB4FDCCEB6)
156 ]
157 interface IWiaPropertyStorage : IUnknown
158 {
159 /* FIXME: fill in */
160 }
161
162 [
163 object,
164 uuid(4db1ad10-3391-11d2-9a33-00c04fa36145)
165 ]
166 interface IWiaItem : IUnknown
167 {
168 /* FIXME: fill in */
169 }
170
171 [
172 object,
173 uuid(ae6287b0-0084-11d2-973b-00a0c9068f2e)
174 ]
175 interface IWiaEventCallback : IUnknown
176 {
177 HRESULT ImageEventCallback(
178 [in] const GUID *pEventGUID,
179 [in] BSTR bstrEventDescription,
180 [in] BSTR bstrDeviceID,
181 [in] BSTR bstrDeviceDescription,
182 [in] DWORD dwDeviceType,
183 [in] BSTR bstrFullItemName,
184 [in,out] ULONG *pulEventType,
185 [in] ULONG ulReserved);
186 }
187
188 typedef struct _WIA_DEV_CAP
189 {
190 GUID guid;
191 ULONG ulFlags;
192 BSTR bstrName;
193 BSTR bstrDescription;
194 BSTR bstrIcon;
195 BSTR bstrCommandline;
196 } WIA_DEV_CAP, *PWIA_DEV_CAP, WIA_EVENT_HANDLER, *PWIA_EVENT_HANDLER;
197
198 [
199 object,
200 uuid(1fcc4287-aca6-11d2-a093-00c04f72dc3c)
201 ]
202 interface IEnumWIA_DEV_CAPS : IUnknown
203 {
204 HRESULT Next(
205 [in] ULONG celt,
206 [out, size_is(celt), length_is(*pceltFetched)] WIA_DEV_CAP *rgelt,
207 [in, out, unique] ULONG *pceltFetched);
208
209 HRESULT Skip(
210 [in] ULONG celt);
211
212 HRESULT Reset(void);
213
214 HRESULT Clone(
215 [out] IEnumWIA_DEV_CAPS **ppIEnum);
216
217 HRESULT GetCount(
218 [out] ULONG *pcelt);
219 }
220
221 typedef struct _WiaTransferParams
222 {
223 LONG lMessage;
224 LONG lPercentComplete;
225 ULONG64 ulTransferredBytes;
226 HRESULT hrErrorStatus;
227 } WiaTransferParams;
228
229 [
230 object,
231 uuid(27d4eaaf-28a6-4ca5-9aab-e678168b9527)
232 ]
233 interface IWiaTransferCallback : IUnknown
234 {
235 HRESULT TransferCallback(
236 [in] LONG lFlags,
237 [in] WiaTransferParams *pWiaTransferParams);
238
239 HRESULT GetNextStream(
240 [in] LONG lFlags,
241 [in] BSTR bstrItemName,
242 [in] BSTR bstrFullItemName,
243 [out] IStream **ppDestination);
244 }
245
246 [
247 object,
248 uuid(95c2b4fd-33f2-4d86-ad40-9431f0df08f7)
249 ]
250 interface IWiaPreview : IUnknown
251 {
252 HRESULT GetNewPreview(
253 [in] LONG lFlags,
254 [in] IWiaItem2 *pWiaItem2,
255 [in] IWiaTransferCallback *pWiaTransferCallback);
256
257 HRESULT UpdatePreview(
258 [in] LONG lFlags,
259 [in] IWiaItem2 *pChildWiaItem2,
260 [in] IWiaTransferCallback *pWiaTransferCallback);
261
262 HRESULT DetectRegions(
263 [in] LONG lFlags);
264
265 HRESULT Clear(void);
266 }
267
268 [
269 object,
270 uuid(59970af4-cd0d-44d9-ab24-52295630e582)
271 ]
272 interface IEnumWiaItem2 : IUnknown
273 {
274 HRESULT Next(
275 [in] ULONG cElt,
276 [out, size_is(cElt), length_is(*pcEltFetched)] IWiaItem2 **ppIWiaItem2,
277 [in, out, unique] ULONG *pcEltFetched);
278
279 HRESULT Skip(
280 [in] ULONG cElt);
281
282 HRESULT Reset(void);
283
284 HRESULT Clone(
285 [out] IEnumWiaItem2 **ppIEnum);
286
287 HRESULT GetCount(
288 [out] ULONG *cElt);
289 }
290
291 [
292 object,
293 uuid(6cba0075-1287-407d-9b77-cf0e030435cc)
294 ]
295 interface IWiaItem2 : IUnknown
296 {
297 HRESULT CreateChildItem(
298 [in] LONG lItemFlags,
299 [in] LONG lCreationFlags,
300 [in] BSTR bstrItemName,
301 [out] IWiaItem2 **ppIWiaItem2);
302
303 HRESULT DeleteItem(
304 [in] LONG lFlags);
305
306 HRESULT EnumChildItems(
307 [in, unique] const GUID *pCategoryGUID,
308 [out] IEnumWiaItem2 **ppIEnumWiaItem2);
309
310 HRESULT FindItemByName(
311 [in] LONG lFlags,
312 [in] BSTR bstrFullItemName,
313 [out] IWiaItem2 **ppIWiaItem2);
314
315 HRESULT GetItemCategory(
316 [out] GUID *pItemCategoryGUID);
317
318 HRESULT GetItemType(
319 [out] LONG *pItemType);
320
321 HRESULT DeviceDlg(
322 [in] LONG lFlags,
323 [in] HWND hwndParent,
324 [in] BSTR bstrFolderName,
325 [in] BSTR bstrFilename,
326 [out] LONG *plNumFiles,
327 [out, size_is(*plNumFiles)] BSTR **ppbstrFilePaths,
328 [in, out, optional] IWiaItem2 **ppItem);
329
330 HRESULT DeviceCommand(
331 [in] LONG lFlags,
332 [in] const GUID *pCmdGUID,
333 [in, out] IWiaItem2 **ppIWiaItem2);
334
335 HRESULT EnumDeviceCapabilities(
336 [in] LONG lFlags,
337 [out] IEnumWIA_DEV_CAPS **ppIEnumWIA_DEV_CAPS);
338
339 HRESULT CheckExtension(
340 [in] LONG lFlags,
341 [in] BSTR bstrName,
342 [in] REFIID riidExtensionInterface,
343 [out] BOOL *pbExtensionExists);
344
345 HRESULT GetExtension(
346 [in] LONG lFlags,
347 [in] BSTR bstrName,
348 [in] REFIID riidExtensionInterface,
349 [out, iid_is(riidExtensionInterface)] void **ppOut);
350
351 HRESULT GetParentItem(
352 [out] IWiaItem2 **ppIWiaItem2);
353
354 HRESULT GetRootItem(
355 [out] IWiaItem2 **ppIWiaItem2);
356
357 HRESULT GetPreviewComponent(
358 [in] LONG lFlags,
359 [out] IWiaPreview **ppWiaPreview);
360
361 HRESULT EnumRegisterEventInfo(
362 [in] LONG lFlags,
363 [in] const GUID *pEventGUID,
364 [out] IEnumWIA_DEV_CAPS **ppIEnum);
365
366 HRESULT Diagnostic(
367 [in] ULONG ulSize,
368 [in, size_is(ulSize)] BYTE *pBuffer);
369 }
370
371 [
372 object,
373 uuid(79c07cf1-cbdd-41ee-8ec3-f00080cada7a)
374 ]
375 interface IWiaDevMgr2 : IUnknown
376 {
377 HRESULT EnumDeviceInfo(
378 [in] LONG lFlags,
379 [out, retval] IEnumWIA_DEV_INFO **ppIEnum);
380
381 HRESULT CreateDevice(
382 [in] LONG lFlags,
383 [in] BSTR bstrDeviceID,
384 [out] IWiaItem2 **ppWiaItem2Root);
385
386 HRESULT SelectDeviceDlg(
387 [in] HWND hwndParent,
388 [in] LONG lDeviceType,
389 [in] LONG lFlags,
390 [in, out] BSTR *pbstrDeviceID,
391 [out, retval] IWiaItem2 **ppItemRoot);
392
393 HRESULT SelectDeviceDlgID(
394 [in] HWND hwndParent,
395 [in] LONG lDeviceType,
396 [in] LONG lFlags,
397 [out, retval] BSTR *pbstrDeviceID);
398
399 HRESULT RegisterEventCallbackInterface(
400 [in] LONG lFlags,
401 [in] BSTR bstrDeviceID,
402 [in] const GUID *pEventGUID,
403 [in, unique] IWiaEventCallback *pIWiaEventCallback,
404 [out] IUnknown **pEventObject);
405
406 HRESULT RegisterEventCallbackProgram(
407 [in] LONG lFlags,
408 [in] BSTR bstrDeviceID,
409 [in] const GUID *pEventGUID,
410 [in] BSTR bstrFullAppName,
411 [in] BSTR bstrCommandLineArg,
412 [in] BSTR bstrName,
413 [in] BSTR bstrDescription,
414 [in] BSTR bstrIcon);
415
416 HRESULT RegisterEventCallbackCLSID(
417 [in] LONG lFlags,
418 [in] BSTR bstrDeviceID,
419 [in] const GUID *pEventGUID,
420 [in, unique] const GUID *pClsID,
421 [in] BSTR bstrName,
422 [in] BSTR bstrDescription,
423 [in] BSTR bstrIcon);
424
425 HRESULT GetImageDlg(
426 [in] LONG lFlags,
427 [in] BSTR bstrDeviceID,
428 [in] HWND hwndParent,
429 [in] BSTR bstrFolderName,
430 [in] BSTR bstrFilename,
431 [out] LONG *plNumFiles,
432 [out, size_is(*plNumFiles)] BSTR **ppbstrFilePaths,
433 [in, out] IWiaItem2 **ppItem);
434 }
435
436 [
437 uuid(b6c292bc-7c88-41ee-8b54-8ec92617e599)
438 ]
439 coclass WiaDevMgr2
440 {
441 interface IWiaDevMgr2;
442 }