hey guys...
i wanna use a dongle in ams, but i dont know how can i use dll callback function with lock.dll file...
here is the vb example (extracted from dongle documents)
when i try this action the program closed...
how can i use ReadDeviceID in dll action?
plz help..tnx..
i wanna use a dongle in ams, but i dont know how can i use dll callback function with lock.dll file...
here is the vb example (extracted from dongle documents)
Code:
Module HarwareLockFunctions Public Declare Function GetExpiryDateAndTime Lib "lock.dll" (ByRef Min As Byte, ByRef Hour As Byte, ByRef Day As Byte, ByRef Month As Byte, ByRef Year As Byte, ByVal pass1 As Integer, ByVal pass2 As Integer) As Integer Public Declare Function ReadDeviceID Lib "lock.dll" (ByVal ID As String) As Integer Public Declare Function ReadString Lib "lock.dll" (ByVal S As String, ByVal BlockNo As Byte, ByVal pass1 As Integer, ByVal pass2 As Integer) As Integer Public Declare Function ReadStringEx Lib "lock.dll" (ByVal S As String, ByVal Len As Integer, ByVal Offset As Integer, ByVal pass1 As Integer, ByVal pass2 As Integer) As Integer Public Function Alg(ByVal InNum As Integer) As Integer If (InNum Mod 2) = 0 Then Alg = Int((Math.Tan(3.14 * (90 - Math.Log(InNum / 1000 + 1)) / 180) - 210) / 4.1) Else Alg = Int(255 - (Math.Tan(3.14 * (90 - Math.Log(InNum / 1000 + 1)) / 180) - 210) / 4.1) End If End Function End Module
how can i use ReadDeviceID in dll action?
plz help..tnx..
Comment