TransactionQueryNamedPipeStateResponse: Added constructors

This commit is contained in:
Tal Aloni 2019-01-24 00:07:03 +02:00
parent e0b9494685
commit b8eae1a400

View file

@ -1,4 +1,4 @@
/* Copyright (C) 2014 Tal Aloni <tal.aloni.il@gmail.com>. All rights reserved. /* Copyright (C) 2014-2019 Tal Aloni <tal.aloni.il@gmail.com>. All rights reserved.
* *
* You can redistribute this program and/or modify it under the terms of * You can redistribute this program and/or modify it under the terms of
* the GNU Lesser Public License as published by the Free Software Foundation, * the GNU Lesser Public License as published by the Free Software Foundation,
@ -20,6 +20,15 @@ namespace SMBLibrary.SMB1
// Parameters; // Parameters;
public NamedPipeStatus NMPipeStatus; public NamedPipeStatus NMPipeStatus;
public TransactionQueryNamedPipeStateResponse() : base()
{
}
public TransactionQueryNamedPipeStateResponse(byte[] parameters) : base()
{
NMPipeStatus = new NamedPipeStatus(LittleEndianConverter.ToUInt16(parameters, 0));
}
public override byte[] GetSetup() public override byte[] GetSetup()
{ {
return new byte[0]; return new byte[0];