diff --git a/SMBLibrary/SMB2/Commands/ChangeNotifyRequest.cs b/SMBLibrary/SMB2/Commands/ChangeNotifyRequest.cs index a385090..6b1b65b 100644 --- a/SMBLibrary/SMB2/Commands/ChangeNotifyRequest.cs +++ b/SMBLibrary/SMB2/Commands/ChangeNotifyRequest.cs @@ -49,6 +49,25 @@ namespace SMBLibrary.SMB2 LittleEndianWriter.WriteUInt32(buffer, offset + 28, Reserved); } + public bool WatchTree + { + get + { + return ((Flags & ChangeNotifyFlags.WatchTree) > 0); + } + set + { + if (value) + { + Flags |= ChangeNotifyFlags.WatchTree; + } + else + { + Flags &= ~ChangeNotifyFlags.WatchTree; + } + } + } + public override int CommandLength { get diff --git a/SMBLibrary/SMB2/Commands/ChangeNotifyResponse.cs b/SMBLibrary/SMB2/Commands/ChangeNotifyResponse.cs index 1923ca5..305b145 100644 --- a/SMBLibrary/SMB2/Commands/ChangeNotifyResponse.cs +++ b/SMBLibrary/SMB2/Commands/ChangeNotifyResponse.cs @@ -51,6 +51,16 @@ namespace SMBLibrary.SMB2 ByteWriter.WriteBytes(buffer, offset + FixedSize, OutputBuffer); } + public List GetFileNotifyInformation() + { + return FileNotifyInformation.ReadList(OutputBuffer, 0); + } + + public void SetFileNotifyInformation(List notifyInformationList) + { + OutputBuffer = FileNotifyInformation.GetBytes(notifyInformationList); + } + public override int CommandLength { get