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.

177 lines
4.1 KiB

  1. /*++
  2. Copyright (c) 1994-1998 Microsoft Corporation
  3. Module Name :
  4. idlg.h
  5. Abstract:
  6. Inheritance Dialog Definitions
  7. Author:
  8. Ronald Meijer (ronaldm)
  9. Project:
  10. Internet Services Manager
  11. Revision History:
  12. --*/
  13. #ifndef __IDLG__H__
  14. #define __IDLG__H__
  15. class COMDLL CInheritanceDlg : public CDialog
  16. /*++
  17. Class Description:
  18. Inheritance override checker dialog.
  19. Public Interface:
  20. CInheritanceDlg : Constructor
  21. IsEmpty : Check to see if there are overrides.
  22. Notes:
  23. There are two constructors. One which assumes GetDataPaths() has
  24. already been called, and which takes the results from GetDataPaths()
  25. as a CStringList, and a second constructor which will make the GetDataPaths
  26. automatically.
  27. In either case, the calling process should check IsEmpty() right after
  28. constructing the dialog to see if DoModal() needs to be called. If
  29. IsEmpty() returns TRUE, there's no reason to call DoModal().
  30. --*/
  31. {
  32. //
  33. // fWrite parameter helper definitions
  34. //
  35. #define FROM_WRITE_PROPERTY (TRUE)
  36. #define FROM_DELETE_PROPERTY (FALSE)
  37. //
  38. // Construction
  39. //
  40. public:
  41. //
  42. // Standard constructor (GetDataPaths() already called)
  43. //
  44. CInheritanceDlg(
  45. IN DWORD dwMetaID,
  46. IN BOOL fWrite,
  47. IN CComAuthInfo * pAuthInfo,
  48. IN LPCTSTR lpstrMetaRoot,
  49. IN CStringList & strlMetaChildNodes,
  50. IN LPCTSTR lpstrPropertyName = NULL,
  51. IN CWnd * pParent = NULL
  52. );
  53. //
  54. // Constructor which will call GetDataPaths()
  55. //
  56. CInheritanceDlg(
  57. IN DWORD dwMetaID,
  58. IN BOOL fWrite,
  59. IN CComAuthInfo * pAuthInfo,
  60. IN LPCTSTR lpstrMetaRoot,
  61. IN LPCTSTR lpstrPropertyName = NULL,
  62. IN CWnd * pParent = NULL
  63. );
  64. //
  65. // Constructor which will call GetDataPaths(), and which
  66. // does not use the predefined property table unless
  67. // fTryToFindInTable is TRUE, in which case it will attempt
  68. // to use the table first, and use the specified parameters
  69. // only if the property ID is not found in the table.
  70. //
  71. CInheritanceDlg(
  72. IN BOOL fTryToFindInTable,
  73. IN DWORD dwMDIdentifier,
  74. IN DWORD dwMDAttributes,
  75. IN DWORD dwMDUserType,
  76. IN DWORD dwMDDataType,
  77. IN LPCTSTR lpstrPropertyName,
  78. IN BOOL fWrite,
  79. IN CComAuthInfo * pAuthInfo,
  80. IN LPCTSTR lpstrMetaRoot,
  81. IN CWnd * pParent = NULL
  82. );
  83. //
  84. // Access
  85. //
  86. public:
  87. virtual INT_PTR DoModal();
  88. // virtual int DoModal();
  89. //
  90. // Check to see if there's a reason to continue displaying
  91. // the dialog.
  92. //
  93. BOOL IsEmpty() const { return m_fEmpty; }
  94. //
  95. // Dialog Data
  96. //
  97. protected:
  98. //{{AFX_DATA(CInheritanceDlg)
  99. enum { IDD = IDD_INHERITANCE };
  100. CListBox m_list_ChildNodes;
  101. //}}AFX_DATA
  102. //
  103. // Overrides
  104. //
  105. protected:
  106. //{{AFX_VIRTUAL(CInheritanceDlg)
  107. protected:
  108. virtual void DoDataExchange(CDataExchange * pDX);
  109. //}}AFX_VIRTUAL
  110. //
  111. // Implementation
  112. //
  113. protected:
  114. //{{AFX_MSG(CInheritanceDlg)
  115. virtual BOOL OnInitDialog();
  116. virtual void OnOK();
  117. afx_msg void OnButtonSelectAll();
  118. afx_msg void OnHelp();
  119. //}}AFX_MSG
  120. DECLARE_MESSAGE_MAP()
  121. void Initialize();
  122. HRESULT GetDataPaths();
  123. BOOL FriendlyInstance(CString & strMetaRoot, CString & strFriendly);
  124. CString & CleanDescendantPath(CString & strMetaPath);
  125. private:
  126. BOOL m_fWrite;
  127. BOOL m_fEmpty;
  128. BOOL m_fHasInstanceInMaster;
  129. BOOL m_fUseTable;
  130. DWORD m_dwMDIdentifier;
  131. DWORD m_dwMDAttributes;
  132. DWORD m_dwMDUserType;
  133. DWORD m_dwMDDataType;
  134. CString m_strMetaRoot;
  135. //CString m_strServer;
  136. CString m_strPropertyName;
  137. CStringListEx m_strlMetaChildNodes;
  138. CMetaKey m_mk;
  139. };
  140. #endif // __IDLG__H__