|
|
|
date: Mon, 7 Jul 2008 20:58:44 -0700,
group: microsoft.public.inetsdk.programming.webbrowser_ctl
back
DISPID_FILEDOWNLOAD url of file that is about to be downloaded
Hi,
BHO programming: how go I get the full URL of the file being downloaded?
get_LocationURL gets the address bar URL as it should, but I need the URL of
the resource that is about to be downloaded. See code below
TECH
//=======================
STDMETHODIMP CMytestClass::Invoke(DISPID dispidMember, REFIID riid, LCID
lcid, WORD wFlags, DISPPARAMS *pDispParams, VARIANT *pvarResult, EXCEPINFO
*pExcepInfo, UINT *puArgErr)
{
HRESULT hr = S_OK;
BSTR bstrUrlName;
BSTR bstrDownloadFileName;
// check if downloads are blocked
if(dispidMember == DISPID_FILEDOWNLOAD)
{
BSTR bstrUrlName;
HRESULT hr = m_spWebBrowser2->get_LocationURL(&bstrUrlName);
bstrDownloadFileName ???
date: Mon, 7 Jul 2008 20:58:44 -0700
author: Tech
|
|