Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

59 lines
1.6 KiB

  1. /******************************************************************************
  2. Copyright (c) 2001 Microsoft Corporation
  3. Module Name:
  4. PCHSEWrap.h
  5. Abstract:
  6. Declaration of SearchEngine::WrapperKeyword
  7. Revision History:
  8. Davide Massarenti (dmassare) 06/01/2001
  9. created
  10. ******************************************************************************/
  11. #ifndef __PCHSEWRAP_H_
  12. #define __PCHSEWRAP_H_
  13. #include <SearchEngineLib.h>
  14. namespace SearchEngine
  15. {
  16. class ATL_NO_VTABLE WrapperKeyword : public WrapperBase, public MPC::Thread<WrapperKeyword,IUnknown>
  17. {
  18. CPCHQueryResultCollection* m_Results;
  19. CComVariant m_vKeywords;
  20. ////////////////////////////////////////
  21. HRESULT ExecQuery();
  22. public:
  23. BEGIN_COM_MAP(WrapperKeyword)
  24. COM_INTERFACE_ENTRY2(IDispatch,IPCHSEWrapperItem)
  25. COM_INTERFACE_ENTRY(IPCHSEWrapperItem)
  26. COM_INTERFACE_ENTRY(IPCHSEWrapperInternal)
  27. END_COM_MAP()
  28. WrapperKeyword();
  29. virtual ~WrapperKeyword();
  30. virtual HRESULT GetParamDefinition( /*[out]*/ const ParamItem_Definition*& lst, /*[out]*/ int& len );
  31. // IPCHSEWrapperItem
  32. public:
  33. STDMETHOD(get_SearchTerms)( /*[out, retval]*/ VARIANT *pVal );
  34. STDMETHOD(Result)( /*[in]*/ long lStart, /*[in]*/ long lEnd, /*[out, retval]*/ IPCHCollection* *ppC );
  35. // IPCHSEWrapperInternal
  36. public:
  37. STDMETHOD(ExecAsyncQuery)();
  38. STDMETHOD(AbortQuery )();
  39. };
  40. };
  41. #endif //__PCHSEWRAP_H_