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

USER_POWER_POLICY (Structures)
 
.
Summary
TODO - a short description

C# Definition:

[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Auto)]
struct USER_POWER_POLICY {
            public uint Revision;
            public POWER_ACTION_POLICY IdleAc;
            public POWER_ACTION_POLICY IdleDc;
            public uint IdleTimeoutAc;
            public uint IdleTimeoutDc;
            public byte IdleSensitivityAc;
            public byte IdleSensitivityDc;
            public byte ThrottlePolicyAc;
            public byte ThrottlePolicyDc;
            public SYSTEM_POWER_STATE MaxSleepAc;
            public SYSTEM_POWER_STATE MaxSleepDc;
            [MarshalAs(UnmanagedType.ByValArray, SizeConst = 2)]
            public uint[] Reserved;
            public uint VideoTimeoutAc;
            public uint VideoTimeoutDc;
            public uint SpindownTimeoutAc;
            public uint SpindownTimeoutDc;
            [MarshalAs(UnmanagedType.I1)]
            public bool OptimizeForPowerAc;
            [MarshalAs(UnmanagedType.I1)]
            public bool OptimizeForPowerDc;
            public byte FanThrottleToleranceAc;
            public byte FanThrottleToleranceDc;
            public byte ForcedThrottleAc;
            public byte ForcedThrottleDc;
}

VB Definition:

    Structure USER_POWER_POLICY
        Public Revision As UInteger
        Public IdleAc As POWER_ACTION_POLICY
        Public IdleDc As POWER_ACTION_POLICY
        Public IdleTimeoutAc As UInteger
        Public IdleTimeoutDc As UInteger
        Public IdleSensitivityAc As Byte
        Public IdleSensitivityDc As Byte
        Public ThrottlePolicyAc As Byte
        Public ThrottlePolicyDc As Byte
        Public MaxSleepAc As SYSTEM_POWER_STATE
        Public MaxSleepDc As SYSTEM_POWER_STATE
        <MarshalAs(UnmanagedType.ByValArray, SizeConst:=2)> _
        Public Reserved As UInteger()
        Public VideoTimeoutAc As UInteger
        Public VideoTimeoutDc As UInteger
        Public SpindownTimeoutAc As UInteger
        Public SpindownTimeoutDc As UInteger
        <MarshalAs(UnmanagedType.I1)> _
        Public OptimizeForPowerAc As Boolean
        <MarshalAs(UnmanagedType.I1)> _
        Public OptimizeForPowerDc As Boolean
        Public FanThrottleToleranceAc As Byte
        Public FanThrottleToleranceDc As Byte
        Public ForcedThrottleAc As Byte
        Public ForcedThrottleDc As Byte
    End Structure

Structure USER_POWER_POLICY
   Public TODO
End Structure

User-Defined Field Types:

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