The declaration of the 'FindWindow' function, in
vb, should be...
Code:
Declare Function FindWindow Lib "user32.dll" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Long
...to use the ANSII character set...
Code:
Declare Function FindWindow Lib "user32.dll" Alias "FindWindowW" (ByVal lpClassName As String, ByVal lpWindowName As String) As Long
...to use the Unicode character set, which is only supported on systems above NT4.
Maybe it could be you have a typo in your current declaration, or an error with the passed parameters, where do you get them from? are they variables?
Grant.