Пример #1
0
 private static void UpdatePersonalProtection()
 {
     checked
     {
         try
         {
             int num  = 0;
             int num2 = 0;
             ClosedCaptionslibLic.m_objMLProxy.GetData(out num, out num2);
             long num3    = unchecked ((long)Conversion.Fix(num)) * 44817467L % 43373189L;
             long num4    = unchecked ((long)Conversion.Fix(num2)) * 47128061L % 42408581L;
             uint num5    = ClosedCaptionslibLic.SummBits((uint)(num3 + num4));
             long number  = unchecked ((long)Conversion.Fix(checked (num - 29))) *unchecked ((long)(checked (num - 23))) % unchecked ((long)num2);
             int  number2 = new Random().Next(32767);
             int  nSecondRes;
             if (unchecked ((ulong)num5) > 0uL)
             {
                 nSecondRes = (int)Conversion.Fix(number) + Conversion.Fix(number2) * 1;
             }
             else
             {
                 nSecondRes = (int)Conversion.Fix(number) + Conversion.Fix(number2) * -1;
             }
             ClosedCaptionslibLic.m_objMLProxy.SetData(num, num2, (int)Conversion.Fix(number), nSecondRes);
         }
         catch (Exception expr_BE)
         {
             ProjectData.SetProjectError(expr_BE);
             ProjectData.ClearProjectError();
         }
     }
 }
Пример #2
0
 private void InitializeProtection()
 {
     this.dLastMPlatformLicenseCheck = DateTime.UtcNow.ToOADate();
     MPlatformSDKLic.IntializeProtection();
     EncoderlibLic.IntializeProtection();
     DecoderlibLic.IntializeProtection();
     FlashOverlaypluginforMPlatformLic.IntializeProtection();
     ClosedCaptionslibLic.IntializeProtection();
 }
Пример #3
0
 public static void IntializeProtection()
 {
     if (ClosedCaptionslibLic.m_objMLProxy == null)
     {
         ClosedCaptionslibLic.m_objMLProxy = new CoMLProxyClass();
         ClosedCaptionslibLic.m_objMLProxy.PutString(ClosedCaptionslibLic.strLicInfo);
     }
     ClosedCaptionslibLic.UpdatePersonalProtection();
 }