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.

96 lines
3.4 KiB

  1. //+---------------------------------------------------------------------------
  2. /////////////////////////////////////////////////////////////////////////////////
  3. //
  4. // Microsoft Windows
  5. // Copyright (C) Microsoft Corporation, 2000-2001.
  6. //
  7. // File: SaferEntryCertificatePropertyPage.h
  8. //
  9. // Contents: Declaration of CSaferEntryCertificatePropertyPage
  10. //
  11. //----------------------------------------------------------------------------
  12. #if !defined(AFX_SAFERENTRYCERTIFICATEPROPERTYPAGE_H__C75F826D_B054_45CC_B440_34F44645FF90__INCLUDED_)
  13. #define AFX_SAFERENTRYCERTIFICATEPROPERTYPAGE_H__C75F826D_B054_45CC_B440_34F44645FF90__INCLUDED_
  14. #if _MSC_VER > 1000
  15. #pragma once
  16. #endif // _MSC_VER > 1000
  17. // SaferEntryCertificatePropertyPage.h : header file
  18. //
  19. #include "SaferEntry.h"
  20. #include <cryptui.h>
  21. #include "SaferUtil.h"
  22. /////////////////////////////////////////////////////////////////////////////
  23. // CSaferEntryCertificatePropertyPage dialog
  24. class CCertMgrComponentData; // forward declaration
  25. class CSaferEntryCertificatePropertyPage : public CHelpPropertyPage
  26. {
  27. // Construction
  28. public:
  29. CSaferEntryCertificatePropertyPage(CSaferEntry& rSaferEntry,
  30. CSaferEntries* pSaferEntries,
  31. LONG_PTR lNotifyHandle,
  32. LPDATAOBJECT pDataObject,
  33. bool bReadOnly,
  34. CCertMgrComponentData* pCompData,
  35. bool bNew,
  36. IGPEInformation* pGPEInformation,
  37. bool bIsMachine);
  38. ~CSaferEntryCertificatePropertyPage();
  39. // Dialog Data
  40. //{{AFX_DATA(CSaferEntryCertificatePropertyPage)
  41. enum { IDD = IDD_SAFER_ENTRY_CERTIFICATE };
  42. CEdit m_descriptionEdit;
  43. CComboBox m_securityLevelCombo;
  44. //}}AFX_DATA
  45. // Overrides
  46. // ClassWizard generate virtual function overrides
  47. //{{AFX_VIRTUAL(CSaferEntryCertificatePropertyPage)
  48. public:
  49. virtual BOOL OnApply();
  50. protected:
  51. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  52. //}}AFX_VIRTUAL
  53. // Implementation
  54. protected:
  55. // Generated message map functions
  56. //{{AFX_MSG(CSaferEntryCertificatePropertyPage)
  57. virtual BOOL OnInitDialog();
  58. afx_msg void OnCertEntryBrowse();
  59. afx_msg void OnChangeCertEntryDescription();
  60. afx_msg void OnSelchangeCertEntrySecurityLevel();
  61. afx_msg void OnSaferCertView();
  62. afx_msg void OnSetfocusCertEntrySubjectName();
  63. //}}AFX_MSG
  64. DECLARE_MESSAGE_MAP()
  65. virtual void DoContextHelp (HWND hWndControl);
  66. void LaunchCommonCertDialog ();
  67. private:
  68. CCertStore* m_pOriginalStore;
  69. bool m_bDirty;
  70. CSaferEntry& m_rSaferEntry;
  71. CRYPTUI_SELECTCERTIFICATE_STRUCT m_selCertStruct;
  72. bool m_bStoresEnumerated;
  73. bool m_bCertificateChanged;
  74. PCCERT_CONTEXT m_pCertContext;
  75. CSaferEntries* m_pSaferEntries;
  76. LONG_PTR m_lNotifyHandle;
  77. LPDATAOBJECT m_pDataObject;
  78. const bool m_bReadOnly;
  79. CCertMgrComponentData* m_pCompData;
  80. IGPEInformation* m_pGPEInformation;
  81. bool m_bIsMachine;
  82. bool m_bFirst;
  83. };
  84. //{{AFX_INSERT_LOCATION}}
  85. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  86. #endif // !defined(AFX_SAFERENTRYCERTIFICATEPROPERTYPAGE_H__C75F826D_B054_45CC_B440_34F44645FF90__INCLUDED_)