kernel32: Remove the old locale information stored in resources.
[wine.git] / include / windows.foundation.idl
blob87aaac0f16029cbef2241d17a8f75eb19c3b6c0f
1 /*
2 * Copyright 2015 Jacek Caban for CodeWeavers
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 #ifdef __WIDL__
20 #pragma winrt ns_prefix
21 #endif
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";
30 namespace Windows {
31 namespace Foundation {
32 interface IAsyncAction;
36 namespace Windows {
37 namespace Foundation {
38 typedef enum PropertyType PropertyType;
39 typedef struct Point Point;
40 typedef struct Size Size;
41 typedef struct Rect Rect;
42 typedef struct DateTime DateTime;
43 typedef struct TimeSpan TimeSpan;
46 contract(Windows.Foundation.FoundationContract, 1.0),
47 uuid(a4ed5c81-76c9-40bd-8be6-b1d90fb20ae7)
49 delegate HRESULT AsyncActionCompletedHandler([in] Windows.Foundation.IAsyncAction *action, [in] AsyncStatus status);
51 [contract(Windows.Foundation.FoundationContract, 1.0)]
52 enum PropertyType {
53 Empty = 0,
54 UInt8 = 1,
55 Int16 = 2,
56 UInt16 = 3,
57 Int32 = 4,
58 UInt32 = 5,
59 Int64 = 6,
60 UInt64 = 7,
61 Single = 8,
62 Double = 9,
63 Char16 = 10,
64 Boolean = 11,
65 String = 12,
66 Inspectable = 13,
67 DateTime = 14,
68 TimeSpan = 15,
69 Guid = 16,
70 Point = 17,
71 Size = 18,
72 Rect = 19,
73 OtherType = 20,
74 UInt8Array = 1025,
75 Int16Array = 1026,
76 UInt16Array = 1027,
77 Int32Array = 1028,
78 UInt32Array = 1029,
79 Int64Array = 1030,
80 UInt64Array = 1031,
81 SingleArray = 1032,
82 DoubleArray = 1033,
83 Char16Array = 1034,
84 BooleanArray = 1035,
85 StringArray = 1036,
86 InspectableArray = 1037,
87 DateTimeArray = 1038,
88 TimeSpanArray = 1039,
89 GuidArray = 1040,
90 PointArray = 1041,
91 SizeArray = 1042,
92 RectArray = 1043,
93 OtherTypeArray = 1044
96 [contract(Windows.Foundation.FoundationContract, 1.0)]
97 struct Point {
98 FLOAT X;
99 FLOAT Y;
102 [contract(Windows.Foundation.FoundationContract, 1.0)]
103 struct Size {
104 FLOAT Width;
105 FLOAT Height;
108 [contract(Windows.Foundation.FoundationContract, 1.0)]
109 struct Rect {
110 FLOAT X;
111 FLOAT Y;
112 FLOAT Width;
113 FLOAT Height;
116 [contract(Windows.Foundation.FoundationContract, 1.0)]
117 struct DateTime {
118 INT64 UniversalTime;
121 [contract(Windows.Foundation.FoundationContract, 1.0)]
122 struct TimeSpan {
123 INT64 Duration;
127 contract(Windows.Foundation.FoundationContract, 1.0),
128 uuid(96369f54-8eb6-48f0-abce-c1b211e627c3)
130 interface IStringable : IInspectable
132 HRESULT ToString([out, retval] HSTRING *value);
136 contract(Windows.Foundation.FoundationContract, 1.0),
137 uuid(30d5a829-7fa4-4026-83bb-d75bae4ea99e)
139 interface IClosable : IInspectable
141 HRESULT Close();
145 contract(Windows.Foundation.FoundationContract, 1.0),
146 uuid(5a648006-843a-4da9-865b-9d26e5dfad7b)
148 interface IAsyncAction : IInspectable
149 requires IAsyncInfo
151 [propput] HRESULT Completed([in] Windows.Foundation.AsyncActionCompletedHandler *handler);
152 [propget] HRESULT Completed([out, retval] Windows.Foundation.AsyncActionCompletedHandler **handler);
153 HRESULT GetResults();
158 namespace Windows {
159 namespace Foundation {
160 declare {
161 interface Windows.Foundation.Collections.IIterable<HSTRING>;
162 interface Windows.Foundation.Collections.IIterable<IInspectable *>;
163 interface Windows.Foundation.Collections.IIterator<HSTRING>;
164 interface Windows.Foundation.Collections.IIterator<IInspectable *>;
165 interface Windows.Foundation.Collections.IVectorView<HSTRING>;
166 interface Windows.Foundation.Collections.IVectorView<IInspectable *>;
167 interface Windows.Foundation.Collections.IVector<HSTRING>;
168 interface Windows.Foundation.Collections.IVector<IInspectable *>;
169 interface Windows.Foundation.Collections.IMapView<HSTRING, Windows.Foundation.Collections.IVectorView<HSTRING>*>;
170 interface Windows.Foundation.EventHandler<IInspectable *>;
171 interface Windows.Foundation.AsyncOperationCompletedHandler<boolean>;
172 interface Windows.Foundation.IAsyncOperation<boolean>;
173 interface Windows.Foundation.IReference<INT32>;
174 interface Windows.Foundation.TypedEventHandler<IInspectable *, IInspectable *>;