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

/*---------------------------------------------------------------------------
File: Win2000Dom.h
Comments: interface for the CWin2000Dom class.
(c) Copyright 1999, Mission Critical Software, Inc., All Rights Reserved
Proprietary and confidential to Mission Critical Software, Inc.
REVISION LOG ENTRY
Revision By: Sham Chauthani
Revised on 07/02/99 12:40:00
---------------------------------------------------------------------------
*/
#if !defined(AFX_WIN2000DOM_H__2DE5B8E0_19FA_11D3_8C81_0090270D48D1__INCLUDED_)
#define AFX_WIN2000DOM_H__2DE5B8E0_19FA_11D3_8C81_0090270D48D1__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "AttrNode.h"
#include "Domain.h"
#include <map>
class CWin2000Dom : public CDomain
{
public:
CWin2000Dom();
virtual ~CWin2000Dom();
HRESULT GetEnumeration(BSTR sContainerName, BSTR sDomainName, BSTR m_sQuery, long attrCnt, LPWSTR * sAttr, ADS_SEARCHPREF_INFO prefInfo,BOOL bMultiVal, IEnumVARIANT **& pVarEnum);
private:
typedef std::map<_bstr_t,_bstr_t> CNameContextMap;
CNameContextMap mNameContextMap; //map to store domains and their default naming contexts
// void UpdateAccountInList( TNodeList * pList, BSTR sDomainName);
bool AttrToVariant(ADSVALUE adsVal, _variant_t& var);
HRESULT DoRangeQuery(BSTR sDomainName, BSTR sQuery, LPWSTR * sAttr, int attrCnt, ADS_SEARCH_HANDLE hSearch, IDirectorySearch * pSearch, BOOL bMultiVal, TNodeList * pNode);
bool IsPropMultiValued(const WCHAR * sPropName, const WCHAR * sDomain);
_bstr_t GetDefaultNamingContext(_bstr_t sDomain);
};
#endif // !defined(AFX_WIN2000DOM_H__2DE5B8E0_19FA_11D3_8C81_0090270D48D1__INCLUDED_)