The Shutdown Request Denied PDU is sent by the server as part of the disconnection sequences specified in section ; specifically as part of the "User-Initiated on Client" disconnect sequence (see section ).
file:///C:/ts_dev/TestSuites/MS-RDPBCGR/TestSuite/Src/TD/latest_XMLS_16may/RDPBCGR/ _rfc_ms-rdpbcgr2_1_2_3.xml
Inheritance: RdpbcgrServerPdu
        /// <summary>
        /// [TD Reference 2.2.2.3]
        /// Decode Server Shutdown Request Denied PDU
        /// </summary>
        /// <param name="data">data to be parsed</param>
        /// <param name="decryptedUserData">decrypted user data to be parsed</param>
        /// <param name="type">security header type</param>
        /// <returns>decoded Shutdown Request Denied PDU</returns>
        public StackPacket DecodeShutdownRequestDeniedPDU(
            byte[] data,
            byte[] decryptedUserData,
            SecurityHeaderType type)
        {
            Server_Shutdown_Request_Denied_Pdu pdu = new Server_Shutdown_Request_Denied_Pdu();

            // data index
            int dataIndex = 0;

            // ShutdownRequestDeniedPDU: commonHeader
            pdu.commonHeader = ParseMcsCommonHeader(data, ref dataIndex, type);

            // user data index
            int userDataIndex = 0;

            // ShutdownRequestDeniedPDU:
            pdu.shutdownRequestDeniedPduData = ParseTsShutdownDeniedPdu(decryptedUserData, ref userDataIndex);

            // Check if data length exceeded expectation
            VerifyDataLength(decryptedUserData.Length, userDataIndex, ConstValue.ERROR_MESSAGE_DATA_LENGTH_EXCEEDED);
            return pdu;
        }
Exemplo n.º 2
0
        public override StackPacket Clone()
        {
            Server_Shutdown_Request_Denied_Pdu cloneShutDeniedPdu = new Server_Shutdown_Request_Denied_Pdu();
            cloneShutDeniedPdu.commonHeader = commonHeader.Clone();
            cloneShutDeniedPdu.shutdownRequestDeniedPduData.shareDataHeader = shutdownRequestDeniedPduData.shareDataHeader;

            return cloneShutDeniedPdu;
        }