C# Class AcTools.Utils.Helpers.ProcessExtension

Mostra file Open project: gro-ove/actools

Public Methods

Method Description
GetWindowsHandles ( this process ) : IReadOnlyList
HasExitedSafe ( this process ) : bool
Start ( string filename, IEnumerable args, bool shell = true ) : Process
WaitForExitAsync ( this process, CancellationToken cancellationToken = default(CancellationToken) ) : Task

Private Methods

Method Description
EnumWindow ( IntPtr handle, IntPtr pointer ) : bool
GetFilenameSafe ( this process ) : string
GetModuleFileNameEx ( IntPtr hProcess, IntPtr hModule, [ lpBaseName, [ nSize ) : uint
GetProcessPathUsingManagement ( int processId ) : string
GetProcessPathUsingPsApi ( int pid ) : string
GetQuotedArgument ( string argument ) : string
HasWhitespace ( string text ) : bool
Reverse ( string text ) : string
WaitForExitAsyncDeeperFallback ( Process process, CancellationToken cancellationToken = default(CancellationToken) ) : Task
WaitForExitAsyncFallback ( Process process, CancellationToken cancellationToken = default(CancellationToken) ) : Task

Method Details

GetWindowsHandles() public static method

public static GetWindowsHandles ( this process ) : IReadOnlyList
process this
return IReadOnlyList

HasExitedSafe() public static method

public static HasExitedSafe ( this process ) : bool
process this
return bool

Start() public static method

public static Start ( string filename, IEnumerable args, bool shell = true ) : Process
filename string
args IEnumerable
shell bool
return System.Diagnostics.Process

WaitForExitAsync() public static method

public static WaitForExitAsync ( this process, CancellationToken cancellationToken = default(CancellationToken) ) : Task
process this
cancellationToken System.Threading.CancellationToken
return Task