Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

IInternetProtocolInfo::CombineUrl Method

Combines a base URL and relative URL into a full URL.

Syntax


HRESULT CombineUrl(
    LPCWSTR pwzBaseUrl,
    LPCWSTR pwzRelativeUrl,
    DWORD dwCombineFlags,
    LPWSTR pwzResult,
    DWORD cchResult,
    DWORD *pcchResult,
    DWORD dwReserved
);

Parameters

pwzBaseUrl
[in] A string value containing the base URL.
pwzRelativeUrl
[in] A string value containing the relative URL.
dwCombineFlags
[in] An unsigned long integer value that controls the combining process. Can be a combination of the following values.
ICU_BROWSER_MODE
ICU_DECODE
ICU_ENCODE_PERCENT
ICU_ENCODE_SPACES_ONLY
ICU_NO_ENCODE
ICU_NO_META
pwzResult
[out] A tring variable where the full URL is stored.
cchResult
[in] An unsigned long integer value that contains the size of the buffer.
pcchResult
[out] A pointer to an unsigned long integer value to store the size of the information that is stored in the buffer.
dwReserved
[in] Reserved. Must be set to 0.

Return Value

Can return one of the following values.

S_OK Success.
S_FALSE The buffer is too small to contain the resulting URL.
INET_E_DEFAULT_ACTION Use the default action.

Remarks

For more information on the dwCombineFlags values, see the Microsoft Win32 Internet (WinInet)  InternetCombineUrl function.

This method can return INET_E_DEFAULT_ACTION to cause callers (such as CoInternetCombineUrl) to use a standard method of combining the URLs, if possible.

See Also

CoInternetCombineUrl
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.