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.3 KiB

  1. //////////////////////////////////////////////////////////////////////////////
  2. //
  3. // Copyright (c) 2000 Microsoft Corporation
  4. //
  5. // Module Name:
  6. // CSAccountPage.h
  7. //
  8. // Maintained By:
  9. // Geoffrey Pease (GPease) 12-MAY-2000
  10. //
  11. //////////////////////////////////////////////////////////////////////////////
  12. #pragma once
  13. class CCSAccountPage
  14. : public ITaskGetDomainsCallback
  15. {
  16. friend class CClusCfgWizard;
  17. private: // data
  18. HWND m_hwnd; // Our HWND
  19. IServiceProvider * m_psp; // Service Manager
  20. ECreateAddMode m_ecamCreateAddMode; // Creating or Adding?
  21. BSTR * m_pbstrUsername; // Service Account Username
  22. BSTR * m_pbstrPassword; // Service Account Password
  23. BSTR * m_pbstrDomain; // Service Account Domain
  24. BSTR * m_pbstrClusterName; // Cluster FDQN - Used to get the Default Domain name
  25. // IUnknown
  26. LONG m_cRef;
  27. ITaskGetDomains * m_ptgd; // Get Domains Task
  28. private: // methods
  29. CCSAccountPage( IServiceProvider * pspIn,
  30. ECreateAddMode ecamCreateAddModeIn,
  31. BSTR * pbstrUsernameIn,
  32. BSTR * pbstrPasswordIn,
  33. BSTR * pbstrDomainIn,
  34. BSTR * pbstrClusterNameIn
  35. );
  36. virtual ~CCSAccountPage();
  37. LRESULT
  38. OnInitDialog( void );
  39. LRESULT
  40. OnNotify( WPARAM idCtrlIn, LPNMHDR pnmhdrIn );
  41. LRESULT
  42. OnNotifyQueryCancel( void );
  43. LRESULT
  44. OnNotifySetActive( void );
  45. LRESULT
  46. OnNotifyWizNext( void );
  47. LRESULT
  48. OnCommand( UINT idNotificationIn, UINT idControlIn, HWND hwndSenderIn );
  49. HRESULT
  50. HrUpdateWizardButtons( BOOL fIgnoreComboxBoxIn );
  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 riid, LPVOID *ppv );
  56. STDMETHOD_( ULONG, AddRef )( void );
  57. STDMETHOD_( ULONG, Release )( void );
  58. // ITaskGetDomainsCallback
  59. STDMETHOD( ReceiveDomainResult )( HRESULT hrIn );
  60. STDMETHOD( ReceiveDomainName )( LPCWSTR pcszDomainIn );
  61. }; // class CCSAccountPage