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

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

            this.smbParameters.WordCount = packet.SmbParameters.WordCount;
            this.smbParameters.FID = packet.SmbParameters.FID;
            this.smbData.ByteCount = packet.SmbData.ByteCount;
        }
        public SmbCreateNewResponsePacket CreateCreateNewResponse(
            CifsServerPerConnection connection,
            SmbCreateNewRequestPacket request)
        {
            SmbCreateNewResponsePacket response = new SmbCreateNewResponsePacket();
            response.SmbHeader = CifsMessageUtils.CreateSmbHeader(connection, request);

            SMB_COM_CREATE_NEW_Response_SMB_Parameters smbParameters = response.SmbParameters;
            smbParameters.FID = (ushort)connection.GenerateFID();
            smbParameters.WordCount = (byte)(TypeMarshal.GetBlockMemorySize(smbParameters) / 2);
            response.SmbParameters = smbParameters;

            return response;
        }