Export (0) Print
Expand All

Download method

Called by Windows Internet Explorer and WebBrowser applications to download a file.

Syntax


HRESULT retVal = object.Download(pmk, pbc, dwBindVerb, grfBINDF, pBindInfo, pszHeaders, pszRedir, uiCP);

Parameters

pmk [in]

Type: IMoniker

A pointer to an IMoniker interface that specifies the object to be downloaded.

pbc [in]

Type: IBindCtx

A pointer to an IBindCtx interface that specifies information used by the moniker in the bind process.

dwBindVerb [in]

Type: DWORD

A value of type DWORD that specifies the action to be performed during the bind process.

grfBINDF [in]

Type: LONG

A value of type LONG that specifies a combination of values taken from the BINDF enumeration indicating how the bind process is handled.

pBindInfo [in]

Type: BINDINFO

A pointer to a variable of type BINDINFO that specifies the client application's requirements for binding.

pszHeaders [in]

Type: LPCOLESTR

A value of type LPCOLESTR that specifies additional headers to use with IHttpNegotiate.

pszRedir [in]

Type: LPCOLESTR

A value of type LPCOLESTR that specifies the URL that the moniker is redirected to.

uiCP [in]

Type: UINT

A value of type UINT that specifies the code page of the object's display name.

Return value

Type: HRESULT

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Remarks

Implement this method to provide a custom user interface for file downloads in Internet Explorer or a WebBrowser application.

URL Moniker functions can be used to download a resource.

See also

Reference
IDownloadManager
Conceptual
Implementing a Custom Download Manager

 

 

Community Additions

ADD
Show:
© 2014 Microsoft