/// <summary>
 /// Deep copy constructor.
 /// </summary>
 public SmbTransQueryNmpipeStateSuccessResponsePacket(SmbTransQueryNmpipeStateSuccessResponsePacket packet)
     : base(packet)
 {
     this.InitDefaultValue();
     this.transParameters.NMPipeStatus = packet.transParameters.NMPipeStatus;
 }
 /// <summary>
 /// Deep copy constructor.
 /// </summary>
 public SmbTransQueryNmpipeStateSuccessResponsePacket(SmbTransQueryNmpipeStateSuccessResponsePacket packet)
     : base(packet)
 {
     this.InitDefaultValue();
     this.transParameters.NMPipeStatus = packet.transParameters.NMPipeStatus;
 }
コード例 #3
0
        public SmbTransQueryNmpipeStateSuccessResponsePacket CreateTransQueryNmpipeStateSuccessResponse(
            CifsServerPerConnection connection,
            SmbTransQueryNmpipeStateRequestPacket request,
            SMB_NMPIPE_STATUS nmPipeStatus)
        {
            SmbTransQueryNmpipeStateSuccessResponsePacket response = new SmbTransQueryNmpipeStateSuccessResponsePacket();
            response.SmbHeader = CifsMessageUtils.CreateSmbHeader(connection, request);

            TRANS_QUERY_NMPIPE_STATE_Response_Trans_Parameters transParameters= response.TransParameters;
            transParameters.NMPipeStatus = nmPipeStatus;
            response.TransParameters = transParameters;

            response.UpdateCountAndOffset();

            return response;
        }