Sleep Fix

This commit is contained in:
Serge
2023-05-21 19:19:26 +02:00
parent 1e0169a71d
commit ac60986646
2 changed files with 15 additions and 7 deletions

View File

@@ -435,6 +435,10 @@ public class NativeMethods
}
[DllImport("Powrprof.dll", CharSet = CharSet.Auto, ExactSpelling = true)]
public static extern bool SetSuspendState(bool hiberate, bool forceCritical, bool disableWakeEvent);
public const int KEYEVENTF_EXTENDEDKEY = 1;
public const int KEYEVENTF_KEYUP = 2;