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.

39 lines
1.2 KiB

  1. /*---------------------------------------------------------------------------
  2. File: NT4Dom.h
  3. Comments: interface for the NT4 Domain class.
  4. (c) Copyright 1999, Mission Critical Software, Inc., All Rights Reserved
  5. Proprietary and confidential to Mission Critical Software, Inc.
  6. REVISION LOG ENTRY
  7. Revision By: Sham Chauthani
  8. Revised on 07/02/99 12:40:00
  9. ---------------------------------------------------------------------------
  10. */
  11. #if !defined(AFX_NT4DOM_H__62E14C50_1AAC_11D3_8C81_0090270D48D1__INCLUDED_)
  12. #define AFX_NT4DOM_H__62E14C50_1AAC_11D3_8C81_0090270D48D1__INCLUDED_
  13. #if _MSC_VER > 1000
  14. #pragma once
  15. #endif // _MSC_VER > 1000
  16. #include "Domain.h"
  17. #include <map>
  18. class CNT4Dom : public CDomain
  19. {
  20. public:
  21. CNT4Dom();
  22. virtual ~CNT4Dom();
  23. HRESULT GetEnumeration(BSTR sContainerName, BSTR sDomainName, BSTR m_sQuery, long attrCnt, LPWSTR * sAttr, ADS_SEARCHPREF_INFO prefInfo,BOOL bMultiVal, IEnumVARIANT **& pVarEnum);
  24. private:
  25. typedef std::map<_bstr_t,_bstr_t> CDCMap;
  26. CDCMap mDCMap; //map to store domains and one of its DCs
  27. _bstr_t GetDC(_bstr_t sDomain);
  28. };
  29. #endif // !defined(AFX_NT4DOM_H__62E14C50_1AAC_11D3_8C81_0090270D48D1__INCLUDED_)