1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- using System;
- using System.Collections.Generic;
- using System.Text;
- using Utilities;
- namespace SMBLibrary.SMB1
- {
-
-
-
- public class TransactionQueryNamedPipeInfoRequest : TransactionSubcommand
- {
-
- public ushort FID;
-
- public ushort Level;
- public TransactionQueryNamedPipeInfoRequest() : base()
- {
- }
- public TransactionQueryNamedPipeInfoRequest(byte[] setup, byte[] parameters) : base()
- {
- FID = LittleEndianConverter.ToUInt16(setup, 2);
- Level = LittleEndianConverter.ToUInt16(parameters, 0);
- }
- public override byte[] GetSetup()
- {
- byte[] setup = new byte[4];
- LittleEndianWriter.WriteUInt16(setup, 0, (ushort)this.SubcommandName);
- LittleEndianWriter.WriteUInt16(setup, 2, FID);
- return base.GetSetup();
- }
- public override byte[] GetParameters(bool isUnicode)
- {
- return LittleEndianConverter.GetBytes(Level);
- }
- public override TransactionSubcommandName SubcommandName
- {
- get
- {
- return TransactionSubcommandName.TRANS_QUERY_NMPIPE_INFO;
- }
- }
- }
- }
|