The TS_PLAIN_NOTIFY is a fixed-length structure which contains 576 bytes of padding.
file:///C:/ts_dev/TestSuites/MS-RDPBCGR/TestSuite/Src/TD/latest_XMLS_16may/RDPBCGR/ _rfc_ms-rdpbcgr_plain_notify__ts_plain_notify_.xml
        /// <summary>
        /// Parse TS_PLAIN_NOTIFY
        /// (parser index is updated according to parsed length)
        /// </summary>
        /// <param name="data">data to be parsed</param>
        /// <param name="currentIndex">current parser index</param>
        /// <returns>TS_PLAIN_NOTIFY</returns>
        private TS_PLAIN_NOTIFY ParseTsPlainNotify(byte[] data, ref int currentIndex)
        {
            TS_PLAIN_NOTIFY notify = new TS_PLAIN_NOTIFY();

            // TS_PLAIN_NOTIFY: Pad
            notify.Pad = GetBytes(data, ref currentIndex, ConstValue.TS_PLAIN_NOTIFY_PAD_LENGTH);

            return notify;
        }
Пример #2
0
        private byte[] EncodeLogonPlainNotify(TS_PLAIN_NOTIFY logonInfo)
        {
            List<byte> dataBuffer = new List<byte>();
            RdpbcgrEncoder.EncodeBytes(dataBuffer, logonInfo.Pad);

            return dataBuffer.ToArray();
        }