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.

393 lines
9.2 KiB

  1. //
  2. // CertContentsPages.h
  3. //
  4. #ifndef _CERT_CONTENTS_PAGES_H
  5. #define _CERT_CONTENTS_PAGES_H
  6. #include "Certificat.h"
  7. class CCertContentsPage : public CIISWizardPage
  8. {
  9. DECLARE_DYNCREATE(CCertContentsPage)
  10. // Construction
  11. public:
  12. CCertContentsPage(UINT id = 0, CCertificate * pCert = NULL);
  13. ~CCertContentsPage();
  14. CCertificate * GetCertificate() {return m_pCert;}
  15. // Dialog Data
  16. //{{AFX_DATA(CCertContentsPage)
  17. //}}AFX_DATA
  18. CCertificate * m_pCert;
  19. // Overrides
  20. virtual BOOL GetCertDescription(CERT_DESCRIPTION& cd)
  21. {
  22. return FALSE;
  23. }
  24. // ClassWizard generate virtual function overrides
  25. //{{AFX_VIRTUAL(CCertContentsPage)
  26. public:
  27. virtual LRESULT OnWizardBack()
  28. {
  29. ASSERT(FALSE);
  30. return 1;
  31. }
  32. virtual LRESULT OnWizardNext()
  33. {
  34. ASSERT(FALSE);
  35. return 1;
  36. }
  37. virtual BOOL OnSetActive();
  38. protected:
  39. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  40. //}}AFX_VIRTUAL
  41. // Implementation
  42. protected:
  43. // Generated message map functions
  44. //{{AFX_MSG(CCertContentsPage)
  45. virtual BOOL OnInitDialog();
  46. //}}AFX_MSG
  47. DECLARE_MESSAGE_MAP()
  48. };
  49. class CInstallCertPage : public CCertContentsPage
  50. {
  51. enum
  52. {
  53. IDD = IDD_PAGE_WIZ_INSTALL_CERT,
  54. IDD_PAGE_NEXT = IDD_PAGE_WIZ_FINAL_INSTALL,
  55. IDD_PAGE_PREV = IDD_PAGE_WIZ_CHOOSE_CERT
  56. #ifdef ENABLE_W3SVC_SSL_PAGE
  57. ,IDD_PAGE_PREV_W3SVC_ONLY = IDD_PAGE_WIZ_GET_SSL_PORT
  58. #endif
  59. };
  60. DECLARE_DYNCREATE(CInstallCertPage)
  61. public:
  62. CInstallCertPage(CCertificate * pCert = NULL)
  63. : CCertContentsPage(CInstallCertPage::IDD, pCert)
  64. {
  65. }
  66. virtual BOOL GetCertDescription(CERT_DESCRIPTION& cd);
  67. virtual LRESULT OnWizardBack();
  68. virtual LRESULT OnWizardNext();
  69. };
  70. class CReplaceCertPage : public CCertContentsPage
  71. {
  72. enum
  73. {
  74. IDD = IDD_PAGE_WIZ_REPLACE_CERT,
  75. IDD_PAGE_NEXT = IDD_PAGE_WIZ_FINAL_REPLACE,
  76. IDD_PAGE_PREV = IDD_PAGE_WIZ_CHOOSE_CERT,
  77. };
  78. DECLARE_DYNCREATE(CReplaceCertPage)
  79. public:
  80. CReplaceCertPage(CCertificate * pCert = NULL)
  81. : CCertContentsPage(CReplaceCertPage::IDD, pCert)
  82. {
  83. }
  84. virtual BOOL GetCertDescription(CERT_DESCRIPTION& cd);
  85. virtual LRESULT OnWizardBack();
  86. virtual LRESULT OnWizardNext();
  87. };
  88. class CInstallKeyPage : public CCertContentsPage
  89. {
  90. enum
  91. {
  92. IDD = IDD_PAGE_WIZ_INSTALL_KEYCERT,
  93. IDD_PAGE_NEXT = IDD_PAGE_WIZ_FINAL_INSTALL,
  94. IDD_PAGE_PREV = IDD_PAGE_WIZ_GET_PASSWORD
  95. #ifdef ENABLE_W3SVC_SSL_PAGE
  96. ,IDD_PAGE_PREV_W3SVC_ONLY = IDD_PAGE_WIZ_GET_SSL_PORT
  97. #endif
  98. };
  99. DECLARE_DYNCREATE(CInstallKeyPage)
  100. public:
  101. CInstallKeyPage(CCertificate * pCert = NULL)
  102. : CCertContentsPage(CInstallKeyPage::IDD, pCert)
  103. {
  104. }
  105. virtual BOOL GetCertDescription(CERT_DESCRIPTION& cd);
  106. virtual LRESULT OnWizardBack();
  107. virtual LRESULT OnWizardNext();
  108. virtual BOOL OnSetActive();
  109. };
  110. class CInstallImportPFXPage : public CCertContentsPage
  111. {
  112. enum
  113. {
  114. IDD = IDD_PAGE_WIZ_INSTALL_IMPORT_PFX,
  115. IDD_PAGE_NEXT = IDD_PAGE_WIZ_FINAL_INSTALL_IMPORT_PFX,
  116. IDD_PAGE_PREV = IDD_PAGE_WIZ_GET_IMPORT_PFX_PASSWORD
  117. #ifdef ENABLE_W3SVC_SSL_PAGE
  118. ,IDD_PAGE_PREV_W3SVC_ONLY = IDD_PAGE_WIZ_GET_SSL_PORT
  119. #endif
  120. };
  121. DECLARE_DYNCREATE(CInstallImportPFXPage)
  122. public:
  123. CInstallImportPFXPage(CCertificate * pCert = NULL)
  124. : CCertContentsPage(CInstallImportPFXPage::IDD, pCert)
  125. {
  126. }
  127. virtual BOOL GetCertDescription(CERT_DESCRIPTION& cd);
  128. virtual LRESULT OnWizardBack();
  129. virtual LRESULT OnWizardNext();
  130. virtual BOOL OnSetActive();
  131. };
  132. class CInstallExportPFXPage : public CCertContentsPage
  133. {
  134. enum
  135. {
  136. IDD = IDD_PAGE_WIZ_INSTALL_EXPORT_PFX,
  137. IDD_PAGE_NEXT = IDD_PAGE_WIZ_FINAL_INSTALL_EXPORT_PFX,
  138. IDD_PAGE_PREV = IDD_PAGE_WIZ_GET_EXPORT_PFX_PASSWORD
  139. };
  140. DECLARE_DYNCREATE(CInstallExportPFXPage)
  141. public:
  142. CInstallExportPFXPage(CCertificate * pCert = NULL)
  143. : CCertContentsPage(CInstallExportPFXPage::IDD, pCert)
  144. {
  145. }
  146. virtual BOOL GetCertDescription(CERT_DESCRIPTION& cd);
  147. virtual LRESULT OnWizardBack();
  148. virtual LRESULT OnWizardNext();
  149. virtual BOOL OnSetActive();
  150. };
  151. class CInstallRespPage : public CCertContentsPage
  152. {
  153. enum
  154. {
  155. IDD = IDD_PAGE_WIZ_INSTALL_RESP,
  156. IDD_PAGE_NEXT = IDD_PAGE_WIZ_FINAL_INSTALL,
  157. IDD_PAGE_PREV = IDD_PAGE_WIZ_GETRESP_FILE
  158. #ifdef ENABLE_W3SVC_SSL_PAGE
  159. ,IDD_PAGE_PREV_W3SVC_ONLY = IDD_PAGE_WIZ_GET_SSL_PORT
  160. #endif
  161. };
  162. DECLARE_DYNCREATE(CInstallRespPage)
  163. public:
  164. CInstallRespPage(CCertificate * pCert = NULL)
  165. : CCertContentsPage(CInstallRespPage::IDD, pCert)
  166. {
  167. }
  168. virtual BOOL GetCertDescription(CERT_DESCRIPTION& cd);
  169. virtual LRESULT OnWizardBack();
  170. virtual LRESULT OnWizardNext();
  171. virtual BOOL OnSetActive();
  172. };
  173. class CRequestCancelPage : public CCertContentsPage
  174. {
  175. enum
  176. {
  177. IDD = IDD_PAGE_WIZ_CANCEL_REQUEST,
  178. IDD_PAGE_NEXT = IDD_PAGE_WIZ_FINAL_CANCEL,
  179. IDD_PAGE_PREV = IDD_PAGE_WIZ_PENDING_WHAT_TODO
  180. };
  181. DECLARE_DYNCREATE(CRequestCancelPage)
  182. public:
  183. CRequestCancelPage(CCertificate * pCert = NULL)
  184. : CCertContentsPage(CRequestCancelPage::IDD, pCert)
  185. {
  186. }
  187. virtual BOOL GetCertDescription(CERT_DESCRIPTION& cd);
  188. virtual LRESULT OnWizardBack();
  189. virtual LRESULT OnWizardNext();
  190. };
  191. class CRemoveCertPage : public CCertContentsPage
  192. {
  193. enum
  194. {
  195. IDD = IDD_PAGE_WIZ_REMOVE_CERT,
  196. IDD_PAGE_NEXT = IDD_PAGE_WIZ_FINAL_REMOVE,
  197. IDD_PAGE_PREV = IDD_PAGE_WIZ_MANAGE_CERT
  198. };
  199. DECLARE_DYNCREATE(CRemoveCertPage)
  200. public:
  201. CRemoveCertPage(CCertificate * pCert = NULL)
  202. : CCertContentsPage(CRemoveCertPage::IDD, pCert)
  203. {
  204. }
  205. virtual BOOL GetCertDescription(CERT_DESCRIPTION& cd);
  206. virtual LRESULT OnWizardBack();
  207. virtual LRESULT OnWizardNext();
  208. };
  209. class CRequestToFilePage : public CCertContentsPage
  210. {
  211. enum
  212. {
  213. IDD = IDD_PAGE_WIZ_REQUEST_DUMP,
  214. IDD_PAGE_NEXT = IDD_PAGE_WIZ_FINAL_TO_FILE,
  215. IDD_PAGE_PREV = IDD_PAGE_WIZ_CHOOSE_FILENAME
  216. };
  217. DECLARE_DYNCREATE(CRequestToFilePage)
  218. public:
  219. CRequestToFilePage(CCertificate * pCert = NULL)
  220. : CCertContentsPage(CRequestToFilePage::IDD, pCert)
  221. {
  222. }
  223. virtual BOOL OnSetActive();
  224. virtual LRESULT OnWizardBack();
  225. virtual LRESULT OnWizardNext();
  226. };
  227. class CRequestToFilePageRenew : public CCertContentsPage
  228. {
  229. enum
  230. {
  231. IDD = IDD_PAGE_WIZ_REQUEST_DUMP_RENEW,
  232. IDD_PAGE_NEXT = IDD_PAGE_WIZ_FINAL_TO_FILE,
  233. IDD_PAGE_PREV = IDD_PAGE_WIZ_CHOOSE_FILENAME_RENEW
  234. };
  235. DECLARE_DYNCREATE(CRequestToFilePageRenew)
  236. public:
  237. CRequestToFilePageRenew(CCertificate * pCert = NULL)
  238. : CCertContentsPage(CRequestToFilePageRenew::IDD, pCert)
  239. {
  240. }
  241. virtual BOOL OnSetActive();
  242. virtual LRESULT OnWizardBack();
  243. virtual LRESULT OnWizardNext();
  244. };
  245. class COnlineRequestSubmit : public CCertContentsPage
  246. {
  247. enum
  248. {
  249. IDD = IDD_PAGE_WIZ_ONLINE_DUMP,
  250. IDD_PAGE_NEXT = IDD_PAGE_WIZ_FINAL_INSTALL,
  251. IDD_PAGE_PREV = IDD_PAGE_WIZ_CHOOSE_ONLINE
  252. };
  253. DECLARE_DYNCREATE(COnlineRequestSubmit)
  254. public:
  255. COnlineRequestSubmit(CCertificate * pCert = NULL)
  256. : CCertContentsPage(COnlineRequestSubmit::IDD, pCert)
  257. {
  258. }
  259. virtual BOOL GetCertDescription(CERT_DESCRIPTION& cd);
  260. virtual LRESULT OnWizardBack();
  261. virtual LRESULT OnWizardNext();
  262. virtual BOOL OnSetActive();
  263. };
  264. class CInstallCopyFromRemotePage : public CCertContentsPage
  265. {
  266. enum
  267. {
  268. IDD = IDD_PAGE_WIZ_INSTALL_COPY_FROM_REMOTE,
  269. IDD_PAGE_NEXT = IDD_PAGE_WIZ_FINAL_INSTALL_COPY_FROM_REMOTE,
  270. IDD_PAGE_PREV = IDD_PAGE_WIZ_CHOOSE_SERVER_SITE
  271. };
  272. DECLARE_DYNCREATE(CInstallCopyFromRemotePage)
  273. public:
  274. CInstallCopyFromRemotePage(CCertificate * pCert = NULL)
  275. : CCertContentsPage(CInstallCopyFromRemotePage::IDD, pCert)
  276. {
  277. }
  278. virtual BOOL GetCertDescription(CERT_DESCRIPTION& cd);
  279. virtual LRESULT OnWizardBack();
  280. virtual LRESULT OnWizardNext();
  281. };
  282. class CInstallMoveFromRemotePage : public CCertContentsPage
  283. {
  284. enum
  285. {
  286. IDD = IDD_PAGE_WIZ_INSTALL_MOVE_FROM_REMOTE,
  287. IDD_PAGE_NEXT = IDD_PAGE_WIZ_FINAL_INSTALL_MOVE_FROM_REMOTE,
  288. IDD_PAGE_PREV = IDD_PAGE_WIZ_CHOOSE_SERVER_SITE
  289. };
  290. DECLARE_DYNCREATE(CInstallMoveFromRemotePage)
  291. public:
  292. CInstallMoveFromRemotePage(CCertificate * pCert = NULL)
  293. : CCertContentsPage(CInstallMoveFromRemotePage::IDD, pCert)
  294. {
  295. }
  296. virtual BOOL GetCertDescription(CERT_DESCRIPTION& cd);
  297. virtual LRESULT OnWizardBack();
  298. virtual LRESULT OnWizardNext();
  299. };
  300. class CInstallCopyToRemotePage : public CCertContentsPage
  301. {
  302. enum
  303. {
  304. IDD = IDD_PAGE_WIZ_INSTALL_COPY_TO_REMOTE,
  305. IDD_PAGE_NEXT = IDD_PAGE_WIZ_FINAL_INSTALL_COPY_TO_REMOTE,
  306. IDD_PAGE_PREV = IDD_PAGE_WIZ_CHOOSE_SERVER_SITE
  307. };
  308. DECLARE_DYNCREATE(CInstallCopyToRemotePage)
  309. public:
  310. CInstallCopyToRemotePage(CCertificate * pCert = NULL)
  311. : CCertContentsPage(CInstallCopyToRemotePage::IDD, pCert)
  312. {
  313. }
  314. virtual BOOL GetCertDescription(CERT_DESCRIPTION& cd);
  315. virtual LRESULT OnWizardBack();
  316. virtual LRESULT OnWizardNext();
  317. };
  318. class CInstallMoveToRemotePage : public CCertContentsPage
  319. {
  320. enum
  321. {
  322. IDD = IDD_PAGE_WIZ_INSTALL_MOVE_TO_REMOTE,
  323. IDD_PAGE_NEXT = IDD_PAGE_WIZ_FINAL_INSTALL_MOVE_TO_REMOTE,
  324. IDD_PAGE_PREV = IDD_PAGE_WIZ_CHOOSE_SERVER_SITE
  325. };
  326. DECLARE_DYNCREATE(CInstallMoveToRemotePage)
  327. public:
  328. CInstallMoveToRemotePage(CCertificate * pCert = NULL)
  329. : CCertContentsPage(CInstallMoveToRemotePage::IDD, pCert)
  330. {
  331. }
  332. virtual BOOL GetCertDescription(CERT_DESCRIPTION& cd);
  333. virtual LRESULT OnWizardBack();
  334. virtual LRESULT OnWizardNext();
  335. };
  336. #endif //_CERT_CONTENTS_PAGES_H