News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests

Main Menu

Help freelibrary

Started by jeivarmarr, March 24, 2013, 05:34:50 AM

Previous topic - Next topic

jeivarmarr

Good day,

this is to request help,
I need to create a dll that unload itself when you finish your work,

I've used it.

. data
  Libname db "MiDLL.dll", 0

invoke LoadLibrary, addr Libname
. if eax != NULL
Invoke FreeLibrary, eax
. endif

but I have problems I closed the process has loaded the dll :dazzled:

jj2007

We are very bad at reading your thoughts. Post your complete code please.

dedndave

your DLL should have a DllMain entry point proc
it handles loading and unloading, init and uninit, and returns appropriate values

http://msdn.microsoft.com/en-us/library/windows/desktop/ms682583%28v=vs.85%29.aspx

DLL_PROCESS_ATTACH, DLL_PROCESS_DETACH, DLL_THREAD_ATTACH, DLL_THREAD_DETACH

refer also to the example in masm32\examples\exampl01\dll