UrlEscapeSpaces macro (shlwapi.h)
A macro that converts space characters into their corresponding escape sequence.
Syntax
void UrlEscapeSpaces(
[in] pszUrl,
[out] pszEscaped,
[out] pcchEscaped
);
Parameters
[in] pszUrl
Type: LPCTSTR
A pointer to a URL string. If it does not refer to a file, it must include a valid scheme such as "http://".
[out] pszEscaped
Type: LPTSTR
A pointer to a null-terminated string containing the string pointed to by pszURL, with space characters converted to their escape sequence.
[out] pcchEscaped
Type: LPDWORD
The number of characters in pszEscaped.
Return value
None
Remarks
UrlEscapeSpaces is equivalent to the following:
UrlCanonicalize(pszUrl,
pszEscaped,
pcchEscaped,
URL_ESCAPE_SPACES_ONLY | URL_DONT_ESCAPE_EXTRA_INFO )
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 2000 Professional, Windows XP [desktop apps only] |
Minimum supported server | Windows 2000 Server [desktop apps only] |
Target Platform | Windows |
Header | shlwapi.h |
Library | Shlwapi.lib |
DLL | Shlwapi.dll (version 5.0 or later) |