Jump to content

Recommended Posts

Posted

I'm not the best at VB6 so I have a hard time interpreting and converting to autoit3. So I just need a simple question answered, if this conversion is correct or not and if not what would be the correct conversion.

VB

Public Declare Sub double_hash_password Lib "libbnet.dll" (ByVal sPassword As String, ByVal lClientToken As Long, ByVal lServerToken As Long, ByVal sBufferOut As String)

Dim HashCode As String * 20: double_hash_password Password, ClientToken, ServerToken, HashCode

Au3

Local $HashCode = DllCall("libbnet.dll", "str", "double_hash_password", "Password", "ClientToken", "ServerToken", "HashCode")

Hope someone can help! ;)

Posted

I'm not very experienced on using DllCall(), but does this work?

Local $hashCode = DllCall("libbnet.dll", "str", "double_hash_password", "str", "sPassword", "long", "lClientToken", "long", "lServerToken", "str", "sBufferOut");

You need to replace sPassword, lClientToken, lServerToken and sBufferOut with the proper values of course.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...