1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- using System;
- using System.Collections.Generic;
- using System.Text;
- using Utilities;
- namespace SMBLibrary.SMB1
- {
-
-
-
- public class TransactionSetNamedPipeStateRequest : TransactionSubcommand
- {
-
- public ushort FID;
-
- public PipeState PipeState;
- public TransactionSetNamedPipeStateRequest() : base()
- {
- }
- public TransactionSetNamedPipeStateRequest(byte[] setup, byte[] parameters) : base()
- {
- FID = LittleEndianConverter.ToUInt16(setup, 2);
- PipeState = (PipeState)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 setup;
- }
- public override byte[] GetParameters()
- {
- return LittleEndianConverter.GetBytes((ushort)PipeState);
- }
- public override TransactionSubcommandName SubcommandName
- {
- get
- {
- return TransactionSubcommandName.TRANS_SET_NMPIPE_STATE;
- }
- }
- }
- }
|