Leaked source code of windows server 2003

94 lines
3.1 KiB

  1. /////////////////////////////////////////////////////////////////////////////////
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 2000-2001.
  5. //
  6. // File: TemplateV2RequestPropertyPage.h
  7. //
  8. // Contents: Definition of CTemplateV2RequestPropertyPage
  9. //
  10. //----------------------------------------------------------------------------
  11. #if !defined(AFX_TEMPLATEV2REQUESTPROPERTYPAGE_H__A3E4D067_D3C3_4C85_A331_97D940A82063__INCLUDED_)
  12. #define AFX_TEMPLATEV2REQUESTPROPERTYPAGE_H__A3E4D067_D3C3_4C85_A331_97D940A82063__INCLUDED_
  13. #if _MSC_VER > 1000
  14. #pragma once
  15. #endif // _MSC_VER > 1000
  16. // TemplateV2RequestPropertyPage.h : header file
  17. //
  18. #include "CertTemplate.h"
  19. #include "TemplateV1RequestPropertyPage.h"
  20. #include "SelectCSPDlg.h"
  21. /////////////////////////////////////////////////////////////////////////////
  22. // CTemplateV2RequestPropertyPage dialog
  23. class CTemplateV2RequestPropertyPage : public CHelpPropertyPage
  24. {
  25. // Construction
  26. public:
  27. CTemplateV2RequestPropertyPage(CCertTemplate& rCertTemplate, bool& rbIsDirty);
  28. virtual ~CTemplateV2RequestPropertyPage();
  29. // Dialog Data
  30. //{{AFX_DATA(CTemplateV2RequestPropertyPage)
  31. enum { IDD = IDD_TEMPLATE_V2_REQUEST };
  32. CComboBox m_minKeySizeCombo;
  33. CComboBox m_purposeCombo;
  34. //}}AFX_DATA
  35. // Overrides
  36. // ClassWizard generate virtual function overrides
  37. //{{AFX_VIRTUAL(CTemplateV2RequestPropertyPage)
  38. public:
  39. protected:
  40. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  41. //}}AFX_VIRTUAL
  42. // Implementation
  43. protected:
  44. int GetSelectedCSPCount ();
  45. virtual void DoContextHelp (HWND hWndControl);
  46. void AddKeySizeToCombo (DWORD dwValue, PCWSTR strValue, DWORD dwSizeToSelect);
  47. HRESULT EnumerateCSPs(DWORD dwMinKeySize);
  48. // Generated message map functions
  49. //{{AFX_MSG(CTemplateV2RequestPropertyPage)
  50. afx_msg void OnSelchangePurposeCombo();
  51. afx_msg void OnExportPrivateKey();
  52. afx_msg void OnArchiveKeyCheck();
  53. afx_msg void OnIncludeSymmetricAlgorithmsCheck();
  54. afx_msg void OnSelchangeMinimumKeysizeValue();
  55. afx_msg void OnDeletePermanently();
  56. afx_msg void OnDestroy();
  57. afx_msg void OnCsps();
  58. afx_msg void OnEnrollWithoutInput();
  59. afx_msg void OnEnrollPromptUser();
  60. afx_msg void OnEnrollPromptUserRequireIfPrivateKey();
  61. //}}AFX_MSG
  62. DECLARE_MESSAGE_MAP()
  63. virtual BOOL OnInitDialog();
  64. virtual void EnableControls ();
  65. HRESULT CSPGetMaxKeySupported (
  66. PCWSTR pszProvider,
  67. DWORD dwProvType,
  68. DWORD& dwSigMaxKey,
  69. DWORD& dwKeyExMaxKey);
  70. void NormalizeCSPList (DWORD dwMinKeySize);
  71. private:
  72. bool& m_rbIsDirty;
  73. CCertTemplate& m_rCertTemplate;
  74. int m_nProvDSSCnt;
  75. CSP_LIST m_CSPList;
  76. };
  77. //{{AFX_INSERT_LOCATION}}
  78. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  79. #endif // !defined(AFX_TEMPLATEV2REQUESTPROPERTYPAGE_H__A3E4D067_D3C3_4C85_A331_97D940A82063__INCLUDED_)