// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.250303.1 #pragma once #ifndef WINRT_Windows_Phone_System_Power_0_H #define WINRT_Windows_Phone_System_Power_0_H WINRT_EXPORT namespace winrt::Windows::Foundation { template struct WINRT_IMPL_EMPTY_BASES EventHandler; struct EventRegistrationToken; } WINRT_EXPORT namespace winrt::Windows::Phone::System::Power { enum class PowerSavingMode : int32_t { Off = 0, On = 1, }; struct IPowerManagerStatics; struct IPowerManagerStatics2; struct PowerManager; } namespace winrt::impl { template <> struct category{ using type = interface_category; }; template <> struct category{ using type = interface_category; }; template <> struct category{ using type = class_category; }; template <> struct category{ using type = enum_category; }; template <> inline constexpr auto& name_v = L"Windows.Phone.System.Power.PowerManager"; template <> inline constexpr auto& name_v = L"Windows.Phone.System.Power.PowerSavingMode"; template <> inline constexpr auto& name_v = L"Windows.Phone.System.Power.IPowerManagerStatics"; template <> inline constexpr auto& name_v = L"Windows.Phone.System.Power.IPowerManagerStatics2"; template <> inline constexpr guid guid_v{ 0x25DE8FD0,0x1C5B,0x11E1,{ 0xBD,0xDB,0x08,0x00,0x20,0x0C,0x9A,0x66 } }; // 25DE8FD0-1C5B-11E1-BDDB-0800200C9A66 template <> inline constexpr guid guid_v{ 0x596236CF,0x1918,0x4551,{ 0xA4,0x66,0xC5,0x1A,0xAE,0x37,0x3B,0xF8 } }; // 596236CF-1918-4551-A466-C51AAE373BF8 template <> struct abi { struct WINRT_IMPL_NOVTABLE type : inspectable_abi { virtual int32_t __stdcall get_PowerSavingMode(int32_t*) noexcept = 0; virtual int32_t __stdcall add_PowerSavingModeChanged(void*, winrt::event_token*) noexcept = 0; virtual int32_t __stdcall remove_PowerSavingModeChanged(winrt::event_token) noexcept = 0; }; }; template <> struct abi { struct WINRT_IMPL_NOVTABLE type : inspectable_abi { virtual int32_t __stdcall get_PowerSavingModeEnabled(bool*) noexcept = 0; }; }; template struct consume_Windows_Phone_System_Power_IPowerManagerStatics { [[nodiscard]] auto PowerSavingMode() const; auto PowerSavingModeChanged(winrt::Windows::Foundation::EventHandler const& changeHandler) const; using PowerSavingModeChanged_revoker = impl::event_revoker::remove_PowerSavingModeChanged>; [[nodiscard]] auto PowerSavingModeChanged(auto_revoke_t, winrt::Windows::Foundation::EventHandler const& changeHandler) const; auto PowerSavingModeChanged(winrt::event_token const& token) const noexcept; }; template <> struct consume { template using type = consume_Windows_Phone_System_Power_IPowerManagerStatics; }; template struct consume_Windows_Phone_System_Power_IPowerManagerStatics2 { [[nodiscard]] auto PowerSavingModeEnabled() const; }; template <> struct consume { template using type = consume_Windows_Phone_System_Power_IPowerManagerStatics2; }; } #endif