Jump to content
Sign in to follow this  

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

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 :)


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

Edited by UnReAl

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