Debian Codegraph @

mingw-w64-headers/include/portabledevicetypes.idl

raw
1 /**
2 * This file has no copyright assigned and is placed in the Public Domain.
3 * This file is part of the mingw-w64 runtime package.
4 * No warranty is given; refer to the file DISCLAIMER.PD within this package.
5 */
6
7 import "oaidl.idl";
8 import "ocidl.idl";
9 import "propsys.idl";
10
11 typedef enum tagWPD_STREAM_UNITS {
12 WPD_STREAM_UNITS_BYTES = 0x0,
13 WPD_STREAM_UNITS_FRAMES = 0x1,
14 WPD_STREAM_UNITS_ROWS = 0x2,
15 WPD_STREAM_UNITS_MILLISECONDS = 0x4,
16 WPD_STREAM_UNITS_MICROSECONDS = 0x8,
17 } WPD_STREAM_UNITS;
18
19 interface IWpdSerializer;
20 interface IPortableDeviceValues;
21 interface IPortableDeviceKeyCollection;
22 interface IPortableDevicePropVariantCollection;
23 interface IPortableDeviceValuesCollection;
24
25 [
26 object,
27 uuid(b32f4002-bb27-45ff-af4f-06631c1e8dad),
28 pointer_default(unique)
29 ]
30 interface IWpdSerializer : IUnknown
31 {
32 HRESULT GetIPortableDeviceValuesFromBuffer(
33 [in, size_is(input_buffer_length)] BYTE *buffer,
34 [in] DWORD input_buffer_length,
35 [out] IPortableDeviceValues **params);
36
37 HRESULT WriteIPortableDeviceValuesToBuffer(
38 [in] DWORD output_buffer_length,
39 [in] IPortableDeviceValues *results,
40 [out, size_is(output_buffer_length), length_is(*bytes_written)] BYTE *buffer,
41 [out] DWORD *bytes_written);
42
43 HRESULT GetBufferFromIPortableDeviceValues(
44 [in] IPortableDeviceValues *source,
45 [out, size_is(, *buffer_size)] BYTE **buffer,
46 [out] DWORD *buffer_size);
47
48 HRESULT GetSerializedSize(
49 [in] IPortableDeviceValues *source,
50 [out] DWORD *size);
51 }
52
53 [
54 uuid(6848f6f2-3155-4f86-b6f5-263eeeab3143),
55 object
56 ]
57 interface IPortableDeviceValues : IUnknown {
58 HRESULT GetCount([in] DWORD *pcelt);
59
60 HRESULT GetAt(
61 [in] const DWORD index,
62 [unique, out, in] PROPERTYKEY *pKey,
63 [unique, out, in] PROPVARIANT *pValue);
64
65 HRESULT SetValue(
66 [in] REFPROPERTYKEY key,
67 [in] const PROPVARIANT *pValue);
68
69 HRESULT GetValue(
70 [in] REFPROPERTYKEY key,
71 [out] PROPVARIANT *pValue);
72
73 HRESULT SetStringValue(
74 [in] REFPROPERTYKEY key,
75 [in] LPCWSTR Value);
76
77 HRESULT GetStringValue(
78 [in] REFPROPERTYKEY key,
79 [out] LPWSTR *pValue);
80
81 HRESULT SetUnsignedIntegerValue(
82 [in] REFPROPERTYKEY key,
83 [in] const ULONG Value);
84
85 HRESULT GetUnsignedIntegerValue(
86 [in] REFPROPERTYKEY key,
87 [out] ULONG *pValue);
88
89 HRESULT SetSignedIntegerValue(
90 [in] REFPROPERTYKEY key,
91 [in] const LONG Value);
92
93 HRESULT GetSignedIntegerValue(
94 [in] REFPROPERTYKEY key,
95 [out] LONG *pValue);
96
97 HRESULT SetUnsignedLargeIntegerValue(
98 [in] REFPROPERTYKEY key,
99 [in] const ULONGLONG Value);
100
101 HRESULT GetUnsignedLargeIntegerValue(
102 [in] REFPROPERTYKEY key,
103 [out] ULONGLONG *pValue);
104
105 HRESULT SetSignedLargeIntegerValue(
106 [in] REFPROPERTYKEY key,
107 [in] const LONGLONG Value) = 0;
108
109 HRESULT GetSignedLargeIntegerValue(
110 [in] REFPROPERTYKEY key,
111 [out] LONGLONG *pValue);
112
113 HRESULT SetFloatValue(
114 [in] REFPROPERTYKEY key,
115 [in] const FLOAT Value);
116
117 HRESULT GetFloatValue(
118 [in] REFPROPERTYKEY key,
119 [out] FLOAT *pValue);
120
121 HRESULT SetErrorValue(
122 [in] REFPROPERTYKEY key,
123 [in] const HRESULT Value);
124
125 HRESULT GetErrorValue(
126 [in] REFPROPERTYKEY key,
127 [out] HRESULT *pValue);
128
129 HRESULT SetKeyValue(
130 [in] REFPROPERTYKEY key,
131 [in] REFPROPERTYKEY Value);
132
133 HRESULT GetKeyValue(
134 [in] REFPROPERTYKEY key,
135 [out] PROPERTYKEY *pValue);
136
137 HRESULT SetBoolValue(
138 [in] REFPROPERTYKEY key,
139 [in] const BOOL Value);
140
141 HRESULT GetBoolValue(
142 [in] REFPROPERTYKEY key,
143 [out] BOOL *pValue);
144
145 HRESULT SetIUnknownValue(
146 [in] REFPROPERTYKEY key,
147 [in] IUnknown *pValue);
148
149 HRESULT GetIUnknownValue(
150 [in] REFPROPERTYKEY key,
151 [out] IUnknown **ppValue);
152
153 HRESULT SetGuidValue(
154 [in] REFPROPERTYKEY key,
155 [in] REFGUID Value);
156
157 HRESULT GetGuidValue(
158 [in] REFPROPERTYKEY key,
159 [out] GUID *pValue);
160
161 HRESULT SetBufferValue(
162 [in] REFPROPERTYKEY key,
163 [size_is(cbValue), in] BYTE *pValue,
164 [in] DWORD cbValue);
165
166 HRESULT GetBufferValue(
167 [in] REFPROPERTYKEY key,
168 [size_is(*pcbValue), out] BYTE **ppValue,
169 [out] DWORD *pcbValue);
170
171 HRESULT SetIPortableDeviceValuesValue(
172 [in] REFPROPERTYKEY key,
173 [in] IPortableDeviceValues *pValue);
174
175 HRESULT GetIPortableDeviceValuesValue(
176 [in] REFPROPERTYKEY key,
177 [out] IPortableDeviceValues **ppValue);
178
179 HRESULT SetIPortableDevicePropVariantCollectionValue(
180 [in] REFPROPERTYKEY key,
181 [in] IPortableDevicePropVariantCollection *pValue);
182
183 HRESULT GetIPortableDevicePropVariantCollectionValue(
184 [in] REFPROPERTYKEY key,
185 [out] IPortableDevicePropVariantCollection **ppValue);
186
187 HRESULT SetIPortableDeviceKeyCollectionValue(
188 [in] REFPROPERTYKEY key,
189 [in] IPortableDeviceKeyCollection *pValue);
190
191 HRESULT GetIPortableDeviceKeyCollectionValue(
192 [in] REFPROPERTYKEY key,
193 [out] IPortableDeviceKeyCollection **ppValue);
194
195 HRESULT SetIPortableDeviceValuesCollectionValue(
196 [in] REFPROPERTYKEY key,
197 [in] IPortableDeviceValuesCollection *pValue);
198
199 HRESULT GetIPortableDeviceValuesCollectionValue(
200 [in] REFPROPERTYKEY key,
201 [out] IPortableDeviceValuesCollection **ppValue);
202
203 HRESULT RemoveValue([in] REFPROPERTYKEY key);
204 HRESULT CopyValuesFromPropertyStore([in] IPropertyStore *pStore);
205 HRESULT CopyValuesToPropertyStore([in] IPropertyStore *pStore);
206 HRESULT Clear();
207 }
208
209 [
210 uuid(dada2357-e0ad-492e-98db-dd61c53ba353),
211 object
212 ]
213 interface IPortableDeviceKeyCollection : IUnknown
214 {
215 HRESULT GetCount([in] DWORD *pcElems);
216
217 HRESULT GetAt(
218 [in] const DWORD dwIndex,
219 [in] PROPERTYKEY *pKey);
220
221 HRESULT Add([in] REFPROPERTYKEY Key);
222 HRESULT Clear();
223 HRESULT RemoveAt([in] const DWORD dwIndex);
224 }
225
226 [
227 uuid(89b2e422-4f1b-4316-bcef-a44afea83eb3),
228 object
229 ]
230 interface IPortableDevicePropVariantCollection : IUnknown
231 {
232 HRESULT GetCount([out] DWORD *pcElems);
233
234 HRESULT GetAt(
235 [in] const DWORD dwIndex,
236 [in] PROPVARIANT *pValue);
237
238 HRESULT Add([in] const PROPVARIANT *pValue);
239 HRESULT GetType([out] VARTYPE *pvt);
240 HRESULT ChangeType([in] const VARTYPE vt);
241 HRESULT Clear();
242 HRESULT RemoveAt([in] const DWORD dwIndex);
243 }
244
245 [
246 uuid(6e3f2d79-4e07-48c4-8208-d8c2e5af4a99),
247 object
248 ]
249 interface IPortableDeviceValuesCollection : IUnknown
250 {
251 HRESULT GetCount([out] DWORD *pcElems);
252
253 HRESULT GetAt(
254 [in] DWORD dwIndex,
255 [out] IPortableDeviceValues **ppValues);
256
257 HRESULT Add([in] IPortableDeviceValues *pValues);
258 HRESULT Clear();
259 HRESULT RemoveAt([in] const DWORD dwIndex);
260 }
261 [
262 uuid(2b00ba2f-e750-4beb-9235-97142ede1d3e),
263 version(1.0)
264 ]
265 library PortableDeviceTypesLib
266 {
267 [
268 uuid(0b91a74b-ad7c-4a9d-b563-29eef9167172)
269 ]
270 coclass WpdSerializer
271 {
272 [default] interface IWpdSerializer;
273 }
274
275 [
276 uuid(0c15d503-d017-47ce-9016-7b3f978721cc)
277 ]
278 coclass PortableDeviceValues
279 {
280 [default] interface IPortableDeviceValues;
281 }
282
283 [
284 uuid(de2d022d-2480-43be-97f0-d1fa2cf98f4f)
285 ]
286 coclass PortableDeviceKeyCollection
287 {
288 [default] interface IPortableDeviceKeyCollection;
289 }
290
291 [
292 uuid(08a99e2f-6d6d-4b80-af5a-baf2bcbe4cb9)
293 ]
294 coclass PortableDevicePropVariantCollection
295 {
296 [default] interface IPortableDevicePropVariantCollection;
297 }
298
299 [
300 uuid(3882134d-14cf-4220-9cb4-435f86d83f60)
301 ]
302 coclass PortableDeviceValuesCollection
303 {
304 [default] interface IPortableDeviceValuesCollection;
305 }
306 }