FindClose2Request.cs 780 B

12345678910111213141516171819202122232425262728293031323334
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Text;
  4. using Utilities;
  5. namespace SMBLibrary.SMB1
  6. {
  7. /// <summary>
  8. /// SMB_COM_FIND_CLOSE2 Request
  9. /// </summary>
  10. public class FindClose2Request : SMB1Command
  11. {
  12. public const int ParameterCount = 2;
  13. // Parameters:
  14. public ushort SearchHandle;
  15. public FindClose2Request() : base()
  16. {
  17. }
  18. public FindClose2Request(byte[] buffer, int offset) : base(buffer, offset, false)
  19. {
  20. SearchHandle = LittleEndianConverter.ToUInt16(this.SMBParameters, 0);
  21. }
  22. public override CommandName CommandName
  23. {
  24. get
  25. {
  26. return CommandName.SMB_COM_FIND_CLOSE2;
  27. }
  28. }
  29. }
  30. }