A game framework written with osu! in mind.
at master 24 lines 707 B view raw
1// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. 2// See the LICENCE file in the repository root for full licence text. 3 4using System; 5using System.Runtime.InteropServices; 6 7namespace osu.Framework.Platform.Windows.Native 8{ 9 internal static class Execution 10 { 11 [DllImport("kernel32.dll")] 12 internal static extern uint SetThreadExecutionState(ExecutionState state); 13 14 [Flags] 15 internal enum ExecutionState : uint 16 { 17 AwaymodeRequired = 0x00000040, 18 Continuous = 0x80000000, 19 DisplayRequired = 0x00000002, 20 SystemRequired = 0x00000001, 21 UserPresent = 0x00000004, 22 } 23 } 24}