/************************************************************************** * IShellBrowserImpl_QueryActiveShellView */ static HRESULT WINAPI IShellBrowserImpl_QueryActiveShellView(IShellBrowser *iface, IShellView **ppshv) { IShellBrowserImpl *This = impl_from_IShellBrowser(iface); FileOpenDlgInfos *fodInfos; TRACE("(%p)\n", This); fodInfos = get_filedlg_infoptr(This->hwndOwner); if(!(*ppshv = fodInfos->Shell.FOIShellView)) { return E_FAIL; } IShellView_AddRef(fodInfos->Shell.FOIShellView); return NOERROR; }
/************************************************************************** * IShellBrowserImpl_QueryActiveShellView */ static HRESULT WINAPI IShellBrowserImpl_QueryActiveShellView(IShellBrowser *iface, IShellView **ppshv) { IShellBrowserImpl *This = (IShellBrowserImpl *)iface; FileOpenDlgInfos *fodInfos; TRACE("(%p)\n", This); fodInfos = (FileOpenDlgInfos *) GetPropA(This->hwndOwner,FileOpenDlgInfosStr); if(!(*ppshv = fodInfos->Shell.FOIShellView)) { return E_FAIL; } IShellView_AddRef(fodInfos->Shell.FOIShellView); return NOERROR; }