ISearchCrawlScopeManager::AddDefaultScopeRule Method
Adds a URL as the default scope for this rule.
Syntax
HRESULT AddDefaultScopeRule( LPCWSTR pszUrl, BOOL fInclude, DWORD fFollowFlags );
Parameters
- pszUrl
[in] Pointer to a null-terminated, Unicode buffer that contains the URL to use as a default scope.- fInclude
[in] TRUE if pszUrl should be included in indexing; FALSE if it should be excluded.- fFollowFlags
[in] Sets the FOLLOW_FLAGS to specify whether to follow complex URLs and whether a URL is to be indexed or just followed.
Return Value
Returns S_OK if successful, or an error value otherwise.
Remarks
Default scope rules provide an initial set of scope rules. User scope rules always take precedence over default scope rules, unless user-defined rules are reverted in which case the default scope rules are reinstated.
Windows 7 and later: the CrawlScopeCommandLine code sample, available on Code Gallery and the Windows 7 SDK, demonstrates how to define command line options for Crawl Scope Manager (CSM) indexing operations.