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

IsLicenseErrorSecurityHeaderExist() private method

Check if Server License Error PDU secuirty header exists at the front part of user data
private IsLicenseErrorSecurityHeaderExist ( byte userData ) : bool
userData byte user data to be checked
return bool
        private bool IsLicenseErrorSecurityHeaderExist(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_LICENSE_PKT);
        }
RdpbcgrDecoder