C# Class TrinityCore_Manager.Misc.ProcessHelper

Datei anzeigen Open project: TrinityCore-Manager/TrinityCore-Manager-v3

Public Methods

Method Description
GetFirstProcessByName ( string name ) : Process
KillProcess ( int pid ) : bool
KillProcess ( string name ) : bool
ProcessExists ( int pid ) : bool
ProcessExists ( string name ) : bool
StartProcess ( ProcessStartInfo psi ) : Process
StartProcess ( string exeLoc, string workingDir, string arguments = "" ) : Process

Start a process

Method Details

GetFirstProcessByName() public static method

public static GetFirstProcessByName ( string name ) : Process
name string
return System.Diagnostics.Process

KillProcess() public static method

public static KillProcess ( int pid ) : bool
pid int
return bool

KillProcess() public static method

public static KillProcess ( string name ) : bool
name string
return bool

ProcessExists() public static method

public static ProcessExists ( int pid ) : bool
pid int
return bool

ProcessExists() public static method

public static ProcessExists ( string name ) : bool
name string
return bool

StartProcess() public static method

public static StartProcess ( ProcessStartInfo psi ) : Process
psi System.Diagnostics.ProcessStartInfo
return System.Diagnostics.Process

StartProcess() public static method

Start a process
public static StartProcess ( string exeLoc, string workingDir, string arguments = "" ) : Process
exeLoc string The location of the exe file
workingDir string The directory in which to start the exe from
arguments string Optional arguments to pass
return System.Diagnostics.Process