Experts help!!! FindWindow API function
Posted on 2006-05-12
I want to check if a certain windows explorer window is still open even though it is minimized.
I found this function FindWindow:
Declare Function FindWindow Lib "user32.dll" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Integer
I am calling the window the following way:
handle = FindWindow("explorer", "\\Server03\Test\")
but every time 0 gets returned.
I think the problem is that I am not passing the correct arguments.
What do I pass in place of lpClassName and lpWindowName?