Source code of Windows XP (NT5)
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.

48 lines
799 B

  1. class FAR CNDSNamespaceEnum : public CNDSEnumVariant
  2. {
  3. public:
  4. // IEnumVARIANT methods
  5. STDMETHOD(Next)(ULONG cElements,
  6. VARIANT FAR* pvar,
  7. ULONG FAR* pcElementFetched);
  8. static
  9. HRESULT
  10. Create(
  11. CNDSNamespaceEnum FAR* FAR*,
  12. VARIANT var,
  13. CCredentials& Credentials
  14. );
  15. CNDSNamespaceEnum();
  16. ~CNDSNamespaceEnum();
  17. HRESULT
  18. PrepBuffer();
  19. HRESULT
  20. FetchNextObject(
  21. IDispatch ** ppDispatch
  22. );
  23. HRESULT
  24. FetchObjects(
  25. ULONG cElements,
  26. VARIANT FAR* pvar,
  27. ULONG FAR* pcElementFetched
  28. );
  29. private:
  30. DWORD _dwEntriesRead;
  31. DWORD _dwCurrentEntry;
  32. LPVOID _pBuffer;
  33. LPVOID _pBufferEnd;
  34. CCredentials _Credentials;
  35. };