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.

66 lines
2.2 KiB

  1. //////////////////////////////////////////////////////////////////////////////
  2. //
  3. // Copyright (c) 2000-2001 Microsoft Corporation
  4. //
  5. // Module Name:
  6. // QuorumDlg.h
  7. //
  8. // Maintained By:
  9. // David Potter (DavidP) 03-APR-2001
  10. //
  11. //////////////////////////////////////////////////////////////////////////////
  12. #pragma once
  13. #include "summarypage.h"
  14. #include <clusudef.h>
  15. //////////////////////////////////////////////////////////////////////////////
  16. //++
  17. //
  18. // class CQuorumDlg
  19. //
  20. // Description:
  21. // Display the Quorum dialog box.
  22. //
  23. //--
  24. //////////////////////////////////////////////////////////////////////////////
  25. class CQuorumDlg
  26. {
  27. private: // data
  28. HWND m_hwnd; // Our HWND
  29. CClusCfgWizard * m_pccw; // Wizard
  30. SStateArray * m_pssa; // The initial managed state of all the quorum capable resources.
  31. HWND m_hComboBox; // combo box handle
  32. IClusCfgManagedResourceInfo ** m_rgpResources; // quorum capable and joinable resources
  33. DWORD m_cValidResources; // number of items in m_rgpResources array
  34. DWORD m_idxQuorumResource; // resource to set as quorum on return
  35. bool m_fQuorumAlreadySet; // one of the resources was already marked on entry
  36. private: // methods
  37. CQuorumDlg(
  38. CClusCfgWizard * pccwIn
  39. , SStateArray * pssaOut
  40. );
  41. ~CQuorumDlg( void );
  42. static INT_PTR CALLBACK
  43. S_DlgProc( HWND hwndDlg, UINT nMsg, WPARAM wParam, LPARAM lParam );
  44. LRESULT OnInitDialog( void );
  45. LRESULT OnCommand( UINT idNotificationIn, UINT idControlIn, HWND hwndSenderIn );
  46. HRESULT HrCreateResourceList( void );
  47. void UpdateButtons( void );
  48. HRESULT HrInitQuorumResource( IClusCfgManagedResourceInfo * pResourceIn );
  49. HRESULT HrCleanupQuorumResource( IClusCfgManagedResourceInfo * pResourceIn );
  50. public: // methods
  51. static HRESULT
  52. S_HrDisplayModalDialog(
  53. HWND hwndParentIn
  54. , CClusCfgWizard * pccwIn
  55. , SStateArray * pssaOut
  56. );
  57. }; //*** class CQuorumDlg