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.Helpers/IProcessProvider.cs

21 lines
662 B

using System.Collections.Generic;
using System.Diagnostics;
using Ombi.Helpers;
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);
void Kill(int processId);
void KillAll(string processName);
void SetPriority(int processId, ProcessPriorityClass priority);
Process Start(string path, string args = null);
void WaitForExit(Process process);
}
}