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 | /*
|
---|
20 | * Oracle LGPL Disclaimer: For the avoidance of doubt, except that if any license choice
|
---|
21 | * other than GPL or LGPL is available it will apply instead, Oracle elects to use only
|
---|
22 | * the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where
|
---|
23 | * a choice of LGPL license versions is made available with the language indicating
|
---|
24 | * that LGPLv2 or any later version may be used, or where a choice of which version
|
---|
25 | * of the LGPL is applied is otherwise unspecified.
|
---|
26 | */
|
---|
27 |
|
---|
28 | import "unknwn.idl";
|
---|
29 | import "oaidl.idl";
|
---|
30 | import "propidl.idl";
|
---|
31 |
|
---|
32 | interface IEnumWIA_DEV_INFO;
|
---|
33 | interface IWiaItem;
|
---|
34 | interface IWiaEventCallback;
|
---|
35 |
|
---|
36 | cpp_quote("DEFINE_GUID(CLSID_WiaDevMgr, 0xa1f4e726,0x8cf1,0x11d1,0xbf,0x92,0x00,0x60,0x08,0x1e,0xd8,0x11);")
|
---|
37 |
|
---|
38 | [
|
---|
39 | object,
|
---|
40 | uuid(5eb2502a-8cf1-11d1-bf92-0060081ed811)
|
---|
41 | ]
|
---|
42 | interface IWiaDevMgr : IUnknown
|
---|
43 | {
|
---|
44 | HRESULT EnumDeviceInfo(
|
---|
45 | [in] LONG lFlag,
|
---|
46 | [retval, out] IEnumWIA_DEV_INFO **ppIEnum);
|
---|
47 |
|
---|
48 | HRESULT CreateDevice(
|
---|
49 | [in] BSTR bstrDeviceID,
|
---|
50 | [out] IWiaItem **ppWiaItemRoot);
|
---|
51 |
|
---|
52 | HRESULT SelectDeviceDlg(
|
---|
53 | [in] HWND hwndParent,
|
---|
54 | [in] LONG lDeviceType,
|
---|
55 | [in] LONG lFlags,
|
---|
56 | [in, out] BSTR *pbstrDeviceID,
|
---|
57 | [retval, out] IWiaItem **ppItemRoot);
|
---|
58 |
|
---|
59 | HRESULT SelectDeviceDlgID(
|
---|
60 | [in] HWND hwndParent,
|
---|
61 | [in] LONG lDeviceType,
|
---|
62 | [in] LONG lFlags,
|
---|
63 | [retval, out] BSTR *pbstrDeviceID);
|
---|
64 |
|
---|
65 | HRESULT GetImageDlg(
|
---|
66 | [in] HWND hwndParent,
|
---|
67 | [in] LONG lDeviceType,
|
---|
68 | [in] LONG lFlags,
|
---|
69 | [in] LONG lIntent,
|
---|
70 | [in] IWiaItem *pItemRoot,
|
---|
71 | [in] BSTR bstrFilename,
|
---|
72 | [in, out] GUID *pguidFormat);
|
---|
73 |
|
---|
74 | HRESULT RegisterEventCallbackProgram(
|
---|
75 | [in] LONG lFlags,
|
---|
76 | [in] BSTR bstrDeviceID,
|
---|
77 | [in] const GUID *pEventGUID,
|
---|
78 | [in] BSTR bstrCommandline,
|
---|
79 | [in] BSTR bstrName,
|
---|
80 | [in] BSTR bstrDescription,
|
---|
81 | [in] BSTR bstrIcon);
|
---|
82 |
|
---|
83 | HRESULT RegisterEventCallbackInterface(
|
---|
84 | [in] LONG lFlags,
|
---|
85 | [in] BSTR bstrDeviceID,
|
---|
86 | [in] const GUID *pEventGUID,
|
---|
87 | [unique, in] IWiaEventCallback *pIWiaEventCallback,
|
---|
88 | [out] IUnknown **pEventObject);
|
---|
89 |
|
---|
90 | HRESULT RegisterEventCallbackCLSID(
|
---|
91 | [in] LONG lFlags,
|
---|
92 | [in] BSTR bstrDeviceID,
|
---|
93 | [in] const GUID *pEventGUID,
|
---|
94 | [unique, in] const GUID *pClsID,
|
---|
95 | [in] BSTR bstrName,
|
---|
96 | [in] BSTR bstrDescription,
|
---|
97 | [in] BSTR bstrIcon);
|
---|
98 |
|
---|
99 | HRESULT AddDeviceDlg(
|
---|
100 | [in] HWND hwndParent,
|
---|
101 | [in] LONG lFlags);
|
---|
102 | }
|
---|
103 |
|
---|
104 | [
|
---|
105 | object,
|
---|
106 | uuid(5e38b83c-8cf1-11d1-bf92-0060081ed811)
|
---|
107 | ]
|
---|
108 | interface IEnumWIA_DEV_INFO : IUnknown
|
---|
109 | {
|
---|
110 | /* fill in */
|
---|
111 | }
|
---|
112 |
|
---|
113 | [
|
---|
114 | object,
|
---|
115 | uuid(4db1ad10-3391-11d2-9a33-00c04fa36145)
|
---|
116 | ]
|
---|
117 | interface IWiaItem : IUnknown
|
---|
118 | {
|
---|
119 | /* FIXME: fill in */
|
---|
120 | }
|
---|
121 |
|
---|
122 | [
|
---|
123 | object,
|
---|
124 | uuid(ae6287b0-0084-11d2-973b-00a0c9068f2e)
|
---|
125 | ]
|
---|
126 | interface IWiaEventCallback : IUnknown
|
---|
127 | {
|
---|
128 | HRESULT ImageEventCallback(
|
---|
129 | [in] const GUID *pEventGUID,
|
---|
130 | [in] BSTR bstrEventDescription,
|
---|
131 | [in] BSTR bstrDeviceID,
|
---|
132 | [in] BSTR bstrDeviceDescription,
|
---|
133 | [in] DWORD dwDeviceType,
|
---|
134 | [in] BSTR bstrFullItemName,
|
---|
135 | [in,out] ULONG *pulEventType,
|
---|
136 | [in] ULONG ulReserved);
|
---|
137 | }
|
---|