/// <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; }
private byte[] EncodeLogonPlainNotify(TS_PLAIN_NOTIFY logonInfo) { List<byte> dataBuffer = new List<byte>(); RdpbcgrEncoder.EncodeBytes(dataBuffer, logonInfo.Pad); return dataBuffer.ToArray(); }