75 lines
1.4 KiB
C++
75 lines
1.4 KiB
C++
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
|
|
);
|
|
};
|