I've got the following problem: I want my program to check if Internet Explorer is running or not. I'm using this code:

If FindWindowEx(0, 0, "IEFrame", vbNullString) Or FindWindowEx(0, 0, "CabinetWClass", vbNullString) Then
'...
end if

"CabinetWClass" is used to check if a new browser window is opened by clicking 'open frame in new window' because it won't have the usual class name "IEFrame".

But now: If the user opens any folder in a window, this window has the same class name as the new IE window.

Is there another way to check if IE is running or not?

Thanks a lot!