12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- using System;
- using System.Collections.Generic;
- using System.Text;
- using Utilities;
- namespace SMBLibrary.SMB1
- {
-
-
-
- public class TransactionQueryNamedPipeStateResponse : TransactionSubcommand
- {
- public const int ParametersLength = 2;
-
- public NamedPipeStatus NMPipeStatus;
- public TransactionQueryNamedPipeStateResponse() : base()
- {
- }
- public TransactionQueryNamedPipeStateResponse(byte[] parameters) : base()
- {
- NMPipeStatus = new NamedPipeStatus(LittleEndianConverter.ToUInt16(parameters, 0));
- }
- public override byte[] GetSetup()
- {
- return new byte[0];
- }
- public override byte[] GetParameters()
- {
- byte[] parameters = new byte[2];
- NMPipeStatus.WriteBytes(parameters, 0);
- return parameters;
- }
- public override TransactionSubcommandName SubcommandName
- {
- get
- {
- return TransactionSubcommandName.TRANS_QUERY_NMPIPE_STATE;
- }
- }
- }
- }
|