You need to QueryInterface on IWebBrowserApp
and IWebBrowser2. I have code but it is in VB6, so
probably not much help to you, but here is the snippet:
Private UK1 As IUnknown
Dim ISP As IServiceProvider
Dim WB1 As UUID
Dim WB2 As UUID
Set UK1 = pUnkSite
Set ISP = pUnkSite
CLSIDFromString IID_IWebBrowserApp, WB1
CLSIDFromString IID_IWebBrowser2, WB2
Set FBar.InternetExplorer = ISP.QueryService(VarPtr(WB1), VarPtr(WB2))
That gives you the new shell folder as a
of that is the WebViewFolderContents, AKA
ShellFolderView, which provides the
SelectionChanged event. You probably also
want that.
I hope that is clear. I know the VB terminology
is different but I do not know how to explain it
in C++ terms.
pProvider->QueryService(SID_SShellBrowser,IID_IShellBrowser,(void**)&pShellB
rowser);