Hi All
Please tell me that how can I unload a dll.
As I need to unload msoe.dll.
Please reply
Thanks
Printable View
Hi All
Please tell me that how can I unload a dll.
As I need to unload msoe.dll.
Please reply
Thanks
look at ::FreeLibrary(..)Quote:
Originally Posted by hash123
Cheers
Call FreeLibrary() with the module handle of the dll which you wish to unload.
You can get the module handle by calling GetModuleHandle with the name of the module as a parameter.
Why do you need it? Are you using LoadLibrary to load this dll?Quote:
Originally Posted by hash123
Infact I am not loading msoe.dll,
I need to unload this dll because if it is not unloaded then it would not change( switch) the identities of Outlook express.
So tell me that without loading how can I unload a dll.
Pls reply
Thanks
If you have not loaded the dll explicitly using loadlibrary it means either
a. You have loaded it implicity - run dumpbin on your binaries and check for references to msoe.dll
b. You are using some other dll that is using msoe.dll
In either case you should not unload msoe.dll by calling unloadlibrary, because there are likely to be live references to exported objects / functions in your process. And if in your process, you try to make use of any exported functions / classes exported by msoe.dll after you have explicitly unloaded it, you will get an exception.