有了IWebBrowser2*怎么得到其Internet Explorer_Server窗口句柄

有了IWebBrowser2*,如何得到其Internet Explorer_Server窗口句柄?
网上搜了一下,基本以下两种方式:
http://topic.csdn.net/t/20060607/15/4806765.html
http://hi.baidu.com/edward_sim/blog/item/ef813c89e3762db90f244419.html(http://msdn.microsoft.com/en-us/library/aa752126(v=vs.85).aspx)
发现上面两种方式的代码得到的值是一样的(这里我称为 hwndA),但并不是 Internet Explorer_Server的窗口句柄 ......
用SPY++检测到 Internet Explorer_Server的窗口句柄(这里我称为 hwndB)


然后就发现,hwndB 的parent 的 parent 是 hwndA ...

请问 :除了枚举子窗口的方式外 ,如何获得相应 Internet Explorer_Server窗口句柄??

------解决方案--------------------
直接用Spy++查看一下关系,估计没有直接获取的方式,还是要获取子窗口或遍历
------解决方案--------------------
IWebBrowser2::HWND Property

--------------------------------------------

Gets the handle of the Microsoft Internet Explorer main window.

What's New for Windows Internet Explorer 7
For compatibility reasons, this method returns a handle to the top-level window frame, consistent with previous versions of Internet Explorer. However, due to tabbed browsing in Internet Explorer 7, this window handle is not logically the same as in previous versions.


应该还是得遍历