QueryExtendedAttributesFromList.cs 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. /* Copyright (C) 2014 Tal Aloni <tal.aloni.il@gmail.com>. All rights reserved.
  2. *
  3. * You can redistribute this program and/or modify it under the terms of
  4. * the GNU Lesser Public License as published by the Free Software Foundation,
  5. * either version 3 of the License, or (at your option) any later version.
  6. */
  7. using System;
  8. using System.Collections.Generic;
  9. using System.Text;
  10. using Utilities;
  11. namespace SMBLibrary.SMB1
  12. {
  13. /// <summary>
  14. /// SMB_INFO_QUERY_EAS_FROM_LIST
  15. /// </summary>
  16. public class QueryExtendedAttributesFromList : QueryInformation
  17. {
  18. public FullExtendedAttributeList ExtendedAttributeList;
  19. public QueryExtendedAttributesFromList()
  20. {
  21. ExtendedAttributeList = new FullExtendedAttributeList();
  22. }
  23. public QueryExtendedAttributesFromList(byte[] buffer, int offset)
  24. {
  25. ExtendedAttributeList = new FullExtendedAttributeList(buffer, offset);
  26. }
  27. public override byte[] GetBytes()
  28. {
  29. return ExtendedAttributeList.GetBytes();
  30. }
  31. public override QueryInformationLevel InformationLevel
  32. {
  33. get
  34. {
  35. return QueryInformationLevel.SMB_INFO_QUERY_EAS_FROM_LIST;
  36. }
  37. }
  38. }
  39. }