format 4.0
census 2e30db26-66c8-4551-85b9-a537376d8f99 1
namespace Microsoft.Windows.System.Power

delegate Windows.Foundation.AsyncOperationCompletedHandler<Microsoft.Windows.System.Power.EffectivePowerMode> concrete
    py winrt.windows.foundation.AsyncOperationCompletedHandler[EffectivePowerMode]
    guid 897713ea-1f95-5c1b-a24b-9341aabc743a
    signature pinterface({fcdcf02c-e5d8-4478-915a-4d90b74b83a5};enum(Microsoft.Windows.System.Power.EffectivePowerMode;i4))
    base Windows.Foundation.AsyncOperationCompletedHandler
    argument Microsoft.Windows.System.Power.EffectivePowerMode
    method -
        method Invoke slot=3 inputs=2 outputs=0 shape=51 reverse=4
            in parameterized type=Windows.Foundation.IAsyncOperation<Microsoft.Windows.System.Power.EffectivePowerMode> name=asyncInfo
            in enum32 type=Windows.Foundation.AsyncStatus name=asyncStatus

enum Microsoft.Windows.System.Power.BatteryStatus python_type
    py BatteryStatus
    signature enum(Microsoft.Windows.System.Power.BatteryStatus;i4)
    constant NOT_PRESENT 0
    constant DISCHARGING 1
    constant IDLE 2
    constant CHARGING 3

enum Microsoft.Windows.System.Power.DisplayStatus python_type
    py DisplayStatus
    signature enum(Microsoft.Windows.System.Power.DisplayStatus;i4)
    constant OFF 0
    constant ON 1
    constant DIMMED 2

enum Microsoft.Windows.System.Power.EffectivePowerMode python_type
    py EffectivePowerMode
    signature enum(Microsoft.Windows.System.Power.EffectivePowerMode;i4)
    constant BATTERY_SAVER 0
    constant BETTER_BATTERY 1
    constant BALANCED 2
    constant HIGH_PERFORMANCE 3
    constant MAX_PERFORMANCE 4
    constant GAME_MODE 5
    constant MIXED_REALITY 6

enum Microsoft.Windows.System.Power.EnergySaverStatus python_type
    py EnergySaverStatus
    signature enum(Microsoft.Windows.System.Power.EnergySaverStatus;i4)
    constant UNINITIALIZED 0
    constant DISABLED 1
    constant OFF 2
    constant ON 3

delegate Windows.Foundation.EventHandler<System.Object> concrete
    py winrt.windows.foundation.EventHandler[Object]
    guid c50898f6-c536-5f47-8583-8b2c2438a13b
    signature pinterface({9de1c535-6ae1-11e0-84e1-18a905bcc53f};cinterface(IInspectable))
    base Windows.Foundation.EventHandler
    argument System.Object
    method -
        method Invoke slot=3 inputs=2 outputs=0 shape=51 reverse=4
            in object name=sender
            in object name=args

interface Windows.Foundation.IAsyncOperation<Microsoft.Windows.System.Power.EffectivePowerMode> concrete awaitable
    py winrt.windows.foundation._IAsyncOperation[EffectivePowerMode]
    guid c4dc524f-9095-56f2-9acf-e10ffa600fcb
    signature pinterface({9fc2b0bb-e446-44e2-aa61-9cab8f636af2};enum(Microsoft.Windows.System.Power.EffectivePowerMode;i4))
    base Windows.Foundation.IAsyncOperation
    requires Windows.Foundation.IAsyncInfo
    argument Microsoft.Windows.System.Power.EffectivePowerMode
    property completed
        get get_Completed slot=7 inputs=0 outputs=1 declaring=Windows.Foundation.IAsyncOperation<Microsoft.Windows.System.Power.EffectivePowerMode> shape=4 reverse=43 role=completed
            out delegate type=Windows.Foundation.AsyncOperationCompletedHandler<Microsoft.Windows.System.Power.EffectivePowerMode> return
        put put_Completed slot=6 inputs=1 outputs=0 declaring=Windows.Foundation.IAsyncOperation<Microsoft.Windows.System.Power.EffectivePowerMode> shape=4 reverse=22
            in delegate type=Windows.Foundation.AsyncOperationCompletedHandler<Microsoft.Windows.System.Power.EffectivePowerMode> name=handler
    property error_code
        get get_ErrorCode slot=8 inputs=0 outputs=1 declaring=Windows.Foundation.IAsyncInfo shape=4 reverse=62
            out hresult type=Windows.Foundation.HResult return
    property id
        get get_Id slot=6 inputs=0 outputs=1 declaring=Windows.Foundation.IAsyncInfo shape=4 reverse=22
            out uint32 return
    property status
        get get_Status slot=7 inputs=0 outputs=1 declaring=Windows.Foundation.IAsyncInfo shape=4 reverse=43 role=status
            out enum32 type=Windows.Foundation.AsyncStatus return
    method cancel
        method Cancel slot=9 inputs=0 outputs=0 declaring=Windows.Foundation.IAsyncInfo shape=0 reverse=93
    method close
        method Close slot=10 inputs=0 outputs=0 declaring=Windows.Foundation.IAsyncInfo shape=0 reverse=117
    method get_results
        method GetResults slot=8 inputs=0 outputs=1 declaring=Windows.Foundation.IAsyncOperation<Microsoft.Windows.System.Power.EffectivePowerMode> shape=4 reverse=62 role=get_results
            out enum32 type=Microsoft.Windows.System.Power.EffectivePowerMode return

