Interface IProcessUtils
Process utility methods, providing functionality related to retrieving process information.
Namespace: LemonEdge.DesktopTools.Debugger.Utils.Interfaces
Assembly: LemonEdge.DesktopTools.dll
Syntax
public interface IProcessUtils
Methods
GetProcessIdAsync(string, int)
Retrieves the process ID based on the specified process name.
Declaration
Task<int> GetProcessIdAsync(string processName, int attempt = 1)
Parameters
| Type | Name | Description |
|---|---|---|
| string | processName | The name of the process for which to retrieve the ID. |
| int | attempt | Optional parameter specifying the attempt number (default is 1). |
Returns
| Type | Description |
|---|---|
| Task<int> | The process ID if found; otherwise, a default value (-1). |