Exemplo n.º 1
0
 private static void UpdatePersonalProtection()
 {
     checked
     {
         try
         {
             int num  = 0;
             int num2 = 0;
             MPlatformSDKLic.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    = MPlatformSDKLic.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;
             }
             MPlatformSDKLic.m_objMLProxy.SetData(num, num2, (int)Conversion.Fix(number), nSecondRes);
         }
         catch (Exception expr_BE)
         {
             ProjectData.SetProjectError(expr_BE);
             ProjectData.ClearProjectError();
         }
     }
 }
Exemplo n.º 2
0
 public static void IntializeProtection()
 {
     if (MPlatformSDKLic.m_objMLProxy == null)
     {
         MPlatformSDKLic.m_objMLProxy = new CoMLProxyClass();
         MPlatformSDKLic.m_objMLProxy.PutString(MPlatformSDKLic.strLicInfo);
     }
     MPlatformSDKLic.UpdatePersonalProtection();
 }
Exemplo n.º 3
0
 private void InitializeProtection()
 {
     this.dLastMPlatformLicenseCheck = DateTime.UtcNow.ToOADate();
     MPlatformSDKLic.IntializeProtection();
     EncoderlibLic.IntializeProtection();
     DecoderlibLic.IntializeProtection();
     FlashOverlaypluginforMPlatformLic.IntializeProtection();
     ClosedCaptionslibLic.IntializeProtection();
 }