interface Microsoft.Windows.System.Power.IPowerManagerStatics
    guid fa3554cc-be1c-534c-bff8-72df78e9f4a4

interface Microsoft.Windows.System.Power.IPowerManagerStatics2
    guid 61f3cc25-65b4-5def-9c9b-990cef3b0833

class Microsoft.Windows.System.Power.PowerManager static python_type
    py PowerManager
    factory Microsoft.Windows.System.Power.IPowerManagerStatics
    factory Microsoft.Windows.System.Power.IPowerManagerStatics2
    property battery_status static
        get get_BatteryStatus slot=9 inputs=0 outputs=1 declaring=Microsoft.Windows.System.Power.IPowerManagerStatics shape=4 static
            out enum32 type=Microsoft.Windows.System.Power.BatteryStatus return
    property display_status static
        get get_DisplayStatus slot=24 inputs=0 outputs=1 declaring=Microsoft.Windows.System.Power.IPowerManagerStatics shape=4 static
            out enum32 type=Microsoft.Windows.System.Power.DisplayStatus return
    property effective_power_mode static
        get get_EffectivePowerMode slot=29 inputs=0 outputs=1 declaring=Microsoft.Windows.System.Power.IPowerManagerStatics shape=4 static
            out parameterized type=Windows.Foundation.IAsyncOperation<Microsoft.Windows.System.Power.EffectivePowerMode> return
    property energy_saver_status static
        get get_EnergySaverStatus slot=6 inputs=0 outputs=1 declaring=Microsoft.Windows.System.Power.IPowerManagerStatics shape=4 static
            out enum32 type=Microsoft.Windows.System.Power.EnergySaverStatus return
    property power_source_kind static
        get get_PowerSourceKind slot=21 inputs=0 outputs=1 declaring=Microsoft.Windows.System.Power.IPowerManagerStatics shape=4 static
            out enum32 type=Microsoft.Windows.System.Power.PowerSourceKind return
    property power_supply_status static
        get get_PowerSupplyStatus slot=12 inputs=0 outputs=1 declaring=Microsoft.Windows.System.Power.IPowerManagerStatics shape=4 static
            out enum32 type=Microsoft.Windows.System.Power.PowerSupplyStatus return
    property remaining_charge_percent static
        get get_RemainingChargePercent slot=15 inputs=0 outputs=1 declaring=Microsoft.Windows.System.Power.IPowerManagerStatics shape=4 static
            out int32 return
    property remaining_discharge_time static
        get get_RemainingDischargeTime slot=18 inputs=0 outputs=1 declaring=Microsoft.Windows.System.Power.IPowerManagerStatics shape=4 static
            out timespan return
    property system_suspend_status static
        get get_SystemSuspendStatus slot=35 inputs=0 outputs=1 declaring=Microsoft.Windows.System.Power.IPowerManagerStatics shape=4 static
            out enum32 type=Microsoft.Windows.System.Power.SystemSuspendStatus return
    property user_presence_status static
        get get_UserPresenceStatus slot=32 inputs=0 outputs=1 declaring=Microsoft.Windows.System.Power.IPowerManagerStatics shape=4 static
            out enum32 type=Microsoft.Windows.System.Power.UserPresenceStatus return
    property effective_power_mode2 static
        get get_EffectivePowerMode2 slot=6 inputs=0 outputs=1 declaring=Microsoft.Windows.System.Power.IPowerManagerStatics2 shape=4 static
            out enum32 type=Microsoft.Windows.System.Power.EffectivePowerMode return
    event battery_status_changed static
        add add_BatteryStatusChanged slot=10 inputs=1 outputs=1 declaring=Microsoft.Windows.System.Power.IPowerManagerStatics shape=51 static
            in delegate type=Windows.Foundation.EventHandler<System.Object> name=handler
            out event_token type=Windows.Foundation.EventRegistrationToken return
        remove remove_BatteryStatusChanged slot=11 inputs=1 outputs=0 declaring=Microsoft.Windows.System.Power.IPowerManagerStatics shape=26 static
            in event_token type=Windows.Foundation.EventRegistrationToken name=token
    event display_status_changed static
        add add_DisplayStatusChanged slot=25 inputs=1 outputs=1 declaring=Microsoft.Windows.System.Power.IPowerManagerStatics shape=51 static
            in delegate type=Windows.Foundation.EventHandler<System.Object> name=handler
            out event_token type=Windows.Foundation.EventRegistrationToken return
        remove remove_DisplayStatusChanged slot=26 inputs=1 outputs=0 declaring=Microsoft.Windows.System.Power.IPowerManagerStatics shape=26 static
            in event_token type=Windows.Foundation.EventRegistrationToken name=token
    event effective_power_mode_changed static
        add add_EffectivePowerModeChanged slot=30 inputs=1 outputs=1 declaring=Microsoft.Windows.System.Power.IPowerManagerStatics shape=51 static
            in delegate type=Windows.Foundation.EventHandler<System.Object> name=handler
            out event_token type=Windows.Foundation.EventRegistrationToken return
        remove remove_EffectivePowerModeChanged slot=31 inputs=1 outputs=0 declaring=Microsoft.Windows.System.Power.IPowerManagerStatics shape=26 static
            in event_token type=Windows.Foundation.EventRegistrationToken name=token
    event energy_saver_status_changed static
        add add_EnergySaverStatusChanged slot=7 inputs=1 outputs=1 declaring=Microsoft.Windows.System.Power.IPowerManagerStatics shape=51 static
            in delegate type=Windows.Foundation.EventHandler<System.Object> name=handler
            out event_token type=Windows.Foundation.EventRegistrationToken return
        remove remove_EnergySaverStatusChanged slot=8 inputs=1 outputs=0 declaring=Microsoft.Windows.System.Power.IPowerManagerStatics shape=26 static
            in event_token type=Windows.Foundation.EventRegistrationToken name=token
    event power_source_kind_changed static
        add add_PowerSourceKindChanged slot=22 inputs=1 outputs=1 declaring=Microsoft.Windows.System.Power.IPowerManagerStatics shape=51 static
            in delegate type=Windows.Foundation.EventHandler<System.Object> name=handler
            out event_token type=Windows.Foundation.EventRegistrationToken return
        remove remove_PowerSourceKindChanged slot=23 inputs=1 outputs=0 declaring=Microsoft.Windows.System.Power.IPowerManagerStatics shape=26 static
            in event_token type=Windows.Foundation.EventRegistrationToken name=token
    event power_supply_status_changed static
        add add_PowerSupplyStatusChanged slot=13 inputs=1 outputs=1 declaring=Microsoft.Windows.System.Power.IPowerManagerStatics shape=51 static
            in delegate type=Windows.Foundation.EventHandler<System.Object> name=handler
            out event_token type=Windows.Foundation.EventRegistrationToken return
        remove remove_PowerSupplyStatusChanged slot=14 inputs=1 outputs=0 declaring=Microsoft.Windows.System.Power.IPowerManagerStatics shape=26 static
            in event_token type=Windows.Foundation.EventRegistrationToken name=token
    event remaining_charge_percent_changed static
        add add_RemainingChargePercentChanged slot=16 inputs=1 outputs=1 declaring=Microsoft.Windows.System.Power.IPowerManagerStatics shape=51 static
            in delegate type=Windows.Foundation.EventHandler<System.Object> name=handler
            out event_token type=Windows.Foundation.EventRegistrationToken return
        remove remove_RemainingChargePercentChanged slot=17 inputs=1 outputs=0 declaring=Microsoft.Windows.System.Power.IPowerManagerStatics shape=26 static
            in event_token type=Windows.Foundation.EventRegistrationToken name=token
    event remaining_discharge_time_changed static
        add add_RemainingDischargeTimeChanged slot=19 inputs=1 outputs=1 declaring=Microsoft.Windows.System.Power.IPowerManagerStatics shape=51 static
            in delegate type=Windows.Foundation.EventHandler<System.Object> name=handler
            out event_token type=Windows.Foundation.EventRegistrationToken return
        remove remove_RemainingDischargeTimeChanged slot=20 inputs=1 outputs=0 declaring=Microsoft.Windows.System.Power.IPowerManagerStatics shape=26 static
            in event_token type=Windows.Foundation.EventRegistrationToken name=token
    event system_idle_status_changed static
        add add_SystemIdleStatusChanged slot=27 inputs=1 outputs=1 declaring=Microsoft.Windows.System.Power.IPowerManagerStatics shape=51 static
            in delegate type=Windows.Foundation.EventHandler<System.Object> name=handler
            out event_token type=Windows.Foundation.EventRegistrationToken return
        remove remove_SystemIdleStatusChanged slot=28 inputs=1 outputs=0 declaring=Microsoft.Windows.System.Power.IPowerManagerStatics shape=26 static
            in event_token type=Windows.Foundation.EventRegistrationToken name=token
    event system_suspend_status_changed static
        add add_SystemSuspendStatusChanged slot=36 inputs=1 outputs=1 declaring=Microsoft.Windows.System.Power.IPowerManagerStatics shape=51 static
            in delegate type=Windows.Foundation.EventHandler<System.Object> name=handler
            out event_token type=Windows.Foundation.EventRegistrationToken return
        remove remove_SystemSuspendStatusChanged slot=37 inputs=1 outputs=0 declaring=Microsoft.Windows.System.Power.IPowerManagerStatics shape=26 static
            in event_token type=Windows.Foundation.EventRegistrationToken name=token
    event user_presence_status_changed static
        add add_UserPresenceStatusChanged slot=33 inputs=1 outputs=1 declaring=Microsoft.Windows.System.Power.IPowerManagerStatics shape=51 static
            in delegate type=Windows.Foundation.EventHandler<System.Object> name=handler
            out event_token type=Windows.Foundation.EventRegistrationToken return
        remove remove_UserPresenceStatusChanged slot=34 inputs=1 outputs=0 declaring=Microsoft.Windows.System.Power.IPowerManagerStatics shape=26 static
            in event_token type=Windows.Foundation.EventRegistrationToken name=token

