SMB1: Added ParametersLength definition to several Transaction2Subcommands

This commit is contained in:
Tal Aloni 2017-09-16 15:24:36 +03:00
parent d75cd49247
commit 99faa4aa92
3 changed files with 3 additions and 3 deletions

View file

@ -16,12 +16,12 @@ namespace SMBLibrary.SMB1
/// </summary> /// </summary>
public class Transaction2QueryFSInformationResponse : Transaction2Subcommand public class Transaction2QueryFSInformationResponse : Transaction2Subcommand
{ {
public const int ParametersLength = 0;
// Data: // Data:
private byte[] QueryFSInformationBytes; private byte[] QueryFSInformationBytes;
public Transaction2QueryFSInformationResponse() : base() public Transaction2QueryFSInformationResponse() : base()
{ {
} }
public Transaction2QueryFSInformationResponse(byte[] parameters, byte[] data, bool isUnicode) : base() public Transaction2QueryFSInformationResponse(byte[] parameters, byte[] data, bool isUnicode) : base()

View file

@ -16,6 +16,7 @@ namespace SMBLibrary.SMB1
/// </summary /// </summary
public class Transaction2QueryFileInformationResponse : Transaction2Subcommand public class Transaction2QueryFileInformationResponse : Transaction2Subcommand
{ {
public const int ParametersLength = 2;
// Parameters: // Parameters:
public ushort EaErrorOffset; // Meaningful only when request's InformationLevel is SMB_INFO_QUERY_EAS_FROM_LIST public ushort EaErrorOffset; // Meaningful only when request's InformationLevel is SMB_INFO_QUERY_EAS_FROM_LIST
// Data: // Data:
@ -23,7 +24,6 @@ namespace SMBLibrary.SMB1
public Transaction2QueryFileInformationResponse() : base() public Transaction2QueryFileInformationResponse() : base()
{ {
} }
public Transaction2QueryFileInformationResponse(byte[] parameters, byte[] data, bool isUnicode) : base() public Transaction2QueryFileInformationResponse(byte[] parameters, byte[] data, bool isUnicode) : base()

View file

@ -16,12 +16,12 @@ namespace SMBLibrary.SMB1
/// </summary> /// </summary>
public class Transaction2SetFileInformationResponse : Transaction2Subcommand public class Transaction2SetFileInformationResponse : Transaction2Subcommand
{ {
public const int ParametersLength = 2;
// Parameters: // Parameters:
public ushort EaErrorOffset; // Meaningful only when the request's InformationLevel is set to SMB_INFO_SET_EAS public ushort EaErrorOffset; // Meaningful only when the request's InformationLevel is set to SMB_INFO_SET_EAS
public Transaction2SetFileInformationResponse() : base() public Transaction2SetFileInformationResponse() : base()
{ {
} }
public Transaction2SetFileInformationResponse(byte[] parameters, byte[] data, bool isUnicode) : base() public Transaction2SetFileInformationResponse(byte[] parameters, byte[] data, bool isUnicode) : base()