C# Class RestrictedProcess.Process.RestrictedProcess

Inheritance: IDisposable
Datei anzeigen Open project: NikolayIT/RestrictedProcess.NET Class Usage Examples

Public Methods

Method Description
Dispose ( ) : void
RestrictedProcess ( string fileName, string workingDirectory, IEnumerable arguments = null, int bufferSize = 4096 ) : System
Start ( int timeLimit, int memoryLimit ) : void
WaitForExit ( int milliseconds ) : bool

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Private Methods

Method Description
CreatePipe ( SafeFileHandle &parentHandle, SafeFileHandle &childHandle, bool parentInputs, int bufferSize ) : void
CreatePipeWithSecurityAttributes ( SafeFileHandle &readPipe, SafeFileHandle &writePipe, SecurityAttributes pipeAttributes, int size ) : void
CreateRestrictedToken ( ) : IntPtr
CreateRestrictedTokenWithSafer ( ) : IntPtr
GetProcessTimes ( ) : ProcessThreadTimes
Kill ( ) : void
RedirectStandardIoHandles ( StartupInfo &startupInfo, int bufferSize ) : void
SetTokenMandatoryLabel ( IntPtr token, SecurityMandatoryLabel securityMandatoryLabel ) : void

Method Details

Dispose() public method

public Dispose ( ) : void
return void

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

RestrictedProcess() public method

public RestrictedProcess ( string fileName, string workingDirectory, IEnumerable arguments = null, int bufferSize = 4096 ) : System
fileName string
workingDirectory string
arguments IEnumerable
bufferSize int
return System

Start() public method

public Start ( int timeLimit, int memoryLimit ) : void
timeLimit int
memoryLimit int
return void

WaitForExit() public method

public WaitForExit ( int milliseconds ) : bool
milliseconds int
return bool