C# Class ApprovalTests.Utilities.ParentProcessUtils

ファイルを表示 Open project: approvals/ApprovalTests.Net

Public Methods

Method Description
CurrentProcessWithAncestors ( ) : IEnumerable
GetParentProcess ( Process currentProcess ) : Process
GetSelfAndAncestors ( Process self ) : IEnumerable

Private Methods

Method Description
CreateToolhelp32Snapshot ( uint dwFlags, uint th32ProcessId ) : IntPtr
ParentProcess ( this process ) : Process
Process32First ( IntPtr hSnapshot, PROCESSENTRY32 &lppe ) : bool
Process32Next ( IntPtr hSnapshot, PROCESSENTRY32 &lppe ) : bool

Method Details

CurrentProcessWithAncestors() public static method

public static CurrentProcessWithAncestors ( ) : IEnumerable
return IEnumerable

GetParentProcess() public static method

public static GetParentProcess ( Process currentProcess ) : Process
currentProcess System.Diagnostics.Process
return System.Diagnostics.Process

GetSelfAndAncestors() public static method

public static GetSelfAndAncestors ( Process self ) : IEnumerable
self System.Diagnostics.Process
return IEnumerable