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.

76 lines
2.0 KiB

  1. #if !defined(AFX_SECURITYSETTINGSPAGE_H__549054D4_1561_11D2_8A1F_000000000000__INCLUDED_)
  2. #define AFX_SECURITYSETTINGSPAGE_H__549054D4_1561_11D2_8A1F_000000000000__INCLUDED_
  3. #if _MSC_VER > 1000
  4. #pragma once
  5. #endif // _MSC_VER > 1000
  6. // SecuritySettingsPage.h : header file
  7. //
  8. /////////////////////////////////////////////////////////////////////////////
  9. // CSecuritySettingsPage dialog
  10. class CCertificate;
  11. typedef struct _KEY_LIMITS
  12. {
  13. DWORD min, max, def;
  14. } KEY_LIMITS;
  15. class CSecuritySettingsPage : public CIISWizardPage
  16. {
  17. DECLARE_DYNCREATE(CSecuritySettingsPage)
  18. // Construction
  19. public:
  20. CSecuritySettingsPage(CCertificate * pCert = NULL);
  21. ~CSecuritySettingsPage();
  22. enum
  23. {
  24. IDD_PREV_PAGE = IDD_PAGE_WIZ_CHOOSE_CA,
  25. IDD_NEXT_PAGE = IDD_PAGE_WIZ_ORG_INFO,
  26. IDD_NEXT_CSP = IDD_PAGE_WIZ_CHOOSE_CSP
  27. };
  28. // Dialog Data
  29. //{{AFX_DATA(CSecuritySettingsPage)
  30. enum { IDD = IDD_PAGE_WIZ_SECURITY_SETTINGS };
  31. int m_BitLengthIndex;
  32. CString m_FriendlyName;
  33. BOOL m_SGC_cert;
  34. BOOL m_choose_CSP;
  35. CButton m_check_csp;
  36. //}}AFX_DATA
  37. CCertificate * m_pCert;
  38. CList<int, int> m_regkey_size_list;
  39. CList<int, int> m_sgckey_size_list;
  40. KEY_LIMITS m_regkey_limits, m_sgckey_limits;
  41. int m_lru_reg, m_lru_sgc;
  42. // Overrides
  43. // ClassWizard generate virtual function overrides
  44. //{{AFX_VIRTUAL(CSecuritySettingsPage)
  45. protected:
  46. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  47. public:
  48. virtual BOOL OnSetActive();
  49. virtual LRESULT OnWizardNext();
  50. virtual LRESULT OnWizardPrev();
  51. //}}AFX_VIRTUAL
  52. // Implementation
  53. protected:
  54. // Generated message map functions
  55. //{{AFX_MSG(CSecuritySettingsPage)
  56. virtual BOOL OnInitDialog();
  57. afx_msg void OnChangeFriendlyName();
  58. afx_msg void OnSgcCert();
  59. afx_msg void OnSelectCsp();
  60. //}}AFX_MSG
  61. DECLARE_MESSAGE_MAP()
  62. void SetupKeySizesCombo();
  63. };
  64. //{{AFX_INSERT_LOCATION}}
  65. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  66. #endif // !defined(AFX_SECURITYSETTINGSPAGE_H__549054D4_1561_11D2_8A1F_000000000000__INCLUDED_)