CoInternetCompareUrl function

Compares two URLs and determines if they are equal.

Syntax

HRESULT CoInternetCompareUrl(
  _In_ LPCWSTR pwzUrl1,
  _In_ LPCWSTR pwzUrl2,
  _In_ DWORD   dwCompareFlags
);

Parameters

  • pwzUrl1 [in]
    The address of a string value that contains the first URL.

  • pwzUrl2 [in]
    The address of a string value that contains the second URL.

  • dwCompareFlags [in]
    An unsigned long integer value that controls how the comparison should be done. This is set to TRUE to ignore slash marks, or FALSE otherwise.

Return value

Returns S_OK if equal, or S_FALSE otherwise.

Requirements

Minimum supported client

Windows XP

Minimum supported server

Windows 2000 Server

Product

Internet Explorer 4.0

Header

Urlmon.h

Library

Urlmon.lib

DLL

Urlmon.dll