コード例 #1
0
 public void SetPowerOption(PowerOption option)
 {
     PowerSetActiveScheme(IntPtr.Zero, ref option.PowerId);
 }
コード例 #2
0
 public PowerManager()
 {
     this.MaxPerformance = this.CreatePowerOption("High performance", PowerOptions.MaxPerformance);
     this.PowerSaving    = this.CreatePowerOption("Power saver", PowerOptions.PowerSaving);
     this.Balanced       = this.CreatePowerOption("Balanced", PowerOptions.Balanced);
 }