Beispiel #1
0
 public static void UVFxVerify_fnSetClientCode(byte[] cond, int nLen)
 {
     if (UnityVerify.fxVerifyinstance != IntPtr.Zero)
     {
         UnityVerify.FxVerify_SetClientCode(UnityVerify.fxVerifyinstance, cond, nLen);
     }
 }
Beispiel #2
0
 public static void UVFxVerify_GetType()
 {
     if (UnityVerify.fxVerifyType == IntPtr.Zero)
     {
         UnityVerify.fxVerifyType = UnityVerify.FxVerify_GetType();
     }
 }
Beispiel #3
0
 public static void UVFxVerify_fnSetClientCond(byte[] cond)
 {
     if (UnityVerify.fxVerifyinstance != IntPtr.Zero)
     {
         UnityVerify.FxVerify_SetClientCond(UnityVerify.fxVerifyinstance, cond);
     }
 }
Beispiel #4
0
 public static void UVFxVerify_AntiDebuggerStop()
 {
     if (UnityVerify.fxVerifyinstance != IntPtr.Zero)
     {
         UnityVerify.FxVerify_AntiDebuggerStop(UnityVerify.fxVerifyinstance);
     }
 }
Beispiel #5
0
 public static int UVFxVerify_GetVersion()
 {
     if (UnityVerify.fxVerifyinstance != IntPtr.Zero)
     {
         return(UnityVerify.FxVerify_GetVersion(UnityVerify.fxVerifyinstance));
     }
     return(768);
 }
Beispiel #6
0
 public static void UVFxVerify_Release()
 {
     if (UnityVerify.fxVerifyinstance != IntPtr.Zero)
     {
         UnityVerify.FxVerify_Release(UnityVerify.fxVerifyinstance);
         UnityVerify.fxVerifyinstance = IntPtr.Zero;
         UnityVerify.fxVerifyType     = IntPtr.Zero;
     }
 }
Beispiel #7
0
 public static void UVFxVerify_GetCustomVerify(string strIp, int nDynamicKey, int nPort, int nSerial, int nArgNum, string strDecID, byte[] pArgData, int nArgLen, ref byte[] output)
 {
     if (UnityVerify.fxVerifyinstance != IntPtr.Zero)
     {
         IntPtr intPtr = Marshal.AllocHGlobal(16);
         UnityVerify.FxVerify_GetCustomVerify(UnityVerify.fxVerifyinstance, strIp, nDynamicKey, nPort, nSerial, nArgNum, strDecID, pArgData, nArgLen, intPtr);
         Marshal.Copy(intPtr, output, 0, 16);
         Marshal.FreeHGlobal(intPtr);
     }
 }
Beispiel #8
0
 public static void UVFxVerify_GetSelectVerify(int nDynamicKey, int nFunctionId, string strIp, int nPort, string strDecID, int nPersistidSerial, int nSerial, int nPersistidIdent, ref byte[] output)
 {
     if (UnityVerify.fxVerifyinstance != IntPtr.Zero)
     {
         IntPtr intPtr = Marshal.AllocHGlobal(16);
         UnityVerify.FxVerify_GetSelectVerify(UnityVerify.fxVerifyinstance, nDynamicKey, nFunctionId, strIp, nPort, strDecID, nPersistidSerial, nSerial, nPersistidIdent, intPtr);
         Marshal.Copy(intPtr, output, 0, 16);
         Marshal.FreeHGlobal(intPtr);
     }
 }
Beispiel #9
0
 public static void UVFxVerify_GetChooseRoleVerify(byte[] strInfo, int nStrInfoLen, string strIp, int nPort, string strDecID, int nDynamicKey, byte[] szRoleName, int nRoleNameLen, int nAddress, ref byte[] output)
 {
     if (UnityVerify.fxVerifyinstance != IntPtr.Zero)
     {
         IntPtr intPtr = Marshal.AllocHGlobal(16);
         UnityVerify.FxVerify_GetChooseRoleVerify(UnityVerify.fxVerifyinstance, strInfo, nStrInfoLen, strIp, nPort, strDecID, nDynamicKey, szRoleName, nRoleNameLen, nAddress, intPtr);
         Marshal.Copy(intPtr, output, 0, 16);
         Marshal.FreeHGlobal(intPtr);
     }
 }
Beispiel #10
0
 public static bool UVFxVerify_EncodePassword(string strPassword, ref byte[] output, ref int nSize)
 {
     if (UnityVerify.fxVerifyinstance != IntPtr.Zero)
     {
         IntPtr intPtr = Marshal.AllocHGlobal(strPassword.Length + 16);
         nSize = strPassword.Length + 16;
         bool result = UnityVerify.FxVerify_EncodePassword(UnityVerify.fxVerifyinstance, strPassword, intPtr, ref nSize);
         output = new byte[nSize + 4];
         Marshal.Copy(intPtr, output, 0, nSize);
         Marshal.FreeHGlobal(intPtr);
         return(result);
     }
     return(false);
 }
Beispiel #11
0
 public static void UVFxVerify_GetInterface()
 {
     try
     {
         UnityVerify.fxVerifyinstance = UnityVerify.FxVerify_GetInterface();
     }
     catch (Exception ex)
     {
         UnityVerify.fxVerifyinstance = IntPtr.Zero;
         LogSystem.LogError(new object[]
         {
             ex.ToString()
         });
     }
 }
Beispiel #12
0
 public static void UVFxVerify_GetLoginVerify(byte[] strInfo, int nStrInfoLen, int nPort, string strIp, string strDecID, int nAddress, int nDynamicKey, ref byte[] output)
 {
     if (UnityVerify.fxVerifyinstance != IntPtr.Zero)
     {
         try
         {
             IntPtr intPtr = Marshal.AllocHGlobal(16);
             UnityVerify.FxVerify_GetLoginVerify(UnityVerify.fxVerifyinstance, strInfo, nStrInfoLen, nPort, strIp, strDecID, nAddress, nDynamicKey, intPtr);
             Marshal.Copy(intPtr, output, 0, 16);
             Marshal.FreeHGlobal(intPtr);
         }
         catch (Exception ex)
         {
             LogSystem.LogError(new object[]
             {
                 ex.ToString()
             });
         }
     }
 }