Custom Power schemes support

This commit is contained in:
seerge
2023-04-11 18:50:12 +02:00
parent 2daf1f5434
commit bee7f35475
8 changed files with 86 additions and 8 deletions

View File

@@ -1,4 +1,5 @@
using System.ComponentModel;
using GHelper;
using System.ComponentModel;
using System.Diagnostics;
using System.Runtime.InteropServices;
using static Tools.ScreenInterrogatory;
@@ -731,6 +732,12 @@ public class NativeMethods
Logger.WriteLine("Boost " + boost);
}
public static void SetPowerScheme(string scheme)
{
PowerSetActiveScheme(IntPtr.Zero, new Guid(scheme));
PowerSetActiveOverlayScheme(new Guid(scheme));
}
public static void SetPowerScheme(int mode)
{
switch (mode)