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.

99 lines
2.7 KiB

  1. //////////////////////////////////////////////////////////////////////////////
  2. //
  3. // Copyright (c) 2000 Microsoft Corporation
  4. //
  5. // Module Name:
  6. // CClusNetCreate.h
  7. //
  8. // Description:
  9. // Header file for CClusNetCreate class.
  10. //
  11. // The CClusNetCreate class creates and configures the ClusNet service.
  12. // This class can be used during both form and join operations.
  13. //
  14. // Implementation Files:
  15. // CClusNetCreate.cpp
  16. //
  17. // Maintained By:
  18. // Vij Vasu (Vvasu) 03-MAR-2000
  19. //
  20. //////////////////////////////////////////////////////////////////////////////
  21. // Make sure that this file is included only once per compile path.
  22. #pragma once
  23. //////////////////////////////////////////////////////////////////////////
  24. // Include Files
  25. //////////////////////////////////////////////////////////////////////////
  26. // For the CClusNet base class
  27. #include "CClusNet.h"
  28. //////////////////////////////////////////////////////////////////////////
  29. // Forward declaration
  30. //////////////////////////////////////////////////////////////////////////
  31. class CBaseClusterAddNode;
  32. //////////////////////////////////////////////////////////////////////////////
  33. //++
  34. //
  35. // class CClusNetCreate
  36. //
  37. // Description:
  38. // The CClusNetCreate class performs operations that are common to many
  39. // configuration tasks.
  40. //
  41. // This class is intended to be used as the base class for other ClusNet
  42. // related action classes.
  43. //
  44. //--
  45. //////////////////////////////////////////////////////////////////////////////
  46. class CClusNetCreate : public CClusNet
  47. {
  48. public:
  49. //////////////////////////////////////////////////////////////////////////
  50. // Public constructors and destructors
  51. //////////////////////////////////////////////////////////////////////////
  52. // Constructor.
  53. CClusNetCreate(
  54. CBaseClusterAddNode * pbcanParentActionIn
  55. );
  56. // Default destructor.
  57. ~CClusNetCreate();
  58. //////////////////////////////////////////////////////////////////////////
  59. // Public methods
  60. //////////////////////////////////////////////////////////////////////////
  61. // Create the ClusNet service.
  62. void Commit();
  63. // Rollback this creation.
  64. void Rollback();
  65. // Returns the number of progress messages that this action will send.
  66. UINT
  67. UiGetMaxProgressTicks() const throw()
  68. {
  69. // Two notifications are sent:
  70. // 1. When the service is created.
  71. // 2. When the service starts.
  72. return 2;
  73. }
  74. private:
  75. //////////////////////////////////////////////////////////////////////////
  76. // Private types
  77. //////////////////////////////////////////////////////////////////////////
  78. typedef CClusNet BaseClass;
  79. }; //*** class CClusNetCreate