Windows 7 Federated Search - How to make it send search requests to my .net assembly

安稳与你 提交于 2019-12-03 08:25:52

This project appears to accomplish this in C#: http://mossph.codeplex.com/

The project implements ISearchProtocol using IContentEnumerator, IFilter and IUrlAccessor. Everything propogates from an implement of a ContentEnumerator class.

The info on MSDN has been updated.
http://msdn.microsoft.com/en-us/library/dd378288%28v=vs.85%29.aspx

It now lists:

HRESULT GetResults(
  [in]   HWND hwnd,
  [in]   LPCWSTR pszQuery,
  [in]   DWORD dwStartIndex,
  [in]   DWORD dwCount,
  [in]   REFIID riid,
  [out]  void **ppv
);

Parameters

hwnd [in]

Type: HWND
The window handle of the caller.

pszQuery [in]

Type: LPCWSTR
The query as entered by the user. This parameter is equivalent to the OpenSearch {searchTerms} parameter and may be empty.

dwStartIndex [in]

Type: DWORD
The index of the first result being requested. Equivalent to the OpenSearch {startIndex} parameter. See Remarks below.

dwCount [in]

Type: DWORD
The number of results being requested. Equivalent to the OpenSearch {count} parameter.

riid [in]

Type: REFIID
The IID of the interface being requested. Typically IID_IStream.

ppv [out]

Type: void** An interface pointer, of type specified by RIID, to the object containing the results in Atom or RSS format.

At least we know that a valid riid is IID_IStream

The info for that is here: http://msdn.microsoft.com/en-us/library/windows/desktop/aa380034%28v=vs.85%29.aspx

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!