windows.devices.power.h 13 KB

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