ISearchRoot::get_RootURL method (searchapi.h)

Gets the URL of the starting point for this search root.

Syntax

HRESULT get_RootURL(
  [out, retval] LPWSTR *ppszURL
);

Parameters

[out, retval] ppszURL

Type: LPWSTR*

A null-terminated, Unicode buffer that contains the URL.

Return value

Type: HRESULT

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Remarks

Use CoTaskMemFree to free the memory from the returned string.

Windows 7 and later: Check out the CrawlScopeCommandLine code sample to see how to define command line options for Crawl Scope Manager (CSM) indexing operations.

Requirements

Requirement Value
Minimum supported client Windows XP with SP2, Windows Vista [desktop apps only]
Minimum supported server Windows Server 2003 [desktop apps only]
Target Platform Windows
Header searchapi.h