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.

74 lines
2.2 KiB

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1992 - 1998.
  5. //
  6. // File: OldQuery.hxx
  7. //
  8. // Contents: PIInternalQuery interface wrapper
  9. //
  10. // History: 26 Nov 1995 AlanW Created
  11. //
  12. //--------------------------------------------------------------------------
  13. #pragma once
  14. #include <accbase.hxx>
  15. #include <cidbprop.hxx>
  16. #include <cmdprutl.hxx>
  17. class CPidMapperWithNames;
  18. class CRowsetProperties;
  19. class CMRowsetProps;
  20. //+-------------------------------------------------------------------------
  21. //
  22. // Class: PIInternalQuery
  23. //
  24. // Purpose: Internal query object wrapper
  25. //
  26. // History: 26 Nov 1995 AlanW Created
  27. //
  28. //--------------------------------------------------------------------------
  29. class PIInternalQuery : public IUnknown
  30. {
  31. public:
  32. virtual void Execute (IUnknown * pUnkOuter,
  33. RESTRICTION * pRestriction,
  34. CPidMapperWithNames & PidMap,
  35. CColumnSet & rColumns,
  36. CSortSet & rSort,
  37. XPtr<CMRowsetProps> & xRstProps,
  38. CCategorizationSet & rCategorize,
  39. ULONG cRowsets,
  40. IUnknown ** ppUnknowns,
  41. CAccessorBag & aAccessors,
  42. IUnknown * pUnkCreator ) = 0;
  43. virtual BOOL IsQueryActive ( void ) = 0;
  44. PIInternalQuery( unsigned uRef) :
  45. _ref( uRef ) { }
  46. protected:
  47. ~PIInternalQuery() {}
  48. ULONG _ref;
  49. };
  50. SCODE EvalMetadataQuery( PIInternalQuery ** ppQuery,
  51. CiMetaData eType,
  52. WCHAR const * wcsCat,
  53. WCHAR const * wcsMachine );
  54. SCODE EvalQuery( PIInternalQuery ** ppQuery,
  55. CDbProperties & idbProps,
  56. ICiCDocStore * pDocStore = 0 );
  57. SCODE EvalDistributedQuery( PIInternalQuery ** ppQuery,
  58. CGetCmdProps & getCmdProps );