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

ParseTsLogonInfoExtended() private method

Parse TS_LOGON_INFO_EXTENDED (parser index is updated according to parsed length)
private ParseTsLogonInfoExtended ( byte data, int &currentIndex ) : TS_LOGON_INFO_EXTENDED
data byte data to be parsed
currentIndex int current parser index
return TS_LOGON_INFO_EXTENDED
        private TS_LOGON_INFO_EXTENDED ParseTsLogonInfoExtended(byte[] data, ref int currentIndex)
        {
            TS_LOGON_INFO_EXTENDED info = new TS_LOGON_INFO_EXTENDED();

            // TS_LOGON_INFO_EXTENDED: Length
            info.Length = ParseUInt16(data, ref currentIndex, false);

            // TS_LOGON_INFO_EXTENDED: FieldsPresent
            info.FieldsPresent = (FieldsPresent_Values)ParseUInt32(data, ref currentIndex, false);

            // TS_LOGON_INFO_EXTENDED: LogonFields
            info.LogonFields = ParseTsLogonInfoFields(data, ref currentIndex, info.FieldsPresent);

            // TS_LOGON_INFO_EXTENDED: Pad
            info.Pad = GetBytes(data, ref currentIndex, ConstValue.TS_LOGON_INFO_EXTENDED_PAD_LENGTH);

            return info;
        }
RdpbcgrDecoder