Seems strange.

If I open an instance of Internet Explorer and run this code, the hwnd value is not zero.

Code:
Private Declare Function FindWindow Lib "user32.dll" Alias "FindWindowA" (ByVal lpclassname As Any, ByVal lpString As String) As Long

Dim hwnd As Long
hwnd = FindWindow("IEFrame", vbNullString)
You could try running this code, just to make sure you are using the correct classname.

Code:
Private Declare Function GetClassName Lib "user32.dll" Alias "GetClassNameA" (ByVal hwnd As Long, ByVal lpclassname As String, ByVal nmaxcount As Long) As Long

Dim hwnd As Long
Dim lResult As Long
Dim nmaxcount As Long
Dim lpclassname As String

nmaxcount = 256
lpclassname = Space(nmaxcount)

hwnd = FindWindow(vbNullString, "Place Window Text Here.")

lResult = GetClassName(hwnd, lpclassname, nmaxcount)

MsgBox lpclassname
Good Luck.

[Edited by Ishamel on 03-23-2000 at 10:29 AM]