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.

92 lines
2.9 KiB

  1. //+---------------------------------------------------------------------------
  2. /////////////////////////////////////////////////////////////////////////////////
  3. //
  4. // Microsoft Windows
  5. // Copyright (C) Microsoft Corporation, 2000-2001.
  6. //
  7. // File: SaferEntryPathPropertyPage.h
  8. //
  9. // Contents: Declaration of CSaferEntryPathPropertyPage
  10. //
  11. //----------------------------------------------------------------------------
  12. #if !defined(AFX_SAFERENTRYPATHPROPERTYPAGE_H__B32CBA62_1C9A_4763_AA55_B32E25FF2426__INCLUDED_)
  13. #define AFX_SAFERENTRYPATHPROPERTYPAGE_H__B32CBA62_1C9A_4763_AA55_B32E25FF2426__INCLUDED_
  14. #if _MSC_VER > 1000
  15. #pragma once
  16. #endif // _MSC_VER > 1000
  17. // SaferEntryPathPropertyPage.h : header file
  18. //
  19. #include "SaferEntry.h"
  20. /////////////////////////////////////////////////////////////////////////////
  21. // CSaferEntryPathPropertyPage dialog
  22. class CCertMgrComponentData; // forward declaration
  23. class CSaferEntryPathPropertyPage : public CHelpPropertyPage
  24. {
  25. // Construction
  26. public:
  27. CSaferEntryPathPropertyPage(
  28. CSaferEntry& rSaferEntry,
  29. LONG_PTR lNotifyHandle,
  30. LPDATAOBJECT pDataObject,
  31. bool bReadOnly,
  32. bool bNew,
  33. CCertMgrComponentData* pCompData,
  34. bool bIsMachine);
  35. ~CSaferEntryPathPropertyPage();
  36. // Dialog Data
  37. //{{AFX_DATA(CSaferEntryPathPropertyPage)
  38. enum { IDD = IDD_SAFER_ENTRY_PATH };
  39. CEdit m_descriptionEdit;
  40. CEdit m_pathEdit;
  41. CComboBox m_securityLevelCombo;
  42. //}}AFX_DATA
  43. // Overrides
  44. // ClassWizard generate virtual function overrides
  45. //{{AFX_VIRTUAL(CSaferEntryPathPropertyPage)
  46. public:
  47. virtual BOOL OnApply();
  48. protected:
  49. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  50. //}}AFX_VIRTUAL
  51. // Implementation
  52. protected:
  53. // Generated message map functions
  54. //{{AFX_MSG(CSaferEntryPathPropertyPage)
  55. virtual BOOL OnInitDialog();
  56. afx_msg void OnChangePathEntryDescription();
  57. afx_msg void OnSelchangePathEntrySecurityLevel();
  58. afx_msg void OnChangePathEntryPath();
  59. afx_msg void OnPathEntryBrowse();
  60. afx_msg void OnSetfocusPathEntryPath();
  61. //}}AFX_MSG
  62. DECLARE_MESSAGE_MAP()
  63. virtual void DoContextHelp (HWND hWndControl);
  64. static int BrowseCallbackProc (HWND hwnd,UINT uMsg, LPARAM lParam, LPARAM pData);
  65. bool ValidateEntryPath();
  66. private:
  67. CSaferEntry& m_rSaferEntry;
  68. bool m_bDirty;
  69. LONG_PTR m_lNotifyHandle;
  70. LPDATAOBJECT m_pDataObject;
  71. const bool m_bReadOnly;
  72. CCertMgrComponentData* m_pCompData;
  73. bool m_bIsMachine;
  74. bool m_bFirst;
  75. LPITEMIDLIST m_pidl;
  76. bool m_bDialogInitInProgress;
  77. };
  78. //{{AFX_INSERT_LOCATION}}
  79. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  80. #endif // !defined(AFX_SAFERENTRYPATHPROPERTYPAGE_H__B32CBA62_1C9A_4763_AA55_B32E25FF2426__INCLUDED_)