Jump to content

dll calls, how do you know functions?


Recommended Posts

i was wondering how you guys who use dll calls figure out what to call, and where everything should be placed, can you give some pointers i was checking out a dll with dllexplorer it had a function but in a script theirs different calls

Find the call you want to use in the .dll, and look it up on the net and find the necessary parameters to use it. :P

Nomad :D

Edit: Having some experience calling .dll's in C++ is also useful, since AutoIt was written in C++ you need very similar syntax as you would need to do it in C++. :D

Edited by Nomad
Link to comment
Share on other sites

well i finally figured one thing out... i forgeting to call "str", or "int" before loading my settings..

btw i couldn't find the dll in google :D

thns for the tip

The use of "str", "int", "ptr", etc.. is related to the syntax of using .dll functions in C++, which is one reason I referred to the syntax of such. :P There are also other necessary steps in some cases where you will have to declare a variable as a DWORD or a BYTE, etc..

Searching for the .dll itself will not narrow down the results as much as searching for the name of the function call within the .dll. For example, in the user32.dll for the _IsPressed UDF, it calls the "GetASyncKeyState" function. If you search for user32.dll, you are going to get a lot more search results to sort through than you will get by simply searching for GetASyncKeyState.

Every function call within the .dll is also going to have different parameter requirements to use it, just like using a AutoIt function, each one requires different input to perform as instructed. Which is why you should first find the function call you want to use, then search for that. If you wanted to use MouseMove() in AutoIt, would you search for AutoIt, or MouseMove? ;)

The Dll functions in AutoIt really help to make it extremely flexible since it allows you to do things you couldn't normally do with AutoIt. I recommend familiarizing yourself with them. If you don't use beta, I would also get that. There are some key Dll functions in the beta that aren't included in the non-beta.

Nomad :D

Link to comment
Share on other sites

For a known dll, follow the advice given above, i.e. read the documentation. If it's a dll that can be registered, there's probably a loads of available functions.

ExeScope (or similar tool) is just useful for trying to get *anywhere* with an unknown dll file. I figured anyone seeking out a topic like this would benefit from having it in their kit-bag.

-mu

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...