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.

97 lines
2.7 KiB

  1. /////////////////////////////////////////////////////////////////////////////////
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 2002.
  5. //
  6. // File: SelectCSPDlg.h
  7. //
  8. // Contents: Definition of CSelectCSPDlg
  9. //
  10. //----------------------------------------------------------------------------
  11. #if !defined(AFX_SELECTCSPDLG_H__D54310EF_E70D_4911_B40C_7F20C87B9893__INCLUDED_)
  12. #define AFX_SELECTCSPDLG_H__D54310EF_E70D_4911_B40C_7F20C87B9893__INCLUDED_
  13. #if _MSC_VER > 1000
  14. #pragma once
  15. #endif // _MSC_VER > 1000
  16. // SelectCSPDlg.h : header file
  17. //
  18. #include "CertTemplate.h"
  19. #include "TemplateV1RequestPropertyPage.h"
  20. class CT_CSP_DATA
  21. {
  22. public:
  23. CT_CSP_DATA (PCWSTR pszName, DWORD dwProvType, DWORD dwSigMaxKeySize, DWORD dwKeyExMaxKeySize)
  24. : m_szName (pszName),
  25. m_dwProvType (dwProvType),
  26. m_dwSigMaxKeySize (dwSigMaxKeySize),
  27. m_dwKeyExMaxKeySize (dwKeyExMaxKeySize),
  28. m_bConforming (false),
  29. m_bSelected (false)
  30. {
  31. }
  32. CString m_szName;
  33. DWORD m_dwProvType;
  34. DWORD m_dwSigMaxKeySize;
  35. DWORD m_dwKeyExMaxKeySize;
  36. bool m_bConforming;
  37. bool m_bSelected;
  38. };
  39. typedef CTypedPtrList<CPtrList, CT_CSP_DATA*> CSP_LIST;
  40. /////////////////////////////////////////////////////////////////////////////
  41. // CSelectCSPDlg dialog
  42. class CSelectCSPDlg : public CHelpDialog
  43. {
  44. // Construction
  45. public:
  46. CSelectCSPDlg(CWnd* pParent,
  47. CCertTemplate& rCertTemplate,
  48. CSP_LIST& rCSPList,
  49. int& rnProvDSSCnt); // standard constructor
  50. // Dialog Data
  51. //{{AFX_DATA(CSelectCSPDlg)
  52. enum { IDD = IDD_CSP_SELECTION };
  53. CSPCheckListBox m_CSPListbox;
  54. //}}AFX_DATA
  55. // Overrides
  56. // ClassWizard generated virtual function overrides
  57. //{{AFX_VIRTUAL(CSelectCSPDlg)
  58. protected:
  59. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  60. //}}AFX_VIRTUAL
  61. // Implementation
  62. protected:
  63. virtual void DoContextHelp (HWND hWndControl);
  64. void EnableControls ();
  65. // Generated message map functions
  66. //{{AFX_MSG(CSelectCSPDlg)
  67. virtual BOOL OnInitDialog();
  68. afx_msg void OnUseAnyCsp();
  69. afx_msg void OnUseSelectedCsps();
  70. //}}AFX_MSG
  71. afx_msg void OnCheckChange();
  72. DECLARE_MESSAGE_MAP()
  73. private:
  74. CCertTemplate& m_rCertTemplate;
  75. CSP_LIST& m_rCSPList;
  76. int& m_rnProvDSSCnt;
  77. int m_nSelected;
  78. bool m_bDirty;
  79. };
  80. //{{AFX_INSERT_LOCATION}}
  81. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  82. #endif // !defined(AFX_SELECTCSPDLG_H__D54310EF_E70D_4911_B40C_7F20C87B9893__INCLUDED_)