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