ExecutionState.cs 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. using System;
  2. namespace SWRIS.Enums
  3. {
  4. [Flags]
  5. public enum ExecutionState : uint
  6. {
  7. /// <summary>
  8. /// Forces the system to be in the working state by resetting the system idle timer.
  9. /// </summary>
  10. SystemRequired = 0x01,
  11. /// <summary>
  12. /// Forces the display to be on by resetting the display idle timer.
  13. /// </summary>
  14. DisplayRequired = 0x02,
  15. /// <summary>
  16. /// This value is not supported. If <see cref="UserPresent"/> is combined with other esFlags values, the call will fail and none of the specified states will be set.
  17. /// </summary>
  18. [Obsolete("This value is not supported.")]
  19. UserPresent = 0x04,
  20. /// <summary>
  21. /// Enables away mode. This value must be specified with <see cref="Continuous"/>.
  22. /// <para />
  23. /// Away mode should be used only by media-recording and media-distribution applications that must perform critical background processing on desktop computers while the computer appears to be sleeping.
  24. /// </summary>
  25. AwaymodeRequired = 0x40,
  26. /// <summary>
  27. /// Informs the system that the state being set should remain in effect until the next call that uses <see cref="Continuous"/> and one of the other state flags is cleared.
  28. /// </summary>
  29. Continuous = 0x80000000,
  30. }
  31. }