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

# UrlUnescapeA(3w)

## NAME

**UrlUnescapeA** (SHLWAPI.@)

## SYNOPSIS

HRESULT UrlUnescapeA\
  (\
   LPSTR   *pszUrl*,\
   LPSTR   *pszUnescaped*,\
   LPDWORD *pcchUnescaped*,\
   DWORD   *dwFlags*\
  )

## DESCRIPTION

Converts Url escape sequences back to ordinary characters.

## PARAMS

*pszUrl* **\[In/Out\]**  Url to convert.

*pszUnescaped* **\[Out\]**  Destination for converted Url.

*pcchUnescaped* **\[In/Out\]**  Size of output string.

*dwFlags* **\[In\]**  **URL\_ESCAPE\_** Flags from **"shlwapi.h"**.

## RETURNS

**Success:** **S\_OK**. The converted value is in *pszUnescaped*, or in *pszUrl* if *dwFlags* includes **URL\_ESCAPE\_INPLACE**.

**Failure:** **E\_POINTER** if the converted Url is bigger than *pcchUnescaped*. In this case *pcchUnescaped* is set to the size required.

## NOTES

If *dwFlags* includes **URL\_DONT\_ESCAPE\_EXTRA\_INFO**, the conversion stops at the first occurrence of either a **'?'** or **'#'** character.

## IMPLEMENTATION

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

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

Debug channel **"shell"**.
