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.

89 lines
2.0 KiB

  1. /*++
  2. Copyright (c) 1994-95 Microsoft Corporation
  3. Module Name:
  4. domobj.h
  5. Abstract:
  6. Domain object implementation.
  7. Author:
  8. Don Ryan (donryan) 04-Jan-1995
  9. Environment:
  10. User Mode - Win32
  11. Revision History:
  12. --*/
  13. #ifndef _DOMOBJ_H_
  14. #define _DOMOBJ_H_
  15. class CDomain : public CCmdTarget
  16. {
  17. DECLARE_DYNCREATE(CDomain)
  18. private:
  19. CCmdTarget* m_pParent;
  20. CString m_strPrimary;
  21. CString m_strController;
  22. CObArray m_serverArray;
  23. CObArray m_userArray;
  24. CObArray m_domainArray;
  25. BOOL m_bServersRefreshed;
  26. BOOL m_bUsersRefreshed;
  27. BOOL m_bDomainsRefreshed;
  28. public:
  29. CString m_strName;
  30. CServers* m_pServers;
  31. CUsers* m_pUsers;
  32. CDomains* m_pDomains;
  33. public:
  34. CDomain(CCmdTarget* pParent = NULL, LPCTSTR pName = NULL);
  35. virtual ~CDomain();
  36. BOOL RefreshServers();
  37. BOOL RefreshUsers();
  38. BOOL RefreshDomains();
  39. void ResetServers();
  40. void ResetUsers();
  41. void ResetDomains();
  42. // ClassWizard generated virtual function overrides
  43. //{{AFX_VIRTUAL(CDomain)
  44. public:
  45. virtual void OnFinalRelease();
  46. //}}AFX_VIRTUAL
  47. // Generated OLE dispatch map functions
  48. //{{AFX_DISPATCH(CDomain)
  49. afx_msg BSTR GetName();
  50. afx_msg LPDISPATCH GetParent();
  51. afx_msg BSTR GetPrimary();
  52. afx_msg LPDISPATCH GetApplication();
  53. afx_msg BSTR GetController();
  54. afx_msg BOOL IsLogging();
  55. afx_msg LPDISPATCH GetServers(const VARIANT FAR& index);
  56. afx_msg LPDISPATCH GetUsers(const VARIANT FAR& index);
  57. afx_msg LPDISPATCH GetTrustedDomains(const VARIANT FAR& index);
  58. //}}AFX_DISPATCH
  59. DECLARE_DISPATCH_MAP()
  60. protected:
  61. // Generated message map functions
  62. //{{AFX_MSG(CDomain)
  63. // NOTE - the ClassWizard will add and remove member functions here.
  64. //}}AFX_MSG
  65. DECLARE_MESSAGE_MAP()
  66. };
  67. #endif // _DOMOBJ_H_