' Searches for the processes
res = p.FindAllChildren("ProcessName", "*", 1)
' Posts the search results
If VarArrayHighBound(res, 1) >= 0 Then
For i = 0 To VarArrayHighBound(res, 1)
Log.Message "Found: " + res(i).ProcessName
Next
Else
Log.Message "Not found"
End Sub