C# Class Binarysharp.MemoryManagement.Helpers.ApplicationFinder

Static helper class providing tools for finding applications.
Show file Open project: ZenLulz/MemorySharp

Public Methods

Method Description
FromProcessId ( int processId ) : Process

Returns a new Process component, given the identifier of a process.

FromProcessName ( string processName ) : IEnumerable

Creates an collection of new Process components and associates them with all the process resources that share the specified process name.

FromWindowClassName ( string className ) : IEnumerable

Creates a collection of new Process components and associates them with all the process resources that share the specified class name.

FromWindowHandle ( IntPtr windowHandle ) : Process

Retrieves a new Process component that created the window.

FromWindowTitle ( string windowTitle ) : IEnumerable

Creates a collection of new Process components and associates them with all the process resources that share the specified window title.

FromWindowTitleContains ( string windowTitle ) : IEnumerable

Creates a collection of new Process components and associates them with all the process resources that contain the specified window title.

Method Details

FromProcessId() public static method

Returns a new Process component, given the identifier of a process.
public static FromProcessId ( int processId ) : Process
processId int The system-unique identifier of a process resource.
return System.Diagnostics.Process

FromProcessName() public static method

Creates an collection of new Process components and associates them with all the process resources that share the specified process name.
public static FromProcessName ( string processName ) : IEnumerable
processName string The friendly name of the process.
return IEnumerable

FromWindowClassName() public static method

Creates a collection of new Process components and associates them with all the process resources that share the specified class name.
public static FromWindowClassName ( string className ) : IEnumerable
className string The class name string.
return IEnumerable

FromWindowHandle() public static method

Retrieves a new Process component that created the window.
public static FromWindowHandle ( IntPtr windowHandle ) : Process
windowHandle System.IntPtr A handle to the window.
return System.Diagnostics.Process

FromWindowTitle() public static method

Creates a collection of new Process components and associates them with all the process resources that share the specified window title.
public static FromWindowTitle ( string windowTitle ) : IEnumerable
windowTitle string The window title string.
return IEnumerable

FromWindowTitleContains() public static method

Creates a collection of new Process components and associates them with all the process resources that contain the specified window title.
public static FromWindowTitleContains ( string windowTitle ) : IEnumerable
windowTitle string A part a window title string.
return IEnumerable