Debian Codegraph @

mingw-w64-headers/include/windows.system.profile.idl

raw
1 /*
2 * Copyright 2023 Rémi Bernon 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 "eventtoken.idl";
26 import "windowscontracts.idl";
27 import "windows.foundation.idl";
28 import "windows.storage.streams.idl";
29 import "windows.system.idl";
30
31 namespace Windows.System.Profile {
32 typedef enum SystemIdentificationSource SystemIdentificationSource;
33 interface IAnalyticsInfoStatics;
34 interface IAnalyticsInfoStatics2;
35 interface IAnalyticsVersionInfo;
36 interface IAnalyticsVersionInfo2;
37 interface ISystemIdentificationInfo;
38 interface ISystemIdentificationStatics;
39 runtimeclass AnalyticsVersionInfo;
40 runtimeclass AnalyticsInfo;
41 runtimeclass SystemIdentification;
42 runtimeclass SystemIdentificationInfo;
43
44 [contract(Windows.Foundation.UniversalApiContract, 3.0)]
45 enum SystemIdentificationSource
46 {
47 None = 0,
48 Tpm = 1,
49 Uefi = 2,
50 [contract(Windows.Foundation.UniversalApiContract, 5.0)]
51 Registry = 3,
52 };
53
54 [
55 contract(Windows.Foundation.UniversalApiContract, 1.0),
56 exclusiveto(Windows.System.Profile.AnalyticsInfo),
57 uuid(1d5ee066-188d-5ba9-4387-acaeb0e7e305)
58 ]
59 interface IAnalyticsInfoStatics : IInspectable
60 {
61 [propget] HRESULT VersionInfo([out, retval] Windows.System.Profile.AnalyticsVersionInfo **value);
62 [propget] HRESULT DeviceForm([out, retval] HSTRING *value);
63 }
64
65 [
66 contract(Windows.Foundation.UniversalApiContract, 1.0),
67 exclusiveto(Windows.System.Profile.AnalyticsVersionInfo),
68 uuid(926130b8-9955-4c74-bdc1-7cd0decf9b03)
69 ]
70 interface IAnalyticsVersionInfo : IInspectable
71 {
72 [propget] HRESULT DeviceFamily([out, retval] HSTRING *value);
73 [propget] HRESULT DeviceFamilyVersion([out, retval] HSTRING *value);
74 }
75
76 [
77 contract(Windows.Foundation.UniversalApiContract, 3.0),
78 exclusiveto(Windows.System.Profile.SystemIdentificationInfo),
79 uuid(0c659e7d-c3c2-4d33-a2df-21bc41916eb3)
80 ]
81 interface ISystemIdentificationInfo : IInspectable
82 {
83 [propget] HRESULT Id([out, retval] Windows.Storage.Streams.IBuffer **value);
84 [propget] HRESULT Source([out, retval] Windows.System.Profile.SystemIdentificationSource *value);
85 }
86
87 [
88 contract(Windows.Foundation.UniversalApiContract, 3.0),
89 exclusiveto(Windows.System.Profile.SystemIdentification),
90 uuid(5581f42a-d3df-4d93-a37d-c41a616c6d01)
91 ]
92 interface ISystemIdentificationStatics : IInspectable
93 {
94 HRESULT GetSystemIdForPublisher([out, retval] Windows.System.Profile.SystemIdentificationInfo **result);
95 HRESULT GetSystemIdForUser([in] Windows.System.User *user, [out, retval] Windows.System.Profile.SystemIdentificationInfo **result);
96 }
97
98 [
99 contract(Windows.Foundation.UniversalApiContract, 1.0),
100 marshaling_behavior(agile),
101 threading(both)
102 ]
103 runtimeclass AnalyticsVersionInfo
104 {
105 [default] interface Windows.System.Profile.IAnalyticsVersionInfo;
106 /* [contract(Windows.Foundation.UniversalApiContract, 11.0)] interface Windows.System.Profile.IAnalyticsVersionInfo2; */
107 }
108
109 [
110 contract(Windows.Foundation.UniversalApiContract, 1.0),
111 marshaling_behavior(agile),
112 static(Windows.System.Profile.IAnalyticsInfoStatics, Windows.Foundation.UniversalApiContract, 1.0),
113 /* static(Windows.System.Profile.IAnalyticsInfoStatics2, Windows.Foundation.UniversalApiContract, 6.0), */
114 threading(both)
115 ]
116 runtimeclass AnalyticsInfo
117 {
118 }
119
120 [
121 contract(Windows.Foundation.UniversalApiContract, 3.0),
122 marshaling_behavior(agile),
123 static(Windows.System.Profile.ISystemIdentificationStatics, Windows.Foundation.UniversalApiContract, 3.0),
124 threading(both)
125 ]
126 runtimeclass SystemIdentification
127 {
128 }
129
130 [
131 contract(Windows.Foundation.UniversalApiContract, 3.0),
132 marshaling_behavior(agile),
133 threading(both)
134 ]
135 runtimeclass SystemIdentificationInfo
136 {
137 [default] interface Windows.System.Profile.ISystemIdentificationInfo;
138 }
139 }