Sys\_GetProcessOwner
Description
Section titled “Description”Returns owner of process
Syntax
Section titled “Syntax”Sys_GetProcessOwner(sProcess, bMustExist) As Boolean
Parameters
Section titled “Parameters”sProcess (String)
Name of process
bMustExist (Boolean)
Process must exist
Return value
Section titled “Return value”Result will be stored in gsValue
Example
Section titled “Example”VBScript
If bStatus Then bStatus = Sys_GetProcessOwner("CapaInstaller.exe", True)If bStatus Then bStatus = Job_WriteLog("Custom", "gsValue: " & gsValue, bStatus, True)Related functions
Section titled “Related functions”Sys_WaitForProcess Sys_Sleep Sys_KillProcess Sys_ExistProcess Sys_CompareProcessOwner