就是下面的第5个参数……
HRESULT URLDownloadToFile(
LPUNKNOWN pCaller, // Caller's controlling IUnknown
LPCWSTR szURL, // Pointer to URL to be downloaded
LPCTSTR szFileName, // Pointer to file name
DWORD dwResv, // Reserved for future use
LPBINDSTATUSCALLBACK lpfnCB
// Caller's IBindStatusCallback
);
Parameters
pCaller
[in] Pointer to the caller's controlling IUnknown. If the caller is not an ActiveX component, this value may be set to NULL.
szURL
[out] Pointer to the URL to be downloaded. Cannot be NULL.
szFileName
[out] Pointer to the name of the file returned by this function. The user should pass a buffer to be filled and, preferably, use MAX_PATH to allocate the maximum path size.
dwResv
[in] Reserved for future use; must be zero.
lpfnCB
[in] Pointer to the caller's IBindStatusCallback interface. Can be NULL.
HRESULT URLDownloadToFile(
LPUNKNOWN pCaller, // Caller's controlling IUnknown
LPCWSTR szURL, // Pointer to URL to be downloaded
LPCTSTR szFileName, // Pointer to file name
DWORD dwResv, // Reserved for future use
LPBINDSTATUSCALLBACK lpfnCB
// Caller's IBindStatusCallback
);
Parameters
pCaller
[in] Pointer to the caller's controlling IUnknown. If the caller is not an ActiveX component, this value may be set to NULL.
szURL
[out] Pointer to the URL to be downloaded. Cannot be NULL.
szFileName
[out] Pointer to the name of the file returned by this function. The user should pass a buffer to be filled and, preferably, use MAX_PATH to allocate the maximum path size.
dwResv
[in] Reserved for future use; must be zero.
lpfnCB
[in] Pointer to the caller's IBindStatusCallback interface. Can be NULL.
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货