|
Posted by Ivaylo Bakalov on March 20, 2006, 2:38 pm
Please log in for more thread options Hello Martin,
I wish the WDS documentation was more helpful. Try the following registry
entries:
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Shell
Extensions\Approved]
"{Your ClSID}"="Windows Desktop Search Outlook Express ISearchFolder Class"
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Desktop\NameSpace\{Your
ClSID}]
@="Your PH Name"
[HKEY_CLASSES_ROOT\CLSID\{Your ClSID}\ShellFolder]
"Attributes"=dword:20180000
You should also implement IShellFolder on the Protocol object.
Check MSDN documentation on the topic of "Implementing the Basic Folder Object
Interfaces":
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/shell/programmersguide/shell_adv/namespaceextension/nse_impl.asp
Ivaylo
> Hello Ivaylo,
>
> Thanks for your very helpful reply!
>
> Meanwhile I have a working object implementing both
> ISearchProtocolOptions and ISearchProtocol. After registering it gets
> instanced by WDS and I can call AddDefaultUrl The Url gets added and
> is visible under "WDS Options" (Browse...).
>
> But neither ISearchProtocol_Init nor ISearchProtocol_CreateAccessor
> get called. How does it continue? My IUrlAccessor object is
> implemented in a different class.
>
> Please give me a tip.
>
> Thanks a lot.
>
> Martin
>
> "Ivaylo Bakalov" wrote:
>
>> Hello Martin,
>>
>> You will have to implement ISearchProtocolOptions along with
>> ISearchProtocol.
>>
>> WDS is supposed to call your
>> ISearchProtocolOptions::GetDefaultCrawlScope implementation passing
>> pointer to ISearchCrawlScopeManager.
>>
>> Good luck.
>>
>> Ivaylo
>>
>>> Hello,
>>>
>>> I am triyng to implement a WDS protocol handler according
>>> http://addins.msn.com/devguide.aspx
>>>
>>> The document says:
>>> "After the protocol handler is registered, use the AddDefaultUrl
>>> method in
>>> the ISearchCrawlScopeManager interface to set default crawling rules
>>> to
>>> include and exclude particular URLs and child URLsThe method is as
>>> follows:
>>> HRESULT AddDefaultUrl(LPCWSTR pszUrl, BOOL fInclude);"
>>> How do I get a reference to a SearchCrawlScopeManager object to call
>>> this method? It is not instancable? Do I need to implement it?
>>>
>>> Thanks for any advise!
>>>
>>> Martin
>>>
|