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.

92 lines
3.0 KiB

  1. /////////////////////////////////////////////////////////////////////////////////
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 2000-2001.
  5. //
  6. // File: TemplateExtensionsPropertyPage.h
  7. //
  8. // Contents: Definition of CTemplateExtensionsPropertyPage
  9. //
  10. //----------------------------------------------------------------------------
  11. #if !defined(AFX_TEMPLATEEXTENSIONSPROPERTYPAGE_H__6C588253_32DA_4E99_A714_EAECE8C81B20__INCLUDED_)
  12. #define AFX_TEMPLATEEXTENSIONSPROPERTYPAGE_H__6C588253_32DA_4E99_A714_EAECE8C81B20__INCLUDED_
  13. #if _MSC_VER > 1000
  14. #pragma once
  15. #endif // _MSC_VER > 1000
  16. // TemplateExtensionsPropertyPage.h : header file
  17. //
  18. #include "CertTemplate.h"
  19. #include "PolicyOID.h"
  20. /////////////////////////////////////////////////////////////////////////////
  21. // CTemplateExtensionsPropertyPage dialog
  22. class CTemplateExtensionsPropertyPage : public CHelpPropertyPage
  23. {
  24. // Construction
  25. public:
  26. CTemplateExtensionsPropertyPage(CCertTemplate& rCertTemplate,
  27. bool& rbIsDirty);
  28. ~CTemplateExtensionsPropertyPage();
  29. // Dialog Data
  30. //{{AFX_DATA(CTemplateExtensionsPropertyPage)
  31. enum { IDD = IDD_TEMPLATE_EXTENSIONS };
  32. CListCtrl m_extensionList;
  33. //}}AFX_DATA
  34. // Overrides
  35. // ClassWizard generate virtual function overrides
  36. //{{AFX_VIRTUAL(CTemplateExtensionsPropertyPage)
  37. public:
  38. virtual BOOL OnSetActive();
  39. protected:
  40. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  41. //}}AFX_VIRTUAL
  42. // Implementation
  43. protected:
  44. void ShowDescription ();
  45. void SetCertTemplateExtension (PCERT_EXTENSION pCertExtension);
  46. void SetCertTypeDescription (PCERT_EXTENSION pCertExtension);
  47. void SetKeyUsageDescription (PCERT_EXTENSION pCertExtension);
  48. void SetEnhancedKeyUsageDescription (bool bCritical);
  49. void SetCertPoliciesDescription (bool bCritical);
  50. void SetBasicConstraintsDescription (PCERT_EXTENSION pCertExtension);
  51. void SetApplicationPoliciesDescription (bool bCritical);
  52. HRESULT InsertListItem (LPSTR pszExtensionOid, BOOL fCritical);
  53. virtual void DoContextHelp (HWND hWndControl);
  54. int GetSelectedListItem ();
  55. // Generated message map functions
  56. //{{AFX_MSG(CTemplateExtensionsPropertyPage)
  57. virtual BOOL OnInitDialog();
  58. virtual void OnOK();
  59. afx_msg void OnShowDetails();
  60. afx_msg void OnItemchangedExtensionList(NMHDR* pNMHDR, LRESULT* pResult);
  61. afx_msg void OnDblclkExtensionList(NMHDR* pNMHDR, LRESULT* pResult);
  62. afx_msg void OnDeleteitemExtensionList(NMHDR* pNMHDR, LRESULT* pResult);
  63. afx_msg void OnDestroy();
  64. //}}AFX_MSG
  65. DECLARE_MESSAGE_MAP()
  66. void EnableControls ();
  67. private:
  68. bool& m_rbIsDirty;
  69. CCertTemplate& m_rCertTemplate;
  70. WTL::CImageList m_imageListSmall;
  71. WTL::CImageList m_imageListNormal;
  72. enum {
  73. COL_CERT_EXTENSION = 0,
  74. NUM_COLS // must be last
  75. };
  76. };
  77. //{{AFX_INSERT_LOCATION}}
  78. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  79. #endif // !defined(AFX_TEMPLATEEXTENSIONSPROPERTYPAGE_H__6C588253_32DA_4E99_A714_EAECE8C81B20__INCLUDED_)