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.

44 lines
1.7 KiB

  1. /*---------------------------------------------------------------------------
  2. File: Win2000Dom.h
  3. Comments: interface for the CWin2000Dom 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_WIN2000DOM_H__2DE5B8E0_19FA_11D3_8C81_0090270D48D1__INCLUDED_)
  12. #define AFX_WIN2000DOM_H__2DE5B8E0_19FA_11D3_8C81_0090270D48D1__INCLUDED_
  13. #if _MSC_VER > 1000
  14. #pragma once
  15. #endif // _MSC_VER > 1000
  16. #include "AttrNode.h"
  17. #include "Domain.h"
  18. #include <map>
  19. class CWin2000Dom : public CDomain
  20. {
  21. public:
  22. CWin2000Dom();
  23. virtual ~CWin2000Dom();
  24. HRESULT GetEnumeration(BSTR sContainerName, BSTR sDomainName, BSTR m_sQuery, long attrCnt, LPWSTR * sAttr, ADS_SEARCHPREF_INFO prefInfo,BOOL bMultiVal, IEnumVARIANT **& pVarEnum);
  25. private:
  26. typedef std::map<_bstr_t,_bstr_t> CNameContextMap;
  27. CNameContextMap mNameContextMap; //map to store domains and their default naming contexts
  28. // void UpdateAccountInList( TNodeList * pList, BSTR sDomainName);
  29. bool AttrToVariant(ADSVALUE adsVal, _variant_t& var);
  30. HRESULT DoRangeQuery(BSTR sDomainName, BSTR sQuery, LPWSTR * sAttr, int attrCnt, ADS_SEARCH_HANDLE hSearch, IDirectorySearch * pSearch, BOOL bMultiVal, TNodeList * pNode);
  31. bool IsPropMultiValued(const WCHAR * sPropName, const WCHAR * sDomain);
  32. _bstr_t GetDefaultNamingContext(_bstr_t sDomain);
  33. };
  34. #endif // !defined(AFX_WIN2000DOM_H__2DE5B8E0_19FA_11D3_8C81_0090270D48D1__INCLUDED_)