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.

47 lines
959 B

  1. class FAR CNWCOMPATFileServiceEnum : public CNWCOMPATEnumVariant
  2. {
  3. public:
  4. //
  5. // IEnumVARIANT methods
  6. //
  7. STDMETHOD(Next)(
  8. ULONG cElements,
  9. VARIANT FAR* pvar,
  10. ULONG FAR* pcElementFetched
  11. );
  12. static
  13. HRESULT
  14. CNWCOMPATFileServiceEnum::Create(
  15. CNWCOMPATFileServiceEnum FAR* FAR* ppEnumVariant,
  16. BSTR ADsPath,
  17. BSTR bstrServerName,
  18. CCredentials &Credentials
  19. );
  20. CNWCOMPATFileServiceEnum();
  21. ~CNWCOMPATFileServiceEnum();
  22. HRESULT
  23. CNWCOMPATFileServiceEnum::GetFileShareObject(
  24. IDispatch ** ppDispatch
  25. );
  26. HRESULT
  27. CNWCOMPATFileServiceEnum::EnumFileShares(
  28. ULONG cElements,
  29. VARIANT FAR* pvar,
  30. ULONG FAR* pcElementFetched
  31. );
  32. private:
  33. BSTR _ADsPath;
  34. NWVOL_NUM _bResumeVolumeID;
  35. NWCONN_HANDLE _hConn;
  36. NW_VERSION_INFO _FileServerInfo;
  37. CCredentials _Credentials;
  38. };