The CombineURL method combines a base and relative URL into a single URL. This method exposes the wininet InternetCombineUrl Function.
Syntax
CombineURL(baseURL, relativeURL, flags, combineResult)
Parameters
0 if the function succeeds. Otherwise:
ERROR_BAD_PATHNAME (161L) The URLs could not be combined.
ERROR_INSUFFICIENT_BUFFER (122L) The buffer supplied to the function was insufficient or NULL.
ERROR_INTERNET_INVALID_URL (12005), The format of the URL is invalid.
ERROR_INVALID_PARAMETER (87L) There is a bad string, buffer, buffer size, or flags parameter.
Applies To