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

IsAutoDetectSecurityHeaderExist() private method

Check if Auto-Detect Request PDU secuirty header exists at the front part of user data
private IsAutoDetectSecurityHeaderExist ( byte userData ) : bool
userData byte user data to be checked
return bool
        private bool IsAutoDetectSecurityHeaderExist(byte[] userData)
        {
            // Peek "basic security header" at the front part of user data
            int startIndex = 0;
            TS_SECURITY_HEADER header = ParseTsSecurityHeader(
                userData, ref startIndex, SecurityHeaderType.Basic);

            // Check if this "security header" is for Server License Error PDU
            return IsFlagExist((UInt16)header.flags, (UInt16)TS_SECURITY_HEADER_flags_Values.SEC_AUTODETECT_REQ);
        }
RdpbcgrDecoder