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.

72 lines
2.2 KiB

  1. //////////////////////////////////////////////////////////////////////////////
  2. //
  3. // Copyright (c) 2000-2001 Microsoft Corporation
  4. //
  5. // Module Name:
  6. // ClusDomainPage.h
  7. //
  8. // Maintained By:
  9. // David Potter (DavidP) 21-MAR-2001
  10. // Geoffrey Pease (GPease) 12-MAY-2000
  11. //
  12. //////////////////////////////////////////////////////////////////////////////
  13. #pragma once
  14. class CClusDomainPage
  15. : public ITaskGetDomainsCallback
  16. {
  17. friend class CClusCfgWizard;
  18. private: // data
  19. HWND m_hwnd; // Our HWND
  20. IServiceProvider * m_psp; // Service Manager
  21. BSTR * m_pbstrClusterName; // Cluster Name buffer
  22. ECreateAddMode m_ecamCreateAddMode;// Creating? Adding?
  23. UINT m_idsDesc; // Resource ID for domain description string.
  24. BOOL m_fDisplayPage:1; // Indicates whether page should be displayed or not
  25. // IUnknown
  26. LONG m_cRef;
  27. ITaskGetDomains * m_ptgd; // Get Domains Task
  28. // ITaskGetDomainsCallback
  29. private: // methods
  30. CClusDomainPage(
  31. IServiceProvider * pspIn
  32. , ECreateAddMode ecamCreateAddModeIn
  33. , BSTR * pbstrClusterIn
  34. , UINT idsDescIn
  35. );
  36. virtual ~CClusDomainPage( void );
  37. LRESULT
  38. OnInitDialog( void );
  39. LRESULT
  40. OnNotify( WPARAM idCtrlIn, LPNMHDR pnmhdrIn );
  41. LRESULT
  42. OnNotifySetActive( void );
  43. LRESULT
  44. OnNotifyWizNext( void );
  45. LRESULT
  46. OnNotifyQueryCancel( void );
  47. LRESULT
  48. OnCommand( UINT idNotificationIn, UINT idControlIn, HWND hwndSenderIn );
  49. HRESULT
  50. HrUpdateWizardButtons( BOOL fIgnoreCombBoxIn );
  51. public: // methods
  52. static INT_PTR CALLBACK
  53. S_DlgProc( HWND hDlg, UINT Msg, WPARAM wParam, LPARAM lParam );
  54. // IUnknown
  55. STDMETHOD( QueryInterface )( REFIID riidIn, LPVOID * ppvOut );
  56. STDMETHOD_( ULONG, AddRef )( void );
  57. STDMETHOD_( ULONG, Release )( void );
  58. // ITaskGetDomainsCallback
  59. STDMETHOD( ReceiveDomainResult )( HRESULT hrIn );
  60. STDMETHOD( ReceiveDomainName )( LPCWSTR pcszDomainIn );
  61. }; //*** class CClusDomainPage