C# Class RestrictedProcess.Process.RestrictedProcess

Inheritance: IDisposable
Afficher le fichier Open project: NikolayIT/RestrictedProcess.NET Class Usage Examples

Méthodes publiques

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

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

Private Methods

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

public Dispose ( ) : void
Résultat void

Dispose() protected méthode

protected Dispose ( bool disposing ) : void
disposing bool
Résultat void

RestrictedProcess() public méthode

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

Start() public méthode

public Start ( int timeLimit, int memoryLimit ) : void
timeLimit int
memoryLimit int
Résultat void

WaitForExit() public méthode

public WaitForExit ( int milliseconds ) : bool
milliseconds int
Résultat bool