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

# UrlCreateFromPathW(3w)

## NAME

**UrlCreateFromPathW** (SHLWAPI.@)

## SYNOPSIS

HRESULT UrlCreateFromPathW\
  (\
   LPCWSTR *pszPath*,\
   LPWSTR  *pszUrl*,\
   LPDWORD *pcchUrl*,\
   DWORD   *dwReserved*\
  )

## DESCRIPTION

Create a Url from a file path.

## PARAMS

*pszPath* **\[In\]**  Path to convert.

*pszUrl* **\[Out\]**  Destination for the converted Url.

*pcchUrl* **\[In/Out\]**  Length of *pszUrl*.

*dwReserved* **\[In\]**  Reserved, must be **0.**

## RETURNS

**Success:** **S\_OK** *pszUrl* contains the converted path, **S\_FALSE** if the path is already a Url

**Failure:** An **HRESULT** error code.

## IMPLEMENTATION

Declared in **"shlwapi.h"**.

Implemented in **"dlls/shlwapi/url.c"**.

Debug channel **"shell"**.
