---
name: "URLDownloadToFileW"
section: "3w"
platform: "linux"
package: "libwine-dev"
version: "1.4.1-4"
release: "Debian 7 (Wheezy)"
platforms: ["linux"]
url: "https://new.carta.tech/URLDownloadToFileW"
---

# URLDownloadToFileW(3w)

## NAME

**URLDownloadToFileW** (URLMON.@)

## SYNOPSIS

HRESULT URLDownloadToFileW\
  (\
   LPUNKNOWN            *pCaller*,\
   LPCWSTR              *szURL*,\
   LPCWSTR              *szFileName*,\
   DWORD                *dwReserved*,\
   LPBINDSTATUSCALLBACK *lpfnCB*\
  )

## DESCRIPTION

Downloads Url *szURL* to file *szFileName* and call *lpfnCB* callback to report progress.

## PARAMS

*pCaller* **\[In\]**  controlling **IUnknown** interface.

*szURL* **\[In\]**  Url of the file to download.

*szFileName* **\[In\]**  file name to store the content of the **URL**.

*dwReserved* **\[In\]**  reserved **-** set to **0.**

*lpfnCB* **\[In\]**  callback for progress report.

## RETURNS

**S\_OK** on success

## IMPLEMENTATION

Declared in **"urlmon.h"**.

Implemented in **"dlls/urlmon/download.c"**.

Debug channel **"urlmon"**.
