Search
Module:
Directory

   Desktop Functions:

   Smart Device Functions:


Show Recent Changes
Subscribe (RSS)
Misc. Pages
Comments
FAQ
Helpful Tools
Playground
Suggested Reading
Website TODO List
Download Visual Studio Add-In

SYSTEM_POWER_CAPABILITIES (Structures)
 
.
Summary
Contains information about the power capabilities of the system.

C# Definition:

struct SYSTEM_POWER_CAPABILITIES
{
    [MarshalAs(UnmanagedType.U1)]
    public bool PowerButtonPresent;
    [MarshalAs(UnmanagedType.U1)]
    public bool SleepButtonPresent;
    [MarshalAs(UnmanagedType.U1)]
    public bool LidPresent;
    [MarshalAs(UnmanagedType.U1)]
    public bool SystemS1;
    [MarshalAs(UnmanagedType.U1)]
    public bool SystemS2;
    [MarshalAs(UnmanagedType.U1)]
    public bool SystemS3;
    [MarshalAs(UnmanagedType.U1)]
    public bool SystemS4;
    [MarshalAs(UnmanagedType.U1)]
    public bool SystemS5;
    [MarshalAs(UnmanagedType.U1)]
    public bool HiberFilePresent;
    [MarshalAs(UnmanagedType.U1)]
    public bool FullWake;
    [MarshalAs(UnmanagedType.U1)]
    public bool VideoDimPresent;
    [MarshalAs(UnmanagedType.U1)]
    public bool ApmPresent;
    [MarshalAs(UnmanagedType.U1)]
    public bool UpsPresent;
    [MarshalAs(UnmanagedType.U1)]
    public bool ThermalControl;
    [MarshalAs(UnmanagedType.U1)]
    public bool ProcessorThrottle;
    public byte ProcessorMinThrottle;
    public byte ProcessorMaxThrottle;    // Also known as ProcessorThrottleScale before Windows XP
    [MarshalAs(UnmanagedType.U1)]
    public bool FastSystemS4;   // Ignore if earlier than Windows XP
    [MarshalAs(UnmanagedType.U1)]
    public bool Hiberboot;  // Ignore if earlier than Windows XP
    [MarshalAs(UnmanagedType.U1)]
    public bool WakeAlarmPresent;   // Ignore if earlier than Windows XP
    [MarshalAs(UnmanagedType.U1)]
    public bool AoAc;   // Ignore if earlier than Windows XP
    [MarshalAs(UnmanagedType.U1)]
    public bool DiskSpinDown;
    public byte HiberFileType;  // Ignore if earlier than Windows 10 (10.0.10240.0)
    [MarshalAs(UnmanagedType.U1)]
    public bool AoAcConnectivitySupported;  // Ignore if earlier than Windows 10 (10.0.10240.0)
    [MarshalAs(UnmanagedType.ByValArray, SizeConst = 6)]
    private readonly byte[] spare3;
    [MarshalAs(UnmanagedType.U1)]
    public bool SystemBatteriesPresent;
    [MarshalAs(UnmanagedType.U1)]
    public bool BatteriesAreShortTerm;
    [MarshalAs(UnmanagedType.ByValArray, SizeConst = 3)]
    public BATTERY_REPORTING_SCALE[] BatteryScale;
    public SYSTEM_POWER_STATE AcOnLineWake;
    public SYSTEM_POWER_STATE SoftLidWake;
    public SYSTEM_POWER_STATE RtcWake;
    public SYSTEM_POWER_STATE MinDeviceWakeState;
    public SYSTEM_POWER_STATE DefaultLowLatencyWake;
}

VB Definition:

Structure SystemPowerCapabilities
   Public TODO
End Structure

User-Defined Field Types:

  [StructLayout(LayoutKind.Sequential, Pack = 1)]
  struct SYSTEM_POWER_CAPABILITIES {
    [MarshalAs(UnmanagedType.U1)]
    public bool PowerButtonPresent;
    [MarshalAs(UnmanagedType.U1)]
    public bool SleepButtonPresent;
    [MarshalAs(UnmanagedType.U1)]
    public bool LidPresent;
    [MarshalAs(UnmanagedType.U1)]
    public bool SystemS1;
    [MarshalAs(UnmanagedType.U1)]
    public bool SystemS2;
    [MarshalAs(UnmanagedType.U1)]
    public bool SystemS3;
    [MarshalAs(UnmanagedType.U1)]
    public bool SystemS4;
    [MarshalAs(UnmanagedType.U1)]
    public bool SystemS5;
    [MarshalAs(UnmanagedType.U1)]
    public bool HiberFilePresent;
    [MarshalAs(UnmanagedType.U1)]
    public bool FullWake;
    [MarshalAs(UnmanagedType.U1)]
    public bool VideoDimPresent;
    [MarshalAs(UnmanagedType.U1)]
    public bool ApmPresent;
    [MarshalAs(UnmanagedType.U1)]
    public bool UpsPresent;
    [MarshalAs(UnmanagedType.U1)]
    public bool ThermalControl;
    [MarshalAs(UnmanagedType.U1)]
    public bool ProcessorThrottle;
    public byte ProcessorMinThrottle;
    public byte ProcessorMaxThrottle;
    [MarshalAs(UnmanagedType.U1)]
    public bool FastSystemS4;
    [MarshalAs(UnmanagedType.ByValArray, SizeConst = 3)]
    private byte[] spare2;
    [MarshalAs(UnmanagedType.U1)]
    public bool DiskSpinDown;
    [MarshalAs(UnmanagedType.ByValArray, SizeConst = 8)]
    private byte[] spare3;
    [MarshalAs(UnmanagedType.U1)]
    public bool SystemBatteriesPresent;
    [MarshalAs(UnmanagedType.U1)]
    public bool BatteriesAreShortTerm;
    [MarshalAs(UnmanagedType.ByValArray, SizeConst = 3)]
    public BATTERY_REPORTING_SCALE[] BatteryScale;
    public SYSTEM_POWER_STATE AcOnLineWake;
    public SYSTEM_POWER_STATE SoftLidWake;
    public SYSTEM_POWER_STATE RtcWake;
    public SYSTEM_POWER_STATE MinDeviceWakeState;
    public SYSTEM_POWER_STATE DefaultLowLatencyWake;
  }

BATTERY_REPORTING_SCALE

SYSTEM_POWER_STATE

VB Definition:

Structure SystemPowerCapabilities
   Public TODO
End Structure

User-Defined Field Types:

None.

BATTERY_REPORTING_SCALE

SYSTEM_POWER_STATE

Notes:

None.

Notes:

None.

Documentation

Please edit this page!

Do you have...

  • helpful tips?
  • corrections to the existing content?
  • alternate definitions?
  • additional languages you want to include?

Select "Edit This Page" on the right hand toolbar and edit it! Or add new pages containing any supporting types needed.

 
Access PInvoke.net directly from VS:
Terms of Use
Edit This Page
Find References
Show Printable Version
Revisions