TransactionQueryNamedPipeStateResponse.cs 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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. /// TRANS_QUERY_NMPIPE_STATE Response
  15. /// </summary>
  16. public class TransactionQueryNamedPipeStateResponse : TransactionSubcommand
  17. {
  18. public NamedPipeStatus NMPipeStatus;
  19. public override byte[] GetSetup()
  20. {
  21. return new byte[0];
  22. }
  23. public override byte[] GetParameters(bool isUnicode)
  24. {
  25. byte[] parameters = new byte[2];
  26. NMPipeStatus.WriteBytes(parameters, 0);
  27. return parameters;
  28. }
  29. public override TransactionSubcommandName SubcommandName
  30. {
  31. get
  32. {
  33. return TransactionSubcommandName.TRANS_QUERY_NMPIPE_STATE;
  34. }
  35. }
  36. }
  37. }