ISearchManager::get_UserAgent Method

Retrieves the user agent string.

Syntax

HRESULT get_UserAgent(      
    LPWSTR *ppszUserAgent
);

Parameters

  • ppszUserAgent
    [out, retval]  Receives the address of a pointer to the user agent string.

Return Value

Returns S_OK if successful, or an error value otherwise.

Remarks

The ReindexMatchingUrls code sample, available on Code Gallery and the Windows 7 SDK, demonstrates ways to specify which files to re-index and how.