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.

158 lines
4.0 KiB

  1. /////////////////////////////////////////////////////////////////////////////
  2. //
  3. // Copyright (c) 1996-1997 Microsoft Corporation
  4. //
  5. // Module Name:
  6. // Iis.h
  7. //
  8. // Abstract:
  9. // Definition of the CIISVirtualRootParamsPage 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 _IIS_H_
  25. #define _IIS_H_
  26. /////////////////////////////////////////////////////////////////////////////
  27. // Include Files
  28. /////////////////////////////////////////////////////////////////////////////
  29. #ifndef _BASEPAGE_H_
  30. #include "BasePage.h" // for CBasePropertyPage
  31. #endif
  32. /////////////////////////////////////////////////////////////////////////////
  33. // Forward Class Declarations
  34. /////////////////////////////////////////////////////////////////////////////
  35. class CIISVirtualRootParamsPage;
  36. /////////////////////////////////////////////////////////////////////////////
  37. // External Class Declarations
  38. /////////////////////////////////////////////////////////////////////////////
  39. /////////////////////////////////////////////////////////////////////////////
  40. // Constant Definitions
  41. /////////////////////////////////////////////////////////////////////////////
  42. #define IIS_SVC_NAME_FTP _T("MSFTPSVC")
  43. #define IIS_SVC_NAME_GOPHER _T("GOPHERSVC")
  44. #define IIS_SVC_NAME_WWW _T("W3SVC")
  45. /////////////////////////////////////////////////////////////////////////////
  46. //
  47. // CIISVirtualRootParamsPage
  48. //
  49. // Purpose:
  50. // Parameters page for resources.
  51. //
  52. /////////////////////////////////////////////////////////////////////////////
  53. class CIISVirtualRootParamsPage : public CBasePropertyPage
  54. {
  55. DECLARE_DYNCREATE(CIISVirtualRootParamsPage)
  56. // Construction
  57. public:
  58. CIISVirtualRootParamsPage(void);
  59. // Dialog Data
  60. //{{AFX_DATA(CIISVirtualRootParamsPage)
  61. enum { IDD = IDD_PP_IIS_PARAMETERS };
  62. CButton m_ckbWrite;
  63. CButton m_ckbRead;
  64. CButton m_groupAccess;
  65. #ifdef _ACCOUNT_AND_PASSWORD
  66. CEdit m_editPassword;
  67. CStatic m_staticPassword;
  68. CEdit m_editAccountName;
  69. CStatic m_staticAccountName;
  70. CButton m_groupAccountInfo;
  71. #endif // _ACCOUNT_AND_PASSWORD
  72. CEdit m_editAlias;
  73. CEdit m_editDirectory;
  74. CButton m_rbWWW;
  75. CButton m_rbGOPHER;
  76. CButton m_rbFTP;
  77. int m_nServerType;
  78. CString m_strDirectory;
  79. CString m_strAlias;
  80. #ifdef _ACCOUNT_AND_PASSWORD
  81. CString m_strAccountName;
  82. CString m_strPassword;
  83. #endif // _ACCOUNT_AND_PASSWORD
  84. BOOL m_bRead;
  85. BOOL m_bWrite;
  86. //}}AFX_DATA
  87. CString m_strServiceName;
  88. CString m_strPrevServiceName;
  89. CString m_strPrevDirectory;
  90. CString m_strPrevAlias;
  91. #ifdef _ACCOUNT_AND_PASSWORD
  92. CString m_strPrevAccountName;
  93. CString m_strPrevPassword;
  94. #endif // _ACCOUNT_AND_PASSWORD
  95. DWORD m_dwAccessMask;
  96. DWORD m_dwPrevAccessMask;
  97. protected:
  98. enum
  99. {
  100. epropServiceName,
  101. epropAlias,
  102. epropDirectory,
  103. #ifdef _ACCOUNT_AND_PASSWORD
  104. epropAccoutName,
  105. epropPassword,
  106. #endif // _ACCOUNT_AND_PASSWORD
  107. epropAccessMask,
  108. epropMAX
  109. };
  110. CObjectProperty m_rgProps[epropMAX];
  111. // Overrides
  112. public:
  113. // ClassWizard generate virtual function overrides
  114. //{{AFX_VIRTUAL(CIISVirtualRootParamsPage)
  115. public:
  116. virtual BOOL OnSetActive();
  117. protected:
  118. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  119. //}}AFX_VIRTUAL
  120. protected:
  121. virtual const CObjectProperty * Pprops(void) const { return m_rgProps; }
  122. virtual DWORD Cprops(void) const { return sizeof(m_rgProps) / sizeof(CObjectProperty); }
  123. // Implementation
  124. protected:
  125. // Generated message map functions
  126. //{{AFX_MSG(CIISVirtualRootParamsPage)
  127. virtual BOOL OnInitDialog();
  128. #ifdef _ACCOUNT_AND_PASSWORD
  129. afx_msg void OnChangeDirectory();
  130. #endif // _ACCOUNT_AND_PASSWORD
  131. afx_msg void OnChangeRequiredField();
  132. afx_msg void OnChangeServiceType();
  133. //}}AFX_MSG
  134. DECLARE_MESSAGE_MAP()
  135. }; //*** class CIISVirtualRootParamsPage
  136. /////////////////////////////////////////////////////////////////////////////
  137. #endif // _IIS_H_