C# Class ProcessInterface.ProcessInterface

A class the wraps a process, allowing programmatic input and output.
Mostrar archivo Open project: Gainedge/BetterExplorer Class Usage Examples

Public Methods

Method Description
ProcessInterface ( ) : System

Initializes a new instance of the ProcessInterface class.

StartProcess ( string fileName, string arguments ) : IntPtr

Runs a process.

StopProcess ( ) : void

Stops the process.

WriteInput ( string input ) : void

Writes the input.

Private Methods

Method Description
FireProcessErrorEvent ( string content ) : void

Fires the process error output event.

FireProcessExitEvent ( int code ) : void

Fires the process exit event.

FireProcessOutputEvent ( string content ) : void

Fires the process output event.

currentProcess_Exited ( object sender, EventArgs e ) : void

Handles the Exited event of the currentProcess control.

errorWorker_DoWork ( object sender, DoWorkEventArgs e ) : void

Handles the DoWork event of the errorWorker control.

errorWorker_ProgressChanged ( object sender, ProgressChangedEventArgs e ) : void

Handles the ProgressChanged event of the errorWorker control.

outputWorker_DoWork ( object sender, DoWorkEventArgs e ) : void

Handles the DoWork event of the outputWorker control.

outputWorker_ProgressChanged ( object sender, ProgressChangedEventArgs e ) : void

Handles the ProgressChanged event of the outputWorker control.

Method Details

ProcessInterface() public method

Initializes a new instance of the ProcessInterface class.
public ProcessInterface ( ) : System
return System

StartProcess() public method

Runs a process.
public StartProcess ( string fileName, string arguments ) : IntPtr
fileName string Name of the file.
arguments string The arguments.
return System.IntPtr

StopProcess() public method

Stops the process.
public StopProcess ( ) : void
return void

WriteInput() public method

Writes the input.
public WriteInput ( string input ) : void
input string The input.
return void