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

ParseTsLogonErrorsInfo() private method

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

            // TS_LOGON_ERRORS_INFO: ErrorNotificationType
            info.ErrorNotificationType = (ErrorNotificationType_Values)ParseUInt32(data, ref currentIndex, false);

            // TS_LOGON_ERRORS_INFO: ErrorNotificationData
            info.ErrorNotificationData = (ErrorNotificationData_Values)ParseUInt32(data, ref currentIndex, false);

            return info;
        }
RdpbcgrDecoder