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

  1. //////////////////////////////////////////////////////////////////////////////
  2. //
  3. // Copyright (c) 2000-2001 Microsoft Corporation
  4. //
  5. // Module Name:
  6. // SummaryPage.h
  7. //
  8. // Maintained By:
  9. // David Potter (DavidP) 22-MAR-2001
  10. // Geoffrey Pease (GPease) 06-JUL-2000
  11. //
  12. //////////////////////////////////////////////////////////////////////////////
  13. #pragma once
  14. struct SResourceState
  15. {
  16. BOOL fState; // The initial state of the resource.
  17. BOOL fNeedCleanup; // Was PrepareToHostQuorum() successfully called? If so then we need to call cleanup;
  18. };
  19. struct SStateArray
  20. {
  21. BOOL bInitialized; // Has the array been initialized.
  22. DWORD cCount; // How big is the array.
  23. SResourceState * prsArray; // The initial states of the resources.
  24. };
  25. //////////////////////////////////////////////////////////////////////////////
  26. //++
  27. //
  28. // class CSummaryPage
  29. //
  30. // Description:
  31. // Display the Summary page.
  32. //
  33. //--
  34. //////////////////////////////////////////////////////////////////////////////
  35. class CSummaryPage
  36. {
  37. private: // data
  38. HWND m_hwnd; // Our HWND
  39. CClusCfgWizard * m_pccw; // Wizard
  40. ECreateAddMode m_ecamCreateAddMode;// Creating? Adding?
  41. UINT m_idsNext; // Resource ID for Click Next string.
  42. SStateArray m_ssa; // Initial managed state of each resource.
  43. private: // methods
  44. LRESULT OnInitDialog( void );
  45. LRESULT OnNotifyQueryCancel( void );
  46. LRESULT OnNotify( WPARAM idCtrlIn, LPNMHDR pnmhdrIn );
  47. LRESULT OnNotifySetActive( void );
  48. LRESULT OnCommand( UINT idNotificationIn, UINT idControlIn, HWND hwndSenderIn );
  49. HRESULT HrFormatNetworkInfo( IClusCfgNetworkInfo * pccniIn, BSTR * pbstrOut );
  50. HRESULT HrCredentialsSummary( HWND hwndIn, SETTEXTEX * pstexIn, IClusCfgClusterInfo * piccciIn );
  51. HRESULT HrNodeSummary( HWND hwndIn, SETTEXTEX * pstexIn );
  52. HRESULT HrResourceSummary( HWND hwndIn, SETTEXTEX * pstexIn );
  53. HRESULT HrNetworkSummary( HWND hwndIn, SETTEXTEX * pstexIn );
  54. public: // methods
  55. CSummaryPage(
  56. CClusCfgWizard * pccwIn
  57. , ECreateAddMode ecamCreateAddModeIn
  58. , UINT idsNextIn
  59. );
  60. virtual ~CSummaryPage( void );
  61. static INT_PTR CALLBACK
  62. S_DlgProc( HWND hwndDlg, UINT nMsg, WPARAM wParam, LPARAM lParam );
  63. }; //*** class CSummaryPage