Description: Returns the process ID of the first running Windows process whose executable name matches the input.
Calling convention: CIP_GetProcessIDByExeName(ExeName: String): Integer
Parameters:
ExeName: executable file name, normally including the .exe extension. NULL returns -1.
Returns: Process ID of the first matching process, or -1 when the input is NULL or no match is found. Windows snapshot errors are reported instead of being silently ignored.
Availability: Default on Windows.
Example:
ProcessID := CIP_GetProcessIDByExeName("notepad.exe");