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.

73 lines
2.1 KiB

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1992 - 1993.
  5. //
  6. // File: FATQuery.hxx
  7. //
  8. // Contents: IInternalQuery interface
  9. //
  10. // History: 18-Jun-93 KyleP Created
  11. //
  12. //--------------------------------------------------------------------------
  13. #pragma once
  14. #include <rowset.hxx>
  15. #include <queryunk.hxx>
  16. #include <oldquery.hxx>
  17. //+-------------------------------------------------------------------------
  18. //
  19. // Class: CGenericQuery
  20. //
  21. // Purpose: IInternalQuery interface for FAT
  22. //
  23. // History: 18-Jun-93 KyleP Created
  24. //
  25. //--------------------------------------------------------------------------
  26. class CGenericQuery : public PIInternalQuery
  27. {
  28. public:
  29. //
  30. // IUnknown methods.
  31. //
  32. STDMETHOD(QueryInterface) (THIS_ REFIID riid, void ** ppvObj);
  33. STDMETHOD_(ULONG,AddRef) (THIS);
  34. STDMETHOD_(ULONG,Release) (THIS);
  35. // PIInternalQuery method
  36. void Execute (IUnknown * pUnkOuter,
  37. RESTRICTION * pRestriction,
  38. CPidMapperWithNames & PidMap,
  39. CColumnSet & rColumns,
  40. CSortSet & rSort,
  41. XPtr<CMRowsetProps> & xRstProps,
  42. CCategorizationSet & rCategorize,
  43. ULONG cRowsets,
  44. IUnknown ** ppUnknowns,
  45. CAccessorBag & aAccessors,
  46. IUnknown * pCreatorUnk=0);
  47. BOOL IsQueryActive( ) { return _QueryUnknown.IsQueryActive(); }
  48. //
  49. // Local methods
  50. //
  51. CGenericQuery( IDBProperties * pDbProperties );
  52. CGenericQuery( IDBProperties * pDbProperties, ICiCDocStore *pDocStore );
  53. private:
  54. ~CGenericQuery();
  55. CQueryUnknown _QueryUnknown; // For reference tracking of rowsets
  56. XInterface<IDBProperties> _xDbProperties; // Query properties, such as scope
  57. XInterface<ICiCDocStore> _xDocStore; // Document store for this query
  58. };