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.

45 lines
890 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. );
  19. CNWCOMPATFileServiceEnum();
  20. ~CNWCOMPATFileServiceEnum();
  21. HRESULT
  22. CNWCOMPATFileServiceEnum::GetFileShareObject(
  23. IDispatch ** ppDispatch
  24. );
  25. HRESULT
  26. CNWCOMPATFileServiceEnum::EnumFileShares(
  27. ULONG cElements,
  28. VARIANT FAR* pvar,
  29. ULONG FAR* pcElementFetched
  30. );
  31. private:
  32. BSTR _ADsPath;
  33. NWVOL_NUM _bResumeVolumeID;
  34. NWCONN_HANDLE _hConn;
  35. VERSION_INFO _FileServerInfo;
  36. };