enum Microsoft.Windows.System.Power.PowerSourceKind python_type
    py PowerSourceKind
    signature enum(Microsoft.Windows.System.Power.PowerSourceKind;i4)
    constant AC 0
    constant DC 1

enum Microsoft.Windows.System.Power.PowerSupplyStatus python_type
    py PowerSupplyStatus
    signature enum(Microsoft.Windows.System.Power.PowerSupplyStatus;i4)
    constant NOT_PRESENT 0
    constant INADEQUATE 1
    constant ADEQUATE 2

enum Microsoft.Windows.System.Power.SystemSuspendStatus python_type
    py SystemSuspendStatus
    signature enum(Microsoft.Windows.System.Power.SystemSuspendStatus;i4)
    constant UNINITIALIZED 0
    constant ENTERING 1
    constant AUTO_RESUME 2
    constant MANUAL_RESUME 3

enum Microsoft.Windows.System.Power.UserPresenceStatus python_type
    py UserPresenceStatus
    signature enum(Microsoft.Windows.System.Power.UserPresenceStatus;i4)
    constant PRESENT 0
    constant ABSENT 1

class System.Object external
    py winrt.system.Object

delegate Windows.Foundation.AsyncOperationCompletedHandler external parameterized
    py winrt.windows.foundation.AsyncOperationCompletedHandler
    guid fcdcf02c-e5d8-4478-915a-4d90b74b83a5

enum Windows.Foundation.AsyncStatus external
    py winrt.windows.foundation.AsyncStatus

delegate Windows.Foundation.EventHandler external parameterized
    py winrt.windows.foundation.EventHandler
    guid 9de1c535-6ae1-11e0-84e1-18a905bcc53f

struct Windows.Foundation.EventRegistrationToken external
    py winrt.windows.foundation.EventRegistrationToken

struct Windows.Foundation.HResult external
    py winrt.windows.foundation.HResult

interface Windows.Foundation.IAsyncInfo external
    py winrt.windows.foundation._IAsyncInfo
    guid 00000036-0000-0000-c000-000000000046

interface Windows.Foundation.IAsyncOperation external parameterized
    py winrt.windows.foundation._IAsyncOperation
    guid 9fc2b0bb-e446-44e2-aa61-9cab8f636af2
