/// <summary>
        /// Deep copy constructor.
        /// </summary>
        public SmbNtTransactInterimResponsePacket(SmbNtTransactInterimResponsePacket packet)
            : base(packet)
        {
            this.InitDefaultValue();

            this.smbParameters.WordCount = packet.SmbParameters.WordCount;
            this.smbData.ByteCount       = packet.SmbData.ByteCount;
        }
        /// <summary>
        /// Deep copy constructor.
        /// </summary>
        public SmbNtTransactInterimResponsePacket(SmbNtTransactInterimResponsePacket packet)
            : base(packet)
        {
            this.InitDefaultValue();

            this.smbParameters.WordCount = packet.SmbParameters.WordCount;
            this.smbData.ByteCount = packet.SmbData.ByteCount;
        }
        public SmbNtTransactInterimResponsePacket CreateNtTransactInterimResponse(
            CifsServerPerConnection connection,
            SmbNtTransactRequestPacket request)
        {
            SmbNtTransactInterimResponsePacket response = new SmbNtTransactInterimResponsePacket();
            response.SmbHeader = CifsMessageUtils.CreateSmbHeader(connection, request);

            SMB_COM_NT_TRANSACT_InterimResponse_SMB_Parameters smbParameters = response.SmbParameters;
            smbParameters.WordCount = (byte)(TypeMarshal.GetBlockMemorySize(smbParameters) / 2);
            response.SmbParameters = smbParameters;

            SMB_COM_NT_TRANSACT_InterimResponse_SMB_Data smbData = response.SmbData;
            smbData.ByteCount = 0x0000;
            response.SmbData = smbData;

            return response;
        }