Method process.getProcessId
Overload
Gets process id of the first found process of the specified program.
public static int getProcessId(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
0 if not found. |
Exceptions
ArgumentException
|