/// <summary> /// Deep copy constructor. /// </summary> public SmbNtTransactNotifyChangeResponsePacket(SmbNtTransactNotifyChangeResponsePacket packet) : base(packet) { this.InitDefaultValue(); this.ntTransParameters.FileNotifyInformation = packet.ntTransParameters.FileNotifyInformation; }
/// <summary> /// Deep copy constructor. /// </summary> public SmbNtTransactNotifyChangeResponsePacket(SmbNtTransactNotifyChangeResponsePacket packet) : base(packet) { this.InitDefaultValue(); this.ntTransParameters.FileNotifyInformation = packet.ntTransParameters.FileNotifyInformation; }
public SmbNtTransactNotifyChangeResponsePacket CreateNtTransactNotifyChangeResponse( CifsServerPerConnection connection, SmbNtTransactNotifyChangeRequestPacket request, FILE_NOTIFY_INFORMATION[] fileNotifyInformation) { SmbNtTransactNotifyChangeResponsePacket response = new SmbNtTransactNotifyChangeResponsePacket(); response.SmbHeader = CifsMessageUtils.CreateSmbHeader(connection, request); NT_TRANSACT_NOTIFY_CHANGE_Response_NT_Trans_Parameters ntTransParameters = response.NtTransParameters; ntTransParameters.FileNotifyInformation = fileNotifyInformation; response.NtTransParameters = ntTransParameters; response.UpdateCountAndOffset(); return response; }