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:
Declare Function FindWindow Lib "user32" Alias _ "FindWindowA" (ByVal lpClassName As String, _ ByVal lpWindowName As String) As Long
or
VB Code:
Declare Function FindWindowWithNull Lib "user32" - Alias "FindWindowA" (ByVal lpClassName As Long, _ ByVal lpWindowName As String) As Long
So... waiting for an answer![]()




... Could anyone please post a sample code for this?
Reply With Quote