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.

96 lines
2.8 KiB

  1. //+---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation 1996-2001.
  5. //
  6. // File: AObject.h
  7. //
  8. // Contents: Definition of CAttrObject
  9. //
  10. //----------------------------------------------------------------------------
  11. #if !defined(AFX_AOBJECT_H__D9D88A12_4AF9_11D1_AB57_00C04FB6C6FA__INCLUDED_)
  12. #define AFX_AOBJECT_H__D9D88A12_4AF9_11D1_AB57_00C04FB6C6FA__INCLUDED_
  13. #if _MSC_VER >= 1000
  14. #pragma once
  15. #endif // _MSC_VER >= 1000
  16. /////////////////////////////////////////////////////////////////////////////
  17. // CAttrObject dialog
  18. class CAttrObject : public CAttribute
  19. {
  20. // Construction
  21. public:
  22. void Initialize(CResult *pData);
  23. void Initialize(CFolder *pScopeData,CComponentDataImpl *pCDI);
  24. virtual void SetInitialValue(DWORD_PTR dw) { dw; };
  25. CAttrObject(); // standard constructor
  26. virtual ~CAttrObject();
  27. // Dialog Data
  28. //{{AFX_DATA(CAttrObject)
  29. enum { IDD = IDD_ATTR_OBJECT };
  30. CString m_strLastInspect;
  31. int m_radConfigPrevent;
  32. int m_radInheritOverwrite;
  33. //}}AFX_DATA
  34. // Overrides
  35. // ClassWizard generated virtual function overrides
  36. //{{AFX_VIRTUAL(CAttrObject)
  37. protected:
  38. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  39. //}}AFX_VIRTUAL
  40. // Implementation
  41. protected:
  42. PSCE_OBJECT_SECURITY posTemplate;
  43. PSCE_OBJECT_SECURITY posInspect;
  44. // Generated message map functions
  45. //{{AFX_MSG(CAttrObject)
  46. virtual BOOL OnApply();
  47. virtual void OnCancel();
  48. virtual BOOL OnQueryCancel();
  49. afx_msg void OnTemplateSecurity();
  50. afx_msg void OnInspectedSecurity();
  51. afx_msg void OnConfigure();
  52. virtual BOOL OnInitDialog();
  53. afx_msg void OnConfig();
  54. afx_msg void OnPrevent();
  55. afx_msg void OnOverwrite();
  56. afx_msg void OnInherit();
  57. //}}AFX_MSG
  58. DECLARE_MESSAGE_MAP()
  59. private:
  60. PSECURITY_DESCRIPTOR m_pNewSD;
  61. SECURITY_INFORMATION m_NewSeInfo;
  62. PSECURITY_DESCRIPTOR m_pAnalSD;
  63. SECURITY_INFORMATION m_AnalInfo;
  64. PFNDSCREATEISECINFO m_pfnCreateDsPage;
  65. LPDSSECINFO m_pSI;
  66. CString m_strName;
  67. CString m_strPath;
  68. HANDLE m_pHandle;
  69. DWORD m_dwType;
  70. PSCE_OBJECT_LIST m_pObject;
  71. CComponentDataImpl *m_pCDI;
  72. HWND m_hwndInspect;
  73. HWND m_hwndTemplate;
  74. BOOL m_bNotAnalyzed;
  75. CFolder *m_pFolder;
  76. void Initialize2();
  77. CModelessSceEditor* m_pSceInspect;
  78. CModelessSceEditor* m_pSceTemplate;
  79. };
  80. //{{AFX_INSERT_LOCATION}}
  81. // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
  82. #endif // !defined(AFX_AOBJECT_H__D9D88A12_4AF9_11D1_AB57_00C04FB6C6FA__INCLUDED_)