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.
65 lines
1.3 KiB
65 lines
1.3 KiB
class FAR CLDAPGenObjectEnum : public CLDAPEnumVariant
|
|
{
|
|
public:
|
|
CLDAPGenObjectEnum(ObjectTypeList ObjList);
|
|
CLDAPGenObjectEnum();
|
|
~CLDAPGenObjectEnum();
|
|
|
|
static
|
|
HRESULT
|
|
CLDAPGenObjectEnum::Create(
|
|
CLDAPGenObjectEnum FAR* FAR* ppenumvariant,
|
|
BSTR ADsPath,
|
|
PADSLDP pLdapHandle,
|
|
IADs *pADs,
|
|
VARIANT vFilter,
|
|
CCredentials& Credentials,
|
|
DWORD dwOptReferral,
|
|
DWORD dwPageSize
|
|
);
|
|
|
|
private:
|
|
|
|
ObjectTypeList FAR *_pObjList;
|
|
|
|
PADSLDP _pLdapHandle;
|
|
|
|
IADs *_pADs;
|
|
|
|
LPWSTR _pszLDAPDn;
|
|
LPWSTR _pszFilter;
|
|
|
|
LDAPMessage *_res;
|
|
LDAPMessage *_entry;
|
|
|
|
BOOL _fAllEntriesReturned;
|
|
|
|
BOOL _fLastPage;
|
|
BOOL _fPagedSearch;
|
|
DWORD _dwOptReferral;
|
|
DWORD _dwPageSize;
|
|
PLDAPSearch _phPagedSearch;
|
|
|
|
|
|
BSTR _ADsPath;
|
|
|
|
CCredentials _Credentials;
|
|
|
|
HRESULT
|
|
CLDAPGenObjectEnum::GetGenObject(
|
|
IDispatch ** ppDispatch
|
|
);
|
|
|
|
HRESULT
|
|
EnumGenericObjects(
|
|
ULONG cElements,
|
|
VARIANT FAR* pvar,
|
|
ULONG FAR* pcElementFetched
|
|
);
|
|
|
|
STDMETHOD(Next)(
|
|
ULONG cElements,
|
|
VARIANT FAR* pvar,
|
|
ULONG FAR* pcElementFetched
|
|
);
|
|
};
|