/
Sys_CompareProcessOwner
Sys_CompareProcessOwner
Description
Compares owner of two running processes
Syntax
Sys_CompareProcessOwner(sProcessOne, sProcessTwo, bMustExist) As Boolean
Parameters
sProcessOne (String)
Name of first process to compare
sProcessTwo (String)
Name of second process to compare
bMustExist (Boolean)
Processes must exist
Return value
Result will be stored in gbValue
Example
VBScript
If bStatus Then bStatus = Sys_CompareProcessOwner("wscript.exe", "explorer.exe", False) If bStatus Then bStatus = Job_WriteLog("Custom", "gbValue: " & gbValue, bStatus, True)
Relates functions
Sys_WaitForProcess Sys_Sleep Sys_KillProcess Sys_GetProcessOwner Sys_ExistProcess Sys_CompareProcessOwner
, multiple selections available,
Related content
$cs.Sys_WaitForProcessToExist
$cs.Sys_WaitForProcessToExist
More like this
$cs.Sys_WaitForProcess
$cs.Sys_WaitForProcess
More like this
CMS_RunSystemAgent
CMS_RunSystemAgent
More like this
$cs.Shell_Execute
$cs.Shell_Execute
More like this
File_WaitWhileExist
File_WaitWhileExist
More like this
Sys_GetSerialNumber
Sys_GetSerialNumber
More like this