Share via


IsSearchProviderInstalled method

Warning  This method has been deprecated since Internet Explorer 8 and removed from Windows 10.

 

Deprecated. Determines if a search provider has been installed for the current user and whether it is set as default.

This method is not supported for Windows apps using JavaScript.

Syntax

DWORD retVal = object.IsSearchProviderInstalled(URL);

Parameters

  • URL [in]
    Type: BSTR

    String that specifies a prefix to the URL for the search provider.

Standards information

There are no standards that apply here.

Remarks

As of Internet Explorer 10, this method will only return "2".

IShellUIHelper2::IsSearchProviderInstalled was introduced in Windows Internet Explorer 7.

This method indicates whether a specific search provider is installed and is the default search provider for the current user. To determine if a search provider is installed, IsSearchProviderInstalled compares the value of the URL parameter to the list of installed search providers. If any search provider starts with the parameter value, the method indicates a match.

Sites are only allowed to search for providers on the same domain. For example, images.example.com may search for http://search.example.com; however, it cannot search for providers on microsoft.com or other domain names. Searching for providers on different domains generates access denied errors.

See also

Reference

IopenService

IShellUIHelper2::AddSearchProvider

Conceptual

Search Provider Extensibility in Internet Explorer