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.

79 lines
2.7 KiB

  1. //+---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 2000-2002.
  5. //
  6. // File: SaferTrustedPublishersPropertyPage.h
  7. //
  8. // Contents: Declaration of CSaferTrustedPublishersPropertyPage
  9. //
  10. //----------------------------------------------------------------------------
  11. #if !defined(AFX_SAFERTRUSTEDPUBLISHERSPROPERTYPAGE_H__B152D75D_6D04_4893_98AF_C070B66DB0E0__INCLUDED_)
  12. #define AFX_SAFERTRUSTEDPUBLISHERSPROPERTYPAGE_H__B152D75D_6D04_4893_98AF_C070B66DB0E0__INCLUDED_
  13. #if _MSC_VER > 1000
  14. #pragma once
  15. #endif // _MSC_VER > 1000
  16. // SaferTrustedPublishersPropertyPage.h : header file
  17. //
  18. /////////////////////////////////////////////////////////////////////////////
  19. // CSaferTrustedPublishersPropertyPage dialog
  20. class CSaferTrustedPublishersPropertyPage : public CHelpPropertyPage
  21. {
  22. // Construction
  23. public:
  24. CSaferTrustedPublishersPropertyPage(
  25. bool fIsMachineType,
  26. IGPEInformation* pGPEInformation,
  27. CCertMgrComponentData* pCompData);
  28. ~CSaferTrustedPublishersPropertyPage();
  29. // Dialog Data
  30. //{{AFX_DATA(CSaferTrustedPublishersPropertyPage)
  31. enum { IDD = IDD_SAFER_TRUSTED_PUBLISHER };
  32. // NOTE - ClassWizard will add data members here.
  33. // DO NOT EDIT what you see in these blocks of generated code !
  34. //}}AFX_DATA
  35. // Overrides
  36. // ClassWizard generate virtual function overrides
  37. //{{AFX_VIRTUAL(CSaferTrustedPublishersPropertyPage)
  38. public:
  39. virtual BOOL OnApply();
  40. protected:
  41. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  42. //}}AFX_VIRTUAL
  43. // Implementation
  44. protected:
  45. // Generated message map functions
  46. //{{AFX_MSG(CSaferTrustedPublishersPropertyPage)
  47. virtual BOOL OnInitDialog();
  48. afx_msg void OnTpByEndUser();
  49. afx_msg void OnTpByLocalComputerAdmin();
  50. afx_msg void OnTpByEnterpriseAdmin();
  51. afx_msg void OnTpRevCheckPublisher();
  52. afx_msg void OnTpRevCheckTimestamp();
  53. //}}AFX_MSG
  54. DECLARE_MESSAGE_MAP()
  55. virtual void DoContextHelp (HWND hWndControl);
  56. void GetTrustedPublisherFlags();
  57. void RSOPGetTrustedPublisherFlags(const CCertMgrComponentData* pCompData);
  58. private:
  59. IGPEInformation* m_pGPEInformation;
  60. HKEY m_hGroupPolicyKey;
  61. DWORD m_dwTrustedPublisherFlags;
  62. bool m_fIsComputerType;
  63. bool m_bRSOPValueFound;
  64. CCertMgrComponentData* m_pCompData;
  65. };
  66. //{{AFX_INSERT_LOCATION}}
  67. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  68. #endif // !defined(AFX_SAFERTRUSTEDPUBLISHERSPROPERTYPAGE_H__B152D75D_6D04_4893_98AF_C070B66DB0E0__INCLUDED_)