Jump to content
Sign in to follow this  

VB to Au3 question

Recommended Posts

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.


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


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

Hope someone can help! ;)

Share this post

Link to post
Share on other sites

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.

Share this post

Link to post
Share on other sites

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
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...