Microsoft.Protocols.TestTools.StackSdk.RemoteDesktop.Rdpbcgr.RdpbcgrDecoder.DecodeSetKeyboardImeStatusPDU C# (CSharp) Method

DecodeSetKeyboardImeStatusPDU() public method

Decode Set Keyboard IME Status PDU
public DecodeSetKeyboardImeStatusPDU ( byte data, byte decryptedUserData, SecurityHeaderType type ) : StackPacket
data byte data to be parsed
decryptedUserData byte decrypted user data
type SecurityHeaderType security header type
return StackPacket
        public StackPacket DecodeSetKeyboardImeStatusPDU(
            byte[] data,
            byte[] decryptedUserData,
            SecurityHeaderType type)
        {
            Server_Set_Keyboard_IME_Status_Pdu pdu = new Server_Set_Keyboard_IME_Status_Pdu();

            // data index
            int dataIndex = 0;

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

            // user data index
            int userDataIndex = 0;

            // SetKeyboardImeStatusPDU: setKeyBdImeStatusPduData
            pdu.setKeyBdImeStatusPduData = ParseTsSetKeyboardImeStatusPdu(decryptedUserData, ref userDataIndex);

            // Check if data length exceeded expectation
            VerifyDataLength(decryptedUserData.Length, userDataIndex, ConstValue.ERROR_MESSAGE_DATA_LENGTH_EXCEEDED);
            return pdu;
        }
RdpbcgrDecoder