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.

152 lines
3.5 KiB

  1. #if !defined(AFX_KEYPASSWORDPAGE_H__7209C46A_15CB_11D2_91BB_00C04F8C8761__INCLUDED_)
  2. #define AFX_KEYPASSWORDPAGE_H__7209C46A_15CB_11D2_91BB_00C04F8C8761__INCLUDED_
  3. #if _MSC_VER > 1000
  4. #pragma once
  5. #endif // _MSC_VER > 1000
  6. // KeyPassword.h : header file
  7. //
  8. /////////////////////////////////////////////////////////////////////////////
  9. // CKeyPasswordPage dialog
  10. class CCertificate;
  11. class CKeyPasswordPage : public CIISWizardPage
  12. {
  13. DECLARE_DYNCREATE(CKeyPasswordPage)
  14. // Construction
  15. public:
  16. CKeyPasswordPage(CCertificate * pCert = NULL);
  17. ~CKeyPasswordPage();
  18. enum
  19. {
  20. IDD_PAGE_PREV = IDD_PAGE_WIZ_GETKEY_FILE,
  21. IDD_PAGE_NEXT = IDD_PAGE_WIZ_INSTALL_KEYCERT
  22. };
  23. // Dialog Data
  24. //{{AFX_DATA(CKeyPasswordPage)
  25. enum { IDD = IDD_PAGE_WIZ_GET_PASSWORD };
  26. CString m_Password;
  27. //}}AFX_DATA
  28. CCertificate * m_pCert;
  29. // Overrides
  30. // ClassWizard generate virtual function overrides
  31. //{{AFX_VIRTUAL(CKeyPasswordPage)
  32. protected:
  33. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  34. public:
  35. virtual LRESULT OnWizardNext();
  36. virtual LRESULT OnWizardBack();
  37. virtual BOOL OnSetActive();
  38. virtual BOOL OnKillActive();
  39. //}}AFX_VIRTUAL
  40. // Implementation
  41. protected:
  42. // Generated message map functions
  43. //{{AFX_MSG(CKeyPasswordPage)
  44. afx_msg void OnEditchangePassword();
  45. //}}AFX_MSG
  46. DECLARE_MESSAGE_MAP()
  47. };
  48. class CImportPFXPasswordPage : public CIISWizardPage
  49. {
  50. DECLARE_DYNCREATE(CImportPFXPasswordPage)
  51. // Construction
  52. public:
  53. CImportPFXPasswordPage(CCertificate * pCert = NULL);
  54. ~CImportPFXPasswordPage();
  55. enum
  56. {
  57. IDD_PAGE_PREV = IDD_PAGE_WIZ_GET_IMPORT_PFX_FILE,
  58. IDD_PAGE_NEXT = IDD_PAGE_WIZ_INSTALL_IMPORT_PFX
  59. };
  60. // Dialog Data
  61. //{{AFX_DATA(CImportPFXPasswordPage)
  62. enum { IDD = IDD_PAGE_WIZ_GET_IMPORT_PFX_PASSWORD };
  63. CString m_Password;
  64. //}}AFX_DATA
  65. CCertificate * m_pCert;
  66. // Overrides
  67. // ClassWizard generate virtual function overrides
  68. //{{AFX_VIRTUAL(CImportPFXPasswordPage)
  69. protected:
  70. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  71. public:
  72. virtual LRESULT OnWizardNext();
  73. virtual LRESULT OnWizardBack();
  74. virtual BOOL OnSetActive();
  75. virtual BOOL OnKillActive();
  76. //}}AFX_VIRTUAL
  77. // Implementation
  78. protected:
  79. // Generated message map functions
  80. //{{AFX_MSG(CImportPFXPasswordPage)
  81. afx_msg void OnEditchangePassword();
  82. //}}AFX_MSG
  83. DECLARE_MESSAGE_MAP()
  84. };
  85. class CExportPFXPasswordPage : public CIISWizardPage
  86. {
  87. DECLARE_DYNCREATE(CExportPFXPasswordPage)
  88. // Construction
  89. public:
  90. CExportPFXPasswordPage(CCertificate * pCert = NULL);
  91. ~CExportPFXPasswordPage();
  92. enum
  93. {
  94. IDD_PAGE_PREV = IDD_PAGE_WIZ_GET_EXPORT_PFX_FILE,
  95. IDD_PAGE_NEXT = IDD_PAGE_WIZ_INSTALL_EXPORT_PFX
  96. };
  97. // Dialog Data
  98. //{{AFX_DATA(CExportPFXPasswordPage)
  99. enum { IDD = IDD_PAGE_WIZ_GET_EXPORT_PFX_PASSWORD };
  100. CString m_Password;
  101. BOOL m_Export_Private_key;
  102. //}}AFX_DATA
  103. CCertificate * m_pCert;
  104. // Overrides
  105. // ClassWizard generate virtual function overrides
  106. //{{AFX_VIRTUAL(CExportPFXPasswordPage)
  107. protected:
  108. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  109. public:
  110. virtual LRESULT OnWizardNext();
  111. virtual LRESULT OnWizardBack();
  112. virtual BOOL OnSetActive();
  113. virtual BOOL OnKillActive();
  114. //}}AFX_VIRTUAL
  115. // Implementation
  116. protected:
  117. // Generated message map functions
  118. //{{AFX_MSG(CExportPFXPasswordPage)
  119. afx_msg void OnEditchangePassword();
  120. //}}AFX_MSG
  121. DECLARE_MESSAGE_MAP()
  122. };
  123. //{{AFX_INSERT_LOCATION}}
  124. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  125. #endif // !defined(AFX_KEYPASSWORDPAGE_H__7209C46A_15CB_11D2_91BB_00C04F8C8761__INCLUDED_)