C# Class TrinityCore_Manager.Misc.ProcessHelper

Afficher le fichier Open project: TrinityCore-Manager/TrinityCore-Manager-v3

Méthodes publiques

Méthode 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 méthode

public static GetFirstProcessByName ( string name ) : Process
name string
Résultat System.Diagnostics.Process

KillProcess() public static méthode

public static KillProcess ( int pid ) : bool
pid int
Résultat bool

KillProcess() public static méthode

public static KillProcess ( string name ) : bool
name string
Résultat bool

ProcessExists() public static méthode

public static ProcessExists ( int pid ) : bool
pid int
Résultat bool

ProcessExists() public static méthode

public static ProcessExists ( string name ) : bool
name string
Résultat bool

StartProcess() public static méthode

public static StartProcess ( ProcessStartInfo psi ) : Process
psi System.Diagnostics.ProcessStartInfo
Résultat System.Diagnostics.Process

StartProcess() public static méthode

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
Résultat System.Diagnostics.Process