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.

50 lines
1.1 KiB

  1. //+---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 2000 - 2001.
  5. //
  6. // File: headers.h
  7. //
  8. // Contents:
  9. //
  10. // History: 01-30-2002 Hiteshr Created
  11. //
  12. //----------------------------------------------------------------------------
  13. /******************************************************************************
  14. Class: CADInfo
  15. Purpose:Keeps a cache of Active Directory info avoiding multiple binds
  16. ******************************************************************************/
  17. class CADInfo
  18. {
  19. public:
  20. HRESULT
  21. GetRootDSE();
  22. const CString&
  23. GetDomainDnsName();
  24. const CString&
  25. GetDomainDn();
  26. const CString&
  27. GetRootDomainDnsName();
  28. const CString&
  29. GetRootDomainDn();
  30. const CString&
  31. GetRootDomainDCName();
  32. const CString&
  33. GetDomainDCName();
  34. private:
  35. CString m_strDomainDnsName;
  36. CString m_strDomainDn;
  37. CString m_strRootDomainDnsName;
  38. CString m_strRootDomainDn;
  39. CString m_strRootDomainDcName;
  40. CString m_strDomainDcName;
  41. CComPtr<IADs> m_spRootDSE;
  42. };