Sign in to follow this  
Followers 0
JohnOne

DllImport vs autiot DllOpen

7 posts in this topic

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.

Share this post


Link to post
Share on other sites



In .Net, once a library has been loaded via DllImport, it remains loaded until the Application Domain is closed. If you don't know what Application Domains are, then you aren't modifying them and they close when your application ends.

Share this post


Link to post
Share on other sites

Single instance is loaded.

Share this post


Link to post
Share on other sites

Can someone give a sample code how to import multiple functions from same DLL?

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  
Followers 0