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.

64 lines
1.3 KiB

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