C# 클래스 TrinityCore_Manager.Misc.ProcessHelper

파일 보기 프로젝트 열기: TrinityCore-Manager/TrinityCore-Manager-v3

공개 메소드들

메소드 설명
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

메소드 상세

GetFirstProcessByName() 공개 정적인 메소드

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

KillProcess() 공개 정적인 메소드

public static KillProcess ( int pid ) : bool
pid int
리턴 bool

KillProcess() 공개 정적인 메소드

public static KillProcess ( string name ) : bool
name string
리턴 bool

ProcessExists() 공개 정적인 메소드

public static ProcessExists ( int pid ) : bool
pid int
리턴 bool

ProcessExists() 공개 정적인 메소드

public static ProcessExists ( string name ) : bool
name string
리턴 bool

StartProcess() 공개 정적인 메소드

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

StartProcess() 공개 정적인 메소드

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
리턴 System.Diagnostics.Process