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.

381 lines
8.8 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. };
  57. DECLARE_DYNCREATE(CInstallCertPage)
  58. public:
  59. CInstallCertPage(CCertificate * pCert = NULL)
  60. : CCertContentsPage(CInstallCertPage::IDD, pCert)
  61. {
  62. }
  63. virtual BOOL GetCertDescription(CERT_DESCRIPTION& cd);
  64. virtual LRESULT OnWizardBack() {return IDD_PAGE_PREV;}
  65. virtual LRESULT OnWizardNext();
  66. };
  67. class CReplaceCertPage : public CCertContentsPage
  68. {
  69. enum
  70. {
  71. IDD = IDD_PAGE_WIZ_REPLACE_CERT,
  72. IDD_PAGE_NEXT = IDD_PAGE_WIZ_FINAL_REPLACE,
  73. IDD_PAGE_PREV = IDD_PAGE_WIZ_CHOOSE_CERT
  74. };
  75. DECLARE_DYNCREATE(CReplaceCertPage)
  76. public:
  77. CReplaceCertPage(CCertificate * pCert = NULL)
  78. : CCertContentsPage(CReplaceCertPage::IDD, pCert)
  79. {
  80. }
  81. virtual BOOL GetCertDescription(CERT_DESCRIPTION& cd);
  82. virtual LRESULT OnWizardBack() {return IDD_PAGE_PREV;}
  83. virtual LRESULT OnWizardNext();
  84. };
  85. class CInstallKeyPage : public CCertContentsPage
  86. {
  87. enum
  88. {
  89. IDD = IDD_PAGE_WIZ_INSTALL_KEYCERT,
  90. IDD_PAGE_NEXT = IDD_PAGE_WIZ_FINAL_INSTALL,
  91. IDD_PAGE_PREV = IDD_PAGE_WIZ_GET_PASSWORD
  92. };
  93. DECLARE_DYNCREATE(CInstallKeyPage)
  94. public:
  95. CInstallKeyPage(CCertificate * pCert = NULL)
  96. : CCertContentsPage(CInstallKeyPage::IDD, pCert)
  97. {
  98. }
  99. virtual BOOL GetCertDescription(CERT_DESCRIPTION& cd);
  100. virtual LRESULT OnWizardBack() {return IDD_PAGE_PREV;}
  101. virtual LRESULT OnWizardNext();
  102. virtual BOOL OnSetActive();
  103. };
  104. class CInstallImportPFXPage : public CCertContentsPage
  105. {
  106. enum
  107. {
  108. IDD = IDD_PAGE_WIZ_INSTALL_IMPORT_PFX,
  109. IDD_PAGE_NEXT = IDD_PAGE_WIZ_FINAL_INSTALL_IMPORT_PFX,
  110. IDD_PAGE_PREV = IDD_PAGE_WIZ_GET_IMPORT_PFX_PASSWORD
  111. };
  112. DECLARE_DYNCREATE(CInstallImportPFXPage)
  113. public:
  114. CInstallImportPFXPage(CCertificate * pCert = NULL)
  115. : CCertContentsPage(CInstallImportPFXPage::IDD, pCert)
  116. {
  117. }
  118. virtual BOOL GetCertDescription(CERT_DESCRIPTION& cd);
  119. virtual LRESULT OnWizardBack() {return IDD_PAGE_PREV;}
  120. virtual LRESULT OnWizardNext();
  121. virtual BOOL OnSetActive();
  122. };
  123. class CInstallExportPFXPage : public CCertContentsPage
  124. {
  125. enum
  126. {
  127. IDD = IDD_PAGE_WIZ_INSTALL_EXPORT_PFX,
  128. IDD_PAGE_NEXT = IDD_PAGE_WIZ_FINAL_INSTALL_EXPORT_PFX,
  129. IDD_PAGE_PREV = IDD_PAGE_WIZ_GET_EXPORT_PFX_PASSWORD
  130. };
  131. DECLARE_DYNCREATE(CInstallExportPFXPage)
  132. public:
  133. CInstallExportPFXPage(CCertificate * pCert = NULL)
  134. : CCertContentsPage(CInstallExportPFXPage::IDD, pCert)
  135. {
  136. }
  137. virtual BOOL GetCertDescription(CERT_DESCRIPTION& cd);
  138. virtual LRESULT OnWizardBack() {return IDD_PAGE_PREV;}
  139. virtual LRESULT OnWizardNext();
  140. virtual BOOL OnSetActive();
  141. };
  142. class CInstallRespPage : public CCertContentsPage
  143. {
  144. enum
  145. {
  146. IDD = IDD_PAGE_WIZ_INSTALL_RESP,
  147. IDD_PAGE_NEXT = IDD_PAGE_WIZ_FINAL_INSTALL,
  148. IDD_PAGE_PREV = IDD_PAGE_WIZ_GETRESP_FILE
  149. };
  150. DECLARE_DYNCREATE(CInstallRespPage)
  151. public:
  152. CInstallRespPage(CCertificate * pCert = NULL)
  153. : CCertContentsPage(CInstallRespPage::IDD, pCert)
  154. {
  155. }
  156. virtual BOOL GetCertDescription(CERT_DESCRIPTION& cd);
  157. virtual LRESULT OnWizardBack() {return IDD_PAGE_PREV;}
  158. virtual LRESULT OnWizardNext();
  159. virtual BOOL OnSetActive();
  160. };
  161. class CRequestCancelPage : public CCertContentsPage
  162. {
  163. enum
  164. {
  165. IDD = IDD_PAGE_WIZ_CANCEL_REQUEST,
  166. IDD_PAGE_NEXT = IDD_PAGE_WIZ_FINAL_CANCEL,
  167. IDD_PAGE_PREV = IDD_PAGE_WIZ_PENDING_WHAT_TODO
  168. };
  169. DECLARE_DYNCREATE(CRequestCancelPage)
  170. public:
  171. CRequestCancelPage(CCertificate * pCert = NULL)
  172. : CCertContentsPage(CRequestCancelPage::IDD, pCert)
  173. {
  174. }
  175. virtual BOOL GetCertDescription(CERT_DESCRIPTION& cd);
  176. virtual LRESULT OnWizardBack() {return IDD_PAGE_PREV;}
  177. virtual LRESULT OnWizardNext();
  178. };
  179. class CRemoveCertPage : public CCertContentsPage
  180. {
  181. enum
  182. {
  183. IDD = IDD_PAGE_WIZ_REMOVE_CERT,
  184. IDD_PAGE_NEXT = IDD_PAGE_WIZ_FINAL_REMOVE,
  185. IDD_PAGE_PREV = IDD_PAGE_WIZ_MANAGE_CERT
  186. };
  187. DECLARE_DYNCREATE(CRemoveCertPage)
  188. public:
  189. CRemoveCertPage(CCertificate * pCert = NULL)
  190. : CCertContentsPage(CRemoveCertPage::IDD, pCert)
  191. {
  192. }
  193. virtual BOOL GetCertDescription(CERT_DESCRIPTION& cd);
  194. virtual LRESULT OnWizardBack() {return IDD_PAGE_PREV;}
  195. virtual LRESULT OnWizardNext();
  196. };
  197. class CRequestToFilePage : public CCertContentsPage
  198. {
  199. enum
  200. {
  201. IDD = IDD_PAGE_WIZ_REQUEST_DUMP,
  202. IDD_PAGE_NEXT = IDD_PAGE_WIZ_FINAL_TO_FILE,
  203. IDD_PAGE_PREV = IDD_PAGE_WIZ_CHOOSE_FILENAME
  204. };
  205. DECLARE_DYNCREATE(CRequestToFilePage)
  206. public:
  207. CRequestToFilePage(CCertificate * pCert = NULL)
  208. : CCertContentsPage(CRequestToFilePage::IDD, pCert)
  209. {
  210. }
  211. virtual BOOL OnSetActive();
  212. virtual LRESULT OnWizardBack() {return IDD_PAGE_PREV;}
  213. virtual LRESULT OnWizardNext();
  214. };
  215. class CRequestToFilePageRenew : public CCertContentsPage
  216. {
  217. enum
  218. {
  219. IDD = IDD_PAGE_WIZ_REQUEST_DUMP_RENEW,
  220. IDD_PAGE_NEXT = IDD_PAGE_WIZ_FINAL_TO_FILE,
  221. IDD_PAGE_PREV = IDD_PAGE_WIZ_CHOOSE_FILENAME_RENEW
  222. };
  223. DECLARE_DYNCREATE(CRequestToFilePageRenew)
  224. public:
  225. CRequestToFilePageRenew(CCertificate * pCert = NULL)
  226. : CCertContentsPage(CRequestToFilePageRenew::IDD, pCert)
  227. {
  228. }
  229. virtual BOOL OnSetActive();
  230. virtual LRESULT OnWizardBack() {return IDD_PAGE_PREV;}
  231. virtual LRESULT OnWizardNext();
  232. };
  233. class COnlineRequestSubmit : public CCertContentsPage
  234. {
  235. enum
  236. {
  237. IDD = IDD_PAGE_WIZ_ONLINE_DUMP,
  238. IDD_PAGE_NEXT = IDD_PAGE_WIZ_FINAL_INSTALL,
  239. IDD_PAGE_PREV = IDD_PAGE_WIZ_CHOOSE_ONLINE
  240. };
  241. DECLARE_DYNCREATE(COnlineRequestSubmit)
  242. public:
  243. COnlineRequestSubmit(CCertificate * pCert = NULL)
  244. : CCertContentsPage(COnlineRequestSubmit::IDD, pCert)
  245. {
  246. }
  247. virtual BOOL GetCertDescription(CERT_DESCRIPTION& cd);
  248. virtual LRESULT OnWizardBack() {return IDD_PAGE_PREV;}
  249. virtual LRESULT OnWizardNext();
  250. virtual BOOL OnSetActive();
  251. };
  252. class CInstallCopyFromRemotePage : public CCertContentsPage
  253. {
  254. enum
  255. {
  256. IDD = IDD_PAGE_WIZ_INSTALL_COPY_FROM_REMOTE,
  257. IDD_PAGE_NEXT = IDD_PAGE_WIZ_FINAL_INSTALL_COPY_FROM_REMOTE,
  258. IDD_PAGE_PREV = IDD_PAGE_WIZ_CHOOSE_SERVER_SITE
  259. };
  260. DECLARE_DYNCREATE(CInstallCopyFromRemotePage)
  261. public:
  262. CInstallCopyFromRemotePage(CCertificate * pCert = NULL)
  263. : CCertContentsPage(CInstallCopyFromRemotePage::IDD, pCert)
  264. {
  265. }
  266. virtual BOOL GetCertDescription(CERT_DESCRIPTION& cd);
  267. virtual LRESULT OnWizardBack() {return IDD_PAGE_PREV;}
  268. virtual LRESULT OnWizardNext();
  269. };
  270. class CInstallMoveFromRemotePage : public CCertContentsPage
  271. {
  272. enum
  273. {
  274. IDD = IDD_PAGE_WIZ_INSTALL_MOVE_FROM_REMOTE,
  275. IDD_PAGE_NEXT = IDD_PAGE_WIZ_FINAL_INSTALL_MOVE_FROM_REMOTE,
  276. IDD_PAGE_PREV = IDD_PAGE_WIZ_CHOOSE_SERVER_SITE
  277. };
  278. DECLARE_DYNCREATE(CInstallMoveFromRemotePage)
  279. public:
  280. CInstallMoveFromRemotePage(CCertificate * pCert = NULL)
  281. : CCertContentsPage(CInstallMoveFromRemotePage::IDD, pCert)
  282. {
  283. }
  284. virtual BOOL GetCertDescription(CERT_DESCRIPTION& cd);
  285. virtual LRESULT OnWizardBack() {return IDD_PAGE_PREV;}
  286. virtual LRESULT OnWizardNext();
  287. };
  288. class CInstallCopyToRemotePage : public CCertContentsPage
  289. {
  290. enum
  291. {
  292. IDD = IDD_PAGE_WIZ_INSTALL_COPY_TO_REMOTE,
  293. IDD_PAGE_NEXT = IDD_PAGE_WIZ_FINAL_INSTALL_COPY_TO_REMOTE,
  294. IDD_PAGE_PREV = IDD_PAGE_WIZ_CHOOSE_SERVER_SITE
  295. };
  296. DECLARE_DYNCREATE(CInstallCopyToRemotePage)
  297. public:
  298. CInstallCopyToRemotePage(CCertificate * pCert = NULL)
  299. : CCertContentsPage(CInstallCopyToRemotePage::IDD, pCert)
  300. {
  301. }
  302. virtual BOOL GetCertDescription(CERT_DESCRIPTION& cd);
  303. virtual LRESULT OnWizardBack() {return IDD_PAGE_PREV;}
  304. virtual LRESULT OnWizardNext();
  305. };
  306. class CInstallMoveToRemotePage : public CCertContentsPage
  307. {
  308. enum
  309. {
  310. IDD = IDD_PAGE_WIZ_INSTALL_MOVE_TO_REMOTE,
  311. IDD_PAGE_NEXT = IDD_PAGE_WIZ_FINAL_INSTALL_MOVE_TO_REMOTE,
  312. IDD_PAGE_PREV = IDD_PAGE_WIZ_CHOOSE_SERVER_SITE
  313. };
  314. DECLARE_DYNCREATE(CInstallMoveToRemotePage)
  315. public:
  316. CInstallMoveToRemotePage(CCertificate * pCert = NULL)
  317. : CCertContentsPage(CInstallMoveToRemotePage::IDD, pCert)
  318. {
  319. }
  320. virtual BOOL GetCertDescription(CERT_DESCRIPTION& cd);
  321. virtual LRESULT OnWizardBack() {return IDD_PAGE_PREV;}
  322. virtual LRESULT OnWizardNext();
  323. };
  324. #endif //_CERT_CONTENTS_PAGES_H