Method process.getProcessIds
Overload
Gets process ids of all processes of the specified program.
public static int[] getProcessIds(string processName, bool? fullPath = false, bool ofThisSession = false)
Parameters
processName (string)
Process executable file name, like |
fullPath (bool?)
processName is full path.
If |
ofThisSession (bool)
Get processes only of this user session. |
Returns
int[]
Array containing zero or more elements. |
Exceptions
ArgumentException
|