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.

70 lines
1.3 KiB

  1. /*++
  2. Copyright (c) 1996 Microsoft Corporation
  3. Module Name:
  4. cenumfsh.hxx
  5. Abstract:
  6. Contains definitions for CWinNTFileSharesEnumVar
  7. Author:
  8. Ram Viswanathan (ramv) 02-12-96
  9. Revision History:
  10. --*/
  11. class CWinNTFileSharesEnumVar : public CWinNTEnumVariant
  12. {
  13. public:
  14. static HRESULT Create(LPTSTR pszServerName,
  15. LPTSTR pszADsPath,
  16. CWinNTFileSharesEnumVar FAR* FAR*,
  17. VARIANT vFilter,
  18. CWinNTCredentials& Credentials
  19. );
  20. CWinNTFileSharesEnumVar();
  21. ~CWinNTFileSharesEnumVar();
  22. protected:
  23. LPWSTR _pszServerName;
  24. LONG _lCurrentPosition;
  25. ULONG _cElements;
  26. LONG _lLBound;
  27. DWORD _dwResumeHandle;
  28. DWORD _dwTotalEntries;
  29. LPBYTE _pbFileShares;
  30. LPWSTR _pszADsPath;
  31. VARIANT _vFilter;
  32. CWinNTCredentials _Credentials;
  33. STDMETHOD(Next)(
  34. ULONG cElements,
  35. VARIANT FAR* pvar,
  36. ULONG FAR* pcElementFetched
  37. );
  38. };
  39. //
  40. // Helper functions
  41. //
  42. HRESULT
  43. WinNTEnumFileShares(LPTSTR pszServerName,
  44. PDWORD pdwElements,
  45. PDWORD pdwTotalEntries,
  46. PDWORD pdwResumeHandle,
  47. LPBYTE * ppMem
  48. );
  49. BOOL
  50. ValidateFilterValue(VARIANT vFilter);