ISearchPersistentItemsChangedSink::StartedMonitoringScope method (searchapi.h)

Called by a notifications provider to notify the indexer to monitor changes to items within a specified hierarchical scope.

Syntax

HRESULT StartedMonitoringScope(
  [in] LPCWSTR pszURL
);

Parameters

[in] pszURL

Type: LPCWSTR

Pointer to a null-terminated Unicode string that is the start address for the scope to be monitored.

Return value

Type: HRESULT

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

Remarks

When notification loss occurs, a notification agent comes online and calls StartedMonitoringScope, which permits an index-managed notification source to add itself to a list of "monitored scopes". The indexer starts an incremental crawl of the corresponding document store. The indexer crawls these scopes incrementally until the extreme conditions that caused the loss of notifications are no longer present. This method ensures that any changes in the store that occur during a period of notification loss are detected.

Under normal circumstances, the list of monitored scopes is not used. Notification loss is rare, and usually occurs only when disk space is extremely low.

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
Redistributable Windows Desktop Search (WDS) 3.0