windows-nt/Source/XPSP1/NT/ds/adsi/nwnds/cenumcls.hxx

75 lines
1.4 KiB
C++
Raw Normal View History

2020-09-26 03:20:57 -05:00
class FAR CNDSClassEnum : public CNDSEnumVariant
{
public:
// IEnumVARIANT methods
STDMETHOD(Next)(
ULONG cElements,
VARIANT FAR* pvar,
ULONG FAR* pcElementFetched
);
static
HRESULT
Create(
CNDSClassEnum FAR* FAR* ppenumvariant,
BSTR bstrADsPath,
BSTR bstrDomainName,
VARIANT var,
CCredentials& Credentials
);
CNDSClassEnum();
~CNDSClassEnum();
HRESULT
EnumObjects(
ULONG cElements,
VARIANT FAR * pvar,
ULONG FAR * pcElementFetched
);
private:
ObjectTypeList FAR *_pObjList;
PNDS_CLASS_DEF _lpClassDefs;
HANDLE _hOperationData;
NDS_CONTEXT_HANDLE _hADsContext;
BSTR _bstrName;
BSTR _bstrADsPath;
BSTR _pszNDSTreeName;
DWORD _dwCurrentEntry;
DWORD _dwObjectCurrentEntry;
DWORD _dwObjectReturned;
DWORD _dwInfoType;
PPROPENTRY _pPropNameList;
PPROPENTRY _pCurrentEntry;
CCredentials _Credentials;
BOOL _bNoMore;
HRESULT
CNDSClassEnum::GetPropertyObject(
IDispatch **ppDispatch
);
HRESULT
EnumProperties(
ULONG cElements,
VARIANT FAR* pvar,
ULONG FAR* pcElementFetched
);
HRESULT
CNDSClassEnum::EnumObjects(
DWORD ObjectType,
ULONG cElements,
VARIANT FAR * pvar,
ULONG FAR * pcElementFetched
);
};