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. // nntpprop.h
  7. //
  8. // Abstract:
  9. // Definition of the CNNTPVirtualRootParamsPage 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 _NNTPPROP_H_
  25. #define _NNTPPROP_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_NNTP
  33. #include "Iis.h" // for IISMapper
  34. /////////////////////////////////////////////////////////////////////////////
  35. // Forward Class Declarations
  36. /////////////////////////////////////////////////////////////////////////////
  37. class CNNTPVirtualRootParamsPage;
  38. class IISMapper;
  39. /////////////////////////////////////////////////////////////////////////////
  40. //
  41. // CNNTPVirtualRootParamsPage
  42. //
  43. // Purpose:
  44. // Parameters page for resources.
  45. //
  46. /////////////////////////////////////////////////////////////////////////////
  47. class CNNTPVirtualRootParamsPage : public CBasePropertyPage
  48. {
  49. DECLARE_DYNCREATE(CNNTPVirtualRootParamsPage)
  50. // Construction
  51. public:
  52. CNNTPVirtualRootParamsPage(void);
  53. // Dialog Data
  54. //{{AFX_DATA(CNNTPVirtualRootParamsPage)
  55. enum { IDD = IDD_PP_NNTP_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(CNNTPVirtualRootParamsPage)
  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(CNNTPVirtualRootParamsPage)
  115. virtual BOOL OnInitDialog();
  116. afx_msg void OnChangeRequiredField();
  117. afx_msg void OnRefresh();
  118. //}}AFX_MSG
  119. DECLARE_MESSAGE_MAP()
  120. }; //*** class CNNTPVirtualRootParamsPage
  121. /////////////////////////////////////////////////////////////////////////////
  122. #endif // _NNTPPROP_H_