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.

65 lines
1.3 KiB

  1. class FAR CLDAPGenObjectEnum : public CLDAPEnumVariant
  2. {
  3. public:
  4. CLDAPGenObjectEnum(ObjectTypeList ObjList);
  5. CLDAPGenObjectEnum();
  6. ~CLDAPGenObjectEnum();
  7. static
  8. HRESULT
  9. CLDAPGenObjectEnum::Create(
  10. CLDAPGenObjectEnum FAR* FAR* ppenumvariant,
  11. BSTR ADsPath,
  12. PADSLDP pLdapHandle,
  13. IADs *pADs,
  14. VARIANT vFilter,
  15. CCredentials& Credentials,
  16. DWORD dwOptReferral,
  17. DWORD dwPageSize
  18. );
  19. private:
  20. ObjectTypeList FAR *_pObjList;
  21. PADSLDP _pLdapHandle;
  22. IADs *_pADs;
  23. LPWSTR _pszLDAPDn;
  24. LPWSTR _pszFilter;
  25. LDAPMessage *_res;
  26. LDAPMessage *_entry;
  27. BOOL _fAllEntriesReturned;
  28. BOOL _fLastPage;
  29. BOOL _fPagedSearch;
  30. DWORD _dwOptReferral;
  31. DWORD _dwPageSize;
  32. PLDAPSearch _phPagedSearch;
  33. BSTR _ADsPath;
  34. CCredentials _Credentials;
  35. HRESULT
  36. CLDAPGenObjectEnum::GetGenObject(
  37. IDispatch ** ppDispatch
  38. );
  39. HRESULT
  40. EnumGenericObjects(
  41. ULONG cElements,
  42. VARIANT FAR* pvar,
  43. ULONG FAR* pcElementFetched
  44. );
  45. STDMETHOD(Next)(
  46. ULONG cElements,
  47. VARIANT FAR* pvar,
  48. ULONG FAR* pcElementFetched
  49. );
  50. };