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.

79 lines
2.1 KiB

  1. //////////////////////////////////////////////////////////////////////////////
  2. //
  3. // Copyright (c) 2000 Microsoft Corporation
  4. //
  5. // Module Name:
  6. // CClusterUtils.h
  7. //
  8. // Description:
  9. // This file contains the declaration of the CClusterUtils class.
  10. //
  11. // Documentation:
  12. //
  13. // Implementation Files:
  14. // CClusterUtils.cpp
  15. //
  16. // Maintained By:
  17. // Galen Barbee (GalenB) 14-JUN-2000
  18. //
  19. //////////////////////////////////////////////////////////////////////////////
  20. // Make sure that this file is included only once per compile path.
  21. #pragma once
  22. //////////////////////////////////////////////////////////////////////////////
  23. // Include Files
  24. //////////////////////////////////////////////////////////////////////////////
  25. //////////////////////////////////////////////////////////////////////////////
  26. // Constant Declarations
  27. //////////////////////////////////////////////////////////////////////////////
  28. //////////////////////////////////////////////////////////////////////////////
  29. //++
  30. //
  31. // class CClusterUtils
  32. //
  33. // Description:
  34. // The class CClusterUtils are cluster utilities.
  35. //
  36. // Interfaces:
  37. //
  38. //--
  39. //////////////////////////////////////////////////////////////////////////////
  40. class CClusterUtils
  41. {
  42. private:
  43. //
  44. // Private member functions and data
  45. //
  46. // Private copy constructor to prevent copying.
  47. CClusterUtils( const CClusterUtils & nodeSrc );
  48. // Private assignment operator to prevent copying.
  49. const CClusterUtils & operator = ( const CClusterUtils & nodeSrc );
  50. protected:
  51. // constructors and destructors
  52. CClusterUtils( void );
  53. ~CClusterUtils( void );
  54. public:
  55. HRESULT HrIsGroupOwnedByThisNode( HGROUP hGroupIn, BSTR bstrNodeNameIn );
  56. HRESULT HrIsNodeClustered( void );
  57. HRESULT HrEnumNodeResources( BSTR bstrNodeNameIn );
  58. HRESULT HrLoadGroupResources( HCLUSTER hClusterIn, HGROUP hGroupIn );
  59. HRESULT HrGetQuorumResourceName( BSTR * pbstrQuorumResourceNameOut );
  60. virtual HRESULT HrNodeResourceCallback( HCLUSTER hClusterIn, HRESOURCE hResourceIn ) = 0;
  61. }; //*** Class CClusterUtils