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.

145 lines
3.9 KiB

  1. /////////////////////////////////////////////////////////////////////////////
  2. //
  3. // Copyright (c) 1996-1997 Microsoft Corporation
  4. //
  5. // Module Name:
  6. // smtpprop.h
  7. //
  8. // Abstract:
  9. // Definition of the CSMTPVirtualRootParamsPage class, which implements the
  10. // Parameters page for IIS resources.
  11. //
  12. // Implementation File:
  13. // Iis.cpp
  14. //
  15. // Author:
  16. // Pete Benoit (v-pbenoi) October 16, 1996
  17. // David Potter (davidp) October 17, 1996
  18. //
  19. // Revision History:
  20. //
  21. // Notes:
  22. //
  23. /////////////////////////////////////////////////////////////////////////////
  24. #ifndef _SMTPPROP_H_
  25. #define _SMTPPROP_H_
  26. /////////////////////////////////////////////////////////////////////////////
  27. // Include Files
  28. /////////////////////////////////////////////////////////////////////////////
  29. #ifndef _BASEPAGE_H_
  30. #include "BasePage.h" // for CBasePropertyPage
  31. #endif
  32. #include "ConstDef.h" // for IIS_SVC_NAME_SMTP
  33. #include "Iis.h" // for IISMapper
  34. /////////////////////////////////////////////////////////////////////////////
  35. // Forward Class Declarations
  36. /////////////////////////////////////////////////////////////////////////////
  37. class CSMTPVirtualRootParamsPage;
  38. class IISMapper;
  39. /////////////////////////////////////////////////////////////////////////////
  40. //
  41. // CSMTPVirtualRootParamsPage
  42. //
  43. // Purpose:
  44. // Parameters page for resources.
  45. //
  46. /////////////////////////////////////////////////////////////////////////////
  47. class CSMTPVirtualRootParamsPage : public CBasePropertyPage
  48. {
  49. DECLARE_DYNCREATE(CSMTPVirtualRootParamsPage)
  50. // Construction
  51. public:
  52. CSMTPVirtualRootParamsPage(void);
  53. // Dialog Data
  54. //{{AFX_DATA(CSMTPVirtualRootParamsPage)
  55. enum { IDD = IDD_PP_SMTP_PARAMETERS };
  56. CButton m_ckbWrite;
  57. CButton m_ckbRead;
  58. CButton m_groupAccess;
  59. CEdit m_editPassword;
  60. CStatic m_staticPassword;
  61. CEdit m_editAccountName;
  62. CStatic m_staticAccountName;
  63. CButton m_groupAccountInfo;
  64. CEdit m_editDirectory;
  65. CString m_strDirectory;
  66. CString m_strAccountName;
  67. CString m_strPassword;
  68. CEdit m_editInstanceId;
  69. CComboBox m_cInstanceId;
  70. CString m_strInstanceName;
  71. CString m_strInstanceId;
  72. BOOL m_bRead;
  73. BOOL m_bWrite;
  74. //}}AFX_DATA
  75. CString m_strServiceName;
  76. CString m_strPrevServiceName;
  77. CString m_strPrevDirectory;
  78. CString m_strPrevAccountName;
  79. CString m_strPrevPassword;
  80. CString m_strPrevInstanceId;
  81. DWORD m_dwAccessMask;
  82. DWORD m_dwPrevAccessMask;
  83. protected:
  84. enum
  85. {
  86. epropServiceName,
  87. epropInstanceId,
  88. epropMAX
  89. };
  90. CObjectProperty m_rgProps[epropMAX];
  91. // Overrides
  92. public:
  93. // ClassWizard generate virtual function overrides
  94. //{{AFX_VIRTUAL(CSMTPVirtualRootParamsPage)
  95. public:
  96. virtual BOOL OnSetActive();
  97. protected:
  98. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  99. //}}AFX_VIRTUAL
  100. protected:
  101. virtual const CObjectProperty * Pprops(void) const { return m_rgProps; }
  102. virtual DWORD Cprops(void) const { return sizeof(m_rgProps) / sizeof(CObjectProperty); }
  103. void FillServerList();
  104. void SetEnableNext();
  105. private:
  106. BOOL m_fReadList;
  107. CArray <IISMapper, IISMapper> m_ServiceArray;
  108. LPWSTR NameToMetabaseId( CString& strName);
  109. LPWSTR MetabaseIdToName( CString& strId);
  110. HRESULT ReadList(CArray <IISMapper, IISMapper>* pMapperArray, LPWSTR pszPath, LPCWSTR wcsServerName);
  111. // Implementation
  112. protected:
  113. // Generated message map functions
  114. //{{AFX_MSG(CSMTPVirtualRootParamsPage)
  115. virtual BOOL OnInitDialog();
  116. afx_msg void OnChangeRequiredField();
  117. afx_msg void OnRefresh();
  118. //}}AFX_MSG
  119. DECLARE_MESSAGE_MAP()
  120. }; //*** class CSMTPVirtualRootParamsPage
  121. /////////////////////////////////////////////////////////////////////////////
  122. #endif // _SMTPPROP_H_