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.

63 lines
1.9 KiB

  1. //////////////////////////////////////////////////////////////////////////////
  2. //
  3. // Copyright (c) 1999-2001 Microsoft Corporation
  4. //
  5. // Module Name:
  6. // EnumManageableResources.h
  7. //
  8. // Description:
  9. // CEnumManageableResources implementation.
  10. //
  11. // Maintained By:
  12. // Galen Barbee (GalenB) 17-FEB-2000
  13. //
  14. //////////////////////////////////////////////////////////////////////////////
  15. #pragma once
  16. // CEnumManageableResources
  17. class
  18. CEnumManageableResources:
  19. public IExtendObjectManager,
  20. public IEnumClusCfgManagedResources
  21. {
  22. private:
  23. // IUnknown
  24. LONG m_cRef; // Ref count
  25. // IEnumClusCfgManagedResources
  26. ULONG m_cAlloced; // Current allocated size of the list.
  27. ULONG m_cIter; // Our iter counter
  28. IClusCfgManagedResourceInfo ** m_pList; // List of interfaces
  29. private: // Methods
  30. CEnumManageableResources( );
  31. ~CEnumManageableResources();
  32. STDMETHOD( Init )( void );
  33. public: // Methods
  34. static HRESULT
  35. S_HrCreateInstance( IUnknown ** ppunkOut );
  36. // IUnknown
  37. STDMETHOD( QueryInterface )( REFIID riid, LPVOID *ppv );
  38. STDMETHOD_( ULONG, AddRef )( void );
  39. STDMETHOD_( ULONG, Release )( void );
  40. // IEnumClusCfgManagedResources
  41. STDMETHOD( Next )( ULONG celt, IClusCfgManagedResourceInfo * rgResourcesOut[], ULONG * pceltFetchedOut );
  42. STDMETHOD( Skip )( ULONG celt );
  43. STDMETHOD( Reset )( void );
  44. STDMETHOD( Clone )( IEnumClusCfgManagedResources ** ppenumOut );
  45. STDMETHOD( Count )( DWORD* pnCountOut );
  46. // IExtendObjectManager
  47. STDMETHOD( FindObject )(
  48. OBJECTCOOKIE cookieIn
  49. , REFCLSID rclsidTypeIn
  50. , LPCWSTR pcszNameIn
  51. , LPUNKNOWN * ppunkOut
  52. );
  53. }; // class CEnumManageableResources