Sys_GetProcessID
Description
Section titled “Description”Gets the process ID’s found for an exe name
Syntax
Section titled “Syntax”Sys_GetProcessID(sProcessExeName, bReturnAsArray, bMustExist) As Boolean
Parameters
Section titled “Parameters”sProcessExeName (Boolean)
Section titled “sProcessExeName (Boolean)”Name of process to check
bReturnAsArray (Boolean)
Section titled “bReturnAsArray (Boolean)”Store result in gaValue
bMustExist (Boolean)
Section titled “bMustExist (Boolean)”Process must exist
Return value
Section titled “Return value”Result will be stored in gsValue. If specified result is stored in gaValue
Example
Section titled “Example”If bStatus Then bStatus=Sys_GetProcessID("CapaInstaller.exe", True, False)If bStatus And IsArray(gaValue) Then For index = LBound(gaValue) To UBound(gaValue) bStatus = Job_WriteLog("Custom", "Index #" & index & ": " & cStr(gaValue(index)), bStatus, True) NextEnd IfRelated functions
Section titled “Related functions”Sys_WaitForProcess Sys_Sleep Sys_KillProcess Sys_GetProcessOwner Sys_CompareProcessOwner Constants Package Property Variables