Do you mean GetProcessHandle. Are you using it correctly, it works for me?
B4X:hw.New1 p() = hw.GetProcesses For i = 0 To ArrayLen(p()) - 1 s = s & CRLF & p(i) Next pp = hw.GetProcessHandle(p(2)) Msgbox(s, p(2) & " " & pp)
Sub Globals
'Declare the global variables here.
Dim p(0) As string
End Sub
Sub App_Start
p() = dzhw.GetProcesses
For i = 0 To ArrayLen(p()) - 1
s = s & CRLF & p(i)
Next
pp = dzhw.GetProcessHandle(p(2))
Msgbox(s, p(2) & " " & pp)
End Sub