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.

82 lines
2.3 KiB

  1. //+---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation 1996-2001.
  5. //
  6. // File: addobj.h
  7. //
  8. // Contents: definition of CAddObject
  9. //
  10. //----------------------------------------------------------------------------
  11. #if !defined(AFX_ADDOBJ_H__D9D88A12_4AF9_11D1_AB57_00C04FB6C6FA__INCLUDED_)
  12. #define AFX_ADDOBJ_H__D9D88A12_4AF9_11D1_AB57_00C04FB6C6FA__INCLUDED_
  13. #if _MSC_VER >= 1000
  14. #pragma once
  15. #endif // _MSC_VER >= 1000
  16. #include "HelpDlg.h"
  17. /////////////////////////////////////////////////////////////////////////////
  18. // CAddObject dialog
  19. class CAddObject : public CHelpDialog
  20. {
  21. // Construction
  22. public:
  23. CAddObject(SE_OBJECT_TYPE SeType, LPTSTR ObjName, BOOL bIsContainer=TRUE, CWnd* pParent = NULL); // standard constructor
  24. // Dialog Data
  25. //{{AFX_DATA(CAddObject)
  26. enum { IDD = IDD_ADD_OBJECT };
  27. int m_radConfigPrevent;
  28. int m_radInheritOverwrite;
  29. //}}AFX_DATA
  30. // Overrides
  31. // ClassWizard generated virtual function overrides
  32. //{{AFX_VIRTUAL(CAddObject)
  33. protected:
  34. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  35. //}}AFX_VIRTUAL
  36. // Implementation
  37. protected:
  38. // Generated message map functions
  39. //{{AFX_MSG(CAddObject)
  40. virtual void OnOK();
  41. virtual void OnCancel();
  42. afx_msg void OnTemplateSecurity();
  43. virtual BOOL OnInitDialog();
  44. afx_msg void OnConfig();
  45. afx_msg void OnPrevent();
  46. //}}AFX_MSG
  47. DECLARE_MESSAGE_MAP()
  48. public:
  49. PSECURITY_DESCRIPTOR GetSD() { return m_pNewSD; };
  50. SECURITY_INFORMATION GetSeInfo() { return m_NewSeInfo; };
  51. void SetSD(PSECURITY_DESCRIPTOR pSD) { m_pNewSD = pSD; }
  52. void SetSeInfo(SECURITY_INFORMATION SeInfo) { m_NewSeInfo = SeInfo; }
  53. BYTE GetStatus() { return m_Status; };
  54. private:
  55. SE_OBJECT_TYPE m_SeType;
  56. CString m_ObjName;
  57. BOOL m_bIsContainer;
  58. PSECURITY_DESCRIPTOR m_pNewSD;
  59. SECURITY_INFORMATION m_NewSeInfo;
  60. BYTE m_Status;
  61. PFNDSCREATEISECINFO m_pfnCreateDsPage;
  62. LPDSSECINFO m_pSI;
  63. HWND m_hwndACL;
  64. };
  65. //{{AFX_INSERT_LOCATION}}
  66. // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
  67. #endif // !defined(AFX_ADDOBJ_H__D9D88A12_4AF9_11D1_AB57_00C04FB6C6FA__INCLUDED_)