using System.Threading.Tasks;
namespace ThreadPilot.Services
{
///
/// Service for managing application elevation and administrator privileges
///
public interface IElevationService
{
///
/// Checks if the current process is running with administrator privileges
///
/// True if running as administrator, false otherwise
bool IsRunningAsAdministrator();
///
/// Requests elevation if the current process is not running as administrator
///
/// True if already elevated or elevation was successful, false if elevation failed or was cancelled
Task RequestElevationIfNeeded();
///
/// Restarts the application with administrator privileges
///
/// Command line arguments to pass to the elevated process
/// True if restart was initiated successfully, false otherwise
Task RestartWithElevation(string[] arguments = null);
///
/// Validates that the current process has the necessary privileges for the specified operation
///
/// The operation that requires validation
/// True if the operation can be performed, false otherwise
bool ValidateElevationForOperation(string operation);
///
/// Gets the current elevation status as a user-friendly string
///
/// Elevation status description
string GetElevationStatus();
}
}