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.

77 lines
2.0 KiB

  1. /////////////////////////////////////////////////////////////////////////////////
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 2000-2001.
  5. //
  6. // File: PolicyDlg.h
  7. //
  8. // Contents: Definition of CPolicyDlg
  9. //
  10. //----------------------------------------------------------------------------
  11. #if !defined(AFX_POLICYDLG_H__824C478F_445C_44A8_8FC1_67A91BED283F__INCLUDED_)
  12. #define AFX_POLICYDLG_H__824C478F_445C_44A8_8FC1_67A91BED283F__INCLUDED_
  13. #if _MSC_VER > 1000
  14. #pragma once
  15. #endif // _MSC_VER > 1000
  16. // PolicyDlg.h : header file
  17. //
  18. #include "CertTemplate.h"
  19. #include "PolicyOID.h"
  20. /////////////////////////////////////////////////////////////////////////////
  21. // CPolicyDlg dialog
  22. class CPolicyDlg : public CHelpDialog
  23. {
  24. // Construction
  25. public:
  26. CPolicyDlg(CWnd* pParent,
  27. CCertTemplate& rCertTemplate,
  28. PCERT_EXTENSION pCertExtension);
  29. ~CPolicyDlg();
  30. // Dialog Data
  31. //{{AFX_DATA(CPolicyDlg)
  32. enum { IDD = IDD_POLICY };
  33. CListBox m_policyList;
  34. //}}AFX_DATA
  35. // Overrides
  36. // ClassWizard generate virtual function overrides
  37. //{{AFX_VIRTUAL(CPolicyDlg)
  38. protected:
  39. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  40. //}}AFX_VIRTUAL
  41. // Implementation
  42. protected:
  43. virtual void DoContextHelp (HWND hWndControl);
  44. void EnableControls();
  45. // Generated message map functions
  46. //{{AFX_MSG(CPolicyDlg)
  47. virtual BOOL OnInitDialog();
  48. afx_msg void OnCancelMode();
  49. afx_msg void OnAddPolicy();
  50. afx_msg void OnRemovePolicy();
  51. afx_msg void OnPolicyCritical();
  52. afx_msg void OnDestroy();
  53. afx_msg void OnSelchangePoliciesList();
  54. afx_msg void OnEditPolicy();
  55. virtual void OnOK();
  56. //}}AFX_MSG
  57. DECLARE_MESSAGE_MAP()
  58. private:
  59. bool m_bModified;
  60. const bool m_bIsEKU;
  61. const bool m_bIsApplicationPolicy;
  62. CCertTemplate& m_rCertTemplate;
  63. PCERT_EXTENSION m_pCertExtension;
  64. };
  65. //{{AFX_INSERT_LOCATION}}
  66. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  67. #endif // !defined(AFX_POLICYDLG_H__824C478F_445C_44A8_8FC1_67A91BED283F__INCLUDED_)