CoInternetCombineUrlEx function
Combines a base URL and a relative URL into a full Uniform Resource Identifier (URI).
Syntax
HRESULT CoInternetCombineUrlEx( IUri *pBaseUri, LPCWSTR pwzRelativeUrl, DWORD dwCombineFlags, IUri **ppCombinedUri, _Reserved_ DWORD_PTR dwReserved );
Parameters
- pBaseUri
-
A pointer to an IUri interface containing the base URI.
- pwzRelativeUrl
-
A pointer to a string value containing the relative URL.
- dwCombineFlags
-
An unsigned long integer value that combines one or more of the following flags.
- ppCombinedUri
-
A pointer to an IUri interface that receives the newly created combined URI. The client must call Release on the returned pointer.
- dwReserved
-
Reserved. Must be set to 0.
Return value
Returns one of the following values.
| Return code | Description |
|---|---|
|
Success. |
|
URI syntax error in pwzRelativeUrl. |
|
There is insufficient memory to create the new IUri. |
Remarks
Use this function to combine an IUri and a relative URL stored as a Unicode string value. To combine two IUri objects, use the CoInternetCombineIUri function.
Requirements
|
Minimum supported client |
Windows XP with SP2 |
|---|---|
|
Minimum supported server |
Windows Server 2003 with SP1 |
|
Product |
Internet Explorer 7 |
|
Header |
|
|
Library |
|
|
DLL |
|