I would like to search threw all running programs (hidden or not) for my application named "Bob"...

I think the function I should use is FindWindow, however, I can't get any exemples on how to use it ... Could anyone please post a sample code for this?

The function:

VB Code:
  1. Declare Function FindWindow Lib "user32" Alias _
  2. "FindWindowA" (ByVal lpClassName As String, _
  3. ByVal lpWindowName As String) As Long


or

VB Code:
  1. Declare Function FindWindowWithNull Lib "user32" -
  2. Alias "FindWindowA" (ByVal lpClassName As Long, _
  3. ByVal lpWindowName As String) As Long

So... waiting for an answer