Jump to content

How can i use the "unrar.dll" in autoit?


UnReAl
 Share

Recommended Posts

Can someone help me with this unrar.dll? (You can get it here from rarlab.com)

I dont understand how to call the functions of the dll, because there is no introduction and example for autoit :)

I want to use "RAR_OM_EXTRACT" in the "RAROpenArchive" section and "RAR_EXTRACT" in the "RARProcessFile" section.

I thougt it should look like this :

$DLL = DllOpen("unrar.dll")
$return = DllCall($DLL, "ptr", "RAROpenArchive", "char", "C:\~~~ <=The RAR - Archive", "UINT", "RAR_OM_EXTRACT", "char", 0)
DllCall($DLL, "int", "RARProcessFile", "ptr", $return, "int", "RAR_EXTRACT", "char", "C:\~~~ <=DestPath", "char", 0)

But that dont works :)

edit-----------------------------

PS: I know nothing about how to call a dll :)

Edited by UnReAl
Link to comment
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
 Share

  • Recently Browsing   0 members

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