Can I see if a window is alive?

I open a browser from my program like this:

strUrl = "http://www............ ""

lngScanDocPId = Shell("C:\Program\Internet Explorer\iexplore.exe " & strUrl, vbMaximizedFocus) '

I can close that window, but if the user close it this code result in an error:

If lngScanDocPId <> 0 Then
AppActivate lngScanDocPId
SendKeys "%{F4}", True
lngScanDocPId = 0
End If

Can I see if the window is alive...?
[487 byte] By [Torsus2] at [2007-11-20 11:00:09]
# 1 Re: Can I see if a window is alive?
Why don't you use FindWindow() ( http://allapi.mentalis.org/apilist/FindWindow.shtml)?
PeejAvery at 2007-11-9 19:34:02 >