Hi guy, i use this code to check if an aplication is still running

VB Code:
  1. Public Function isRunning(ByVal Process As String) As Boolean
  2.     Dim objWMIService, colProcesses
  3.     Set objWMIService = GetObject("winmgmts:")
  4.     Set colProcesses = objWMIService.ExecQuery("Select * from Win32_Process where name='" & Process & "'")
  5.     If colProcesses.Count Then
  6.     isRunning = True
  7.     Else
  8.     isRunning = False
  9.     End If
  10. End Function

but it's kindda slow to open the winmgmts and use queury to execute to see if the process is still there. i jst want to know if you guys have a better way to check for the process