Debian Codegraph @

mingw-w64-headers/include/windows.devices.power.h

raw
1 /*** Autogenerated by WIDL 11.5 from include/windows.devices.power.idl - Do not edit ***/
2
3 #ifdef _WIN32
4 #ifndef __REQUIRED_RPCNDR_H_VERSION__
5 #define __REQUIRED_RPCNDR_H_VERSION__ 475
6 #endif
7 #include <rpc.h>
8 #include <rpcndr.h>
9 #endif
10
11 #ifndef COM_NO_WINDOWS_H
12 #include <windows.h>
13 #include <ole2.h>
14 #endif
15
16 #ifndef __windows_devices_power_h__
17 #define __windows_devices_power_h__
18
19 /* Forward declarations */
20
21 #ifndef ____x_ABI_CWindows_CDevices_CPower_CIBatteryReport_FWD_DEFINED__
22 #define ____x_ABI_CWindows_CDevices_CPower_CIBatteryReport_FWD_DEFINED__
23 typedef interface __x_ABI_CWindows_CDevices_CPower_CIBatteryReport __x_ABI_CWindows_CDevices_CPower_CIBatteryReport;
24 #ifdef __cplusplus
25 #define __x_ABI_CWindows_CDevices_CPower_CIBatteryReport ABI::Windows::Devices::Power::IBatteryReport
26 namespace ABI {
27 namespace Windows {
28 namespace Devices {
29 namespace Power {
30 interface IBatteryReport;
31 }
32 }
33 }
34 }
35 #endif /* __cplusplus */
36 #endif
37
38 #ifndef ____x_ABI_CWindows_CDevices_CPower_CBatteryReport_FWD_DEFINED__
39 #define ____x_ABI_CWindows_CDevices_CPower_CBatteryReport_FWD_DEFINED__
40 #ifdef __cplusplus
41 namespace ABI {
42 namespace Windows {
43 namespace Devices {
44 namespace Power {
45 class BatteryReport;
46 }
47 }
48 }
49 }
50 #else
51 typedef struct __x_ABI_CWindows_CDevices_CPower_CBatteryReport __x_ABI_CWindows_CDevices_CPower_CBatteryReport;
52 #endif /* defined __cplusplus */
53 #endif /* defined ____x_ABI_CWindows_CDevices_CPower_CBatteryReport_FWD_DEFINED__ */
54
55 /* Headers for imported files */
56
57 #include <inspectable.h>
58 #include <windows.foundation.h>
59 #include <windows.system.power.h>
60
61 #ifdef __cplusplus
62 extern "C" {
63 #endif
64
65 #ifndef ____x_ABI_CWindows_CDevices_CPower_CIBatteryReport_FWD_DEFINED__
66 #define ____x_ABI_CWindows_CDevices_CPower_CIBatteryReport_FWD_DEFINED__
67 typedef interface __x_ABI_CWindows_CDevices_CPower_CIBatteryReport __x_ABI_CWindows_CDevices_CPower_CIBatteryReport;
68 #ifdef __cplusplus
69 #define __x_ABI_CWindows_CDevices_CPower_CIBatteryReport ABI::Windows::Devices::Power::IBatteryReport
70 namespace ABI {
71 namespace Windows {
72 namespace Devices {
73 namespace Power {
74 interface IBatteryReport;
75 }
76 }
77 }
78 }
79 #endif /* __cplusplus */
80 #endif
81
82 /*****************************************************************************
83 * IBatteryReport interface
84 */
85 #if !defined(WINDOWS_FOUNDATION_UNIVERSALAPICONTRACT_VERSION)
86 #define WINDOWS_FOUNDATION_UNIVERSALAPICONTRACT_VERSION 0xe0000
87 #endif // defined(WINDOWS_FOUNDATION_UNIVERSALAPICONTRACT_VERSION)
88
89 #if WINDOWS_FOUNDATION_UNIVERSALAPICONTRACT_VERSION >= 0x10000
90 #ifndef ____x_ABI_CWindows_CDevices_CPower_CIBatteryReport_INTERFACE_DEFINED__
91 #define ____x_ABI_CWindows_CDevices_CPower_CIBatteryReport_INTERFACE_DEFINED__
92
93 DEFINE_GUID(IID___x_ABI_CWindows_CDevices_CPower_CIBatteryReport, 0xc9858c3a, 0x4e13, 0x420a, 0xa8,0xd0, 0x24,0xf1,0x8f,0x39,0x54,0x01);
94 #if defined(__cplusplus) && !defined(CINTERFACE)
95 } /* extern "C" */
96 namespace ABI {
97 namespace Windows {
98 namespace Devices {
99 namespace Power {
100 MIDL_INTERFACE("c9858c3a-4e13-420a-a8d0-24f18f395401")
101 IBatteryReport : public IInspectable
102 {
103 virtual HRESULT STDMETHODCALLTYPE get_ChargeRateInMilliwatts(
104 ABI::Windows::Foundation::IReference<INT32 > **value) = 0;
105
106 virtual HRESULT STDMETHODCALLTYPE get_DesignCapacityInMilliwattHours(
107 ABI::Windows::Foundation::IReference<INT32 > **value) = 0;
108
109 virtual HRESULT STDMETHODCALLTYPE get_FullChargeCapacityInMilliwattHours(
110 ABI::Windows::Foundation::IReference<INT32 > **value) = 0;
111
112 virtual HRESULT STDMETHODCALLTYPE get_RemainingCapacityInMilliwattHours(
113 ABI::Windows::Foundation::IReference<INT32 > **value) = 0;
114
115 virtual HRESULT STDMETHODCALLTYPE get_Status(
116 ABI::Windows::System::Power::BatteryStatus *value) = 0;
117
118 };
119 }
120 }
121 }
122 }
123 extern "C" {
124 #ifdef __CRT_UUID_DECL
125 __CRT_UUID_DECL(__x_ABI_CWindows_CDevices_CPower_CIBatteryReport, 0xc9858c3a, 0x4e13, 0x420a, 0xa8,0xd0, 0x24,0xf1,0x8f,0x39,0x54,0x01)
126 #endif
127 #else
128 typedef struct __x_ABI_CWindows_CDevices_CPower_CIBatteryReportVtbl {
129 BEGIN_INTERFACE
130
131 /*** IUnknown methods ***/
132 HRESULT (STDMETHODCALLTYPE *QueryInterface)(
133 __x_ABI_CWindows_CDevices_CPower_CIBatteryReport *This,
134 REFIID riid,
135 void **ppvObject);
136
137 ULONG (STDMETHODCALLTYPE *AddRef)(
138 __x_ABI_CWindows_CDevices_CPower_CIBatteryReport *This);
139
140 ULONG (STDMETHODCALLTYPE *Release)(
141 __x_ABI_CWindows_CDevices_CPower_CIBatteryReport *This);
142
143 /*** IInspectable methods ***/
144 HRESULT (STDMETHODCALLTYPE *GetIids)(
145 __x_ABI_CWindows_CDevices_CPower_CIBatteryReport *This,
146 ULONG *iidCount,
147 IID **iids);
148
149 HRESULT (STDMETHODCALLTYPE *GetRuntimeClassName)(
150 __x_ABI_CWindows_CDevices_CPower_CIBatteryReport *This,
151 HSTRING *className);
152
153 HRESULT (STDMETHODCALLTYPE *GetTrustLevel)(
154 __x_ABI_CWindows_CDevices_CPower_CIBatteryReport *This,
155 TrustLevel *trustLevel);
156
157 /*** IBatteryReport methods ***/
158 HRESULT (STDMETHODCALLTYPE *get_ChargeRateInMilliwatts)(
159 __x_ABI_CWindows_CDevices_CPower_CIBatteryReport *This,
160 __FIReference_1_INT32 **value);
161
162 HRESULT (STDMETHODCALLTYPE *get_DesignCapacityInMilliwattHours)(
163 __x_ABI_CWindows_CDevices_CPower_CIBatteryReport *This,
164 __FIReference_1_INT32 **value);
165
166 HRESULT (STDMETHODCALLTYPE *get_FullChargeCapacityInMilliwattHours)(
167 __x_ABI_CWindows_CDevices_CPower_CIBatteryReport *This,
168 __FIReference_1_INT32 **value);
169
170 HRESULT (STDMETHODCALLTYPE *get_RemainingCapacityInMilliwattHours)(
171 __x_ABI_CWindows_CDevices_CPower_CIBatteryReport *This,
172 __FIReference_1_INT32 **value);
173
174 HRESULT (STDMETHODCALLTYPE *get_Status)(
175 __x_ABI_CWindows_CDevices_CPower_CIBatteryReport *This,
176 __x_ABI_CWindows_CSystem_CPower_CBatteryStatus *value);
177
178 END_INTERFACE
179 } __x_ABI_CWindows_CDevices_CPower_CIBatteryReportVtbl;
180
181 interface __x_ABI_CWindows_CDevices_CPower_CIBatteryReport {
182 CONST_VTBL __x_ABI_CWindows_CDevices_CPower_CIBatteryReportVtbl* lpVtbl;
183 };
184
185 #ifdef COBJMACROS
186 #ifndef WIDL_C_INLINE_WRAPPERS
187 /*** IUnknown methods ***/
188 #define __x_ABI_CWindows_CDevices_CPower_CIBatteryReport_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
189 #define __x_ABI_CWindows_CDevices_CPower_CIBatteryReport_AddRef(This) (This)->lpVtbl->AddRef(This)
190 #define __x_ABI_CWindows_CDevices_CPower_CIBatteryReport_Release(This) (This)->lpVtbl->Release(This)
191 /*** IInspectable methods ***/
192 #define __x_ABI_CWindows_CDevices_CPower_CIBatteryReport_GetIids(This,iidCount,iids) (This)->lpVtbl->GetIids(This,iidCount,iids)
193 #define __x_ABI_CWindows_CDevices_CPower_CIBatteryReport_GetRuntimeClassName(This,className) (This)->lpVtbl->GetRuntimeClassName(This,className)
194 #define __x_ABI_CWindows_CDevices_CPower_CIBatteryReport_GetTrustLevel(This,trustLevel) (This)->lpVtbl->GetTrustLevel(This,trustLevel)
195 /*** IBatteryReport methods ***/
196 #define __x_ABI_CWindows_CDevices_CPower_CIBatteryReport_get_ChargeRateInMilliwatts(This,value) (This)->lpVtbl->get_ChargeRateInMilliwatts(This,value)
197 #define __x_ABI_CWindows_CDevices_CPower_CIBatteryReport_get_DesignCapacityInMilliwattHours(This,value) (This)->lpVtbl->get_DesignCapacityInMilliwattHours(This,value)
198 #define __x_ABI_CWindows_CDevices_CPower_CIBatteryReport_get_FullChargeCapacityInMilliwattHours(This,value) (This)->lpVtbl->get_FullChargeCapacityInMilliwattHours(This,value)
199 #define __x_ABI_CWindows_CDevices_CPower_CIBatteryReport_get_RemainingCapacityInMilliwattHours(This,value) (This)->lpVtbl->get_RemainingCapacityInMilliwattHours(This,value)
200 #define __x_ABI_CWindows_CDevices_CPower_CIBatteryReport_get_Status(This,value) (This)->lpVtbl->get_Status(This,value)
201 #else
202 /*** IUnknown methods ***/
203 static inline HRESULT __x_ABI_CWindows_CDevices_CPower_CIBatteryReport_QueryInterface(__x_ABI_CWindows_CDevices_CPower_CIBatteryReport* This,REFIID riid,void **ppvObject) {
204 return This->lpVtbl->QueryInterface(This,riid,ppvObject);
205 }
206 static inline ULONG __x_ABI_CWindows_CDevices_CPower_CIBatteryReport_AddRef(__x_ABI_CWindows_CDevices_CPower_CIBatteryReport* This) {
207 return This->lpVtbl->AddRef(This);
208 }
209 static inline ULONG __x_ABI_CWindows_CDevices_CPower_CIBatteryReport_Release(__x_ABI_CWindows_CDevices_CPower_CIBatteryReport* This) {
210 return This->lpVtbl->Release(This);
211 }
212 /*** IInspectable methods ***/
213 static inline HRESULT __x_ABI_CWindows_CDevices_CPower_CIBatteryReport_GetIids(__x_ABI_CWindows_CDevices_CPower_CIBatteryReport* This,ULONG *iidCount,IID **iids) {
214 return This->lpVtbl->GetIids(This,iidCount,iids);
215 }
216 static inline HRESULT __x_ABI_CWindows_CDevices_CPower_CIBatteryReport_GetRuntimeClassName(__x_ABI_CWindows_CDevices_CPower_CIBatteryReport* This,HSTRING *className) {
217 return This->lpVtbl->GetRuntimeClassName(This,className);
218 }
219 static inline HRESULT __x_ABI_CWindows_CDevices_CPower_CIBatteryReport_GetTrustLevel(__x_ABI_CWindows_CDevices_CPower_CIBatteryReport* This,TrustLevel *trustLevel) {
220 return This->lpVtbl->GetTrustLevel(This,trustLevel);
221 }
222 /*** IBatteryReport methods ***/
223 static inline HRESULT __x_ABI_CWindows_CDevices_CPower_CIBatteryReport_get_ChargeRateInMilliwatts(__x_ABI_CWindows_CDevices_CPower_CIBatteryReport* This,__FIReference_1_INT32 **value) {
224 return This->lpVtbl->get_ChargeRateInMilliwatts(This,value);
225 }
226 static inline HRESULT __x_ABI_CWindows_CDevices_CPower_CIBatteryReport_get_DesignCapacityInMilliwattHours(__x_ABI_CWindows_CDevices_CPower_CIBatteryReport* This,__FIReference_1_INT32 **value) {
227 return This->lpVtbl->get_DesignCapacityInMilliwattHours(This,value);
228 }
229 static inline HRESULT __x_ABI_CWindows_CDevices_CPower_CIBatteryReport_get_FullChargeCapacityInMilliwattHours(__x_ABI_CWindows_CDevices_CPower_CIBatteryReport* This,__FIReference_1_INT32 **value) {
230 return This->lpVtbl->get_FullChargeCapacityInMilliwattHours(This,value);
231 }
232 static inline HRESULT __x_ABI_CWindows_CDevices_CPower_CIBatteryReport_get_RemainingCapacityInMilliwattHours(__x_ABI_CWindows_CDevices_CPower_CIBatteryReport* This,__FIReference_1_INT32 **value) {
233 return This->lpVtbl->get_RemainingCapacityInMilliwattHours(This,value);
234 }
235 static inline HRESULT __x_ABI_CWindows_CDevices_CPower_CIBatteryReport_get_Status(__x_ABI_CWindows_CDevices_CPower_CIBatteryReport* This,__x_ABI_CWindows_CSystem_CPower_CBatteryStatus *value) {
236 return This->lpVtbl->get_Status(This,value);
237 }
238 #endif
239 #ifdef WIDL_using_Windows_Devices_Power
240 #define IID_IBatteryReport IID___x_ABI_CWindows_CDevices_CPower_CIBatteryReport
241 #define IBatteryReportVtbl __x_ABI_CWindows_CDevices_CPower_CIBatteryReportVtbl
242 #define IBatteryReport __x_ABI_CWindows_CDevices_CPower_CIBatteryReport
243 #define IBatteryReport_QueryInterface __x_ABI_CWindows_CDevices_CPower_CIBatteryReport_QueryInterface
244 #define IBatteryReport_AddRef __x_ABI_CWindows_CDevices_CPower_CIBatteryReport_AddRef
245 #define IBatteryReport_Release __x_ABI_CWindows_CDevices_CPower_CIBatteryReport_Release
246 #define IBatteryReport_GetIids __x_ABI_CWindows_CDevices_CPower_CIBatteryReport_GetIids
247 #define IBatteryReport_GetRuntimeClassName __x_ABI_CWindows_CDevices_CPower_CIBatteryReport_GetRuntimeClassName
248 #define IBatteryReport_GetTrustLevel __x_ABI_CWindows_CDevices_CPower_CIBatteryReport_GetTrustLevel
249 #define IBatteryReport_get_ChargeRateInMilliwatts __x_ABI_CWindows_CDevices_CPower_CIBatteryReport_get_ChargeRateInMilliwatts
250 #define IBatteryReport_get_DesignCapacityInMilliwattHours __x_ABI_CWindows_CDevices_CPower_CIBatteryReport_get_DesignCapacityInMilliwattHours
251 #define IBatteryReport_get_FullChargeCapacityInMilliwattHours __x_ABI_CWindows_CDevices_CPower_CIBatteryReport_get_FullChargeCapacityInMilliwattHours
252 #define IBatteryReport_get_RemainingCapacityInMilliwattHours __x_ABI_CWindows_CDevices_CPower_CIBatteryReport_get_RemainingCapacityInMilliwattHours
253 #define IBatteryReport_get_Status __x_ABI_CWindows_CDevices_CPower_CIBatteryReport_get_Status
254 #endif /* WIDL_using_Windows_Devices_Power */
255 #endif
256
257 #endif
258
259 #endif /* ____x_ABI_CWindows_CDevices_CPower_CIBatteryReport_INTERFACE_DEFINED__ */
260 #endif /* WINDOWS_FOUNDATION_UNIVERSALAPICONTRACT_VERSION >= 0x10000 */
261
262 /*
263 * Class Windows.Devices.Power.BatteryReport
264 */
265 #if WINDOWS_FOUNDATION_UNIVERSALAPICONTRACT_VERSION >= 0x10000
266 #ifndef RUNTIMECLASS_Windows_Devices_Power_BatteryReport_DEFINED
267 #define RUNTIMECLASS_Windows_Devices_Power_BatteryReport_DEFINED
268 #if !defined(_MSC_VER) && !defined(__MINGW32__)
269 static const WCHAR RuntimeClass_Windows_Devices_Power_BatteryReport[] = {'W','i','n','d','o','w','s','.','D','e','v','i','c','e','s','.','P','o','w','e','r','.','B','a','t','t','e','r','y','R','e','p','o','r','t',0};
270 #elif defined(__GNUC__) && !defined(__cplusplus)
271 const DECLSPEC_SELECTANY WCHAR RuntimeClass_Windows_Devices_Power_BatteryReport[] = L"Windows.Devices.Power.BatteryReport";
272 #else
273 extern const DECLSPEC_SELECTANY WCHAR RuntimeClass_Windows_Devices_Power_BatteryReport[] = {'W','i','n','d','o','w','s','.','D','e','v','i','c','e','s','.','P','o','w','e','r','.','B','a','t','t','e','r','y','R','e','p','o','r','t',0};
274 #endif
275 #endif /* RUNTIMECLASS_Windows_Devices_Power_BatteryReport_DEFINED */
276 #endif /* WINDOWS_FOUNDATION_UNIVERSALAPICONTRACT_VERSION >= 0x10000 */
277
278 /* Begin additional prototypes for all interfaces */
279
280
281 /* End additional prototypes */
282
283 #ifdef __cplusplus
284 }
285 #endif
286
287 #endif /* __windows_devices_power_h__ */