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
1.8 KiB

  1. //+---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1991 - 1992.
  5. //
  6. // File: PropIter.hxx
  7. //
  8. // Contents: Iterator for property store.
  9. //
  10. // Classes: CPropertyStoreWids
  11. //
  12. // History: 27-Dec-19 KyleP Created
  13. //
  14. //----------------------------------------------------------------------------
  15. #pragma once
  16. #include <propstor.hxx>
  17. #include <borrow.hxx>
  18. //+-------------------------------------------------------------------------
  19. //
  20. // Class: CPropertyStoreWids
  21. //
  22. // Purpose: Iterates through in-use wids.
  23. //
  24. // History: 04-Jan-96 KyleP Created
  25. //
  26. //--------------------------------------------------------------------------
  27. class CPropertyStoreWids : INHERIT_UNWIND
  28. {
  29. INLINE_UNWIND( CPropertyStoreWids )
  30. public:
  31. CPropertyStoreWids( CPropStoreManager & propstoremgr );
  32. CPropertyStoreWids( CPropertyStore & propstore );
  33. ~CPropertyStoreWids();
  34. //
  35. // Iteration
  36. //
  37. inline WORKID WorkId();
  38. WORKID NextWorkId();
  39. WORKID LokNextWorkId();
  40. private:
  41. void Init(CPropertyStore& propstore);
  42. WORKID _wid;
  43. CBorrowed _Borrowed;
  44. CPropertyStore & _propstore;
  45. ULONG _cRecPerPage;
  46. };
  47. //+---------------------------------------------------------------------------
  48. //
  49. // Member: CPropertyStoreWids::WorkId, public
  50. //
  51. // Returns: Current workid, or widInvalid if at end.
  52. //
  53. // History: 04-Jan-96 KyleP Created.
  54. //
  55. //----------------------------------------------------------------------------
  56. inline WORKID CPropertyStoreWids::WorkId()
  57. {
  58. return _wid;
  59. }