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.

441 lines
7.4 KiB

  1. /*++
  2. Copyright (c) 1994-1998 Microsoft Corporation
  3. Module Name :
  4. wizard.h
  5. Abstract:
  6. WWW Wizards pages definitions
  7. Author:
  8. Ronald Meijer (ronaldm)
  9. Project:
  10. Internet Services Manager
  11. Revision History:
  12. --*/
  13. #ifndef __WWW_WIZ_H__
  14. #define __WWW_WIZ_H__
  15. class CIISWebWizSettings : public CObjectPlus
  16. /*++
  17. Class Description:
  18. Web Wizard settings intended to pass along from page
  19. to page
  20. --*/
  21. {
  22. //
  23. // Constructor/Destructor
  24. //
  25. public:
  26. CIISWebWizSettings(
  27. IN HANDLE hServer,
  28. IN LPCTSTR lpszService,
  29. IN DWORD dwInstance = MASTER_INSTANCE,
  30. IN LPCTSTR lpszParent = NULL
  31. );
  32. //
  33. // Public Properties
  34. //
  35. public:
  36. BOOL m_fLocal;
  37. BOOL m_fUNC;
  38. BOOL m_fRead;
  39. BOOL m_fWrite;
  40. BOOL m_fAllowAnonymous;
  41. BOOL m_fDirBrowsing;
  42. BOOL m_fScript;
  43. BOOL m_fExecute;
  44. DWORD m_dwInstance;
  45. CString m_strService;
  46. CString m_strParent;
  47. CString m_strServerName;
  48. CString m_strDescription;
  49. CString m_strBinding;
  50. CString m_strSecureBinding;
  51. CString m_strAlias;
  52. CString m_strPath;
  53. CString m_strUserName;
  54. CString m_strPassword;
  55. HRESULT m_hrResult;
  56. CMetaKey * m_pKey;
  57. };
  58. //
  59. // New Virtual Server Wizard Description Page
  60. //
  61. // <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
  62. class CVDWPDescription : public CIISWizardPage
  63. {
  64. DECLARE_DYNCREATE(CVDWPDescription)
  65. //
  66. // Construction
  67. //
  68. public:
  69. CVDWPDescription(CIISWebWizSettings * pwsSettings = NULL);
  70. ~CVDWPDescription();
  71. //
  72. // Dialog Data
  73. //
  74. protected:
  75. //{{AFX_DATA(CVDWPDescription)
  76. enum { IDD = IDD_NEW_INST_DESCRIPTION };
  77. CEdit m_edit_Description;
  78. //}}AFX_DATA
  79. //
  80. // Overrides
  81. //
  82. protected:
  83. //{{AFX_VIRTUAL(CVDWPDescription)
  84. public:
  85. virtual BOOL OnSetActive();
  86. virtual LRESULT OnWizardNext();
  87. protected:
  88. virtual void DoDataExchange(CDataExchange * pDX);
  89. //}}AFX_VIRTUAL
  90. //
  91. // Implementation
  92. //
  93. protected:
  94. //{{AFX_MSG(CVDWPDescription)
  95. afx_msg void OnChangeEditDescription();
  96. //}}AFX_MSG
  97. DECLARE_MESSAGE_MAP()
  98. void SetControlStates();
  99. private:
  100. CIISWebWizSettings * m_pwsSettings;
  101. };
  102. //
  103. // New Virtual Server Wizard Bindings Page
  104. //
  105. // <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
  106. class CVDWPBindings : public CIISWizardPage
  107. {
  108. DECLARE_DYNCREATE(CVDWPBindings)
  109. //
  110. // Construction
  111. //
  112. public:
  113. CVDWPBindings(
  114. IN CIISWebWizSettings * pwsSettings = NULL,
  115. IN DWORD dwInstance = MASTER_INSTANCE
  116. );
  117. ~CVDWPBindings();
  118. //
  119. // Dialog Data
  120. //
  121. protected:
  122. //{{AFX_DATA(CVDWPBindings)
  123. enum { IDD = IDD_NEW_INST_BINDINGS };
  124. int m_nIpAddressSel;
  125. UINT m_nTCPPort;
  126. UINT m_nSSLPort;
  127. CString m_strDomainName;
  128. CComboBox m_combo_IpAddresses;
  129. //}}AFX_DATA
  130. BOOL m_fCertInstalled;
  131. CIPAddress m_iaIpAddress;
  132. CObListPlus m_oblIpAddresses;
  133. //
  134. // Overrides
  135. //
  136. protected:
  137. //{{AFX_VIRTUAL(CVDWPBindings)
  138. public:
  139. virtual BOOL OnSetActive();
  140. protected:
  141. virtual void DoDataExchange(CDataExchange * pDX);
  142. //}}AFX_VIRTUAL
  143. //
  144. // Implementation
  145. //
  146. protected:
  147. //{{AFX_MSG(CVDWPBindings)
  148. virtual BOOL OnInitDialog();
  149. //}}AFX_MSG
  150. DECLARE_MESSAGE_MAP()
  151. void SetControlStates();
  152. private:
  153. DWORD m_dwInstance;
  154. CIISWebWizSettings * m_pwsSettings;
  155. };
  156. //
  157. // New Virtual Directory Wizard Alias Page
  158. //
  159. // <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
  160. class CVDWPAlias : public CIISWizardPage
  161. {
  162. DECLARE_DYNCREATE(CVDWPAlias)
  163. //
  164. // Construction
  165. //
  166. public:
  167. CVDWPAlias(CIISWebWizSettings * pwsSettings = NULL);
  168. ~CVDWPAlias();
  169. //
  170. // Dialog Data
  171. //
  172. protected:
  173. //{{AFX_DATA(CVDWPAlias)
  174. enum { IDD = IDD_NEW_DIR_ALIAS };
  175. CEdit m_edit_Alias;
  176. //}}AFX_DATA
  177. //
  178. // Overrides
  179. //
  180. protected:
  181. //{{AFX_VIRTUAL(CVDWPAlias)
  182. public:
  183. virtual BOOL OnSetActive();
  184. virtual LRESULT OnWizardNext();
  185. protected:
  186. virtual void DoDataExchange(CDataExchange * pDX);
  187. //}}AFX_VIRTUAL
  188. //
  189. // Implementation
  190. //
  191. protected:
  192. //{{AFX_MSG(CVDWPAlias)
  193. afx_msg void OnChangeEditAlias();
  194. //}}AFX_MSG
  195. DECLARE_MESSAGE_MAP()
  196. void SetControlStates();
  197. private:
  198. CIISWebWizSettings * m_pwsSettings;
  199. };
  200. //
  201. // Wizard Path Page
  202. //
  203. // <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
  204. class CVDWPPath : public CIISWizardPage
  205. {
  206. DECLARE_DYNCREATE(CVDWPPath)
  207. //
  208. // Construction
  209. //
  210. public:
  211. CVDWPPath(
  212. IN CIISWebWizSettings * pwsSettings = NULL,
  213. IN BOOL bVDir = TRUE
  214. );
  215. ~CVDWPPath();
  216. //
  217. // Dialog Data
  218. //
  219. protected:
  220. //{{AFX_DATA(CVDWPPath)
  221. enum { IDD = -1 };
  222. CButton m_button_Browse;
  223. CEdit m_edit_Path;
  224. //}}AFX_DATA
  225. //
  226. // Overrides
  227. //
  228. protected:
  229. //{{AFX_VIRTUAL(CVDWPPath)
  230. public:
  231. virtual BOOL OnSetActive();
  232. virtual LRESULT OnWizardNext();
  233. protected:
  234. virtual void DoDataExchange(CDataExchange * pDX);
  235. //}}AFX_VIRTUAL
  236. //
  237. // Implementation
  238. //
  239. protected:
  240. //{{AFX_MSG(CVDWPPath)
  241. afx_msg void OnChangeEditPath();
  242. afx_msg void OnButtonBrowse();
  243. virtual BOOL OnInitDialog();
  244. //}}AFX_MSG
  245. DECLARE_MESSAGE_MAP()
  246. void SetControlStates();
  247. private:
  248. CIISWebWizSettings * m_pwsSettings;
  249. };
  250. //
  251. // Wizard User/Password Page
  252. //
  253. // <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
  254. class CVDWPUserName : public CIISWizardPage
  255. {
  256. DECLARE_DYNCREATE(CVDWPUserName)
  257. //
  258. // Construction
  259. //
  260. public:
  261. CVDWPUserName(
  262. IN CIISWebWizSettings * pwsSettings = NULL,
  263. IN BOOL bVDir = TRUE
  264. );
  265. ~CVDWPUserName();
  266. //
  267. // Dialog Data
  268. //
  269. protected:
  270. //{{AFX_DATA(CVDWPUserName)
  271. enum { IDD = IDD_NEW_USER_PASSWORD };
  272. CEdit m_edit_Password;
  273. CEdit m_edit_UserName;
  274. //}}AFX_DATA
  275. //
  276. // Overrides
  277. //
  278. protected:
  279. //{{AFX_VIRTUAL(CVDWPUserName)
  280. public:
  281. virtual BOOL OnSetActive();
  282. virtual LRESULT OnWizardNext();
  283. protected:
  284. virtual void DoDataExchange(CDataExchange * pDX);
  285. //}}AFX_VIRTUAL
  286. //
  287. // Implementation
  288. //
  289. protected:
  290. //{{AFX_MSG(CVDWPUserName)
  291. afx_msg void OnButtonBrowseUsers();
  292. afx_msg void OnChangeEditUsername();
  293. afx_msg void OnButtonCheckPassword();
  294. virtual BOOL OnInitDialog();
  295. //}}AFX_MSG
  296. DECLARE_MESSAGE_MAP()
  297. void SetControlStates();
  298. private:
  299. CIISWebWizSettings * m_pwsSettings;
  300. };
  301. //
  302. // Wizard Permissions Page
  303. //
  304. // <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
  305. class CVDWPPermissions : public CIISWizardPage
  306. {
  307. DECLARE_DYNCREATE(CVDWPPermissions)
  308. //
  309. // Construction
  310. //
  311. public:
  312. CVDWPPermissions(
  313. IN CIISWebWizSettings * pwsSettings = NULL,
  314. IN BOOL bVDir = TRUE
  315. );
  316. ~CVDWPPermissions();
  317. //
  318. // Dialog Data
  319. //
  320. protected:
  321. //{{AFX_DATA(CVDWPPermissions)
  322. enum { IDD = IDD_NEW_PERMS };
  323. //}}AFX_DATA
  324. //
  325. // Overrides
  326. //
  327. protected:
  328. //{{AFX_VIRTUAL(CVDWPPermissions)
  329. public:
  330. virtual BOOL OnSetActive();
  331. virtual LRESULT OnWizardNext();
  332. protected:
  333. virtual void DoDataExchange(CDataExchange * pDX);
  334. //}}AFX_VIRTUAL
  335. //
  336. // Implementation
  337. //
  338. protected:
  339. //{{AFX_MSG(CVDWPPermissions)
  340. //}}AFX_MSG
  341. DECLARE_MESSAGE_MAP()
  342. void SetControlStates();
  343. private:
  344. BOOL m_bVDir;
  345. CIISWebWizSettings * m_pwsSettings;
  346. };
  347. #endif // __WWW_WIZ_H__