Debian Codegraph @

mingw-w64-headers/include/windows.foundation.idl

raw
1 /*
2 * Copyright 2015 Jacek Caban for CodeWeavers
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 #ifdef __WIDL__
20 #pragma winrt ns_prefix
21 #endif
22
23 import "inspectable.idl";
24 import "asyncinfo.idl";
25 import "windowscontracts.idl";
26 import "eventtoken.idl";
27 /* import "ivectorchangedeventargs.idl"; */
28 import "windows.foundation.collections.idl";
29
30 namespace Windows.Foundation.Collections {
31 interface IPropertySet;
32
33 runtimeclass PropertySet;
34
35 declare {
36 interface Windows.Foundation.Collections.IKeyValuePair<HSTRING, HSTRING>;
37 interface Windows.Foundation.Collections.IKeyValuePair<HSTRING, IInspectable *>;
38 interface Windows.Foundation.Collections.IIterable<Windows.Foundation.Collections.IKeyValuePair<HSTRING, HSTRING> *>;
39 interface Windows.Foundation.Collections.IIterable<Windows.Foundation.Collections.IKeyValuePair<HSTRING, IInspectable *> *>;
40 interface Windows.Foundation.Collections.IIterator<Windows.Foundation.Collections.IKeyValuePair<HSTRING, HSTRING> *>;
41 interface Windows.Foundation.Collections.IIterator<Windows.Foundation.Collections.IKeyValuePair<HSTRING, IInspectable *> *>;
42 interface Windows.Foundation.Collections.IMapChangedEventArgs<HSTRING>;
43 interface Windows.Foundation.Collections.MapChangedEventHandler<HSTRING, IInspectable *>;
44 interface Windows.Foundation.Collections.IMap<HSTRING, HSTRING>;
45 interface Windows.Foundation.Collections.IMap<HSTRING, IInspectable *>;
46 interface Windows.Foundation.Collections.IMapView<HSTRING, HSTRING>;
47 interface Windows.Foundation.Collections.IMapView<HSTRING, IInspectable *>;
48 interface Windows.Foundation.Collections.IObservableMap<HSTRING, IInspectable *>;
49 }
50
51 [
52 contract(Windows.Foundation.FoundationContract, 1.0),
53 uuid(8a43ed9f-f4e6-4421-acf9-1dab2986820c)
54 ]
55 interface IPropertySet : IInspectable
56 requires Windows.Foundation.Collections.IObservableMap<HSTRING, IInspectable *>,
57 Windows.Foundation.Collections.IMap<HSTRING, IInspectable *>,
58 Windows.Foundation.Collections.IIterable<Windows.Foundation.Collections.IKeyValuePair<HSTRING, IInspectable *> *>
59 {
60 }
61
62 [
63 activatable(Windows.Foundation.FoundationContract, 1.0),
64 contract(Windows.Foundation.FoundationContract, 1.0),
65 marshaling_behavior(agile),
66 threading(both)
67 ]
68 runtimeclass PropertySet
69 {
70 [default] interface Windows.Foundation.Collections.IPropertySet;
71 interface Windows.Foundation.Collections.IObservableMap<HSTRING, IInspectable *>;
72 interface Windows.Foundation.Collections.IMap<HSTRING, IInspectable *>;
73 interface Windows.Foundation.Collections.IIterable<Windows.Foundation.Collections.IKeyValuePair<HSTRING, IInspectable *> *>;
74 }
75
76 [
77 activatable(Windows.Foundation.FoundationContract, 1.0),
78 contract(Windows.Foundation.FoundationContract, 1.0),
79 marshaling_behavior(agile),
80 threading(both)
81 ]
82 runtimeclass ValueSet
83 {
84 [default] interface Windows.Foundation.Collections.IPropertySet;
85 interface Windows.Foundation.Collections.IObservableMap<HSTRING, IInspectable *>;
86 interface Windows.Foundation.Collections.IMap<HSTRING, IInspectable *>;
87 interface Windows.Foundation.Collections.IIterable<Windows.Foundation.Collections.IKeyValuePair<HSTRING, IInspectable *> *>;
88 }
89 }
90
91 namespace Windows.Foundation {
92 typedef enum PropertyType PropertyType;
93 typedef struct Point Point;
94 typedef struct Size Size;
95 typedef struct Rect Rect;
96 typedef struct DateTime DateTime;
97 typedef struct TimeSpan TimeSpan;
98 interface IAsyncAction;
99 interface IClosable;
100 interface IDeferral;
101 interface IDeferralFactory;
102 interface IGetActivationFactory;
103 interface IMemoryBuffer;
104 interface IMemoryBufferFactory;
105 interface IMemoryBufferReference;
106 interface IPropertyValue;
107 interface IPropertyValueStatics;
108 interface IStringable;
109 interface IUriEscapeStatics;
110 interface IUriRuntimeClass;
111 interface IUriRuntimeClassFactory;
112 interface IUriRuntimeClassWithAbsoluteCanonicalUri;
113 interface IWwwFormUrlDecoderEntry;
114 interface IWwwFormUrlDecoderRuntimeClass;
115 interface IWwwFormUrlDecoderRuntimeClassFactory;
116
117 runtimeclass Deferral;
118 runtimeclass MemoryBuffer;
119 runtimeclass PropertyValue;
120 runtimeclass Uri;
121 runtimeclass WwwFormUrlDecoder;
122 runtimeclass WwwFormUrlDecoderEntry;
123
124 declare {
125 interface Windows.Foundation.Collections.IIterable<HSTRING>;
126 interface Windows.Foundation.Collections.IIterable<IInspectable *>;
127 interface Windows.Foundation.Collections.IIterable<IWwwFormUrlDecoderEntry *>;
128 interface Windows.Foundation.Collections.IIterable<Uri *>;
129 interface Windows.Foundation.Collections.IIterator<HSTRING>;
130 interface Windows.Foundation.Collections.IIterator<IInspectable *>;
131 interface Windows.Foundation.Collections.IIterator<IWwwFormUrlDecoderEntry *>;
132 interface Windows.Foundation.Collections.IIterator<Uri *>;
133 interface Windows.Foundation.Collections.IVectorView<BYTE>;
134 interface Windows.Foundation.Collections.IVectorView<HSTRING>;
135 interface Windows.Foundation.Collections.IVectorView<IInspectable *>;
136 interface Windows.Foundation.Collections.IVectorView<IWwwFormUrlDecoderEntry *>;
137 interface Windows.Foundation.Collections.IVectorView<Windows.Foundation.Uri *>;
138 interface Windows.Foundation.Collections.IVector<HSTRING>;
139 interface Windows.Foundation.Collections.IVector<IInspectable *>;
140 interface Windows.Foundation.Collections.IMapView<HSTRING, Windows.Foundation.Collections.IVectorView<HSTRING> *>;
141 interface Windows.Foundation.EventHandler<IInspectable *>;
142 interface Windows.Foundation.AsyncOperationCompletedHandler<HSTRING>;
143 interface Windows.Foundation.AsyncOperationCompletedHandler<IInspectable *>;
144 interface Windows.Foundation.AsyncOperationCompletedHandler<boolean>;
145 interface Windows.Foundation.AsyncOperationCompletedHandler<HSTRING>;
146 interface Windows.Foundation.AsyncOperationCompletedHandler<UINT32>;
147 interface Windows.Foundation.AsyncOperationCompletedHandler<Windows.Foundation.Uri *>;
148 interface Windows.Foundation.AsyncOperationProgressHandler<UINT32, UINT32>;
149 interface Windows.Foundation.AsyncOperationWithProgressCompletedHandler<UINT32, UINT32>;
150 interface Windows.Foundation.IAsyncOperation<HSTRING>;
151 interface Windows.Foundation.IAsyncOperation<IInspectable *>;
152 interface Windows.Foundation.IAsyncOperation<boolean>;
153 interface Windows.Foundation.IAsyncOperation<UINT32>;
154 interface Windows.Foundation.IAsyncOperation<Windows.Foundation.Uri *>;
155 interface Windows.Foundation.IAsyncOperationWithProgress<UINT32, UINT32>;
156 interface Windows.Foundation.IReference<BYTE>;
157 interface Windows.Foundation.IReference<DOUBLE>;
158 interface Windows.Foundation.IReference<FLOAT>;
159 interface Windows.Foundation.IReference<GUID>;
160 interface Windows.Foundation.IReference<INT16>;
161 interface Windows.Foundation.IReference<INT32>;
162 interface Windows.Foundation.IReference<INT64>;
163 interface Windows.Foundation.IReference<UINT32>;
164 interface Windows.Foundation.IReference<UINT64>;
165 interface Windows.Foundation.IReference<Windows.Foundation.DateTime>;
166 interface Windows.Foundation.IReference<Windows.Foundation.Point>;
167 interface Windows.Foundation.IReference<Windows.Foundation.Rect>;
168 interface Windows.Foundation.IReference<Windows.Foundation.Size>;
169 interface Windows.Foundation.IReference<Windows.Foundation.TimeSpan>;
170 interface Windows.Foundation.IReference<boolean>;
171 interface Windows.Foundation.TypedEventHandler<IInspectable *, IInspectable *>;
172 interface Windows.Foundation.TypedEventHandler<Windows.Foundation.IMemoryBufferReference *, IInspectable *>;
173 }
174
175 [
176 contract(Windows.Foundation.FoundationContract, 1.0),
177 uuid(a4ed5c81-76c9-40bd-8be6-b1d90fb20ae7)
178 ]
179 delegate HRESULT AsyncActionCompletedHandler([in] Windows.Foundation.IAsyncAction *action, [in] AsyncStatus status);
180
181 [
182 contract(Windows.Foundation.FoundationContract, 1.0),
183 uuid(ed32a372-f3c8-4faa-9cfb-470148da3888)
184 ]
185 delegate HRESULT DeferralCompletedHandler();
186
187 [contract(Windows.Foundation.FoundationContract, 1.0)]
188 enum PropertyType
189 {
190 Empty = 0,
191 UInt8 = 1,
192 Int16 = 2,
193 UInt16 = 3,
194 Int32 = 4,
195 UInt32 = 5,
196 Int64 = 6,
197 UInt64 = 7,
198 Single = 8,
199 Double = 9,
200 Char16 = 10,
201 Boolean = 11,
202 String = 12,
203 Inspectable = 13,
204 DateTime = 14,
205 TimeSpan = 15,
206 Guid = 16,
207 Point = 17,
208 Size = 18,
209 Rect = 19,
210 OtherType = 20,
211 UInt8Array = 1025,
212 Int16Array = 1026,
213 UInt16Array = 1027,
214 Int32Array = 1028,
215 UInt32Array = 1029,
216 Int64Array = 1030,
217 UInt64Array = 1031,
218 SingleArray = 1032,
219 DoubleArray = 1033,
220 Char16Array = 1034,
221 BooleanArray = 1035,
222 StringArray = 1036,
223 InspectableArray = 1037,
224 DateTimeArray = 1038,
225 TimeSpanArray = 1039,
226 GuidArray = 1040,
227 PointArray = 1041,
228 SizeArray = 1042,
229 RectArray = 1043,
230 OtherTypeArray = 1044,
231 };
232
233 [contract(Windows.Foundation.FoundationContract, 1.0)]
234 struct Point
235 {
236 FLOAT X;
237 FLOAT Y;
238 };
239
240 [contract(Windows.Foundation.FoundationContract, 1.0)]
241 struct Size
242 {
243 FLOAT Width;
244 FLOAT Height;
245 };
246
247 [contract(Windows.Foundation.FoundationContract, 1.0)]
248 struct Rect
249 {
250 FLOAT X;
251 FLOAT Y;
252 FLOAT Width;
253 FLOAT Height;
254 };
255
256 [contract(Windows.Foundation.FoundationContract, 1.0)]
257 struct DateTime
258 {
259 INT64 UniversalTime;
260 };
261
262 [contract(Windows.Foundation.FoundationContract, 1.0)]
263 struct TimeSpan
264 {
265 INT64 Duration;
266 };
267
268 [
269 contract(Windows.Foundation.FoundationContract, 1.0),
270 uuid(96369f54-8eb6-48f0-abce-c1b211e627c3)
271 ]
272 interface IStringable : IInspectable
273 {
274 HRESULT ToString([out, retval] HSTRING *value);
275 }
276
277 [
278 contract(Windows.Foundation.FoundationContract, 1.0),
279 uuid(30d5a829-7fa4-4026-83bb-d75bae4ea99e)
280 ]
281 interface IClosable : IInspectable
282 {
283 HRESULT Close();
284 }
285
286 [
287 contract(Windows.Foundation.FoundationContract, 1.0),
288 exclusiveto(Windows.Foundation.Deferral),
289 uuid(d6269732-3b7f-46a7-b40b-4fdca2a2c693)
290 ]
291 interface IDeferral : IInspectable
292 requires Windows.Foundation.IClosable
293 {
294 HRESULT Complete();
295 }
296
297 [
298 contract(Windows.Foundation.FoundationContract, 1.0),
299 exclusiveto(Windows.Foundation.Deferral),
300 uuid(65a1ecc5-3fb5-4832-8ca9-f061b281d13a)
301 ]
302 interface IDeferralFactory : IInspectable
303 {
304 HRESULT Create([in] Windows.Foundation.DeferralCompletedHandler *handler, [out, retval] Windows.Foundation.Deferral **result);
305 }
306
307 [
308 contract(Windows.Foundation.UniversalApiContract, 1.0),
309 uuid(4edb8ee2-96dd-49a7-94f7-4607ddab8e3c)
310 ]
311 interface IGetActivationFactory : IInspectable
312 {
313 HRESULT GetActivationFactory([in] HSTRING activatable_class_id, [out, retval] IInspectable **factory);
314 }
315
316 [
317 contract(Windows.Foundation.FoundationContract, 1.0),
318 uuid(5a648006-843a-4da9-865b-9d26e5dfad7b)
319 ]
320 interface IAsyncAction : IInspectable
321 requires IAsyncInfo
322 {
323 [propput] HRESULT Completed([in] Windows.Foundation.AsyncActionCompletedHandler *handler);
324 [propget] HRESULT Completed([out, retval] Windows.Foundation.AsyncActionCompletedHandler **handler);
325 HRESULT GetResults();
326 }
327
328 [
329 contract(Windows.Foundation.UniversalApiContract, 1.0),
330 uuid(fbc4dd2a-245b-11e4-af98-689423260cf8)
331 ]
332 interface IMemoryBuffer : IInspectable
333 requires Windows.Foundation.IClosable
334 {
335 HRESULT CreateReference([out, retval] Windows.Foundation.IMemoryBufferReference **reference);
336 }
337
338 [
339 contract(Windows.Foundation.UniversalApiContract, 1.0),
340 exclusiveto(Windows.Foundation.MemoryBuffer),
341 uuid(fbc4dd2b-245b-11e4-af98-689423260cf8)
342 ]
343 interface IMemoryBufferFactory : IInspectable
344 {
345 HRESULT Create([in, range(0x00000000, 0x7fffffff)] UINT32 capacity,
346 [out, retval] Windows.Foundation.MemoryBuffer **value);
347 }
348
349 [
350 contract(Windows.Foundation.UniversalApiContract, 1.0),
351 uuid(fbc4dd29-245b-11e4-af98-689423260cf8)
352 ]
353 interface IMemoryBufferReference : IInspectable
354 requires Windows.Foundation.IClosable
355 {
356 [propget] HRESULT Capacity([out, retval] UINT32 *value);
357 [eventadd] HRESULT Closed([in] Windows.Foundation.TypedEventHandler<Windows.Foundation.IMemoryBufferReference *, IInspectable *> *handler,
358 [out, retval] EventRegistrationToken *cookie);
359 [eventremove] HRESULT Closed([in] EventRegistrationToken cookie);
360 }
361
362 [
363 contract(Windows.Foundation.FoundationContract, 1.0),
364 uuid(4bd682dd-7554-40e9-9a9b-82654ede7e62)
365 ]
366 interface IPropertyValue : IInspectable
367 {
368 [propget] HRESULT Type([out, retval] Windows.Foundation.PropertyType *value);
369 [propget] HRESULT IsNumericScalar([out, retval] boolean *value);
370 HRESULT GetUInt8([out, retval] BYTE *value);
371 HRESULT GetInt16([out, retval] INT16 *value);
372 HRESULT GetUInt16([out, retval] UINT16 *value);
373 HRESULT GetInt32([out, retval] INT32 *value);
374 HRESULT GetUInt32([out, retval] UINT32 *value);
375 HRESULT GetInt64([out, retval] INT64 *value);
376 HRESULT GetUInt64([out, retval] UINT64 *value);
377 HRESULT GetSingle([out, retval] FLOAT *value);
378 HRESULT GetDouble([out, retval] DOUBLE *value);
379 HRESULT GetChar16([out, retval] WCHAR *value);
380 HRESULT GetBoolean([out, retval] boolean *value);
381 HRESULT GetString([out, retval] HSTRING *value);
382 HRESULT GetGuid([out, retval] GUID *value);
383 HRESULT GetDateTime([out, retval] Windows.Foundation.DateTime *value);
384 HRESULT GetTimeSpan([out, retval] Windows.Foundation.TimeSpan *value);
385 HRESULT GetPoint([out, retval] Windows.Foundation.Point *value);
386 HRESULT GetSize([out, retval] Windows.Foundation.Size *value);
387 HRESULT GetRect([out, retval] Windows.Foundation.Rect *value);
388 HRESULT GetUInt8Array([out] UINT32 *value_size, [out, size_is(, *value_size)] BYTE **value);
389 HRESULT GetInt16Array([out] UINT32 *value_size, [out, size_is(, *value_size)] INT16 **value);
390 HRESULT GetUInt16Array([out] UINT32 *value_size, [out, size_is(, *value_size)] UINT16 **value);
391 HRESULT GetInt32Array([out] UINT32 *value_size, [out, size_is(, *value_size)] INT32 **value);
392 HRESULT GetUInt32Array([out] UINT32 *value_size, [out, size_is(, *value_size)] UINT32 **value);
393 HRESULT GetInt64Array([out] UINT32 *value_size, [out, size_is(, *value_size)] INT64 **value);
394 HRESULT GetUInt64Array([out] UINT32 *value_size, [out, size_is(, *value_size)] UINT64 **value);
395 HRESULT GetSingleArray([out] UINT32 *value_size, [out, size_is(, *value_size)] FLOAT **value);
396 HRESULT GetDoubleArray([out] UINT32 *value_size, [out, size_is(, *value_size)] DOUBLE **value);
397 HRESULT GetChar16Array([out] UINT32 *value_size, [out, size_is(, *value_size)] WCHAR **value);
398 HRESULT GetBooleanArray([out] UINT32 *value_size, [out, size_is(, *value_size)] boolean **value);
399 HRESULT GetStringArray([out] UINT32 *value_size, [out, size_is(, *value_size)] HSTRING **value);
400 HRESULT GetInspectableArray([out] UINT32 *value_size, [out, size_is(, *value_size)] IInspectable ***value);
401 HRESULT GetGuidArray([out] UINT32 *value_size, [out, size_is(, *value_size)] GUID **value);
402 HRESULT GetDateTimeArray([out] UINT32 *value_size, [out, size_is(, *value_size)] Windows.Foundation.DateTime **value);
403 HRESULT GetTimeSpanArray([out] UINT32 *value_size, [out, size_is(, *value_size)] Windows.Foundation.TimeSpan **value);
404 HRESULT GetPointArray([out] UINT32 *value_size, [out, size_is(, *value_size)] Windows.Foundation.Point **value);
405 HRESULT GetSizeArray([out] UINT32 *value_size, [out, size_is(, *value_size)] Windows.Foundation.Size **value);
406 HRESULT GetRectArray([out] UINT32 *value_size, [out, size_is(, *value_size)] Windows.Foundation.Rect **value);
407 }
408
409 [
410 contract(Windows.Foundation.FoundationContract, 1.0),
411 exclusiveto(Windows.Foundation.PropertyValue),
412 uuid(629bdbc8-d932-4ff4-96b9-8d96c5c1e858)
413 ]
414 interface IPropertyValueStatics : IInspectable
415 {
416 HRESULT CreateEmpty([out, retval] IInspectable **property_value);
417 HRESULT CreateUInt8([in] BYTE value, [out, retval] IInspectable **property_value);
418 HRESULT CreateInt16([in] INT16 value, [out, retval] IInspectable **property_value);
419 HRESULT CreateUInt16([in] UINT16 value, [out, retval] IInspectable **property_value);
420 HRESULT CreateInt32([in] INT32 value, [out, retval] IInspectable **property_value);
421 HRESULT CreateUInt32([in] UINT32 value, [out, retval] IInspectable **property_value);
422 HRESULT CreateInt64([in] INT64 value, [out, retval] IInspectable **property_value);
423 HRESULT CreateUInt64([in] UINT64 value, [out, retval] IInspectable **property_value);
424 HRESULT CreateSingle([in] FLOAT value, [out, retval] IInspectable **property_value);
425 HRESULT CreateDouble([in] DOUBLE value, [out, retval] IInspectable **property_value);
426 HRESULT CreateChar16([in] WCHAR value, [out, retval] IInspectable **property_value);
427 HRESULT CreateBoolean([in] boolean value, [out, retval] IInspectable **property_value);
428 HRESULT CreateString([in] HSTRING value, [out, retval] IInspectable **property_value);
429 HRESULT CreateInspectable([in] IInspectable *value, [out, retval] IInspectable **property_value);
430 HRESULT CreateGuid([in] GUID value, [out, retval] IInspectable **property_value);
431 HRESULT CreateDateTime([in] Windows.Foundation.DateTime value, [out, retval] IInspectable **property_value);
432 HRESULT CreateTimeSpan([in] Windows.Foundation.TimeSpan value, [out, retval] IInspectable **property_value);
433 HRESULT CreatePoint([in] Windows.Foundation.Point value, [out, retval] IInspectable **property_value);
434 HRESULT CreateSize([in] Windows.Foundation.Size value, [out, retval] IInspectable **property_value);
435 HRESULT CreateRect([in] Windows.Foundation.Rect value, [out, retval] IInspectable **property_value);
436 HRESULT CreateUInt8Array([in] UINT32 value_size, [in, size_is(value_size)] BYTE *value, [out, retval] IInspectable **property_value);
437 HRESULT CreateInt16Array([in] UINT32 value_size, [in, size_is(value_size)] INT16 *value, [out, retval] IInspectable **property_value);
438 HRESULT CreateUInt16Array([in] UINT32 value_size, [in, size_is(value_size)] UINT16 *value, [out, retval] IInspectable **property_value);
439 HRESULT CreateInt32Array([in] UINT32 value_size, [in, size_is(value_size)] INT32 *value, [out, retval] IInspectable **property_value);
440 HRESULT CreateUInt32Array([in] UINT32 value_size, [in, size_is(value_size)] UINT32 *value, [out, retval] IInspectable **property_value);
441 HRESULT CreateInt64Array([in] UINT32 value_size, [in, size_is(value_size)] INT64 *value, [out, retval] IInspectable **property_value);
442 HRESULT CreateUInt64Array([in] UINT32 value_size, [in, size_is(value_size)] UINT64 *value, [out, retval] IInspectable **property_value);
443 HRESULT CreateSingleArray([in] UINT32 value_size, [in, size_is(value_size)] FLOAT *value, [out, retval] IInspectable **property_value);
444 HRESULT CreateDoubleArray([in] UINT32 value_size, [in, size_is(value_size)] DOUBLE *value, [out, retval] IInspectable **property_value);
445 HRESULT CreateChar16Array([in] UINT32 value_size, [in, size_is(value_size)] WCHAR *value, [out, retval] IInspectable **property_value);
446 HRESULT CreateBooleanArray([in] UINT32 value_size, [in, size_is(value_size)] boolean *value, [out, retval] IInspectable **property_value);
447 HRESULT CreateStringArray([in] UINT32 value_size, [in, size_is(value_size)] HSTRING *value, [out, retval] IInspectable **property_value);
448 HRESULT CreateInspectableArray([in] UINT32 value_size, [in, size_is(value_size)] IInspectable **value, [out, retval] IInspectable **property_value);
449 HRESULT CreateGuidArray([in] UINT32 value_size, [in, size_is(value_size)] GUID *value, [out, retval] IInspectable **property_value);
450 HRESULT CreateDateTimeArray([in] UINT32 value_size, [in, size_is(value_size)] Windows.Foundation.DateTime *value, [out, retval] IInspectable **property_value);
451 HRESULT CreateTimeSpanArray([in] UINT32 value_size, [in, size_is(value_size)] Windows.Foundation.TimeSpan *value, [out, retval] IInspectable **property_value);
452 HRESULT CreatePointArray([in] UINT32 value_size, [in, size_is(value_size)] Windows.Foundation.Point *value, [out, retval] IInspectable **property_value);
453 HRESULT CreateSizeArray([in] UINT32 value_size, [in, size_is(value_size)] Windows.Foundation.Size *value, [out, retval] IInspectable **property_value);
454 HRESULT CreateRectArray([in] UINT32 value_size, [in, size_is(value_size)] Windows.Foundation.Rect *value, [out, retval] IInspectable **property_value);
455 }
456
457 [
458 contract(Windows.Foundation.UniversalApiContract, 1.0),
459 exclusiveto(Windows.Foundation.Uri),
460 uuid(c1d432ba-c824-4452-a7fd-512bc3bbe9a1)
461 ]
462 interface IUriEscapeStatics : IInspectable
463 {
464 HRESULT UnescapeComponent([in] HSTRING to_unescape, [out, retval] HSTRING *value);
465 HRESULT EscapeComponent([in] HSTRING to_escape, [out, retval] HSTRING *value);
466 }
467
468 [
469 contract(Windows.Foundation.UniversalApiContract, 1.0),
470 exclusiveto(Windows.Foundation.Uri),
471 uuid(9e365e57-48b2-4160-956f-c7385120bbfc)
472 ]
473 interface IUriRuntimeClass : IInspectable
474 {
475 [propget] HRESULT AbsoluteUri([out, retval] HSTRING *value);
476 [propget] HRESULT DisplayUri([out, retval] HSTRING *value);
477 [propget] HRESULT Domain([out, retval] HSTRING *value);
478 [propget] HRESULT Extension([out, retval] HSTRING *value);
479 [propget] HRESULT Fragment([out, retval] HSTRING *value);
480 [propget] HRESULT Host([out, retval] HSTRING *value);
481 [propget] HRESULT Password([out, retval] HSTRING *value);
482 [propget] HRESULT Path([out, retval] HSTRING *value);
483 [propget] HRESULT Query([out, retval] HSTRING *value);
484 [propget] HRESULT QueryParsed([out, retval] Windows.Foundation.WwwFormUrlDecoder **decoder);
485 [propget] HRESULT RawUri([out, retval] HSTRING *value);
486 [propget] HRESULT SchemeName([out, retval] HSTRING *value);
487 [propget] HRESULT UserName([out, retval] HSTRING *value);
488 [propget] HRESULT Port([out, retval] INT32 *value);
489 [propget] HRESULT Suspicious([out, retval] boolean *value);
490 HRESULT Equals([in] Windows.Foundation.Uri *uri, [out, retval] boolean *value);
491 HRESULT CombineUri([in] HSTRING relative_uri, [out, retval] Windows.Foundation.Uri **instance);
492 }
493
494 [
495 contract(Windows.Foundation.UniversalApiContract, 1.0),
496 exclusiveto(Windows.Foundation.Uri),
497 uuid(44a9796f-723e-4fdf-a218-033e75b0c084)
498 ]
499 interface IUriRuntimeClassFactory : IInspectable
500 {
501 HRESULT CreateUri([in] HSTRING uri, [out, retval] Windows.Foundation.Uri **instance);
502 HRESULT CreateWithRelativeUri([in] HSTRING base_uri, [in] HSTRING relative_uri, [out, retval] Windows.Foundation.Uri **instance);
503 }
504
505 [
506 contract(Windows.Foundation.UniversalApiContract, 1.0),
507 exclusiveto(Windows.Foundation.Uri),
508 uuid(758d9661-221c-480f-a339-50656673f46f)
509 ]
510 interface IUriRuntimeClassWithAbsoluteCanonicalUri : IInspectable
511 {
512 [propget] HRESULT AbsoluteCanonicalUri([out, retval] HSTRING *value);
513 [propget] HRESULT DisplayIri([out, retval] HSTRING *value);
514 }
515
516 [
517 contract(Windows.Foundation.UniversalApiContract, 1.0),
518 uuid(125e7431-f678-4e8e-b670-20a9b06c512d)
519 ]
520 interface IWwwFormUrlDecoderEntry : IInspectable
521 {
522 [propget] HRESULT Name([out, retval] HSTRING *value);
523 [propget] HRESULT Value([out, retval] HSTRING *value);
524 }
525
526 [
527 contract(Windows.Foundation.UniversalApiContract, 1.0),
528 exclusiveto(Windows.Foundation.WwwFormUrlDecoder),
529 uuid(d45a0451-f225-4542-9296-0e1df5d254df)
530 ]
531 interface IWwwFormUrlDecoderRuntimeClass : IInspectable
532 requires Windows.Foundation.Collections.IIterable<Windows.Foundation.IWwwFormUrlDecoderEntry *>,
533 Windows.Foundation.Collections.IVectorView<Windows.Foundation.IWwwFormUrlDecoderEntry *>
534 {
535 HRESULT GetFirstValueByName([in] HSTRING name, [out, retval] HSTRING *value);
536 }
537
538 [
539 contract(Windows.Foundation.UniversalApiContract, 1.0),
540 exclusiveto(Windows.Foundation.WwwFormUrlDecoder),
541 uuid(5b8c6b3d-24ae-41b5-a1bf-f0c3d544845b)
542 ]
543 interface IWwwFormUrlDecoderRuntimeClassFactory : IInspectable
544 {
545 HRESULT CreateWwwFormUrlDecoder([in] HSTRING query, [out, retval] Windows.Foundation.WwwFormUrlDecoder **instance);
546 }
547
548 [
549 activatable(Windows.Foundation.IDeferralFactory, Windows.Foundation.FoundationContract, 1.0),
550 contract(Windows.Foundation.FoundationContract, 1.0),
551 marshaling_behavior(agile)
552 ]
553 runtimeclass Deferral
554 {
555 [default] interface Windows.Foundation.IDeferral;
556 interface Windows.Foundation.IClosable;
557 }
558
559 [
560 activatable(Windows.Foundation.IMemoryBufferFactory, Windows.Foundation.UniversalApiContract, 1.0),
561 contract(Windows.Foundation.UniversalApiContract, 1.0),
562 marshaling_behavior(agile),
563 threading(both)
564 ]
565 runtimeclass MemoryBuffer
566 {
567 [default] interface Windows.Foundation.IMemoryBuffer;
568 interface Windows.Foundation.IClosable;
569 }
570
571 [
572 contract(Windows.Foundation.FoundationContract, 1.0),
573 marshaling_behavior(agile),
574 static(Windows.Foundation.IPropertyValueStatics, Windows.Foundation.FoundationContract, 1.0),
575 threading(both)
576 ]
577 runtimeclass PropertyValue
578 {
579 }
580
581 [
582 activatable(Windows.Foundation.IUriRuntimeClassFactory, Windows.Foundation.UniversalApiContract, 1.0),
583 contract(Windows.Foundation.UniversalApiContract, 1.0),
584 marshaling_behavior(agile),
585 static(Windows.Foundation.IUriEscapeStatics, Windows.Foundation.UniversalApiContract, 1.0),
586 threading(both)
587 ]
588 runtimeclass Uri
589 {
590 [default] interface Windows.Foundation.IUriRuntimeClass;
591 interface Windows.Foundation.IUriRuntimeClassWithAbsoluteCanonicalUri;
592 [contract(Windows.Foundation.UniversalApiContract, 1.0)] interface Windows.Foundation.IStringable;
593 }
594
595 [
596 activatable(Windows.Foundation.IWwwFormUrlDecoderRuntimeClassFactory, Windows.Foundation.UniversalApiContract, 1.0),
597 contract(Windows.Foundation.UniversalApiContract, 1.0),
598 marshaling_behavior(agile),
599 threading(both)
600 ]
601 runtimeclass WwwFormUrlDecoder
602 {
603 [default] interface Windows.Foundation.IWwwFormUrlDecoderRuntimeClass;
604 interface Windows.Foundation.Collections.IVectorView<Windows.Foundation.IWwwFormUrlDecoderEntry *>;
605 interface Windows.Foundation.Collections.IIterable<Windows.Foundation.IWwwFormUrlDecoderEntry *>;
606 }
607
608 [
609 contract(Windows.Foundation.UniversalApiContract, 1.0),
610 marshaling_behavior(agile),
611 threading(both)
612 ]
613 runtimeclass WwwFormUrlDecoderEntry
614 {
615 [default] interface Windows.Foundation.IWwwFormUrlDecoderEntry;
616 }
617 }