Source code of Windows XP (NT5)
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.

69 lines
1.5 KiB

  1. //+---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1991 - 1997.
  5. //
  6. // File: WrapIter.hxx
  7. //
  8. // Contents: Wrapper for iterator for property store.
  9. //
  10. // Classes: CPropertyIterWrapper
  11. //
  12. // History: 08-Apr-97 KrishnaN Created.
  13. // 22-Oct-97 KrishnaN Modified to work with propstoremgr.
  14. //
  15. //----------------------------------------------------------------------------
  16. #pragma once
  17. #include <propstor.hxx>
  18. #include <borrow.hxx>
  19. #include <propiter.hxx>
  20. #include <wrapstor.hxx>
  21. #include <fsciexps.hxx>
  22. class CPropertyStoreWrapper;
  23. //+-------------------------------------------------------------------------
  24. //
  25. // Class: CPropertyIterWrapper
  26. //
  27. // Purpose: Iterates through in-use wids.
  28. //
  29. // History: 08-Apr-97 KrishnaN Created.
  30. //
  31. //--------------------------------------------------------------------------
  32. class CPropertyIterWrapper : INHERIT_VIRTUAL_UNWIND,
  33. public PPropertyStoreIter
  34. {
  35. INLINE_UNWIND( CPropertyIterWrapper )
  36. public:
  37. CPropertyIterWrapper( CPropStoreManager & propstoremgr );
  38. ~CPropertyIterWrapper();
  39. //
  40. // Refcounting
  41. //
  42. ULONG AddRef();
  43. ULONG Release();
  44. //
  45. // Iteration
  46. //
  47. SCODE GetWorkId(WORKID &wid);
  48. SCODE GetNextWorkId(WORKID &wid);
  49. private:
  50. CPropertyStoreWids * _pPropStoreWids;
  51. LONG _lRefCount;
  52. };