/* Copyright (C) 2017 Tal Aloni . All rights reserved. * * 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, * either version 3 of the License, or (at your option) any later version. */ using System; using System.Collections.Generic; using Utilities; namespace SMBLibrary.SMB1 { /// /// NT_TRANSACT_NOTIFY_CHANGE Response /// public class NTTransactNotifyChangeResponse : NTTransactSubcommand { // Parameters: public byte[] FileNotifyInformationBytes; public NTTransactNotifyChangeResponse() : base() { } public NTTransactNotifyChangeResponse(byte[] parameters) : base() { FileNotifyInformationBytes = parameters; } public override byte[] GetParameters(bool isUnicode) { return FileNotifyInformationBytes; } public List GetFileNotifyInformation() { return FileNotifyInformation.ReadList(FileNotifyInformationBytes, 0); } public void SetFileNotifyInformation(List notifyInformationList) { FileNotifyInformationBytes = FileNotifyInformation.GetBytes(notifyInformationList); } public override NTTransactSubcommandName SubcommandName { get { return NTTransactSubcommandName.NT_TRANSACT_NOTIFY_CHANGE; } } } }