You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Ombi/src/Ombi.Updater/IProcessProvider.cs

19 lines
592 B

using System.Collections.Generic;
using System.Diagnostics;
namespace Ombi.Updater
{
public interface IProcessProvider
{
bool Exists(int processId);
bool Exists(string processName);
List<ProcessInfo> FindProcessByName(string name);
ProcessInfo GetCurrentProcess();
int GetCurrentProcessId();
ProcessInfo GetProcessById(int id);
bool Kill(StartupOptions opts);
void KillAll(string processName);
void SetPriority(int processId, ProcessPriorityClass priority);
void WaitForExit(Process process);
}
}