Reference

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".

History