Debian Codegraph @

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

raw
1 /*
2 * Copyright 2023 Hans Leidekker 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 makedep header install winmd
21 #pragma winrt ns_prefix
22 #endif
23
24 import "windows.foundation.idl";
25 import "windows.storage.idl";
26 import "windows.system.idl";
27 import "windows.applicationmodel.activation.idl";
28 import "windows.applicationmodel.core.idl";
29
30 namespace Windows.ApplicationModel.Core {
31 runtimeclass AppListEntry;
32 }
33
34 namespace Windows.ApplicationModel {
35 typedef enum AppExecutionContext AppExecutionContext;
36 typedef struct PackageVersion PackageVersion;
37
38 interface IAppDisplayInfo;
39 interface IAppInfo;
40 interface IAppInfo2;
41 interface IAppInfo3;
42 interface IAppInfo4;
43 interface IAppInfoStatics;
44 interface IDesignModeStatics;
45 interface IDesignModeStatics2;
46 interface IEnteredBackgroundEventArgs;
47 interface ILeavingBackgroundEventArgs;
48 interface IPackage;
49 interface IPackage2;
50 interface IPackage3;
51 interface IPackageStatus;
52 interface IPackageId;
53 interface IPackageIdWithMetadata;
54 interface IPackageStatics;
55 interface ISuspendingDeferral;
56 interface ISuspendingEventArgs;
57 interface ISuspendingOperation;
58
59 runtimeclass AppDisplayInfo;
60 runtimeclass AppInfo;
61 runtimeclass DesignMode;
62 runtimeclass EnteredBackgroundEventArgs;
63 runtimeclass LeavingBackgroundEventArgs;
64 runtimeclass Package;
65 runtimeclass PackageId;
66 runtimeclass PackageStatus;
67 runtimeclass SuspendingDeferral;
68 runtimeclass SuspendingEventArgs;
69 runtimeclass SuspendingOperation;
70
71 declare {
72 interface Windows.Foundation.Collections.IIterable<Windows.ApplicationModel.AppInfo *>;
73 interface Windows.Foundation.Collections.IIterable<Windows.ApplicationModel.Package *>;
74 interface Windows.Foundation.Collections.IIterator<Windows.ApplicationModel.AppInfo *>;
75 interface Windows.Foundation.Collections.IIterator<Windows.ApplicationModel.Package *>;
76 interface Windows.Foundation.Collections.IVectorView<Windows.ApplicationModel.AppInfo *>;
77 interface Windows.Foundation.Collections.IVectorView<Windows.ApplicationModel.Package *>;
78 interface Windows.Foundation.Collections.IVectorView<Windows.ApplicationModel.Core.AppListEntry *>;
79 interface Windows.Foundation.EventHandler<Windows.ApplicationModel.EnteredBackgroundEventArgs *>;
80 interface Windows.Foundation.EventHandler<Windows.ApplicationModel.LeavingBackgroundEventArgs *>;
81 interface Windows.Foundation.EventHandler<Windows.ApplicationModel.SuspendingEventArgs *>;
82 interface Windows.Foundation.IAsyncOperation<Windows.Foundation.Collections.IVectorView<Windows.ApplicationModel.AppInfo *> *>;
83 interface Windows.Foundation.IAsyncOperation<Windows.Foundation.Collections.IVectorView<Windows.ApplicationModel.Core.AppListEntry *> *>;
84 interface Windows.Foundation.AsyncOperationCompletedHandler<Windows.Foundation.Collections.IVectorView<Windows.ApplicationModel.AppInfo *> *>;
85 interface Windows.Foundation.AsyncOperationCompletedHandler<Windows.Foundation.Collections.IVectorView<Windows.ApplicationModel.Core.AppListEntry *> *>;
86 }
87
88 [
89 contract(Windows.Foundation.UniversalApiContract, 11.0)
90 ]
91 enum AppExecutionContext
92 {
93 Unknown = 0,
94 Host = 1,
95 Guest = 2,
96 };
97
98 [
99 contract(Windows.Foundation.UniversalApiContract, 1.0)
100 ]
101 struct PackageVersion
102 {
103 UINT16 Major;
104 UINT16 Minor;
105 UINT16 Build;
106 UINT16 Revision;
107 };
108
109 [
110 contract(Windows.Foundation.UniversalApiContract, 1.0),
111 exclusiveto(Windows.ApplicationModel.AppDisplayInfo),
112 uuid(1aeb1103-e4d4-41aa-a4f6-c4a276e79eac)
113 ]
114 interface IAppDisplayInfo : IInspectable
115 {
116 [propget] HRESULT DisplayName([out, retval] HSTRING *value);
117 [propget] HRESULT Description([out, retval] HSTRING *value);
118 HRESULT GetLogo([in] Windows.Foundation.Size size, [out, retval] Windows.Storage.Streams.RandomAccessStreamReference **value);
119 }
120
121 [
122 contract(Windows.Foundation.UniversalApiContract, 1.0),
123 exclusiveto(Windows.ApplicationModel.AppInfo),
124 uuid(cf7f59b3-6a09-4de8-a6c0-5792d56880d1)
125 ]
126 interface IAppInfo : IInspectable
127 {
128 [propget] HRESULT Id([out, retval] HSTRING *value);
129 [propget] HRESULT AppUserModelId([out, retval] HSTRING *value);
130 [propget] HRESULT DisplayInfo([out, retval] Windows.ApplicationModel.AppDisplayInfo **value);
131 [propget] HRESULT PackageFamilyName([out, retval] HSTRING *value);
132 }
133
134 [
135 contract(Windows.Foundation.UniversalApiContract, 10.0),
136 exclusiveto(Windows.ApplicationModel.AppInfo),
137 uuid(be4b1f5a-2098-431b-bd25-b30878748d47)
138 ]
139 interface IAppInfo2 : IInspectable
140 {
141 [propget] HRESULT Package([out, retval] Windows.ApplicationModel.Package **value);
142 }
143
144 [
145 contract(Windows.Foundation.UniversalApiContract, 11.0),
146 exclusiveto(Windows.ApplicationModel.AppInfo),
147 uuid(09a78e46-93a4-46de-9397-0843b57115ea)
148 ]
149 interface IAppInfo3 : IInspectable
150 {
151 [propget] HRESULT ExecutionContext([out, retval] Windows.ApplicationModel.AppExecutionContext *value);
152 }
153
154 [
155 contract(Windows.Foundation.UniversalApiContract, 11.0),
156 exclusiveto(Windows.ApplicationModel.AppInfo),
157 uuid(2f34bdeb-1609-4554-9f33-12e1e803e0d4)
158 ]
159 interface IAppInfo4 : IInspectable
160 {
161 [propget] HRESULT SupportedFileExtensions([out] UINT32 *value_size, [out, retval] [size_is(, *value_size)] HSTRING **value);
162 }
163
164 [
165 contract(Windows.Foundation.UniversalApiContract, 10.0),
166 exclusiveto(Windows.ApplicationModel.AppInfo),
167 uuid(cf1f782a-e48b-4f0c-9b0b-79c3f8957dd7)
168 ]
169 interface IAppInfoStatics : IInspectable
170 {
171 [propget] HRESULT Current([out, retval] Windows.ApplicationModel.AppInfo **value);
172 HRESULT GetFromAppUserModelId([in] HSTRING app_user_model_id, [out, retval] Windows.ApplicationModel.AppInfo **result);
173 HRESULT GetFromAppUserModelIdForUser([in] Windows.System.User *user, [in] HSTRING app_user_model_id, [out, retval] Windows.ApplicationModel.AppInfo **result);
174 }
175
176 [
177 contract(Windows.Foundation.UniversalApiContract, 1.0),
178 exclusiveto(Windows.ApplicationModel.DesignMode),
179 uuid(2c3893cc-f81a-4e7a-b857-76a80887e185)
180 ]
181 interface IDesignModeStatics : IInspectable
182 {
183 [propget] HRESULT DesignModeEnabled([out, retval] boolean *value);
184 }
185
186 [
187 contract(Windows.Foundation.UniversalApiContract, 5.0),
188 exclusiveto(Windows.ApplicationModel.DesignMode),
189 uuid(80cf8137-b064-4858-bec8-3eba22357535)
190 ]
191 interface IDesignModeStatics2 : IInspectable
192 {
193 [propget] HRESULT DesignMode2Enabled([out, retval] boolean *value);
194 }
195
196 [
197 contract(Windows.Foundation.UniversalApiContract, 3.0),
198 uuid(f722dcc2-9827-403d-aaed-ecca9ac17398)
199 ]
200 interface IEnteredBackgroundEventArgs : IInspectable
201 {
202 HRESULT GetDeferral([out] [retval] Windows.Foundation.Deferral **value);
203 }
204
205 [
206 contract(Windows.Foundation.UniversalApiContract, 3.0),
207 uuid(39c6ec9a-ae6e-46f9-a07a-cfc23f88733e)
208 ]
209 interface ILeavingBackgroundEventArgs : IInspectable
210 {
211 HRESULT GetDeferral([out] [retval] Windows.Foundation.Deferral **value);
212 }
213
214 [
215 contract(Windows.Foundation.UniversalApiContract, 1.0),
216 exclusiveto(Windows.ApplicationModel.Package),
217 uuid(163c792f-bd75-413c-bf23-b1fe7b95d825)
218 ]
219 interface IPackage : IInspectable
220 {
221 [propget] HRESULT Id([out, retval] Windows.ApplicationModel.PackageId **value);
222 [propget] HRESULT InstalledLocation([out, retval] Windows.Storage.StorageFolder **value);
223 [propget] HRESULT IsFramework([out, retval] boolean *value);
224 [propget] HRESULT Dependencies([out, retval] Windows.Foundation.Collections.IVectorView<Windows.ApplicationModel.Package *> **value);
225 }
226
227 [
228 contract(Windows.Foundation.UniversalApiContract, 1.0),
229 exclusiveto(Windows.ApplicationModel.Package),
230 uuid(a6612fb6-7688-4ace-95fb-359538e7aa01)
231 ]
232 interface IPackage2 : IInspectable
233 {
234 [propget] HRESULT DisplayName([out, retval] HSTRING *value);
235 [propget] HRESULT PublisherDisplayName([out, retval] HSTRING *value);
236 [propget] HRESULT Description([out, retval] HSTRING *value);
237 [propget] HRESULT Logo([out, retval] Windows.Foundation.Uri **value);
238 [propget] HRESULT IsResourcePackage([out, retval] boolean *value);
239 [propget] HRESULT IsBundle([out, retval] boolean *value);
240 [propget] HRESULT IsDevelopmentMode([out, retval] boolean *value);
241 }
242
243 [
244 contract(Windows.Foundation.UniversalApiContract, 1.0),
245 exclusiveto(Windows.ApplicationModel.Package),
246 uuid(5f738b61-f86a-4917-93d1-f1ee9d3b35d9),
247 version(0x0a000000)
248 ]
249 interface IPackage3 : IInspectable
250 {
251 [propget] HRESULT Status([out, retval] Windows.ApplicationModel.PackageStatus **value);
252 [propget] HRESULT InstalledDate([out, retval] Windows.Foundation.DateTime *value);
253 HRESULT GetAppListEntriesAsync([out, retval] Windows.Foundation.IAsyncOperation<Windows.Foundation.Collections.IVectorView<Windows.ApplicationModel.Core.AppListEntry *> *> **operation);
254 }
255
256 [
257 contract(Windows.Foundation.UniversalApiContract, 1.0),
258 exclusiveto(Windows.ApplicationModel.PackageStatus),
259 uuid(5fe74f71-a365-4c09-a02d-046d525ea1da)
260 ]
261 interface IPackageStatus : IInspectable
262 {
263 HRESULT VerifyIsOK([out, retval] boolean *value);
264 [propget] HRESULT NotAvailable([out, retval] boolean *value);
265 [propget] HRESULT PackageOffline([out, retval] boolean *value);
266 [propget] HRESULT DataOffline([out, retval] boolean *value);
267 [propget] HRESULT Disabled([out, retval] boolean *value);
268 [propget] HRESULT NeedsRemediation([out, retval] boolean *value);
269 [propget] HRESULT LicenseIssue([out, retval] boolean *value);
270 [propget] HRESULT Modified([out, retval] boolean *value);
271 [propget] HRESULT Tampered([out, retval] boolean *value);
272 [propget] HRESULT DependencyIssue([out, retval] boolean *value);
273 [propget] HRESULT Servicing([out, retval] boolean *value);
274 [propget] HRESULT DeploymentInProgress([out, retval] boolean *value);
275 }
276
277 [
278 contract(Windows.Foundation.UniversalApiContract, 1.0),
279 exclusiveto(Windows.ApplicationModel.PackageId),
280 uuid(1adb665e-37c7-4790-9980-dd7ae74e8bb2)
281 ]
282 interface IPackageId : IInspectable
283 {
284 [propget] HRESULT Name([out, retval] HSTRING *value);
285 [propget] HRESULT Version([out, retval] Windows.ApplicationModel.PackageVersion *value);
286 [propget] HRESULT Architecture([out, retval] Windows.System.ProcessorArchitecture *value);
287 [propget] HRESULT ResourceId([out, retval] HSTRING *value);
288 [propget] HRESULT Publisher([out, retval] HSTRING *value);
289 [propget] HRESULT PublisherId([out, retval] HSTRING *value);
290 [propget] HRESULT FullName([out, retval] HSTRING *value);
291 [propget] HRESULT FamilyName([out, retval] HSTRING *value);
292 }
293
294 [
295 contract(Windows.Foundation.UniversalApiContract, 1.0),
296 exclusiveto(Windows.ApplicationModel.PackageId),
297 uuid(40577a7c-0c9e-443d-9074-855f5ce0a08d)
298 ]
299 interface IPackageIdWithMetadata : IInspectable
300 {
301 [propget] HRESULT ProductId([out, retval] HSTRING *value);
302 [propget] HRESULT Author([out, retval] HSTRING *value);
303 }
304
305 [
306 contract(Windows.Foundation.UniversalApiContract, 1.0),
307 exclusiveto(Windows.ApplicationModel.Package),
308 uuid(4e534bdf-2960-4878-97a4-9624deb72f2d)
309 ]
310 interface IPackageStatics : IInspectable
311 {
312 [propget] HRESULT Current([out, retval] Windows.ApplicationModel.Package **value);
313 }
314
315 [
316 contract(Windows.Foundation.UniversalApiContract, 1.0),
317 uuid(59140509-8bc9-4eb4-b636-dabdc4f46f66)
318 ]
319 interface ISuspendingDeferral : IInspectable
320 {
321 HRESULT Complete();
322 }
323
324 [
325 contract(Windows.Foundation.UniversalApiContract, 1.0),
326 uuid(96061c05-2dba-4d08-b0bd-2b30a131c6aa)
327 ]
328 interface ISuspendingEventArgs : IInspectable
329 {
330 [propget] HRESULT SuspendingOperation([out, retval] Windows.ApplicationModel.SuspendingOperation **value);
331 }
332
333 [
334 contract(Windows.Foundation.UniversalApiContract, 1.0),
335 uuid(9da4ca41-20e1-4e9b-9f65-a9f435340c3a)
336 ]
337 interface ISuspendingOperation : IInspectable
338 {
339 HRESULT GetDeferral([out, retval] Windows.ApplicationModel.SuspendingDeferral **deferral);
340 [propget] HRESULT Deadline([out, retval] Windows.Foundation.DateTime *value);
341 }
342
343 [
344 contract(Windows.Foundation.UniversalApiContract, 1.0),
345 marshaling_behavior(agile),
346 threading(both)
347 ]
348 runtimeclass AppDisplayInfo
349 {
350 [default] interface Windows.ApplicationModel.IAppDisplayInfo;
351 }
352
353 [
354 contract(Windows.Foundation.UniversalApiContract, 1.0),
355 marshaling_behavior(agile),
356 static(Windows.ApplicationModel.IAppInfoStatics, Windows.Foundation.UniversalApiContract, 10.0),
357 threading(both)
358 ]
359 runtimeclass AppInfo
360 {
361 [default] interface Windows.ApplicationModel.IAppInfo;
362 [contract(Windows.Foundation.UniversalApiContract, 10.0)] interface Windows.ApplicationModel.IAppInfo2;
363 [contract(Windows.Foundation.UniversalApiContract, 11.0)] interface Windows.ApplicationModel.IAppInfo3;
364 [contract(Windows.Foundation.UniversalApiContract, 11.0)] interface Windows.ApplicationModel.IAppInfo4;
365 }
366
367 [
368 contract(Windows.Foundation.UniversalApiContract, 1.0),
369 marshaling_behavior(agile),
370 static(Windows.ApplicationModel.IDesignModeStatics, Windows.Foundation.UniversalApiContract, 1.0),
371 static(Windows.ApplicationModel.IDesignModeStatics2, Windows.Foundation.UniversalApiContract, 5.0),
372 threading(both)
373 ]
374 runtimeclass DesignMode
375 {
376 }
377
378 [
379 contract(Windows.Foundation.UniversalApiContract, 3.0),
380 marshaling_behavior(agile)
381 ]
382 runtimeclass EnteredBackgroundEventArgs
383 {
384 [default] interface Windows.ApplicationModel.IEnteredBackgroundEventArgs;
385 }
386
387 [
388 contract(Windows.Foundation.UniversalApiContract, 3.0),
389 marshaling_behavior(agile)
390 ]
391 runtimeclass LeavingBackgroundEventArgs
392 {
393 [default] interface Windows.ApplicationModel.ILeavingBackgroundEventArgs;
394 }
395
396 [
397 contract(Windows.Foundation.UniversalApiContract, 1.0),
398 marshaling_behavior(agile),
399 static(Windows.ApplicationModel.IPackageStatics, Windows.Foundation.UniversalApiContract, 1.0),
400 threading(both)
401 ]
402 runtimeclass Package
403 {
404 [default] interface Windows.ApplicationModel.IPackage;
405 [contract(Windows.Foundation.UniversalApiContract, 1.0)] interface Windows.ApplicationModel.IPackage2;
406 [contract(Windows.Foundation.UniversalApiContract, 1.0)] interface Windows.ApplicationModel.IPackage3;
407 /* [contract(Windows.Foundation.UniversalApiContract, 1.0)] interface Windows.ApplicationModel.IPackageWithMetadata; */
408 /* [contract(Windows.Foundation.UniversalApiContract, 3.0)] interface Windows.ApplicationModel.IPackage4; */
409 /* [contract(Windows.Foundation.UniversalApiContract, 4.0)] interface Windows.ApplicationModel.IPackage5; */
410 /* [contract(Windows.Foundation.UniversalApiContract, 7.0)] interface Windows.ApplicationModel.IPackage6; */
411 /* [contract(Windows.Foundation.UniversalApiContract, 8.0)] interface Windows.ApplicationModel.IPackage7; */
412 /* [contract(Windows.Foundation.UniversalApiContract, 10.0)] interface Windows.ApplicationModel.IPackage8; */
413 }
414
415 [
416 contract(Windows.Foundation.UniversalApiContract, 1.0),
417 marshaling_behavior(agile)
418 ]
419 runtimeclass PackageStatus
420 {
421 [default] interface Windows.ApplicationModel.IPackageStatus;
422 /* [contract(Windows.Foundation.UniversalApiContract, 4.0)] interface Windows.ApplicationModel.IPackageStatus2; */
423 }
424
425 [
426 contract(Windows.Foundation.UniversalApiContract, 1.0),
427 marshaling_behavior(agile)
428 ]
429 runtimeclass PackageId
430 {
431 [default] interface Windows.ApplicationModel.IPackageId;
432 [contract(Windows.Foundation.UniversalApiContract, 1.0)] interface Windows.ApplicationModel.IPackageIdWithMetadata;
433 }
434
435 [
436 contract(Windows.Foundation.UniversalApiContract, 1.0),
437 marshaling_behavior(agile)
438 ]
439 runtimeclass SuspendingDeferral
440 {
441 [default] interface Windows.ApplicationModel.ISuspendingDeferral;
442 }
443
444 [
445 contract(Windows.Foundation.UniversalApiContract, 1.0),
446 marshaling_behavior(agile)
447 ]
448 runtimeclass SuspendingEventArgs
449 {
450 [default] interface Windows.ApplicationModel.ISuspendingEventArgs;
451 }
452
453 [
454 contract(Windows.Foundation.UniversalApiContract, 1.0),
455 marshaling_behavior(agile)
456 ]
457 runtimeclass SuspendingOperation
458 {
459 [default] interface Windows.ApplicationModel.ISuspendingOperation;
460 }
461 }