public static void UVFxVerify_fnSetClientCode(byte[] cond, int nLen) { if (UnityVerify.fxVerifyinstance != IntPtr.Zero) { UnityVerify.FxVerify_SetClientCode(UnityVerify.fxVerifyinstance, cond, nLen); } }
public static void UVFxVerify_GetType() { if (UnityVerify.fxVerifyType == IntPtr.Zero) { UnityVerify.fxVerifyType = UnityVerify.FxVerify_GetType(); } }
public static void UVFxVerify_fnSetClientCond(byte[] cond) { if (UnityVerify.fxVerifyinstance != IntPtr.Zero) { UnityVerify.FxVerify_SetClientCond(UnityVerify.fxVerifyinstance, cond); } }
public static void UVFxVerify_AntiDebuggerStop() { if (UnityVerify.fxVerifyinstance != IntPtr.Zero) { UnityVerify.FxVerify_AntiDebuggerStop(UnityVerify.fxVerifyinstance); } }
public static int UVFxVerify_GetVersion() { if (UnityVerify.fxVerifyinstance != IntPtr.Zero) { return(UnityVerify.FxVerify_GetVersion(UnityVerify.fxVerifyinstance)); } return(768); }
public static void UVFxVerify_Release() { if (UnityVerify.fxVerifyinstance != IntPtr.Zero) { UnityVerify.FxVerify_Release(UnityVerify.fxVerifyinstance); UnityVerify.fxVerifyinstance = IntPtr.Zero; UnityVerify.fxVerifyType = IntPtr.Zero; } }
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); } }
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); } }
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); } }
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); }
public static void UVFxVerify_GetInterface() { try { UnityVerify.fxVerifyinstance = UnityVerify.FxVerify_GetInterface(); } catch (Exception ex) { UnityVerify.fxVerifyinstance = IntPtr.Zero; LogSystem.LogError(new object[] { ex.ToString() }); } }
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() }); } } }