| File: _generated\523\Windows.Win32.SYSTEM_POWER_STATUS.g.cs | Web Access |
| Project: src\winforms\src\System.Windows.Forms.Primitives\src\System.Windows.Forms.Primitives.csproj (System.Windows.Forms.Primitives) |
// ------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated> // ------------------------------------------------------------------------------ #pragma warning disable CS1591,CS1573,CS0465,CS0649,CS8019,CS1570,CS1584,CS1658,CS0436,CS8981,SYSLIB1092,CS3021,CS3019 using global::System; using global::System.Diagnostics; using global::System.Diagnostics.CodeAnalysis; using global::System.Runtime.CompilerServices; using global::System.Runtime.InteropServices; using global::System.Runtime.Versioning; using winmdroot = global::Windows.Win32; namespace Windows.Win32 { namespace System.Power { /// <summary>Contains information about the power status of the system.</summary> /// <remarks>The system is only capable of estimating <b>BatteryFullLifeTime</b> based on calculations on <b>BatteryLifeTime</b> and <b>BatteryLifePercent</b>. Without smart battery subsystems, this value may not be accurate enough to be useful.</remarks> [global::System.CodeDom.Compiler.GeneratedCode("Microsoft.Windows.CsWin32", "0.3.287+85e3fa26dd.RR")] internal partial struct SYSTEM_POWER_STATUS { /// <summary></summary> internal byte ACLineStatus; /// <summary> /// <para>The battery charge status. This member can contain one or more of the following flags.</para> /// <para></para> /// <para>This doc was truncated.</para> /// <para><see href="https://learn.microsoft.com/windows/win32/api/winbase/ns-winbase-system_power_status#members">Read more on learn.microsoft.com</see>.</para> /// </summary> internal byte BatteryFlag; /// <summary>The percentage of full battery charge remaining. This member can be a value in the range 0 to 100, or 255 if status is unknown.</summary> internal byte BatteryLifePercent; /// <summary> /// <para>The status of battery saver. To participate in energy conservation, avoid resource intensive tasks when battery saver is on. To be notified when this value changes, call the <a href="https://docs.microsoft.com/windows/desktop/api/winuser/nf-winuser-registerpowersettingnotification">RegisterPowerSettingNotification</a> function with the <a href="https://docs.microsoft.com/windows/desktop/Power/power-setting-guids">power setting GUID</a>, <b>GUID_POWER_SAVING_STATUS</b>. </para> /// <para>This doc was truncated.</para> /// <para><see href="https://learn.microsoft.com/windows/win32/api/winbase/ns-winbase-system_power_status#members">Read more on learn.microsoft.com</see>.</para> /// </summary> internal byte SystemStatusFlag; /// <summary>The number of seconds of battery life remaining, or –1 if remaining seconds are unknown or if the device is connected to AC power.</summary> internal uint BatteryLifeTime; /// <summary>The number of seconds of battery life when at full charge, or –1 if full battery lifetime is unknown or if the device is connected to AC power.</summary> internal uint BatteryFullLifeTime; } } }