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.

90 lines
3.2 KiB

  1. //+---------------------------------------------------------------------------
  2. /////////////////////////////////////////////////////////////////////////////////
  3. //
  4. // Microsoft Windows
  5. // Copyright (C) Microsoft Corporation, 2000-2002.
  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 <cryptui.h>
  20. #include "SaferUtil.h"
  21. #include "SaferPropertyPage.h"
  22. /////////////////////////////////////////////////////////////////////////////
  23. // CSaferEntryCertificatePropertyPage dialog
  24. class CSaferEntryCertificatePropertyPage : public CSaferPropertyPage
  25. {
  26. // Construction
  27. public:
  28. CSaferEntryCertificatePropertyPage(CSaferEntry& rSaferEntry,
  29. CSaferEntries* pSaferEntries,
  30. LONG_PTR lNotifyHandle,
  31. LPDATAOBJECT pDataObject,
  32. bool bReadOnly,
  33. CCertMgrComponentData* pCompData,
  34. bool bNew,
  35. IGPEInformation* pGPEInformation,
  36. bool bIsMachine,
  37. bool* pbObjectCreated = 0);
  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. void GetCertFromSignedFile (const CString& szFilePath);
  66. virtual void DoContextHelp (HWND hWndControl);
  67. void LaunchCommonCertDialog ();
  68. private:
  69. CCertStore* m_pOriginalStore;
  70. CRYPTUI_SELECTCERTIFICATE_STRUCT m_selCertStruct;
  71. bool m_bStoresEnumerated;
  72. bool m_bCertificateChanged;
  73. PCCERT_CONTEXT m_pCertContext;
  74. CSaferEntries* m_pSaferEntries;
  75. IGPEInformation* m_pGPEInformation;
  76. bool m_bFirst;
  77. };
  78. //{{AFX_INSERT_LOCATION}}
  79. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  80. #endif // !defined(AFX_SAFERENTRYCERTIFICATEPROPERTYPAGE_H__C75F826D_B054_45CC_B440_34F44645FF90__INCLUDED_)