C# 클래스 POLLaunch.Console.MyConsole

Root Console Hook Class
상속: System.Diagnostics.Process
파일 보기 프로젝트 열기: polserver/poltools 1 사용 예제들

공개 메소드들

메소드 설명
MyConsole ( ) : System

Default Constructor

Start ( string filename, string workingdir ) : void

Starts "filename" process at "workingdir" directory.

Start ( string filename, string workingdir, bool redirectinput ) : void

Starts "filename" process at "workingdir" directory with Standard Output Redirected.

Start ( string filename, string workingdir, string args ) : void

Starts "filename" process at "workingdir" directory using "args" arguments.

Start ( string filename, string workingdir, string args, bool redirectinput ) : void

Starts "filename" process at "workingdir" directory using "args" arguments.

Write ( char c ) : bool

Writes a char to the Input Stream for the Hooked Process.

Write ( char c, bool Ctrl, bool Shift, bool Alt ) : bool

Writes a char to the started processes InputStream.

Write ( string text ) : bool

Writes a string of text to the started processes InputStream.

비공개 메소드들

메소드 설명
HookConsole ( ) : bool
MyConsole_Exited ( object sender, EventArgs e ) : void
MyConsole_OutputDataReceived ( object sender, DataReceivedEventArgs e ) : void

메소드 상세

MyConsole() 공개 메소드

Default Constructor
public MyConsole ( ) : System
리턴 System

Start() 공개 메소드

Starts "filename" process at "workingdir" directory.
public Start ( string filename, string workingdir ) : void
filename string Full path to program
workingdir string Full path to working dir
리턴 void

Start() 공개 메소드

Starts "filename" process at "workingdir" directory with Standard Output Redirected.
public Start ( string filename, string workingdir, bool redirectinput ) : void
filename string Full path to program
workingdir string Full path to working dir
redirectinput bool Bool to use Stanard Input Redirect
리턴 void

Start() 공개 메소드

Starts "filename" process at "workingdir" directory using "args" arguments.
public Start ( string filename, string workingdir, string args ) : void
filename string Full path to program
workingdir string Full path to working dir
args string Arguments to send to the command line.
리턴 void

Start() 공개 메소드

Starts "filename" process at "workingdir" directory using "args" arguments.
public Start ( string filename, string workingdir, string args, bool redirectinput ) : void
filename string Full path to program
workingdir string Full path to working dir
args string Arguments to send to the command line
redirectinput bool To use the Standard Input Redirect
리턴 void

Write() 공개 메소드

Writes a char to the Input Stream for the Hooked Process.
public Write ( char c ) : bool
c char Character to send.
리턴 bool

Write() 공개 메소드

Writes a char to the started processes InputStream.
public Write ( char c, bool Ctrl, bool Shift, bool Alt ) : bool
c char
Ctrl bool
Shift bool
Alt bool
리턴 bool

Write() 공개 메소드

Writes a string of text to the started processes InputStream.
public Write ( string text ) : bool
text string Text to send to the Input Stream for the Process
리턴 bool