windows-nt/Source/XPSP1/NT/ds/adsi/ldap/cenumobj.hxx

66 lines
1.3 KiB
C++
Raw Normal View History

2020-09-26 03:20:57 -05:00
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
);
};