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.

60 lines
1.1 KiB

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1992 - 1997.
  5. //
  6. // File: qresult.hxx
  7. //
  8. // Contents: Storage/picklers for results of a query
  9. //
  10. //--------------------------------------------------------------------------
  11. #pragma once
  12. class CRestriction;
  13. class PSerStream;
  14. class PDeSerStream;
  15. class CQueryResults
  16. {
  17. public:
  18. CQueryResults();
  19. CQueryResults( PDeSerStream& stream );
  20. ~CQueryResults();
  21. void Serialize( PSerStream & stream ) const;
  22. ULONG Size();
  23. unsigned Count() {
  24. return _cWid;
  25. }
  26. WCHAR * Path ( unsigned i ) {
  27. return _aPath[i];
  28. }
  29. ULONG Rank(unsigned i) {
  30. return _aRank[i];
  31. }
  32. void Add ( WCHAR *wszPath, ULONG uRank );
  33. void SetNotOwnPRst( CRestriction * pRstNew ) {
  34. pRst = pRstNew;
  35. _fNotOwnPRst = TRUE;
  36. }
  37. CRestriction* pRst; // The restriction
  38. private:
  39. ULONG _size;
  40. ULONG _cWid;
  41. ULONG* _aRank;
  42. WCHAR ** _aPath;
  43. BOOL _fNotOwnPRst;
  44. };