Library of Windows-only platform APIs.
$ dotnet add package Woohoo.Platform.Windows
Library of Windows-only platform APIs for .NET
Use TaskbarManager to manage the taskbar progress bar.
using Woohoo.Platform.Windows.Taskbar;
TaskbarManager.Instance.SetProgressValue(10, 100);
TaskbarManager.Instance.SetProgressState(TaskbarProgressBarState.Normal);
Use ThreadExecutionManager to manage power settings.
using Woohoo.Platform.Windows.PowerManagement;
// Prevent the system from sleeping
ThreadExecutionManager.SetState(ThreadExecutionState.Continuous | ThreadExecutionState.DisplayRequired);
// Restore sleep settings
ThreadExecutionManager.SetState(ThreadExecutionState.Continuous);