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.2 KiB

  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. HRESULT
  30. CNDSNamespaceEnum::EnumObjects(
  31. ULONG cElements,
  32. VARIANT FAR* pvar,
  33. ULONG FAR* pcElementFetched
  34. );
  35. HRESULT
  36. CNDSNamespaceEnum::EnumObjects(
  37. DWORD ObjectType,
  38. ULONG cElements,
  39. VARIANT FAR * pvar,
  40. ULONG FAR * pcElementFetched
  41. );
  42. private:
  43. ObjectTypeList FAR *_pObjList;
  44. DWORD _dwEntriesRead;
  45. DWORD _dwCurrentEntry;
  46. HANDLE _hEnum;
  47. LPVOID _pBuffer;
  48. LPVOID _pBufferEnd;
  49. CCredentials _Credentials;
  50. };