Jump to content

DllImport vs autiot DllOpen


JohnOne
 Share

Recommended Posts

Wernt quite sure where to put this, so here it is.

Can anyone tell me about the nature of dllimport, I mean once the dll is imported is it like autoits dllopen in any fashion?

Let me try to explain, If my dll has a conditional statement attached to ul_reason_for_call and I use autoit to access a function in that dll, then the conditional statement is only checked when I use dllopen, and I'm free to then call its functions without the conditions being checked if I use the handle returned by DllOpen. If I just use the filename the condition is checked upon each call to a function in the dll.

My question is, what is the behaviour of a call to an external dll function when being used from C#?

AutoIt Absolute Beginners    Require a serial    Pause Script    Video Tutorials by Morthawt   ipify 

Monkey's are, like, natures humans.

Link to comment
Share on other sites

Another question regarding this subject if someone knows.

When you import multiple functions from same external library (for instance autoitx3), is an instance of the library loaded for each function?

AutoIt Absolute Beginners    Require a serial    Pause Script    Video Tutorials by Morthawt   ipify 

Monkey's are, like, natures humans.

Link to comment
Share on other sites

  • 4 months later...

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