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

IsStandardRedirectionPdu() private method

Check if the PDU is a Standard Redirection PDU.
private IsStandardRedirectionPdu ( byte userData, SecurityHeaderType securityHeaderType ) : bool
userData byte user data
securityHeaderType SecurityHeaderType security header type
return bool
        private bool IsStandardRedirectionPdu(byte[] userData, SecurityHeaderType securityHeaderType)
        {
            // Parse security header
            int index = 0;
            TS_SECURITY_HEADER header = ParseTsSecurityHeader(userData, ref index, securityHeaderType);

            if (null == header)
            {
                return false;
            }

            return IsFlagExist((UInt16)header.flags, (UInt16)TS_SECURITY_HEADER_flags_Values.SEC_REDIRECTION_PKT);
        }
RdpbcgrDecoder