CombineUrl method

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

Syntax

HRESULT retVal = object.CombineUrl(pwzBaseUrl, pwzRelativeUrl, dwCombineFlags, pwzResult, cchResult, pcchResult, dwReserved);

Parameters

pwzBaseUrl [in]

Type: LPCWSTR

A string value containing the base URL.

pwzRelativeUrl [in]

Type: LPCWSTR

A string value containing the relative URL.

dwCombineFlags [in]

Type: DWORD

An unsigned long integer value that controls the combining process. Can be a combination of the following values.

ICU_BROWSER_MODE (0x02000000)

ICU_DECODE (0x10000000)

ICU_ENCODE_PERCENT (0x00001000)

ICU_ENCODE_SPACES_ONLY (0x04000000)

ICU_NO_ENCODE (0x20000000)

ICU_NO_META (0x08000000)

pwzResult [out]

Type: LPWSTR

A tring variable where the full URL is stored.

cchResult [in]

Type: DWORD

An unsigned long integer value that contains the size of the buffer.

pcchResult [out]

Type: DWORD

A pointer to an unsigned long integer value to store the size of the information that is stored in the buffer.

dwReserved [in]

Type: DWORD

Reserved. Must be set to 0.

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